Skip to content

Commit 0b93f25

Browse files
authored
test: use setPermissions before launching the app (RocketChat#6975)
1 parent 61a5d44 commit 0b93f25

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

.maestro/helpers/login-with-deeplink.yaml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ tags:
1010
true: CLEAR_STATE
1111
commands:
1212
- clearState: chat.rocket.reactnative
13+
- setPermissions:
14+
permissions:
15+
all: allow
1316
- evalScript: ${output.login = output.utils.login(USERNAME, PASSWORD)}
1417
- runFlow:
1518
file: 'open-deeplink.yaml'
@@ -24,24 +27,6 @@ tags:
2427
visible: '.*Pixel Launcher.*'
2528
commands:
2629
- tapOn: 'Close App'
27-
- extendedWaitUntil:
28-
visible:
29-
text: '.*Allow.*'
30-
timeout: 30000
31-
optional: true
32-
- tapOn:
33-
text: '.*Allow.*'
34-
optional: true
35-
- assertNotVisible:
36-
text: '.*Allow.*'
37-
optional: true
38-
- runFlow:
39-
when:
40-
visible: '.*Would like to send you notifications.*'
41-
platform: iOS
42-
commands:
43-
- tapOn:
44-
point: 65%,60%
4530
- extendedWaitUntil:
4631
visible:
4732
id: 'rooms-list-view'

0 commit comments

Comments
 (0)