Created
July 11, 2017 17:20
-
-
Save joelgriffith/a748f63ccae5d2f6329666942093625f to your computer and use it in GitHub Desktop.
Abstracting User Interactions in Navalia
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
// :missingUsername visits a page and immediately clicks submit | |
// without entering the user's name. It returns the chrome instance | |
// so you can invoke further actions or assertions! | |
const missingUsername = (chrome) => | |
chrome.goto('http://localhost:3000/') | |
.then(() => chrome.click('[data-test="submit"]')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment