File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,15 @@ import XCTest
2
2
3
3
@MainActor
4
4
final class ParchmentUITests : XCTestCase {
5
- var app : XCUIApplication !
6
-
7
5
override func setUp( ) {
8
6
continueAfterFailure = false
9
- app = XCUIApplication ( )
10
- app. launchArguments = [ " --ui-testing " ]
11
- app. launch ( )
12
7
}
13
8
14
9
func testSelect( ) {
10
+ let app = XCUIApplication ( )
11
+ app. launchArguments = [ " --ui-testing " ]
12
+ app. launch ( )
13
+
15
14
let cell0 = app. collectionViews. cells [ " View 0 " ]
16
15
let cell1 = app. collectionViews. cells [ " View 1 " ]
17
16
@@ -27,6 +26,10 @@ final class ParchmentUITests: XCTestCase {
27
26
}
28
27
29
28
func testSwipe( ) {
29
+ let app = XCUIApplication ( )
30
+ app. launchArguments = [ " --ui-testing " ]
31
+ app. launch ( )
32
+
30
33
app. scrollViews. firstMatch. swipeLeft ( )
31
34
let content1 = app. scrollViews. firstMatch. staticTexts [ " 1 " ]
32
35
XCTAssertTrue ( content1. waitForExistence ( timeout: 1 ) )
You can’t perform that action at this time.
0 commit comments