Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created December 23, 2018 16:26
Show Gist options
  • Save amandeepmittal/017712bedceba1c651bcff3508f675b7 to your computer and use it in GitHub Desktop.
Save amandeepmittal/017712bedceba1c651bcff3508f675b7 to your computer and use it in GitHub Desktop.
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