(t *testing.T)
| 89 | } |
| 90 | |
| 91 | func TestIOSCameraVideoCapture(t *testing.T) { |
| 92 | testCase := &TestCase{ |
| 93 | Config: NewConfig("ios camera video capture"), |
| 94 | TestSteps: []IStep{ |
| 95 | NewStep("launch camera"). |
| 96 | IOS().Home(). |
| 97 | StopCamera(). |
| 98 | StartCamera(). |
| 99 | Validate(). |
| 100 | AssertLabelExists("PhotoCapture", "录像按钮不存在"), |
| 101 | NewStep("switch to video capture"). |
| 102 | IOS(). |
| 103 | SwipeRight(). |
| 104 | Validate(). |
| 105 | AssertLabelExists("VideoCapture", "拍摄按钮不存在"), |
| 106 | NewStep("start recording"). |
| 107 | IOS(). |
| 108 | Tap("VideoCapture"). // 开始录像 |
| 109 | Sleep(5). |
| 110 | Tap("VideoCapture"), // 停止录像 |
| 111 | }, |
| 112 | } |
| 113 | err := NewRunner(t).Run(testCase) |
| 114 | if err != nil { |
| 115 | t.Fatal(err) |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | func TestIOSDouyinAction(t *testing.T) { |
| 120 | testCase := &TestCase{ |
nothing calls this directly
no test coverage detected