Commit c74e57bb authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch...

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
parents 909dfd95 eb4e629f
...@@ -85,6 +85,10 @@ module QA ...@@ -85,6 +85,10 @@ module QA
driver.browser.save_screenshot(path) driver.browser.save_screenshot(path)
end 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| Capybara.configure do |config|
config.default_driver = :chrome config.default_driver = :chrome
config.javascript_driver = :chrome config.javascript_driver = :chrome
......
...@@ -8,7 +8,7 @@ module QA ...@@ -8,7 +8,7 @@ module QA
end end
def name def name
'qa-test-' + time.strftime('%d-%m-%Y-%H-%M-%S') "qa-test-#{time.strftime('%Y-%m-%d-%Y-%H-%M-%S')}"
end end
def path def path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment