Last active
August 29, 2015 14:05
-
-
Save joshtombs/615fda9b9355971f50d1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
module.exports = function(){ | |
this.Given(/^I visit TODOMVC$/,function(){ | |
this.driver.get('http://todomvc.com/architecture-examples/backbone/') | |
}); | |
this.When(/^I enter "([^"]*)"$/, function(value){ | |
new this.Widget({ | |
root: "#new-todo" | |
}).sendKeys(value,Driver.Key.ENTER); | |
}); | |
this.Then(/^I should see "([^"]*)"$/, function(expected){ | |
this.Widget.List.extend({ | |
root: "ul", | |
childSelector: "li" | |
}).readAt(0).then(function(read){ | |
console.log(read) | |
}); | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment