mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test(ff): fix headed tests (#14764)
This commit is contained in:
parent
951ef118c7
commit
833d332fa3
@ -123,7 +123,8 @@ it('should not affect screenshots', async ({ page, server, browserName, headless
|
|||||||
expect(screenshots[1]).toMatchSnapshot('grid-cell-0.png');
|
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);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
const [frame1, frame2] = await Promise.all([
|
const [frame1, frame2] = await Promise.all([
|
||||||
attachFrame(page, 'frame1', server.PREFIX + '/input/textarea.html'),
|
attachFrame(page, 'frame1', server.PREFIX + '/input/textarea.html'),
|
||||||
|
|||||||
@ -19,9 +19,7 @@ import { test as it, expect } from './pageTest';
|
|||||||
|
|
||||||
it.skip(({ isAndroid }) => isAndroid);
|
it.skip(({ isAndroid }) => isAndroid);
|
||||||
|
|
||||||
it('should work', async ({ page, server, browserName, headless }) => {
|
it('should work', async ({ page, server }) => {
|
||||||
it.fail(browserName === 'firefox' && !headless);
|
|
||||||
|
|
||||||
await page.setViewportSize({ width: 500, height: 500 });
|
await page.setViewportSize({ width: 500, height: 500 });
|
||||||
await page.goto(server.PREFIX + '/grid.html');
|
await page.goto(server.PREFIX + '/grid.html');
|
||||||
const elementHandle = await page.$('.box:nth-of-type(13)');
|
const elementHandle = await page.$('.box:nth-of-type(13)');
|
||||||
|
|||||||
@ -106,8 +106,7 @@ it('should take screenshot', async ({ page, server, browserName, headless, isAnd
|
|||||||
expect(screenshot).toMatchSnapshot('screenshot-element-bounding-box.png');
|
expect(screenshot).toMatchSnapshot('screenshot-element-bounding-box.png');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return bounding box', async ({ page, server, browserName, headless, isAndroid }) => {
|
it('should return bounding box', async ({ page, server, isAndroid }) => {
|
||||||
it.fail(browserName === 'firefox' && !headless);
|
|
||||||
it.skip(isAndroid);
|
it.skip(isAndroid);
|
||||||
|
|
||||||
await page.setViewportSize({ width: 500, height: 500 });
|
await page.setViewportSize({ width: 500, height: 500 });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user