expanded click button to click any button for easier use
parent
445236d735
commit
a1ea2a09ec
|
|
@ -12,6 +12,6 @@ Feature: Homepage
|
||||||
|
|
||||||
Scenario: Submitting the form without entering a URL
|
Scenario: Submitting the form without entering a URL
|
||||||
Given I visit the '/' page
|
Given I visit the '/' page
|
||||||
When I click the submit button
|
When I click the "Submit" button
|
||||||
Then I should be on "/" page
|
Then I should be on "/" page
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ end
|
||||||
|
|
||||||
# WHEN
|
# WHEN
|
||||||
|
|
||||||
When('I click the submit button') do
|
When('I click the {string} button') do |string|
|
||||||
click_button "Submit"
|
click_button {string}
|
||||||
end
|
end
|
||||||
|
|
||||||
# THEN
|
# THEN
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue