@lambdatest/smartui-cli 4.1.54 → 4.1.55

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 +6 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -2674,7 +2674,7 @@ var server_default = (ctx) => __async(null, null, function* () {
2674
2674
  if (Date.now() - startTime > timeoutDuration) {
2675
2675
  replyCode = 202;
2676
2676
  replyBody = lastExternalResponse.data;
2677
- replyBody.error = "Request timed out, Snapshot still processing";
2677
+ replyBody.error = `Request timed out, Snapshot still processing (timeoutDuration: ${timeoutDuration / 1e3}s, buildId: ${buildId}, snapshotName: ${snapshotName}, contextId: ${contextId})`;
2678
2678
  return reply.code(replyCode).send(replyBody);
2679
2679
  }
2680
2680
  } catch (externalApiError) {
@@ -2895,7 +2895,7 @@ var authExec_default = (ctx) => {
2895
2895
  };
2896
2896
 
2897
2897
  // package.json
2898
- var version = "4.1.54";
2898
+ var version = "4.1.55";
2899
2899
  var package_default = {
2900
2900
  name: "@lambdatest/smartui-cli",
2901
2901
  version,
@@ -4565,6 +4565,10 @@ function prepareSnapshot(snapshot, ctx) {
4565
4565
  processedOptions.selectors = selectors;
4566
4566
  processedOptions.ignoreDOM = options == null ? void 0 : options.ignoreDOM;
4567
4567
  processedOptions.selectDOM = options == null ? void 0 : options.selectDOM;
4568
+ if ((options == null ? void 0 : options.customCookies) && Array.isArray(options.customCookies) && options.customCookies.length > 0) {
4569
+ ctx.log.debug(`Setting ${options.customCookies.length} custom cookies`);
4570
+ processedOptions.customCookies = options.customCookies;
4571
+ }
4568
4572
  ctx.log.debug(`Processed options: ${JSON.stringify(processedOptions)}`);
4569
4573
  let renderViewports;
4570
4574
  if (snapshot.options && snapshot.options.web || snapshot.options && snapshot.options.mobile) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambdatest/smartui-cli",
3
- "version": "4.1.54",
3
+ "version": "4.1.55",
4
4
  "description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
5
5
  "files": [
6
6
  "dist/**/*"