test(ff): fix headed tests (#14764)

This commit is contained in:
Pavel Feldman 2022-06-09 11:56:07 -08:00 committed by GitHub
parent 951ef118c7
commit 833d332fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -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'),

View File

@ -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)');

View File

@ -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 });