diff --git a/tests/library/browsertype-connect.spec.ts b/tests/library/browsertype-connect.spec.ts index ed0234224e..cd77a210d5 100644 --- a/tests/library/browsertype-connect.spec.ts +++ b/tests/library/browsertype-connect.spec.ts @@ -170,7 +170,7 @@ for (const kind of ['launchServer', 'run-server'] as const) { }); test('should ignore page.pause when headed', async ({ connect, startRemoteServer, browserType, channel }) => { - test.skip(channel === 'chromium-headless-shell', 'This test is only relevant in headed mode'); + test.skip(channel === 'chromium-headless-shell', 'Headless Shell does not support headed mode'); const headless = (browserType as any)._defaultLaunchOptions.headless; (browserType as any)._defaultLaunchOptions.headless = false; const remoteServer = await startRemoteServer(kind); diff --git a/tests/library/chromium/oopif.spec.ts b/tests/library/chromium/oopif.spec.ts index 158af61a24..54cd3e1a46 100644 --- a/tests/library/chromium/oopif.spec.ts +++ b/tests/library/chromium/oopif.spec.ts @@ -232,10 +232,11 @@ it('should click a button when it overlays oopif', async function({ page, browse expect(await page.evaluate(() => (window as any)['BUTTON_CLICKED'])).toBe(true); }); -it('should report google.com frame with headed', async ({ browserType, server }) => { +it('should report google.com frame with headed', async ({ browserType, server, channel }) => { + it.skip(channel === 'chromium-headless-shell', 'Headless Shell does not support headed mode'); // @see https://github.com/GoogleChrome/puppeteer/issues/2548 // https://google.com is isolated by default in Chromium embedder. - const browser = await browserType.launch(); + const browser = await browserType.launch({ headless: false }); const page = await browser.newPage(); await page.goto(server.EMPTY_PAGE); await page.route('**/*', route => {