diff --git a/features/capybara.feature b/features/capybara.feature index 5ea82637..8470fac9 100644 --- a/features/capybara.feature +++ b/features/capybara.feature @@ -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 + 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 diff --git a/features/selenium.feature b/features/selenium.feature new file mode 100644 index 00000000..81bbc1fc --- /dev/null +++ b/features/selenium.feature @@ -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 diff --git a/features/step_definitions/capybara_steps.rb b/features/step_definitions/capybara_steps.rb index efd579ad..2e08d007 100644 --- a/features/step_definitions/capybara_steps.rb +++ b/features/step_definitions/capybara_steps.rb @@ -1,4 +1,4 @@ -When /^I visit the root page$/ do +When /^I visit the (?:root|home) page$/ do visit('/') end