browser-commander 0.14.0 → 0.16.0

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.
@@ -44,13 +44,32 @@ describe('launchAndConnectRealBrowser', () => {
44
44
  '--remote-debugging-address=127.0.0.1',
45
45
  '--remote-debugging-port=9333',
46
46
  '--user-data-dir=/tmp/browser-commander-dedicated',
47
+ '--disable-session-crashed-bubble',
48
+ '--hide-crash-restore-bubble',
49
+ '--disable-infobars',
50
+ '--password-store=basic',
47
51
  '--no-first-run',
48
52
  '--no-default-browser-check',
53
+ '--disable-crash-restore',
49
54
  '--headless=new',
50
55
  '--lang=en-US',
51
56
  ]);
52
57
  });
53
58
 
59
+ it('supports additive arguments and per-default opt-out', () => {
60
+ const args = buildRealBrowserArgs({
61
+ userDataDir: '/tmp/browser-commander-dedicated',
62
+ args: ['--legacy-arg'],
63
+ extraArgs: ['--lang=en-US'],
64
+ ignoreDefaultArgs: ['--no-first-run'],
65
+ });
66
+
67
+ assert.ok(args.includes('--password-store=basic'));
68
+ assert.equal(args.includes('--no-first-run'), false);
69
+ assert.ok(args.includes('--no-default-browser-check'));
70
+ assert.deepEqual(args.slice(-2), ['--legacy-arg', '--lang=en-US']);
71
+ });
72
+
54
73
  it('rejects custom arguments that could bypass protected CDP settings', () => {
55
74
  for (const argument of [
56
75
  '--remote-debugging-address=0.0.0.0',
@@ -10,6 +10,7 @@ describe('constants', () => {
10
10
 
11
11
  it('should contain expected browser arguments', () => {
12
12
  assert.ok(CHROME_ARGS.includes('--disable-infobars'));
13
+ assert.ok(CHROME_ARGS.includes('--password-store=basic'));
13
14
  assert.ok(CHROME_ARGS.includes('--no-first-run'));
14
15
  assert.ok(CHROME_ARGS.includes('--no-default-browser-check'));
15
16
  });