diff --git a/tests/library/emulation-focus.spec.ts b/tests/library/emulation-focus.spec.ts index 75953e9591..f6a9d6547b 100644 --- a/tests/library/emulation-focus.spec.ts +++ b/tests/library/emulation-focus.spec.ts @@ -123,7 +123,8 @@ it('should not affect screenshots', async ({ page, server, browserName, headless expect(screenshots[1]).toMatchSnapshot('grid-cell-0.png'); }); -it('should change focused iframe', async ({ page, server }) => { +it('should change focused iframe', async ({ page, server, browserName, headless }) => { + it.skip(browserName === 'firefox' && !headless, 'Headed FF might lose focus'); await page.goto(server.EMPTY_PAGE); const [frame1, frame2] = await Promise.all([ attachFrame(page, 'frame1', server.PREFIX + '/input/textarea.html'), diff --git a/tests/page/elementhandle-bounding-box.spec.ts b/tests/page/elementhandle-bounding-box.spec.ts index 35426f1b3d..7858474ab9 100644 --- a/tests/page/elementhandle-bounding-box.spec.ts +++ b/tests/page/elementhandle-bounding-box.spec.ts @@ -19,9 +19,7 @@ import { test as it, expect } from './pageTest'; it.skip(({ isAndroid }) => isAndroid); -it('should work', async ({ page, server, browserName, headless }) => { - it.fail(browserName === 'firefox' && !headless); - +it('should work', async ({ page, server }) => { await page.setViewportSize({ width: 500, height: 500 }); await page.goto(server.PREFIX + '/grid.html'); const elementHandle = await page.$('.box:nth-of-type(13)'); diff --git a/tests/page/locator-misc-2.spec.ts b/tests/page/locator-misc-2.spec.ts index 7d07e13228..bb9f7623ce 100644 --- a/tests/page/locator-misc-2.spec.ts +++ b/tests/page/locator-misc-2.spec.ts @@ -106,8 +106,7 @@ it('should take screenshot', async ({ page, server, browserName, headless, isAnd expect(screenshot).toMatchSnapshot('screenshot-element-bounding-box.png'); }); -it('should return bounding box', async ({ page, server, browserName, headless, isAndroid }) => { - it.fail(browserName === 'firefox' && !headless); +it('should return bounding box', async ({ page, server, isAndroid }) => { it.skip(isAndroid); await page.setViewportSize({ width: 500, height: 500 });