Skip to content

Commit b55299e

Browse files
authored
test(Android): fix flakiness on join from directory and in-app notification tests (#6765)
1 parent 65bfa8a commit b55299e

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.maestro/tests/assorted/join-from-directory.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ tags:
4141
- tapOn:
4242
id: 'directory-view-search'
4343
- inputText: join-from-directory
44-
- pressKey: Enter
4544
- extendedWaitUntil:
4645
visible:
4746
id: 'directory-view-item-join-from-directory'
@@ -103,7 +102,11 @@ tags:
103102
- tapOn:
104103
id: 'directory-view-search'
105104
- inputText: ${output.otherUser.username}
106-
- pressKey: Enter
105+
- runFlow:
106+
when:
107+
platform: iOS
108+
commands:
109+
- pressKey: enter
107110
- extendedWaitUntil:
108111
visible:
109112
id: 'directory-view-item-${output.otherUser.username}'
@@ -147,7 +150,6 @@ tags:
147150
- tapOn:
148151
id: 'directory-view-search'
149152
- inputText: ${output.team}
150-
- pressKey: Enter
151153
- extendedWaitUntil:
152154
visible:
153155
id: 'directory-view-item-${output.team}'

.maestro/tests/assorted/setting.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,12 @@ tags:
104104
visible:
105105
id: 'settings-view'
106106
timeout: 60000
107-
- assertVisible:
108-
id: 'settings-view-clear-cache'
107+
- waitForAnimationToEnd:
108+
timeout: 60000
109+
- extendedWaitUntil:
110+
visible:
111+
id: 'settings-view-clear-cache'
112+
timeout: 60000
109113
- tapOn:
110114
id: 'settings-view-clear-cache'
111115
retryTapIfNoChange: true

.maestro/tests/room/jump-to-message.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ tags:
108108
id: 'message-content-30'
109109
timeout: 60000
110110
- tapOn:
111-
text: '30'
112-
index: 1
111+
id: 'message-content-30'
113112
- extendedWaitUntil:
114113
visible:
115114
id: 'message-content-29'

app/containers/InAppNotification/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const InAppNotification = memo(() => {
5959
componentProps: {
6060
notification
6161
},
62-
duration: notification.customTime || 3000, // default 3s,
62+
duration: notification.customTime || process.env.RUNNING_E2E_TESTS ? 60000 : 3000, // default 3s,
6363
hideOnPress: notification.hideOnPress ?? true,
6464
swipeEnabled: notification.swipeEnabled ?? true
6565
});

0 commit comments

Comments
 (0)