expanded click button to click any button for easier use

pull/6/head
Adam Townsend 2023-10-01 12:14:41 -07:00
parent 445236d735
commit a1ea2a09ec
2 changed files with 3 additions and 3 deletions

View File

@ -12,6 +12,6 @@ Feature: Homepage
Scenario: Submitting the form without entering a URL
Given I visit the '/' page
When I click the submit button
When I click the "Submit" button
Then I should be on "/" page

View File

@ -6,8 +6,8 @@ end
# WHEN
When('I click the submit button') do
click_button "Submit"
When('I click the {string} button') do |string|
click_button {string}
end
# THEN