diff --git a/lib/data/recruitment_banners.yml b/lib/data/recruitment_banners.yml index b4140a9b1..76192b13a 100644 --- a/lib/data/recruitment_banners.yml +++ b/lib/data/recruitment_banners.yml @@ -9,12 +9,3 @@ # - /foreign-travel-advice banners: -- name: DWP user research banner - suggestion_text: Help improve GOV.UK - suggestion_link_text: Take part in user research (opens in a new tab) - survey_url: https://forms.office.com/e/CkfCRwdLQj - page_paths: - - /maternity-allowance - - /funeral-payments - - /disability-living-allowance-children - - /pension-credit diff --git a/test/integration/recruitment_banner_test.rb b/test/integration/recruitment_banner_test.rb deleted file mode 100644 index 125d8ef84..000000000 --- a/test/integration/recruitment_banner_test.rb +++ /dev/null @@ -1,34 +0,0 @@ -require "test_helper" - -class RecruitmentBannerTest < ActionDispatch::IntegrationTest - test "Brand user research banner is displayed on pages of interest" do - guide = GovukSchemas::Example.find("guide", example_name: "guide") - - pages_of_interest = - [ - "/maternity-allowance", - "/funeral-payments", - "/disability-living-allowance-children", - "/pension-credit", - ] - - pages_of_interest.each do |path| - guide["base_path"] = path - stub_content_store_has_item(guide["base_path"], guide.to_json) - visit guide["base_path"] - - assert page.has_css?(".gem-c-intervention") - assert page.has_link?("Take part in user research", href: "https://forms.office.com/e/CkfCRwdLQj") - end - end - - test "Brand user research banner is not displayed on all pages" do - guide = GovukSchemas::Example.find("guide", example_name: "guide") - guide["base_path"] = "/nothing-to-see-here" - stub_content_store_has_item(guide["base_path"], guide.to_json) - visit guide["base_path"] - - assert_not page.has_css?(".gem-c-intervention") - assert_not page.has_link?("Take part in user research", href: "https://forms.office.com/e/CkfCRwdLQj") - end -end