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: skip WebKit WebGL tests on Intel macOS (#32784)
Max Schmitt995c73e9d936
diff --git a/tests/library/modernizr.spec.ts b/tests/library/modernizr.spec.tsindex 2fd4e5c955..d74afaedb2 100644--- a/tests/library/modernizr.spec.ts+++ b/tests/library/modernizr.spec.ts@@ -30,9 +30,9 @@ async function checkFeatures(name: string, context: any, server: any) {}}-it('Safari Desktop', async ({ browser, browserName, platform, server, headless, isMac }) => {+it('Safari Desktop', async ({ browser, browserName, platform, server, headless }) => {it.skip(browserName !== 'webkit');- it.skip(browserName === 'webkit' && platform === 'darwin' && parseInt(os.release(), 10) === 22, 'Modernizr uses WebGL which is not available in macOS-13 - https://bugs.webkit.org/show_bug.cgi?id=278277');+ it.skip(browserName === 'webkit' && platform === 'darwin' && os.arch() === 'x64', 'Modernizr uses WebGL which is not available on Intel macOS - https://bugs.webkit.org/show_bug.cgi?id=278277');const context = await browser.newContext({deviceScaleFactor: 2});@@ -93,9 +93,9 @@ it('Safari Desktop', async ({ browser, browserName, platform, server, headless,expect(actual).toEqual(expected);});-it('Mobile Safari', async ({ playwright, browser, browserName, platform, isMac, server, headless }) => {+it('Mobile Safari', async ({ playwright, browser, browserName, platform, server, headless }) => {it.skip(browserName !== 'webkit');- it.skip(browserName === 'webkit' && platform === 'darwin' && parseInt(os.release(), 10) === 22, 'Modernizr uses WebGL which is not available in macOS-13 - https://bugs.webkit.org/show_bug.cgi?id=278277');+ it.skip(browserName === 'webkit' && platform === 'darwin' && os.arch() === 'x64', 'Modernizr uses WebGL which is not available on Intel macOS - https://bugs.webkit.org/show_bug.cgi?id=278277');const iPhone = playwright.devices['iPhone 12'];const context = await browser.newContext(iPhone);const { actual, expected } = await checkFeatures('mobile-safari-18', context, server);diff --git a/tests/page/page-screenshot.spec.ts b/tests/page/page-screenshot.spec.tsindex 8d0e68e12d..15c8e4db39 100644--- a/tests/page/page-screenshot.spec.ts+++ b/tests/page/page-screenshot.spec.ts@@ -323,7 +323,7 @@ it.describe('page screenshot', () => {it('should work for webgl', async ({ page, server, browserName, platform }) => {it.fixme(browserName === 'firefox');it.fixme(browserName === 'chromium' && platform === 'darwin' && os.arch() === 'arm64', 'SwiftShader is not available on macOS-arm64 - https://github.com/microsoft/playwright/issues/28216');- it.skip(browserName === 'webkit' && platform === 'darwin' && parseInt(os.release(), 10) === 22, 'WebGL is not available in macOS-13 - https://bugs.webkit.org/show_bug.cgi?id=278277');+ it.skip(browserName === 'webkit' && platform === 'darwin' && os.arch() === 'x64', 'Modernizr uses WebGL which is not available on Intel macOS - https://bugs.webkit.org/show_bug.cgi?id=278277');await page.setViewportSize({ width: 640, height: 480 });await page.goto(server.PREFIX + '/screenshots/webgl.html');