Skip to content

Commit

Permalink
Update test to make it less tied to changes in publishing components
Browse files Browse the repository at this point in the history
This commit updates the test `renders errors correctly` to make it less dependent on styling changes in `govuk_publishing_components` - this is how the tests broke when upgrading from `13.5.2` to `13.5.3`.
  • Loading branch information
Karl Baker committed Feb 8, 2019
1 parent 5a71f64 commit cf4c12b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/integration/service_sign_in/choose_sign_in_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ class ChooseSignInTest < ActionDispatch::IntegrationTest

click_on 'Continue'

assert page.has_css?(".govuk-error-summary")
assert page.has_css?(".govuk-error-summary__title", text: 'You haven’t selected an option')
assert page.has_css?("ul li a:first-of-type[href='#option-0']", text: 'Please select an option')
assert page.has_text?('You haven’t selected an option')
assert page.has_text?('Please select an option')

# Make sure the id is the same as the link href so that they'll link together properly.
assert page.has_css?(".gem-c-radio input[id='option-0'][value='use-government-gateway']", visible: false)
Expand Down

0 comments on commit cf4c12b

Please sign in to comment.