Created
June 18, 2018 10:42
-
-
Save paulbjensen/30bb4f19330af1a1af337a25874bec4c to your computer and use it in GitHub Desktop.
The login step definition, part of an article on Medium
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
Given('I login', { timeout: 10000 }, async () => { | |
await visitHomepage(); | |
await clickOnItem('Login'); | |
await takenToPage('login'); | |
await fillInFormField('identifier', email); | |
await fillInFormField('password', password); | |
await pressButton('Login'); | |
return await shouldBeOnPage('dashboard'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment