Parcourir la source

test modal didDisappear called on dismiss

yogevbd il y a 7 ans
Parent
révision
17c8ea0672
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2
    0
      e2e/Modals.test.js

+ 2
- 0
e2e/Modals.test.js Voir le fichier

29
     await elementById(testIDs.DISMISS_MODAL_BUTTON).tap();
29
     await elementById(testIDs.DISMISS_MODAL_BUTTON).tap();
30
     await expect(elementByLabel('componentWillUnmount')).toBeVisible();
30
     await expect(elementByLabel('componentWillUnmount')).toBeVisible();
31
     await elementByLabel('OK').atIndex(0).tap();
31
     await elementByLabel('OK').atIndex(0).tap();
32
+    await expect(elementByLabel('didDisappear')).toBeVisible();
33
+    await elementByLabel('OK').atIndex(0).tap();
32
   });
34
   });
33
 
35
 
34
   it('show multiple modals', async () => {
36
   it('show multiple modals', async () => {