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:
parent
f53e4ff7ff
commit
ac658dd9b1
3 changed files with 16 additions and 1 deletions
|
@ -17,6 +17,16 @@ Feature: Capybara's cucumber integration
|
|||
When I visit the root page
|
||||
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
|
||||
When I visit the root page
|
||||
And I use a matcher that fails
|
||||
|
|
5
features/selenium.feature
Normal file
5
features/selenium.feature
Normal 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
|
|
@ -1,4 +1,4 @@
|
|||
When /^I visit the root page$/ do
|
||||
When /^I visit the (?:root|home) page$/ do
|
||||
visit('/')
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue