Commit 63fa33ce5941527b1b5cc4abbb8c5762263e6260

Authored by Victor Costa
1 parent 3f3ad2de

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 27  
28 28 When /^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/ do |button, selector|
29 29 with_scope(selector) do
30   - first(:button, button).click
  30 + click_button(button, :match => :prefer_exact)
31 31 end
32 32 end
33 33  
34 34 When /^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/ do |link, selector|
35 35 with_scope(selector) do
36   - first(:link, link).click
  36 + click_link(link, :match => :prefer_exact)
37 37 end
38 38 end
39 39  
... ...