Commit 63fa33ce5941527b1b5cc4abbb8c5762263e6260
1 parent
3f3ad2de
Exists in
master
and in
29 other branches
Fix cucumber step definitions
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
features/step_definitions/web_steps.rb
@@ -27,13 +27,13 @@ end | @@ -27,13 +27,13 @@ end | ||
27 | 27 | ||
28 | When /^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/ do |button, selector| | 28 | When /^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/ do |button, selector| |
29 | with_scope(selector) do | 29 | with_scope(selector) do |
30 | - first(:button, button).click | 30 | + click_button(button, :match => :prefer_exact) |
31 | end | 31 | end |
32 | end | 32 | end |
33 | 33 | ||
34 | When /^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/ do |link, selector| | 34 | When /^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/ do |link, selector| |
35 | with_scope(selector) do | 35 | with_scope(selector) do |
36 | - first(:link, link).click | 36 | + click_link(link, :match => :prefer_exact) |
37 | end | 37 | end |
38 | end | 38 | end |
39 | 39 |