Created
July 28, 2014 17:53
-
-
Save joshtombs/ea83f32b7f066f991e66 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
@When /^I click on the "([^"]*)" child of "([^"]*)" I should read "([^"]*)"$/, (index, rootSelector, expected) -> | |
new @widgets.List({ | |
root: rootSelector | |
}) | |
.at(index - 1).then (item) -> | |
item.click() | |
new @Widget({ | |
root: '#onSubmit' | |
}) | |
.read().should.eventually.eql(expected) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment