gulp task arg enabled
gitea/salix/1798-e2e-extensions This commit looks good
Details
gitea/salix/1798-e2e-extensions This commit looks good
Details
This commit is contained in:
parent
0ece3e3a00
commit
dc515531c6
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue