Skip to content

Commit

Permalink
Update test to match change in govuk_publishing_components
Browse files Browse the repository at this point in the history
This adds the `span` that was added to buttons in
alphagov/govuk_publishing_components#3478.
  • Loading branch information
brucebolt committed Aug 22, 2023
1 parent 7daa93c commit ed07d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/govspeak_button_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class GovspeakTest < Minitest::Test
" do
assert_text_output "Start now JSA"
assert_html_output %(
<p><a class="gem-c-button govuk-button govuk-button--start" role="button" data-module="govuk-button" draggable="false" href="https://www.apply-for-new-style-jsa.dwp.gov.uk/?lang=cy"> Start now <abbr title="Jobseeker's Allowance">JSA</abbr><svg class="govuk-button__start-icon govuk-!-display-none-print" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewbox="0 0 33 40" focusable="false" aria-hidden="true"><path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z"></path></svg></a></p>
<p><a class="gem-c-button govuk-button govuk-button--start" role="button" data-module="govuk-button" draggable="false" href="https://www.apply-for-new-style-jsa.dwp.gov.uk/?lang=cy"><span> Start now <abbr title="Jobseeker's Allowance">JSA</abbr></span><svg class="govuk-button__start-icon govuk-!-display-none-print" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewbox="0 0 33 40" focusable="false" aria-hidden="true"><path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z"></path></svg></a></p>
)
end
end

0 comments on commit ed07d0b

Please sign in to comment.