run with headless! finally
This commit is contained in:
@@ -107,7 +107,8 @@ describe('MCP Server Tests', () => {
|
||||
const extensionPath = path.resolve('../extension/dist')
|
||||
|
||||
browserContext = await chromium.launchPersistentContext(userDataDir, {
|
||||
headless: false,
|
||||
channel: 'chromium', // <- this opts into new headless
|
||||
headless: !process.env.HEADFUL,
|
||||
args: [
|
||||
`--disable-extensions-except=${extensionPath}`,
|
||||
`--load-extension=${extensionPath}`,
|
||||
|
||||
Reference in New Issue
Block a user