Skip to content

Commit 017c71b

Browse files
committed
stack test update
1 parent 55ba1e6 commit 017c71b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

playground/e2e/Stack.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ describe('Stack', () => {
179179
it.e2e('push promise is resolved with pushed ViewController id', async () => {
180180
await elementById(TestIDs.STACK_COMMANDS_BTN).tap();
181181
await elementById(TestIDs.PUSH_BTN).tap();
182+
// Screen chains push -> setTimeout(100) -> setState -> setTimeout(500) -> pop -> setState.
183+
// Detox does not track these timers, so wait for the chain to settle before asserting.
184+
await sleep(2000);
182185
await expect(elementByLabel('push promise resolved with: ChildId')).toBeVisible();
183186
await expect(elementByLabel('pop promise resolved with: ChildId')).toBeVisible();
184187
});

0 commit comments

Comments
 (0)