Skip to content

Instantly share code, notes, and snippets.

@asciidisco
Created March 28, 2014 17:25
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 asciidisco/9838124 to your computer and use it in GitHub Desktop.
Save asciidisco/9838124 to your computer and use it in GitHub Desktop.
Dalek/Chosen urghhh
'use strict';
module.exports = {
'Can fill out form': function (test) {
test.open('http://tentoring.com/')
.type('#name', 'Sebastian Golasch')
.type('#email', 'public@asciidisco.com')
.execute(function () {
// use "in Browser" javascript to select the items
$('.chosen').chosen().val(['Funding', 'Design']);
$('.chosen').trigger('chosen:updated');
})
.click('input[type="submit"]')
.done();
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment