Skip to content

Commit

Permalink
Merge pull request #1314 from alphagov/fix-failing-checkbox-test
Browse files Browse the repository at this point in the history
Fix failing checkbox test in click_button_steps
  • Loading branch information
MartinJJones committed Jul 15, 2024
2 parents 0a7c74f + d473889 commit ed698f4
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 ed698f4

Please sign in to comment.