Skip to content

Instantly share code, notes, and snippets.

@PillowUnicorn
Created September 6, 2017 19:26
Show Gist options
  • Save PillowUnicorn/d9b0ed24ac5ea14b71d1fb5e9dd35477 to your computer and use it in GitHub Desktop.
Save PillowUnicorn/d9b0ed24ac5ea14b71d1fb5e9dd35477 to your computer and use it in GitHub Desktop.
Detox - Login Test
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('monte@pillow.com');
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