summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-07-11 18:08:58 +0000
committerJose <jvargas@gitlab.com>2018-07-12 17:31:52 -0500
commit7fc7e66e8d9146457ffaef6f0e07e58bd0caf8bc (patch)
treeee320055d9457d93fc676c8d155c618c39ead8ea
parentef168c42ee93caf1b17f81991f2fdad14b7ee836 (diff)
downloadgitlab-ce-7fc7e66e8d9146457ffaef6f0e07e58bd0caf8bc.tar.gz
Merge branch '49021-preserve-test-run-artifacts-when-running-gitlab-qa-multiple-times' into 'master'
Resolve "Preserve test run artifacts when running gitlab-qa multiple times" Closes #49021 See merge request gitlab-org/gitlab-ce!20495
-rw-r--r--qa/qa/runtime/browser.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/qa/runtime/browser.rb b/qa/qa/runtime/browser.rb
index cee381f3379..877864fb40c 100644
--- a/qa/qa/runtime/browser.rb
+++ b/qa/qa/runtime/browser.rb
@@ -85,6 +85,10 @@ module QA
driver.browser.save_screenshot(path)
end
+ Capybara::Screenshot.register_filename_prefix_formatter(:rspec) do |example|
+ File.join(QA::Runtime::Namespace.name, example.file_path.sub('./qa/specs/features/', ''))
+ end
+
Capybara.configure do |config|
config.default_driver = :chrome
config.javascript_driver = :chrome