Skip to content

Commit f108e62

Browse files
fixed tests to work on both android and ios
1 parent 33aad24 commit f108e62

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

example/maestro/connectWidget.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ appId: com.anonymous.example
99
- assertVisible: "Select your institution"
1010
- tapOn: ".*(OAuth).*"
1111
- tapOn: "Go to log in"
12-
- assertVisible: "Authorization required"
13-
- assertVisible: "Authorize"
1412
- runFlow:
1513
when:
1614
platform: android
@@ -22,7 +20,13 @@ appId: com.anonymous.example
2220
platform: iOS
2321
commands:
2422
- tapOn:
25-
text: "Authorize"
26-
index: 1
27-
- tapOn: "Open"
23+
text: "Continue"
24+
- tapOn: # Maestro doesn't provide a wait command, so we use a delayed optional tap
25+
text: "non_existent_text"
26+
optional: true
27+
repeat: 1
28+
delay: 10000
29+
# Maestro can't see within ASWebAuthenticationSession, so we have to use points
30+
- tapOn:
31+
point: 21%,51%
2832
- assertVisible: "Done"

0 commit comments

Comments
 (0)