-
-
Save amandeepmittal/017712bedceba1c651bcff3508f675b7 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('Login flow', () => { | |
it('should login successfully', async () => { | |
await device.reloadReactNative(); | |
await expect(element(by.id('email'))).toBeVisible(); | |
await element(by.id('email')).typeText('john@example.com'); | |
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