Skip to content

Commit 5e3307c

Browse files
author
greweb
committed
Add explicit wait for home screen to load in Detox beforeAll
1 parent 28f907d commit 5e3307c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

example/e2e/tests/viewshot-all-screens.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ describe('📸 ViewShot - All Screens', () => {
1616
newInstance: true,
1717
permissions: { photos: 'YES', camera: 'YES' },
1818
});
19+
20+
// Wait for home screen to load
21+
await waitFor(element(by.text('🚀 React Native ViewShot')))
22+
.toBeVisible()
23+
.withTimeout(30000);
24+
console.log('✅ Home screen loaded');
1925
});
2026

2127
/**

0 commit comments

Comments
 (0)