Created
September 6, 2017 19:26
-
-
Save PillowUnicorn/d9b0ed24ac5ea14b71d1fb5e9dd35477 to your computer and use it in GitHub Desktop.
Detox - Login Test
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('Pillow Pro - Login', () => { | |
beforeEach(async () => { | |
await device.reloadReactNative(); | |
}); | |
it('should login a pro fellow', async () => { | |
await waitFor(element(by.id('login_title'))).toBeVisible().withTimeout(5000); | |
await expect(element(by.id('login_subtitle'))).toBeVisible(); | |
await element(by.text('Email address')).typeText('[email protected]'); | |
await element(by.text('Password')).typeText('TestPassword123%'); | |
await element(by.id('LoginButton')).tap(); | |
await waitFor(element(by.id('nav_bar_title'))).toBeVisible().withTimeout(10000); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment