change: remove unused methods

This commit is contained in:
lilong.129
2025-02-11 14:44:40 +08:00
parent 6651b52517
commit b35116fdf7
14 changed files with 52 additions and 467 deletions

View File

@@ -68,54 +68,6 @@ func TestIOSAppLaunch(t *testing.T) {
}
}
func TestIOSCameraPhotoCapture(t *testing.T) {
testCase := &TestCase{
Config: NewConfig("ios camera photo capture"),
TestSteps: []IStep{
NewStep("launch camera").
IOS().Home().
StopCamera().
StartCamera().
Validate().
AssertLabelExists("PhotoCapture", "拍照按钮不存在"),
NewStep("start recording").
IOS().Tap("PhotoCapture"),
},
}
err := NewRunner(t).Run(testCase)
if err != nil {
t.Fatal(err)
}
}
func TestIOSCameraVideoCapture(t *testing.T) {
testCase := &TestCase{
Config: NewConfig("ios camera video capture"),
TestSteps: []IStep{
NewStep("launch camera").
IOS().Home().
StopCamera().
StartCamera().
Validate().
AssertLabelExists("PhotoCapture", "录像按钮不存在"),
NewStep("switch to video capture").
IOS().
SwipeRight().
Validate().
AssertLabelExists("VideoCapture", "拍摄按钮不存在"),
NewStep("start recording").
IOS().
Tap("VideoCapture"). // 开始录像
Sleep(5).
Tap("VideoCapture"), // 停止录像
},
}
err := NewRunner(t).Run(testCase)
if err != nil {
t.Fatal(err)
}
}
func TestIOSDouyinAction(t *testing.T) {
testCase := &TestCase{
Config: NewConfig("ios ui action on 抖音"),