(t *testing.T)
| 69 | } |
| 70 | |
| 71 | func TestIOSCameraPhotoCapture(t *testing.T) { |
| 72 | testCase := &TestCase{ |
| 73 | Config: NewConfig("ios camera photo capture"), |
| 74 | TestSteps: []IStep{ |
| 75 | NewStep("launch camera"). |
| 76 | IOS().Home(). |
| 77 | StopCamera(). |
| 78 | StartCamera(). |
| 79 | Validate(). |
| 80 | AssertLabelExists("PhotoCapture", "拍照按钮不存在"), |
| 81 | NewStep("start recording"). |
| 82 | IOS().Tap("PhotoCapture"), |
| 83 | }, |
| 84 | } |
| 85 | err := NewRunner(t).Run(testCase) |
| 86 | if err != nil { |
| 87 | t.Fatal(err) |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | func TestIOSCameraVideoCapture(t *testing.T) { |
| 92 | testCase := &TestCase{ |
nothing calls this directly
no test coverage detected