File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ final class AttachmentCameraControllerTests: XCTestCase {
34
34
35
35
app. launch ( )
36
36
37
+ let attachmentCameraControllerTestsButton = app. buttons [ " AttachmentCameraController Tests " ]
38
+
39
+ XCTAssertTrue (
40
+ attachmentCameraControllerTestsButton. exists,
41
+ " The AttachmentCameraController Tests button wasn't found. "
42
+ )
43
+ attachmentCameraControllerTestsButton. tap ( )
44
+
37
45
addUIInterruptionMonitor ( withDescription: " Camera access alert " ) { ( alert) -> Bool in
38
46
alert. buttons [ " Allow " ] . tap ( )
39
47
return true
@@ -43,14 +51,6 @@ final class AttachmentCameraControllerTests: XCTestCase {
43
51
return true
44
52
}
45
53
46
- let attachmentCameraControllerTestsButton = app. buttons [ " AttachmentCameraController Tests " ]
47
-
48
- XCTAssertTrue (
49
- attachmentCameraControllerTestsButton. exists,
50
- " The AttachmentCameraController Tests button wasn't found. "
51
- )
52
- attachmentCameraControllerTestsButton. tap ( )
53
-
54
54
XCTAssertTrue (
55
55
cameraModeController. waitForExistence ( timeout: 5 )
56
56
)
You can’t perform that action at this time.
0 commit comments