From 3a580884202ec2af2bb0a6d3db95935af99dcc99 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 17 Oct 2017 19:29:46 +0700 Subject: [PATCH] Fix paths, add headless env --- .gitignore | 3 ++- nightwatch-local.conf.js | 15 +++++++++++---- nightwatch.conf.js | 2 +- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index bc6f0b4cd..d30e961bd 100644 --- a/.gitignore +++ b/.gitignore @@ -15,8 +15,9 @@ client/coral-framework/graphql/introspection.json *.DS_STORE coverage/ -test/e2e/tests_output/ +test/e2e/reports/ test/e2e/bslocal.log +test/e2e/selenium-debug.log browserstack.err plugins.json diff --git a/nightwatch-local.conf.js b/nightwatch-local.conf.js index 438e0df24..57034cdea 100644 --- a/nightwatch-local.conf.js +++ b/nightwatch-local.conf.js @@ -4,13 +4,13 @@ const { module.exports = { src_folders: './test/e2e/specs/', - output_folder: './test/e2e/tests_output', + output_folder: './test/e2e/reports', page_objects_path: './test/e2e/page_objects', globals_path: './test/e2e/globals', selenium: { start_process: true, server_path: 'node_modules/selenium-standalone/.selenium/selenium-server/3.5.3-server.jar', - log_path: './test/e2e/reports', + log_path: './test/e2e/', host: '127.0.0.1', port: 6666, cli_args: { @@ -30,7 +30,7 @@ module.exports = { webStorageEnabled: true, databaseEnabled: true, applicationCacheEnabled: false, - nativeEvents: true + nativeEvents: true, }, screenshots : { enabled: true, @@ -39,5 +39,12 @@ module.exports = { path: './test/e2e/tests_output' }, }, - } + headless: { + desiredCapabilities: { + chromeOptions : { + args: ['--headless', '--disable-gpu'] + }, + }, + }, + }, }; diff --git a/nightwatch.conf.js b/nightwatch.conf.js index f973b6d50..0f583673e 100644 --- a/nightwatch.conf.js +++ b/nightwatch.conf.js @@ -4,7 +4,7 @@ const { const nightwatch_config = { src_folders: './test/e2e/specs/', - output_folder: './test/e2e/tests_output', + output_folder: './test/e2e/reports', page_objects_path: './test/e2e/page_objects', globals_path: './test/e2e/globals',