From 80f259812e00e8a48c227ecf165f5bdbe1462984 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Tue, 31 Mar 2020 15:23:12 +0000 Subject: [PATCH] Config for screenshots --- .circleci/config.yml | 4 +++- nightwatch.js | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index db7a4a51b7..df86ca62aa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -42,7 +42,9 @@ jobs: command: | if [ "${CIRCLE_BRANCH}" == "remix_live" ]; then ./ci/deploy_from_travis_remix-live.sh; - fi + fi + - store_artifacts: + path: ./reports/screenshots workflows: version: 2 diff --git a/nightwatch.js b/nightwatch.js index 34e77b490f..ccc094aa96 100644 --- a/nightwatch.js +++ b/nightwatch.js @@ -18,8 +18,10 @@ module.exports = { 'asyncHookTimeout': 100000 }, 'screenshots': { - 'enabled': false, - 'path': '' + 'enabled': true, + 'path': './reports/screenshots', + 'on_failure': true, + 'on_error': true }, 'desiredCapabilities': { 'browserName': 'firefox',