From ad4a5595f9e8b184c5f798421c8688c3a0f52c05 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Fri, 27 Oct 2017 13:19:00 +0200 Subject: [PATCH] Enable screenshot on failure for bs --- nightwatch-browserstack.conf.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nightwatch-browserstack.conf.js b/nightwatch-browserstack.conf.js index ac8f90d27..bf0ca2284 100644 --- a/nightwatch-browserstack.conf.js +++ b/nightwatch-browserstack.conf.js @@ -27,7 +27,13 @@ const nightwatch_config = { // Disable this, as it makes bs slow and brittle. 'browserstack.networkLogs': false, 'browserstack.resolution': '1600x1200', - } + }, + screenshots : { + enabled: true, + on_failure: true, + on_error: true, + path: process.env.REPORTS_FOLDER || './test/e2e/reports', + }, }, chrome: { desiredCapabilities: {