Skip to content

Commit

Permalink
Fix validation test
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron committed Sep 9, 2024
1 parent e1c8009 commit fc80fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/primer/forms/radio_button_group_input_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_validations
refute_selector "input[type=radio][invalid]"

# should have a validation message
validation_id = page.find("fieldset")["aria-describedby"]
validation_id = page.find("fieldset")["aria-describedby"].split(" ").find { |id| id.start_with?("validation-") }
assert_selector ".FormControl-inlineValidation[id='#{validation_id}']", text: /Channel can['’]t be blank/

# first radio button should have focus
Expand Down

0 comments on commit fc80fbd

Please sign in to comment.