-
-
Save ddikodroid/46cb9dd8f74bdba8cb42027841ed01df to your computer and use it in GitHub Desktop.
e2e test template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { device, element, by, expect } from 'detox'; | |
describe('<your page>', () => { | |
beforeEach(async () => { | |
await device.reloadReactNative(); | |
}); | |
it('should ...', async () => { | |
await waitFor(element(by.id('your page testID'))) | |
.toBeVisible() | |
.withTimeout(5000); | |
}); | |
... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment