Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test(screenshot): skip blocked event loop test in driver (#41796)
Simon Knott4a1649ac958a
diff --git a/tests/library/screenshot.spec.ts b/tests/library/screenshot.spec.tsindex 3403ba6ff3..c2784f32a0 100644--- a/tests/library/screenshot.spec.ts+++ b/tests/library/screenshot.spec.ts@@ -210,8 +210,9 @@ browserTest.describe('page screenshot', () => {expect(pixel(0, 999).b).toBeGreaterThan(128);});- browserTest('should not hang when event loop is blocked', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36702' } }, async ({ page, trace }) => {+ browserTest('should not hang when event loop is blocked', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36702' } }, async ({ page, trace, mode }) => {browserTest.skip(trace === 'on', 'taking a snapshot hangs when the page is blocked');+ browserTest.skip(mode === 'driver', 'test hooks are not available in driver mode');browserTest.setTimeout(5000);const __testHookBeforeScreenshot = async () => {page.evaluate(() => {