-
-
Save samccone/9f5c14a0753b45711196 to your computer and use it in GitHub Desktop.
todo mvc sample
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
./node_modules/.bin/dill --coffee --require steps --format=pretty |
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
Feature: TODO MVC | |
Background: | |
Given I am viewing todomvc | |
Scenario: Adding and Completing | |
When I add a new todo | |
And I finish it | |
Then I should see no undone todos |
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 = -> | |
@Given /^I am viewing todomvc$/, -> | |
@driver.get("http://todomvc.com/architecture-examples/backbone/") | |
@When /^I add a new todo$/, -> | |
@Widget.find({root: "#new-todo"}).then (widget) -> | |
widget.el.sendKeys("doge", Driver.Key.ENTER) | |
@When /^I finish it$/, (callback) -> | |
new @Widget({root: "#todo-list .toggle"}).click() | |
@Then /^I should see no undone todos$/, (callback) -> | |
new @Widget({root: "#todo-count"}).read().should.eventually.eql("0 items left") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment