Skip to content

Commit

Permalink
Fix failing checkbox test in click_button_steps
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinJJones committed Jul 15, 2024
1 parent 0a7c74f commit d473889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/step_definitions/click_button_steps.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
When /^I choose radio button "(.*?)" and click on "(.*?)"$/ do |option, button_text|
choose(option, visible: false)
choose(option, visible: false, allow_label_click: true)
step "I click on the button \"#{button_text}\""
end

Expand All @@ -8,7 +8,7 @@
end

When /^I choose the checkbox "(.*)" and click on "(.*)"$/ do |option, button_text|
check(option, visible: false)
check(option, visible: false, allow_label_click: true)
step "I click on the button \"#{button_text}\""
end

Expand Down

0 comments on commit d473889

Please sign in to comment.