Last active
September 9, 2017 11:32
-
-
Save rotemmiz/0d2b36cbaa57dc9b985f88ac741f2ae6 to your computer and use it in GitHub Desktop.
Detox.Medium.DetoxSignupExample.js
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('[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