-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clickAt selector example don't work #339
Comments
the step definition must be then instead of When because the list is not created yet... |
For the this.When(/^I enter \"([^\"]*)\"$/, function(value){
return new this.Widget({
root: "header.header"
}).sendKeys({
selector: '.new-todo',
keys: [
value,
'\uE007'
]
});
}); Your final scenario should look like this... Scenario: Completing a Todo
When I enter "Learn Pioneer"
And complete the first todo
Then I should see that the first todo is completed Let me know if that works out and I'll update the docs to reflect it. |
i think that the scenario have to be like this, the then step with the should check must stay before to have the list created. the "When i complete first todo" step is the one that fails..
|
When i try to execute this step of the example in doc it fails
What its wrong?
TypeError: Cannot read property 'click' of undefined
at /usr/lib/node_modules/pioneer/lib/support/widgets.js:417:24
});
html:
The text was updated successfully, but these errors were encountered: