Commit eb4e629f authored by Rémy Coutable's avatar Rémy Coutable

[QA] Ensure screenshots are save in subfolder per QA run

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent c7c630f1
......@@ -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
......
......@@ -8,7 +8,7 @@ module QA
end
def name
'qa-test-' + time.strftime('%d-%m-%Y-%H-%M-%S')
"qa-test-#{time.strftime('%Y-%m-%d-%Y-%H-%M-%S')}"
end
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