Skip to content
Snippets Groups Projects
Unverified Commit eb4e629f authored by Rémy Coutable's avatar Rémy Coutable
Browse files

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


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent c7c630f1
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment