We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55ba1e6 commit 017c71bCopy full SHA for 017c71b
1 file changed
playground/e2e/Stack.test.js
@@ -179,6 +179,9 @@ describe('Stack', () => {
179
it.e2e('push promise is resolved with pushed ViewController id', async () => {
180
await elementById(TestIDs.STACK_COMMANDS_BTN).tap();
181
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);
185
await expect(elementByLabel('push promise resolved with: ChildId')).toBeVisible();
186
await expect(elementByLabel('pop promise resolved with: ChildId')).toBeVisible();
187
});
0 commit comments