Created
October 3, 2018 13:25
-
-
Save tsh-code/e6ba995db9a79c86018026629afbf0f0 to your computer and use it in GitHub Desktop.
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
describe('Login flow', () => { | |
it('should login successfully', async () => { | |
await device.reloadReactNative(); | |
await expect(element(by.id('email'))).toBeVisible(); | |
await element(by.id('email')).typeText('[email protected]'); | |
await element(by.id('password')).typeText('123456'); | |
await element(by.text('Login')).tap(); | |
await expect(element(by.text('Welcome'))).toBeVisible(); | |
await expect(element(by.id('email'))).toNotExist(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment