Skip to content

Instantly share code, notes, and snippets.

@fzaninotto
Created January 15, 2013 09:22
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 fzaninotto/ec7d978a8cf5df64669b to your computer and use it in GitHub Desktop.
Save fzaninotto/ec7d978a8cf5df64669b to your computer and use it in GitHub Desktop.
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