Created
July 11, 2017 17:07
-
-
Save joelgriffith/34f50828e6f0847cc30ed6075a7ca139 to your computer and use it in GitHub Desktop.
Blank username assertion
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
// Goto a page, click a button, expect a message | |
it('should show an error if no username is filled out', () => { | |
return chrome.goto('http://localhost:3000/') | |
.then(() => chrome.click('[data-test="submit"]')) | |
.then(() => chrome.html('[data-test="error"]')) | |
.then((html) => expect(html).toContain('Username is required')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment