@lambdatest/smartui-cli 4.1.42 → 4.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.cjs +10 -6
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -2676,7 +2676,8 @@ var env_default = () => {
2676
2676
  SHOW_RENDER_ERRORS,
2677
2677
  SMARTUI_SSE_URL = "https://server-events.lambdatest.com",
2678
2678
  LT_SDK_SKIP_EXECUTION_LOGS,
2679
- MAX_CONCURRENT_PROCESSING
2679
+ MAX_CONCURRENT_PROCESSING,
2680
+ DO_NOT_USE_USER_AGENT
2680
2681
  } = process.env;
2681
2682
  return {
2682
2683
  PROJECT_TOKEN,
@@ -2703,7 +2704,8 @@ var env_default = () => {
2703
2704
  SHOW_RENDER_ERRORS: SHOW_RENDER_ERRORS === "true",
2704
2705
  SMARTUI_SSE_URL,
2705
2706
  LT_SDK_SKIP_EXECUTION_LOGS: LT_SDK_SKIP_EXECUTION_LOGS === "true",
2706
- MAX_CONCURRENT_PROCESSING: MAX_CONCURRENT_PROCESSING ? parseInt(MAX_CONCURRENT_PROCESSING, 10) : 0
2707
+ MAX_CONCURRENT_PROCESSING: MAX_CONCURRENT_PROCESSING ? parseInt(MAX_CONCURRENT_PROCESSING, 10) : 0,
2708
+ DO_NOT_USE_USER_AGENT: DO_NOT_USE_USER_AGENT === "true"
2707
2709
  };
2708
2710
  };
2709
2711
  var logContext = {};
@@ -2798,7 +2800,7 @@ var authExec_default = (ctx) => {
2798
2800
  };
2799
2801
 
2800
2802
  // package.json
2801
- var version = "4.1.42";
2803
+ var version = "4.1.43";
2802
2804
  var package_default = {
2803
2805
  name: "@lambdatest/smartui-cli",
2804
2806
  version,
@@ -4426,9 +4428,11 @@ function processSnapshot(snapshot, ctx) {
4426
4428
  };
4427
4429
  let contextOptions = {
4428
4430
  javaScriptEnabled: ctx.config.cliEnableJavaScript,
4429
- userAgent: constants_default.CHROME_USER_AGENT,
4430
4431
  ignoreHTTPSErrors: ctx.config.ignoreHTTPSErrors
4431
4432
  };
4433
+ if (!ctx.env.DO_NOT_USE_USER_AGENT) {
4434
+ contextOptions.userAgent = constants_default.CHROME_USER_AGENT;
4435
+ }
4432
4436
  if (!((_b = ctx.browser) == null ? void 0 : _b.isConnected())) {
4433
4437
  if (ctx.env.HTTP_PROXY || ctx.env.HTTPS_PROXY)
4434
4438
  launchOptions.proxy = { server: ctx.env.HTTP_PROXY || ctx.env.HTTPS_PROXY };
@@ -5573,7 +5577,7 @@ var startTunnel_default = (ctx) => {
5573
5577
 
5574
5578
  // src/commander/exec.ts
5575
5579
  var command = new commander.Command();
5576
- command.name("exec").description("Run test commands around SmartUI").argument("<command...>", "Command supplied for running tests").option("-P, --port <number>", "Port number for the server").option("--fetch-results [filename]", "Fetch results and optionally specify an output file, e.g., <filename>.json").option("--buildName <string>", "Specify the build name").option("--scheduled <string>", "Specify the schedule ID").option("--userName <string>", "Specify the LT username").option("--accessKey <string>", "Specify the LT accesskey").option("--show-render-errors", "Show render errors from SmartUI build").action(function(execCommand, _, command11) {
5580
+ command.name("exec").description("Run test commands around SmartUI").argument("<command...>", "Command supplied for running tests").option("-P, --port <number>", "Port number for the server").option("--fetch-results [filename]", "Fetch results and optionally specify an output file, e.g., <filename>.json").option("--buildName <string>", "Specify the build name").option("--scheduled <string>", "Specify the schedule ID").option("--show-render-errors", "Show render errors from SmartUI build").action(function(execCommand, _, command11) {
5577
5581
  return __async(this, null, function* () {
5578
5582
  var _a;
5579
5583
  const options = command11.optsWithGlobals();
@@ -7332,7 +7336,7 @@ var uploadPdf_default = command10;
7332
7336
 
7333
7337
  // src/commander/commander.ts
7334
7338
  var program2 = new commander.Command();
7335
- program2.name("smartui").description("CLI to help you run your SmartUI tests on LambdaTest platform").version(`v${version}`).option("-c --config <filepath>", "Config file path").option("--markBaseline", "Mark this build baseline").option("--baselineBranch <string>", "Mark this build baseline").option("--baselineBuild <string>", "Mark this build baseline").option("--githubURL <string>", "GitHub URL including commitId").addCommand(exec_default2).addCommand(capture_default).addCommand(configWeb).addCommand(configStatic).addCommand(upload_default).addCommand(server_default2).addCommand(stopServer_default).addCommand(merge_default).addCommand(ping_default).addCommand(configFigma).addCommand(uploadFigma).addCommand(configWebFigma).addCommand(configAppFigma).addCommand(uploadWebFigmaCommand).addCommand(uploadAppFigmaCommand).addCommand(pingTest_default).addCommand(uploadPdf_default);
7339
+ program2.name("smartui").description("CLI to help you run your SmartUI tests on LambdaTest platform").version(`v${version}`).option("-c --config <filepath>", "Config file path").option("--markBaseline", "Mark this build baseline").option("--baselineBranch <string>", "Mark this build baseline").option("--baselineBuild <string>", "Mark this build baseline").option("--githubURL <string>", "GitHub URL including commitId").option("--userName <string>", "Specify the LT username").option("--accessKey <string>", "Specify the LT accesskey").addCommand(exec_default2).addCommand(capture_default).addCommand(configWeb).addCommand(configStatic).addCommand(upload_default).addCommand(server_default2).addCommand(stopServer_default).addCommand(merge_default).addCommand(ping_default).addCommand(configFigma).addCommand(uploadFigma).addCommand(configWebFigma).addCommand(configAppFigma).addCommand(uploadWebFigmaCommand).addCommand(uploadAppFigmaCommand).addCommand(pingTest_default).addCommand(uploadPdf_default);
7336
7340
  var commander_default = program2;
7337
7341
  (function() {
7338
7342
  return __async(this, null, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambdatest/smartui-cli",
3
- "version": "4.1.42",
3
+ "version": "4.1.43",
4
4
  "description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
5
5
  "files": [
6
6
  "dist/**/*"