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(evaluate): skip using declaration on WebKit (#41929)
Simon Knottac877bc190ec
diff --git a/tests/page/page-evaluate.spec.ts b/tests/page/page-evaluate.spec.tsindex 5b85b8dd66..fa45692fc6 100644--- a/tests/page/page-evaluate.spec.ts+++ b/tests/page/page-evaluate.spec.ts@@ -867,9 +867,10 @@ it('should work with Array.from/map', async ({ page }) => {})).toBe('([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})');});-it('should work with a using declaration', async ({ page, nodeVersion }) => {+it('should work with a using declaration', async ({ page, nodeVersion, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41511' });it.skip(nodeVersion.major < 24, 'using is lowered to a module-scope helper that does not survive evaluate serialization on Node < 24');+ it.skip(browserName === 'webkit', 'WebKit does not support using declarations');const disposed = await page.evaluate(() => {let disposed = false;{