From 71fea4aca1a19b8d64b43a6c5df7a92c70e96f06 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 20 Sep 2024 11:34:46 -0700 Subject: [PATCH] skip new headless=new --- tests/page/page-focus.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/page/page-focus.spec.ts b/tests/page/page-focus.spec.ts index 5320c6546b..020526380f 100644 --- a/tests/page/page-focus.spec.ts +++ b/tests/page/page-focus.spec.ts @@ -120,7 +120,8 @@ it('clicking checkbox should activate it', async ({ page, browserName, headless, it('tab should cycle between single input and browser', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32339' } }, async ({ page, browserName, headless }) => { - it.fixme(browserName === 'chromium' && !headless, 'Chromium in headful mode keeps input focused.'); + it.fixme(browserName === 'chromium' && (!headless || !!process.env.PLAYWRIGHT_CHROMIUM_USE_HEADLESS_NEW), + 'Chromium in headful mode keeps input focused.'); it.fixme(browserName !== 'chromium'); await page.setContent(` @@ -147,7 +148,8 @@ it('tab should cycle between single input and browser', { it('tab should cycle between document elements and browser', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32339' } }, async ({ page, browserName, headless }) => { - it.fixme(browserName === 'chromium' && !headless, 'Chromium in headful mode keeps last input focused.'); + it.fixme(browserName === 'chromium' && (!headless || !!process.env.PLAYWRIGHT_CHROMIUM_USE_HEADLESS_NEW), + 'Chromium in headful mode keeps last input focused.'); it.fixme(browserName !== 'chromium'); await page.setContent(`