Skip to content

Commit 058440a

Browse files
committed
Improves automation tests
1 parent 6b2159c commit 058440a

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

RxExample/RxExample-iOSUITests/FlowTests.swift

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,7 @@ class FlowTests : XCTestCase {
2121
}
2222

2323
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() {
3825
app.tables.allElementsBoundByIndex[0].cells.allElementsBoundByIndex[3].tap()
3926
let username = app.textFields.allElementsBoundByIndex[0]
4027
let password = app.secureTextFields.allElementsBoundByIndex[0]
@@ -59,7 +46,7 @@ extension FlowTests {
5946
goBack()
6047
}
6148

62-
func _testSearchWikipedia() {
49+
func testSearchWikipedia() {
6350
app.tables.allElementsBoundByIndex[0].cells.allElementsBoundByIndex[12].tap()
6451

6552
let searchField = app.tables.children(matching: .searchField).element
@@ -74,9 +61,9 @@ extension FlowTests {
7461
goBack()
7562
}
7663

77-
func _testMasterDetail() {
64+
func testMasterDetail() {
7865
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)
8067

8168
let editButton = app.navigationBars.buttons["Edit"]
8269

@@ -103,7 +90,7 @@ extension FlowTests {
10390
goBack()
10491
}
10592

106-
func _testAnimatedPartialUpdates() {
93+
func testAnimatedPartialUpdates() {
10794
app.tables.allElementsBoundByIndex[0].cells.allElementsBoundByIndex[11].tap()
10895

10996
let randomize = app.navigationBars.buttons["Randomize"]
@@ -122,7 +109,7 @@ extension FlowTests {
122109
goBack()
123110
}
124111

125-
func _testVisitEveryScreen() {
112+
func testVisitEveryScreen() {
126113
let count = Int(app.tables.allElementsBoundByIndex[0].cells.count)
127114
XCTAssertTrue(count > 0)
128115

0 commit comments

Comments
 (0)