@mablhq/mabl-cli 1.57.1 → 1.57.3

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.
@@ -142,6 +142,7 @@ class PlaywrightFrame extends browserLauncher_1.Frame {
142
142
  return new playwrightDom_1.PlaywrightElementHandle(frameElement, this.parentPage, this.parentPage.delegate.createElementHandleDelegate(frameElement));
143
143
  }
144
144
  async goto(url, options) {
145
+ var _a;
145
146
  const lifecycleEvent = this.delegate.getLifecycleEventStrategy(options === null || options === void 0 ? void 0 : options.waitUntil);
146
147
  try {
147
148
  const response = await this.frame.goto(url, {
@@ -150,7 +151,7 @@ class PlaywrightFrame extends browserLauncher_1.Frame {
150
151
  });
151
152
  if (lifecycleEvent.waitForNetworkIdle) {
152
153
  await this.frame.waitForLoadState('networkidle', {
153
- timeout: types_1.DefaultTimeouts.defaultWaitTimeoutMs,
154
+ timeout: (_a = options === null || options === void 0 ? void 0 : options.timeout) !== null && _a !== void 0 ? _a : types_1.DefaultTimeouts.defaultWaitTimeoutMs,
154
155
  });
155
156
  }
156
157
  return (0, utils_1.mapIfNotNull)(response, (response) => new playwrightHttpResponse_1.PlaywrightHttpResponse(this.parentPage, response));