diff --git a/test/integration/detailed_guide_test.rb b/test/integration/detailed_guide_test.rb index 67f8561ac..b2b2a7138 100644 --- a/test/integration/detailed_guide_test.rb +++ b/test/integration/detailed_guide_test.rb @@ -53,7 +53,7 @@ class DetailedGuideTest < ActionDispatch::IntegrationTest setup_and_visit_content_item("national_applicability_alternative_url_detailed_guide") assert_has_devolved_nations_component("Applies to England, Scotland and Wales", [ { - text: "Northern Ireland", + text: "Guidance for Northern Ireland", alternative_url: "http://www.dardni.gov.uk/news-dard-pa022-a-13-new-procedure-for", }, ]) diff --git a/test/integration/publication_test.rb b/test/integration/publication_test.rb index b4b552386..e63267d3e 100644 --- a/test/integration/publication_test.rb +++ b/test/integration/publication_test.rb @@ -78,15 +78,15 @@ class PublicationTest < ActionDispatch::IntegrationTest setup_and_visit_content_item("statistics_publication") assert_has_devolved_nations_component("Applies to England", [ { - text: "Northern Ireland", + text: "Publication for Northern Ireland", alternative_url: "http://www.dsdni.gov.uk/index/stats_and_research/stats-publications/stats-housing-publications/housing_stats.htm", }, { - text: "Scotland", + text: "Publication for Scotland", alternative_url: "http://www.scotland.gov.uk/Topics/Statistics/Browse/Housing-Regeneration/HSfS", }, { - text: "Wales", + text: "Publication for Wales", alternative_url: "http://wales.gov.uk/topics/statistics/headlines/housing2012/121025/?lang=en", }, ]) diff --git a/test/test_helper.rb b/test/test_helper.rb index cfbf7ccf2..51ee6c625 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -148,7 +148,7 @@ def assert_has_devolved_nations_component(text, nations = nil) within(".gem-c-devolved-nations") do assert page.has_text?(text) nations&.each do |nation| - assert page.has_link?("Guidance for #{nation[:text]}", href: nation[:alternative_url]) + assert page.has_link?(nation[:text], href: nation[:alternative_url]) end end end