merge: resolve conflicts and integrate headed mode default

This commit is contained in:
Ryan Malloy 2025-08-11 04:54:21 -06:00
commit ddff9975e2
2 changed files with 1 additions and 2 deletions

View File

@ -55,7 +55,7 @@ const defaultConfig: FullConfig = {
browserName: 'chromium',
launchOptions: {
channel: 'chrome',
headless: os.platform() === 'linux' && !process.env.DISPLAY,
headless: false,
chromiumSandbox: true,
},
contextOptions: {

View File

@ -236,7 +236,6 @@ export class Context {
private async _setupBrowserContext(): Promise<{ browserContext: playwright.BrowserContext, close: () => Promise<void> }> {
if (this._closeBrowserContextPromise)
throw new Error('Another browser context is being closed.');
let result: { browserContext: playwright.BrowserContext, close: () => Promise<void> };
if (this._videoRecordingConfig) {