summaryrefslogtreecommitdiff
path: root/spec/features/projects
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-08 11:55:07 +0200
committerRémy Coutable <remy@rymai.me>2017-06-12 19:00:03 +0200
commit448fc23e4743198f2c1bf3cd10eb515eeb9f424b (patch)
treed26521068afb92ef87384e42dad45c60991d8396 /spec/features/projects
parent194c40df208526d5dc4401bc06f91d803def3740 (diff)
downloadgitlab-ce-448fc23e4743198f2c1bf3cd10eb515eeb9f424b.tar.gz
Let PhantomJS load local imagesrc/load-images-in-phantomjs
This change fix a memory leak due to a Webkit bug: https://github.com/ariya/phantomjs/issues/12903 Also: - Whitelist only localhost and 127.0.0.1 in Capybara + JS specs - Blacklist all requests to media such as images, videos, PDFs, CSVs etc. - Log all the requests made. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/features/projects')
-rw-r--r--spec/features/projects/artifacts/file_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/features/projects/artifacts/file_spec.rb b/spec/features/projects/artifacts/file_spec.rb
index 25c4f3c87a2..860373e531b 100644
--- a/spec/features/projects/artifacts/file_spec.rb
+++ b/spec/features/projects/artifacts/file_spec.rb
@@ -39,6 +39,7 @@ feature 'Artifact file', :js, feature: true do
context 'JPG file' do
before do
+ page.driver.browser.url_blacklist = []
visit_file('rails_sample.jpg')
wait_for_requests