Skip to content

Commit 8c7a948

Browse files
Update default template and constant message
1 parent 3d67445 commit 8c7a948

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

bin/helpers/capabilityHelper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ const caps = (bsConfig, zip) => {
8787

8888
if (!Utils.isUndefined(bsConfig.run_settings.headless) && String(bsConfig.run_settings.headless) === "false"){
8989
obj.headless = bsConfig.run_settings.headless;
90-
logger.info(`Disabling headless. Value is set to: ${obj.headless}`);
90+
} else {
91+
logger.info(`Running your tests in headless mode. Use --headed arg to run in headful mode.`);
9192
}
9293
}
9394

bin/helpers/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const cliMessages = {
9393
ENV_DESCRIPTION: "Specify the environment variables for your spec files",
9494
SYNC_DESCRIPTION: "Makes the run command in sync",
9595
BUILD_REPORT_MESSAGE: "See the entire build report here",
96-
HEADED: "Run tests in headed mode.",
96+
HEADED: "Run your tests in a headed browser instead of a headless browser",
9797
},
9898
COMMON: {
9999
DISABLE_USAGE_REPORTING: "Disable usage reporting",

bin/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ var argv = yargs
202202
type: "boolean"
203203
},
204204
'headed': {
205-
default: true,
205+
default: false,
206206
describe: Constants.cliMessages.RUN.HEADED,
207207
type: "boolean"
208208
}

bin/templates/configTemplate.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ module.exports = function () {
6060
"npm_dependencies": {
6161
},
6262
"package_config_options": {
63-
}
63+
},
64+
"headless": true
6465
},
6566
"connection_settings": {
6667
"local": false,

0 commit comments

Comments
 (0)