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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-08-14 11:12:05 +0300
committerStan Hu <stanhu@gmail.com>2019-08-22 21:10:33 +0300
commit92005fb70f38ee49396ae9e8123979f612827ada (patch)
tree9ef1fdaed24bc28039203407cb0d1ce175b6c5a1 /spec/support/capybara.rb
parent8308469fdd031a1f7baa6e95966dfc467eb5df51 (diff)
Enable CSP in gitlab.yml.example
This enables CSP in dev and CI
Diffstat (limited to 'spec/support/capybara.rb')
-rw-r--r--spec/support/capybara.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb
index 8accc5c1df5..4c688094352 100644
--- a/spec/support/capybara.rb
+++ b/spec/support/capybara.rb
@@ -47,6 +47,9 @@ Capybara.register_driver :chrome do |app|
# Explicitly set user-data-dir to prevent crashes. See https://gitlab.com/gitlab-org/gitlab-ce/issues/58882#note_179811508
options.add_argument("user-data-dir=/tmp/chrome") if ENV['CI'] || ENV['CI_SERVER']
+ # Chrome 75 defaults to W3C mode which doesn't allow console log access
+ options.add_option(:w3c, false)
+
Capybara::Selenium::Driver.new(
app,
browser: :chrome,