Browse Source

test modal didDisappear called on dismiss

yogevbd 6 years ago
parent
commit
17c8ea0672
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      e2e/Modals.test.js

+ 2
- 0
e2e/Modals.test.js View File

@@ -29,6 +29,8 @@ describe('modal', () => {
29 29
     await elementById(testIDs.DISMISS_MODAL_BUTTON).tap();
30 30
     await expect(elementByLabel('componentWillUnmount')).toBeVisible();
31 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 36
   it('show multiple modals', async () => {