FirefoxLauncher.test.ts (662B)
1 /** 2 * @license 3 * Copyright 2023 Google Inc. 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 import {describe, it} from 'node:test'; 8 9 import expect from 'expect'; 10 11 import {FirefoxLauncher} from './FirefoxLauncher.js'; 12 13 describe('FirefoxLauncher', function () { 14 describe('getPreferences', function () { 15 it('should return preferences for WebDriver BiDi', async () => { 16 const prefs: Record<string, unknown> = FirefoxLauncher.getPreferences({ 17 test: 1, 18 }); 19 expect(prefs['test']).toBe(1); 20 expect(prefs['fission.bfcacheInParent']).toBe(undefined); 21 expect(prefs['fission.webContentIsolationStrategy']).toBe(0); 22 }); 23 }); 24 });