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