-
-
Save samccone/5217357d9a3c0aa93754 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
module.exports = function(){ | |
this.Given(/^I visit TODOMVC$/,function(){ | |
return this.driver.get('http://todomvc.com/architecture-examples/backbone/') | |
}); | |
this.When(/^I enter "([^"]*)"$/, function(value){ | |
return new this.Widget({ | |
root: "#new-todo" | |
}).sendKeys(value,Driver.Key.ENTER); | |
}); | |
this.Then(/^I should see "([^"]*)"$/, function(expected){ | |
return new this.Widget.List.extend({ | |
root: "ul", | |
childSelector: "li" | |
}).readAt(0).then(function(read){ | |
return console.log(read) | |
}); | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment