Skip to content

Instantly share code, notes, and snippets.

@joelgriffith
Created July 11, 2017 17:20
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 joelgriffith/a748f63ccae5d2f6329666942093625f to your computer and use it in GitHub Desktop.
Save joelgriffith/a748f63ccae5d2f6329666942093625f to your computer and use it in GitHub Desktop.
Abstracting User Interactions in Navalia
// :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