Welcome to mirror list, hosted at ThFree Co, Russian Federation.

google_analytics_csp_spec.rb « users « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 45cc6c5f39d50d77a41cd95392cd3f455059491a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Google Analytics 4 content security policy', feature_category: :purchase do
  it 'includes the GA4 content security policy headers' do
    visit root_path

    expect(response_headers['Content-Security-Policy']).to include(
      '*.googletagmanager.com',
      '*.google-analytics.com',
      '*.analytics.google.com'
    )
  end
end