Skip to content

Commit 0a61668

Browse files
committed
headless support
1 parent 9bf4a55 commit 0a61668

File tree

4 files changed

+31
-7
lines changed

4 files changed

+31
-7
lines changed

commands/utils/constants.js

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,21 @@ module.exports = {
1919
"https://api.lambdatest.com/automation/api/v1/sessions?limit=200&session_id=",
2020
},
2121
stage: {
22-
INTEGRATION_BASE_URL: "https://stage-api.lambdatest.com/liis",
23-
BUILD_BASE_URL:
24-
"https://stage-api.lambdatest.com/automation/api/v1/builds/",
25-
BUILD_STOP_URL:
26-
"https://stage-api.lambdatest.com/api/v1/test/stop?buildId=",
27-
SESSION_URL:
28-
"https://stage-api.lambdatest.com/automation/api/v1/sessions?limit=200&session_id=",
22+
INTEGRATION_BASE_URL: "https://api.asad-cypress.dev.lambdatest.io/liis",
23+
//INTEGRATION_BASE_URL: "http://127.0.0.1:4449/liis",
24+
BUILD_BASE_URL: "https://api.asad-cypress.dev.lambdatest.io/automation/api/v1/builds/",
25+
BUILD_STOP_URL:"https://stage-api.lambdatest.com/api/v1/test/stop?buildId=",
26+
SESSION_URL:"https://api.asad-cypress.lambdatest.io/automation/api/v1/sessions?session_id="
27+
28+
29+
// INTEGRATION_BASE_URL: "https://stage-api.lambdatest.com/liis",
30+
// BUILD_BASE_URL:
31+
// "https://stage-api.lambdatest.com/automation/api/v1/builds/",
32+
// BUILD_STOP_URL:
33+
// "https://stage-api.lambdatest.com/api/v1/test/stop?buildId=",
34+
// SESSION_URL:
35+
// "https://stage-api.lambdatest.com/automation/api/v1/sessions?limit=200&session_id=",
36+
2937
},
3038
beta: {
3139
INTEGRATION_BASE_URL: "https://beta-api.lambdatest.com/liis",

commands/utils/default_config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = {
2323
ignore_files: "",
2424
feature_file_suppport: false,
2525
network: false,
26+
headless: false,
2627
reporter_config_file: ""
2728
},
2829
tunnel_settings: {

commands/utils/set_args.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,16 @@ function sync_args_from_cmd(args) {
235235
} else if (!lt_config["run_settings"]["network"]) {
236236
lt_config["run_settings"]["network"] = false;
237237
}
238+
239+
if ("headless" in args) {
240+
console.log("headlesss in args - value", args["headless"]);
241+
lt_config["run_settings"]["headless"] = args["headless"]
242+
} else if (!lt_config["run_settings"]["headless"]) {
243+
console.log("headless not present in lt config")
244+
lt_config["run_settings"]["headless"] = false;
245+
}
246+
247+
238248
//get specs from current directory if specs are not passed in config or cli
239249
if (
240250
(lt_config["run_settings"]["specs"] == undefined ||

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ const argv = require("yargs")
8787
describe: "Tunnel Auto Start",
8888
type: "string",
8989
})
90+
.option("headless", {
91+
alias: "headless",
92+
describe: "Run in headless mode",
93+
type: "boolean",
94+
})
9095
.option("net", {
9196
alias: "network",
9297
describe: "Capture Network logs",

0 commit comments

Comments
 (0)