Created
March 28, 2014 17:25
-
-
Save asciidisco/9838124 to your computer and use it in GitHub Desktop.
Dalek/Chosen urghhh
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
'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