diff --git a/tests/library/emulation-focus.spec.ts b/tests/library/emulation-focus.spec.ts index f7fe44e85cd8b..5475c4b012fd4 100644 --- a/tests/library/emulation-focus.spec.ts +++ b/tests/library/emulation-focus.spec.ts @@ -250,7 +250,8 @@ browserTest('EM-024 should trigger hover state concurrently', async ({ browserTy browserTest('EM-028 should keep mouse drag when interacting with another page/context', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43969' }, -}, async ({ contextFactory }) => { +}, async ({ contextFactory, headless }) => { + browserTest.skip(!headless, 'Stray mouse events mess up the test'); const page1 = await (await contextFactory()).newPage(); const page2 = await (await contextFactory()).newPage(); for (const page of [page1, page2]) { diff --git a/tests/library/web-socket.spec.ts b/tests/library/web-socket.spec.ts index ef7f02bf3022b..1bef3abbbe2e1 100644 --- a/tests/library/web-socket.spec.ts +++ b/tests/library/web-socket.spec.ts @@ -284,7 +284,7 @@ it('WS-041 should navigate while an iframe opens WebSockets', { res.setHeader('Content-Type', 'text/html'); res.end(``); }); - for (let i = 0; i < 100; ++i) + for (let i = 0; i < 20; ++i) await page.goto(server.PREFIX + '/parent'); expect(page.frames()).toHaveLength(2); expect(await page.evaluate(() => 1 + 1)).toBe(2); diff --git a/tests/page/page-screenshot.spec.ts b/tests/page/page-screenshot.spec.ts index fb62d9e4df176..a29ae7d810781 100644 --- a/tests/page/page-screenshot.spec.ts +++ b/tests/page/page-screenshot.spec.ts @@ -421,7 +421,7 @@ it.describe('page screenshot', () => { it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42885' }); it.skip(browserName === 'webkit' && platform === 'darwin' && os.arch() === 'x64', 'WebGL is not available on Intel macOS - https://bugs.webkit.org/show_bug.cgi?id=278277'); - await page.setViewportSize({ width: 200, height: 200 }); + await page.setViewportSize({ width: 300, height: 300 }); await page.setContent(`
`); const expected = await page.screenshot(); @@ -742,7 +742,9 @@ declare global { it.describe('page screenshot animations', () => { it('SS-098 should preserve scroll animation progress during screenshots', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43986' }, - }, async ({ page }) => { + }, async ({ page, isAndroid }) => { + it.skip(isAndroid, 'Returns screenshot of a different size.'); + await page.setContent(`