Skip to content

Commit

Permalink
Add test for abbreviations in Call To Action elements
Browse files Browse the repository at this point in the history
This test is currently failing as abbreviations within Call To Action
elements do not currently work (as reported by a user).

This functionality will be added in later commits.
  • Loading branch information
brucebolt committed Aug 21, 2023
1 parent f385864 commit 4f9a54b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/govspeak_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,21 @@ class GovspeakTest < Minitest::Test
)
end

test_given_govspeak "
$CTA
Contact the SGD on 0800 000 0000 or contact the OGD on 0800 001 0001
$CTA
*[OGD]: Other Government Department
*[SGD]: Some Government Department
" do
assert_html_output %(
<div class="call-to-action">
<p>Contact the <abbr title="Some Government Department">SGD</abbr> on 0800 000 0000 or contact the <abbr title="Other Government Department">OGD</abbr> on 0800 001 0001</p>
</div>
)
end

test_given_govspeak "
1. rod
2. jane
Expand Down

0 comments on commit 4f9a54b

Please sign in to comment.