summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-02-01 09:35:26 +0100
committerRémy Coutable <remy@rymai.me>2018-02-01 15:08:38 +0100
commita82a31c799aadb0000d305dccfa0a47de2e13e9a (patch)
treec82b0296a1da32254dbbbf9a5d0d7995e6a42171
parent5b73e0eb35f5b9b78c228a4867ef78538ef05653 (diff)
downloadgitlab-ce-qa-absolute-path-to-screenshots.tar.gz
Ensure we save QA screenshots to an absolute pathqa-absolute-path-to-screenshots
This allows to open the file address printed in the terminal, otherwise the address started with `tmp` which was relatove to the `qa/` dir. Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--qa/qa/runtime/browser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/runtime/browser.rb b/qa/qa/runtime/browser.rb
index ce888b51ea5..a12d95683af 100644
--- a/qa/qa/runtime/browser.rb
+++ b/qa/qa/runtime/browser.rb
@@ -84,7 +84,7 @@ module QA
config.javascript_driver = :chrome
config.default_max_wait_time = 10
# https://github.com/mattheworiordan/capybara-screenshot/issues/164
- config.save_path = 'tmp'
+ config.save_path = File.expand_path('../../tmp', __dir__)
end
end