mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Headless option for ui test (#1784)
This commit is contained in:
parent
1bf4addf63
commit
1a544b3b82
@ -24,6 +24,10 @@ module.exports = function(grunt) {
|
|||||||
nodemonArgs.push(flowFile);
|
nodemonArgs.push(flowFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var nonHeadless = grunt.option('non-headless');
|
||||||
|
if (nonHeadless) {
|
||||||
|
process.env.NODE_RED_NON_HEADLESS = 'true';
|
||||||
|
}
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
pkg: grunt.file.readJSON('package.json'),
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
paths: {
|
paths: {
|
||||||
|
@ -62,10 +62,11 @@ exports.config = {
|
|||||||
//
|
//
|
||||||
browserName: 'chrome',
|
browserName: 'chrome',
|
||||||
chromeOptions: {
|
chromeOptions: {
|
||||||
// Runs tests without opening a broser.
|
args: process.env.NODE_RED_NON_HEADLESS
|
||||||
args: ['--headless', '--disable-gpu', 'window-size=1920,1080'],
|
// Runs tests with opening a browser.
|
||||||
// Runs tests with opening a broser.
|
? ['--disable-gpu']
|
||||||
// args: ['--disable-gpu'],
|
// Runs tests without opening a browser.
|
||||||
|
: ['--headless', '--disable-gpu', 'window-size=1920,1080']
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user