Created
February 8, 2018 11:33
-
-
Save Karniej/6505a5ce74e3c996154e917752772d4b to your computer and use it in GitHub Desktop.
This file contains 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
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