|
@@ -107,4 +107,13 @@ describe('modal', () => {
|
107
|
107
|
Android.pressBack();
|
108
|
108
|
await expect(elementByLabel('Pushed Screen')).toBeVisible();
|
109
|
109
|
});
|
|
110
|
+
|
|
111
|
+ it('present modal multiple times', async () => {
|
|
112
|
+ await elementById(testIDs.SHOW_MODAL_BUTTON).tap();
|
|
113
|
+ await elementById(testIDs.SHOW_MODAL_BUTTON).tap();
|
|
114
|
+ await elementById(testIDs.DISMISS_MODAL_BUTTON).tap();
|
|
115
|
+ await elementById(testIDs.SHOW_MODAL_BUTTON).tap();
|
|
116
|
+ await elementById(testIDs.DISMISS_MODAL_BUTTON).tap();
|
|
117
|
+ await expect(elementByLabel('Modal Stack Position: 1')).toBeVisible();
|
|
118
|
+ });
|
110
|
119
|
});
|