@mablhq/mabl-cli 1.21.15 → 1.21.22

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.
@@ -211,7 +211,7 @@ class PlaywrightPage extends events_1.default {
211
211
  return this.page.bringToFront();
212
212
  }
213
213
  cookies() {
214
- return this.page.context().cookies();
214
+ return this.page.context().cookies(this.page.url());
215
215
  }
216
216
  async deleteCookie(...cookies) {
217
217
  const finalCookies = (await this.cookies()).filter((cookie) => !cookies.find((c) => c.name === cookie.name && c.domain === cookie.domain));
package/cli.js CHANGED
@@ -44,6 +44,7 @@ const UPDATE_CHECK_INTERVAL_MILLISECONDS = 24 * 60 * 60 * 1000;
44
44
  const MIN_SUPPORTED_NODE_VERSION = (0, versionUtil_1.extractNodeVersionTuple)((_a = cliPackage === null || cliPackage === void 0 ? void 0 : cliPackage.engines) === null || _a === void 0 ? void 0 : _a.node);
45
45
  require('v8-compile-cache');
46
46
  require('yargonaut').style('cyan').helpStyle('magenta').errorsStyle('red');
47
+ const excludeInternal = env_1.ENV === 'prod' ? { exclude: /.*/gm } : undefined;
47
48
  yargs
48
49
  .scriptName(env_1.SCRIPT_NAME)
49
50
  .commandDir('./commands/applications')
@@ -54,6 +55,7 @@ yargs
54
55
  .commandDir('./commands/deploy')
55
56
  .commandDir('./commands/environments')
56
57
  .commandDir('./commands/flows')
58
+ .commandDir('./commands/internal', excludeInternal)
57
59
  .commandDir('./commands/link-agents')
58
60
  .commandDir('./commands/plans')
59
61
  .commandDir('./commands/tests')
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.command = 'internal <command>';
4
+ exports.describe =
5
+ 'Internal commands for mabl developers and employees only. Not available in production';
6
+ exports.builder = (yargs) => yargs.commandDir('internal_cmds').demandCommand();
@@ -238,6 +238,9 @@ async function createBrowser(browserWidth, browserHeight, headless, containerTes
238
238
  }
239
239
  disableFeaturesFlags.push('site-per-process');
240
240
  launchArgs.push(`--disable-features=${disableFeaturesFlags.join(',')}`);
241
+ if (options === null || options === void 0 ? void 0 : options.autoOpenDevtoolsForTabs) {
242
+ launchArgs.push('--auto-open-devtools-for-tabs');
243
+ }
241
244
  const fakeMicrophoneMedia = (0, resourceUtil_1.findResource)('media/mabl_test_audio.wav', resourcesDirectoryOverride);
242
245
  const fakeWebcamMedia = (0, resourceUtil_1.findResource)('media/mabl_test_pattern.y4m', resourcesDirectoryOverride);
243
246
  const defaultDeviceDescriptor = addLaunchArgs(launchArgs, browserWidth, browserHeight, fakeMicrophoneMedia, fakeWebcamMedia, ignoreCertificateErrors, emulationConfig);