Skip to content

Instantly share code, notes, and snippets.

@vzaidman
Created February 9, 2018 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vzaidman/ef6e4b772b311ffb98368da5f7a9582a to your computer and use it in GitHub Desktop.
Save vzaidman/ef6e4b772b311ffb98368da5f7a9582a to your computer and use it in GitHub Desktop.
Scenario('login with generated password', async (I) => {
I.fillField('email', 'miles@davis.com');
I.click('Generate Password');
const password = await I.grabTextFrom('#password');
I.click('Login');
I.fillField('email', 'miles@davis.com');
I.fillField('password', password);
I.click('Log in!');
I.see('Hello, Miles');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment