Skip to content

Commit 09dd31c

Browse files
authored
chore: wait to avoid e2e android flakiness (#354)
1 parent 011e8a4 commit 09dd31c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

example/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export const App = () => {
193193
setShow(true);
194194
setTimeout(() => {
195195
setShow(false);
196-
}, 3000);
196+
}, 5000);
197197
}}
198198
title="Show and dismiss picker!"
199199
/>

example/e2e/detoxTest.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ describe('Example', () => {
141141

142142
it(':android: when component unmounts, dialog is dismissed', async () => {
143143
await elementById('showAndDismissPickerButton').tap();
144+
await wait(2000);
144145
await expect(getDatePickerAndroid()).toBeVisible();
145-
await wait(3500);
146+
await wait(5000);
146147

147148
await expect(getDatePickerAndroid()).toNotExist();
148149
});

0 commit comments

Comments
 (0)