Skip to content

Commit

Permalink
Merge pull request #3101 from alphagov/fix-incorrect-test
Browse files Browse the repository at this point in the history
Fix incorrect test
  • Loading branch information
jkempster34 authored Feb 20, 2024
2 parents 3de5210 + 7150a37 commit 1e3f37e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/worldwide_organisation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ class WorldwideOrganisationTest < ActionDispatch::IntegrationTest

test "renders the secondary corporate information pages" do
setup_and_visit_content_item("worldwide_organisation")
assert page.has_link?("Personal information charter", href: "https://www.integration.publishing.service.gov.uk/world/organisations/british-deputy-high-commission-hyderabad/about/personal-information-charter")
assert page.has_text?("Our Personal information charter explains how we treat your personal information.")
assert page.has_link?("Personal information charter", href: "/world/organisations/british-deputy-high-commission-hyderabad/about/personal-information-charter")
end

test "doesn't render the corporate pages section if there are no pages to show" do
Expand Down

0 comments on commit 1e3f37e

Please sign in to comment.