Skip to content

Instantly share code, notes, and snippets.

@Karniej
Created February 8, 2018 11:33
Show Gist options
  • Save Karniej/6505a5ce74e3c996154e917752772d4b to your computer and use it in GitHub Desktop.
Save Karniej/6505a5ce74e3c996154e917752772d4b to your computer and use it in GitHub Desktop.
describe('LoginScreen', () => {
beforeEach(async () => {
try {
await device.reloadReactNative();
} catch (error) {}
});
it('should login ', async () => {
await waitFor(element(by.id('logIn')))
.toBeVisible()
.withTimeout(10000);
await element(by.id('logIn')).tap();
await waitFor(element(by.text('Welcome')))
.toBeVisible()
.withTimeout(5000);
await element(by.id('second')).tap();
await waitFor(element(by.text('Welcome to Second Screen')))
.toBeVisible()
.withTimeout(5000);
await element(by.id('DR')).tap();
await waitFor(element(by.text('Third')))
.toBeVisible()
.withTimeout(5000);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment