2011-02-06 08:34:32 -05:00
|
|
|
Feature: Capybara's cucumber integration
|
|
|
|
In order to integrate with the lovely plain text testing framework
|
|
|
|
As Capybara
|
|
|
|
I want to integrate successfully with Cucumber
|
|
|
|
|
|
|
|
Scenario: hello world
|
|
|
|
When I visit the root page
|
|
|
|
Then I should see "Hello world!"
|
|
|
|
|
|
|
|
@javascript
|
2016-10-19 15:17:37 -04:00
|
|
|
Scenario: javascript tag should use Capybara.javascript_driver
|
2011-02-06 08:34:32 -05:00
|
|
|
When I visit the root page
|
2016-10-19 15:17:37 -04:00
|
|
|
Then Capybara should use the "javascript_test" driver
|
2011-02-06 08:34:32 -05:00
|
|
|
|
2016-10-19 15:17:37 -04:00
|
|
|
@named_test
|
|
|
|
Scenario: named driver tag
|
2011-02-06 08:34:32 -05:00
|
|
|
When I visit the root page
|
2016-10-19 15:17:37 -04:00
|
|
|
Then Capybara should use the "named_test" driver
|
2011-02-06 08:44:43 -05:00
|
|
|
|
2016-10-19 15:17:37 -04:00
|
|
|
@named_test
|
2011-02-24 07:09:59 -05:00
|
|
|
Scenario Outline: selenium tag with scenario outline
|
|
|
|
When I visit the <Page> page
|
2016-10-19 15:17:37 -04:00
|
|
|
Then Capybara should use the "named_test" driver
|
2011-02-24 07:09:59 -05:00
|
|
|
|
|
|
|
Examples:
|
|
|
|
| Page |
|
|
|
|
| root |
|
|
|
|
| home |
|
|
|
|
|
2011-02-06 08:44:43 -05:00
|
|
|
Scenario: matchers
|
|
|
|
When I visit the root page
|
|
|
|
And I use a matcher that fails
|
|
|
|
Then the failing exception should be nice
|