gulp task arg enabled
gitea/salix/1798-e2e-extensions This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-02-05 09:08:55 +01:00
parent 0ece3e3a00
commit dc515531c6
2 changed files with 5 additions and 2 deletions

View File

@ -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',

View File

@ -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
};