-
-
Save fzaninotto/ec7d978a8cf5df64669b to your computer and use it in GitHub Desktop.
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
it('should refuse empty submissions', function(done) { | |
var browser = this.browser; | |
browser.pressButton('Send').then(function() { | |
assert.ok(browser.success); | |
assert.equal(browser.text('h1'), 'Contact'); | |
assert.equal(browser.text('div.alert'), 'Please fill in all the fields'); | |
}).then(done, done); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment