change: update game examples

This commit is contained in:
lilong.129
2025-07-06 10:38:50 +08:00
parent 9d18303108
commit af40d082f7
9 changed files with 81 additions and 132 deletions
+8 -7
View File
@@ -10,7 +10,7 @@ import (
)
func TestGameSudoku(t *testing.T) {
startGameInstruction := `搜索「每天数独」,点击「小游戏」tab,启动小游戏程序
startGameInstruction := `在手机桌面点击「每天数独」启动小游戏,等待游戏加载完成
1、点击【开始】按钮开始游戏,进入数独的棋盘界面
2、若提示「体力不足」,可通过观看广告免费获得体力,观看完成后继续开始游戏
@@ -34,14 +34,15 @@ func TestGameSudoku(t *testing.T) {
"package_name": "com.ss.android.ugc.aweme",
}),
TestSteps: []hrp.IStep{
hrp.NewStep("启动抖音 app").
Android().
AppLaunch("$package_name").
Sleep(5).
Validate().
AssertAppInForeground("$package_name"),
// hrp.NewStep("启动抖音 app").
// Android().
// AppLaunch("$package_name").
// Sleep(5).
// Validate().
// AssertAppInForeground("$package_name"),
hrp.NewStep("进入「每天数独」小游戏").
Android().
Home().
StartToGoal(startGameInstruction,
option.WithPreMarkOperation(true)).
Validate().