Skip to content

Instantly share code, notes, and snippets.

@joshtombs
Created July 28, 2014 17:53
Show Gist options
  • Save joshtombs/ea83f32b7f066f991e66 to your computer and use it in GitHub Desktop.
Save joshtombs/ea83f32b7f066f991e66 to your computer and use it in GitHub Desktop.
@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