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'; import {url as defaultURL} from './config';
export async function getBrowser() { export async function getBrowser() {
let headless = true; let headless = !process.env.E2E_SHOW;
const browser = await Puppeteer.launch({ const browser = await Puppeteer.launch({
args: [ args: [
'--no-sandbox', '--no-sandbox',

View File

@ -161,6 +161,9 @@ function e2eSingleRun() {
const jasmine = require('gulp-jasmine'); const jasmine = require('gulp-jasmine');
const SpecReporter = require('jasmine-spec-reporter').SpecReporter; const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
if (argv.show || argv.s)
process.env.E2E_SHOW = true;
const specFiles = [ const specFiles = [
`${__dirname}/e2e/paths/01*/*[sS]pec.js`, `${__dirname}/e2e/paths/01*/*[sS]pec.js`,
`${__dirname}/e2e/paths/02*/*[sS]pec.js`, `${__dirname}/e2e/paths/02*/*[sS]pec.js`,
@ -557,6 +560,7 @@ module.exports = {
backTest, backTest,
backTestDocker, backTestDocker,
e2e, e2e,
e2eSingleRun,
smokes, smokes,
smokesOnly, smokesOnly,
i, i,
@ -573,5 +577,4 @@ module.exports = {
dockerStart, dockerStart,
dockerWait, dockerWait,
backendStatus, backendStatus,
e2eSingleRun
}; };