Skip to content

Instantly share code, notes, and snippets.

@simontreny
Created July 30, 2019 13:09
Show Gist options
  • Save simontreny/43db58ebb300e045ceb96225cec0995f to your computer and use it in GitHub Desktop.
Save simontreny/43db58ebb300e045ceb96225cec0995f to your computer and use it in GitHub Desktop.
describe('Example', () => {
beforeEach(async () => {
await device.reloadReactNative();
});
it('should have welcome text', async () => {
await expect(element(by.id('welcomeText'))).toBeVisible();
});
it('should show hello screen after tap', async () => {
await element(by.id('actionButton')).tap();
await expect(element(by.id('welcomeText'))).toBeVisible();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment