From 30279a484376d6b1af91d0f8c55a7542672bfea4 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan <tgx_world@hotmail.com> Date: Wed, 30 May 2018 15:42:46 +0800 Subject: [PATCH] DEV: Allow smoke test failure screenshot path to be configured. --- test/smoke_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/smoke_test.js b/test/smoke_test.js index 6ec52d55be4..d38a23dbf3d 100644 --- a/test/smoke_test.js +++ b/test/smoke_test.js @@ -26,7 +26,7 @@ const path = require('path'); }); const takeFailureScreenshot = function() { - const screenshotPath = 'tmp/smoke-test.png'; + const screenshotPath = `${process.env.SCREENSHOT_PATH || 'tmp'}/smoke-test.png`; console.log(`Screenshot of failure taken at ${screenshotPath}`); return page.screenshot({ path: screenshotPath, fullPage: true }); };