From 30caa6757875e9cfbd940ba5267336e05c5b734c Mon Sep 17 00:00:00 2001 From: Ana Botto Date: Tue, 2 Jul 2024 11:37:20 +0100 Subject: [PATCH] Update test to work with design system upgrade --- test/integration/homepage_popular_links_test.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/integration/homepage_popular_links_test.rb b/test/integration/homepage_popular_links_test.rb index 617dde2b3..91ba5016a 100644 --- a/test/integration/homepage_popular_links_test.rb +++ b/test/integration/homepage_popular_links_test.rb @@ -26,7 +26,7 @@ class HomepagePopularLinksTest < JavascriptIntegrationTest assert page.has_text?("Edition") assert page.has_text?(@popular_links.version_number) assert page.has_text?("Status") - assert page.has_text?("PUBLISHED") + assert page.has_text?("Published") assert page.has_css?(".govuk-tag--green") end @@ -42,7 +42,7 @@ class HomepagePopularLinksTest < JavascriptIntegrationTest should "render new draft popular links with edit option when 'Create new edition' button is clicked" do click_button("Create new edition") within(:css, ".govuk-tag--yellow") do - assert page.has_content?("DRAFT") + assert page.has_content?("Draft") end end end @@ -54,7 +54,7 @@ class HomepagePopularLinksTest < JavascriptIntegrationTest assert page.has_text?("Edition") assert page.has_text?(@popular_links.version_number) assert page.has_text?("Status") - assert page.has_text?("DRAFT") + assert page.has_text?("Draft") assert page.has_css?(".govuk-tag--yellow") assert page.has_text?("Edit popular links") end @@ -64,7 +64,7 @@ class HomepagePopularLinksTest < JavascriptIntegrationTest assert row[0].has_text?("Edition") assert row[0].has_text?("1") assert row[1].has_text?("Status") - assert row[1].has_text?("PUBLISHED") + assert row[1].has_text?("Published") click_button("Create new edition") @@ -72,7 +72,7 @@ class HomepagePopularLinksTest < JavascriptIntegrationTest assert row[0].has_text?("Edition") assert row[0].has_text?("2") assert row[1].has_text?("Status") - assert row[1].has_text?("DRAFT") + assert row[1].has_text?("Draft") end end