diff --git a/e2e/helpers/puppeteer.js b/e2e/helpers/puppeteer.js index 4bb755743..351a26669 100644 --- a/e2e/helpers/puppeteer.js +++ b/e2e/helpers/puppeteer.js @@ -4,7 +4,7 @@ import {extendPage} from './extensions'; import {url as defaultURL} from './config'; export async function getBrowser() { - let headless = true; + let headless = !process.env.E2E_SHOW; const browser = await Puppeteer.launch({ args: [ '--no-sandbox', diff --git a/gulpfile.js b/gulpfile.js index 7864290e4..853fcf2d4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -161,6 +161,9 @@ function e2eSingleRun() { const jasmine = require('gulp-jasmine'); const SpecReporter = require('jasmine-spec-reporter').SpecReporter; + if (argv.show || argv.s) + process.env.E2E_SHOW = true; + const specFiles = [ `${__dirname}/e2e/paths/01*/*[sS]pec.js`, `${__dirname}/e2e/paths/02*/*[sS]pec.js`, @@ -557,6 +560,7 @@ module.exports = { backTest, backTestDocker, e2e, + e2eSingleRun, smokes, smokesOnly, i, @@ -573,5 +577,4 @@ module.exports = { dockerStart, dockerWait, backendStatus, - e2eSingleRun };