1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Added some more features for tags for outlines and features

This commit is contained in:
Jonas Nicklas 2011-02-24 13:09:59 +01:00
parent f53e4ff7ff
commit ac658dd9b1
3 changed files with 16 additions and 1 deletions

View file

@ -17,6 +17,16 @@ Feature: Capybara's cucumber integration
When I visit the root page When I visit the root page
Then Capybara should use the "selenium" driver Then Capybara should use the "selenium" driver
@selenium
Scenario Outline: selenium tag with scenario outline
When I visit the <Page> page
Then Capybara should use the "selenium" driver
Examples:
| Page |
| root |
| home |
Scenario: matchers Scenario: matchers
When I visit the root page When I visit the root page
And I use a matcher that fails And I use a matcher that fails

View file

@ -0,0 +1,5 @@
@selenium
Feature: an entire feature that uses selenium
Scenario: should use selenium without being explicitely told
Then Capybara should use the "selenium" driver

View file

@ -1,4 +1,4 @@
When /^I visit the root page$/ do When /^I visit the (?:root|home) page$/ do
visit('/') visit('/')
end end