require "integration_test_helper"

class HelpCookiesTest < ActionDispatch::IntegrationTest
  context "rendering the cookies setting page" do
    setup do
      payload = {
        base_path: "/help/cookies",
        format: "special_route",
        title: "Cookies on GOV.UK",
        description: "You can choose which cookies you're happy for GOV.UK to use.",
      }
      content_store_has_item('/help/cookies', payload)
    end

    should "render the cookies setting page correctly" do
      visit "/help/cookies"

      within '#content' do
        assert_has_component_title "Cookies on GOV.UK"
      end
    end
  end
end

Add integration test for /help/cookies
Add integration test for /help/cookies
