From 1ca9352f53670e064054922982a52a5ad585fa5e Mon Sep 17 00:00:00 2001 From: luancurti Date: Fri, 2 Dec 2022 10:09:55 -0300 Subject: [PATCH] test(android): expect show before tap --- example/e2e/detoxTest.spec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/e2e/detoxTest.spec.js b/example/e2e/detoxTest.spec.js index feb78dd2..972e16cf 100644 --- a/example/e2e/detoxTest.spec.js +++ b/example/e2e/detoxTest.spec.js @@ -249,9 +249,8 @@ describe('e2e tests', () => { }); it(':android: when component unmounts, dialog is dismissed', async () => { - await elementById('showAndDismissPickerButton').tap(); - await wait(1000); await expect(getDatePickerAndroid()).toExist(); + await elementById('showAndDismissPickerButton').tap(); await wait(6000); await expect(getDatePickerAndroid()).not.toExist();