@@ -21,20 +21,7 @@ class FlowTests : XCTestCase {
21
21
}
22
22
23
23
extension FlowTests {
24
- func testAll( ) {
25
- for test in [
26
- _testSearchWikipedia,
27
- _testMasterDetail,
28
- _testGitHubSignUp,
29
- _testAnimatedPartialUpdates,
30
- _testVisitEveryScreen
31
- ] {
32
- test ( )
33
- wait ( interval: 1.0 )
34
- }
35
- }
36
-
37
- func _testGitHubSignUp( ) {
24
+ func testGitHubSignUp( ) {
38
25
app. tables. allElementsBoundByIndex [ 0 ] . cells. allElementsBoundByIndex [ 3 ] . tap ( )
39
26
let username = app. textFields. allElementsBoundByIndex [ 0 ]
40
27
let password = app. secureTextFields. allElementsBoundByIndex [ 0 ]
@@ -59,7 +46,7 @@ extension FlowTests {
59
46
goBack ( )
60
47
}
61
48
62
- func _testSearchWikipedia ( ) {
49
+ func testSearchWikipedia ( ) {
63
50
app. tables. allElementsBoundByIndex [ 0 ] . cells. allElementsBoundByIndex [ 12 ] . tap ( )
64
51
65
52
let searchField = app. tables. children ( matching: . searchField) . element
@@ -74,9 +61,9 @@ extension FlowTests {
74
61
goBack ( )
75
62
}
76
63
77
- func _testMasterDetail ( ) {
64
+ func testMasterDetail ( ) {
78
65
app. tables. allElementsBoundByIndex [ 0 ] . cells. allElementsBoundByIndex [ 10 ] . tap ( )
79
- waitForElementToAppear ( app. tables. allElementsBoundByIndex [ 0 ] . cells. element ( boundBy: 5 ) )
66
+ waitForElementToAppear ( app. tables. allElementsBoundByIndex [ 0 ] . cells. element ( boundBy: 5 ) , timeout : 10.0 )
80
67
81
68
let editButton = app. navigationBars. buttons [ " Edit " ]
82
69
@@ -103,7 +90,7 @@ extension FlowTests {
103
90
goBack ( )
104
91
}
105
92
106
- func _testAnimatedPartialUpdates ( ) {
93
+ func testAnimatedPartialUpdates ( ) {
107
94
app. tables. allElementsBoundByIndex [ 0 ] . cells. allElementsBoundByIndex [ 11 ] . tap ( )
108
95
109
96
let randomize = app. navigationBars. buttons [ " Randomize " ]
@@ -122,7 +109,7 @@ extension FlowTests {
122
109
goBack ( )
123
110
}
124
111
125
- func _testVisitEveryScreen ( ) {
112
+ func testVisitEveryScreen ( ) {
126
113
let count = Int ( app. tables. allElementsBoundByIndex [ 0 ] . cells. count)
127
114
XCTAssertTrue ( count > 0 )
128
115
0 commit comments