From 80de38db4e202a7548e92245079b9cd661759b81 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 1 Nov 2024 16:27:34 +0100 Subject: [PATCH] Skip Modernizer tests on Ubuntu 20.04 --- tests/library/modernizr.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/library/modernizr.spec.ts b/tests/library/modernizr.spec.ts index 078a658565..c0a06f3714 100644 --- a/tests/library/modernizr.spec.ts +++ b/tests/library/modernizr.spec.ts @@ -14,6 +14,7 @@ * limitations under the License. */ +import { hostPlatform } from '../../packages/playwright-core/src/utils/hostPlatform'; import { browserTest as it, expect } from '../config/browserTest'; import fs from 'fs'; import os from 'os'; @@ -33,6 +34,7 @@ async function checkFeatures(name: string, context: any, server: any) { it('Safari Desktop', async ({ browser, browserName, platform, server, headless }) => { it.skip(browserName !== 'webkit'); 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'); + it.skip(browserName === 'webkit' && hostPlatform.startsWith('ubuntu20.04'), 'Ubuntu 20.04 is frozen'); const context = await browser.newContext({ deviceScaleFactor: 2 }); @@ -95,6 +97,7 @@ it('Safari Desktop', async ({ browser, browserName, platform, server, headless } it('Mobile Safari', async ({ playwright, browser, browserName, platform, server, headless }) => { it.skip(browserName !== 'webkit'); 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'); + it.skip(browserName === 'webkit' && hostPlatform.startsWith('ubuntu20.04'), 'Ubuntu 20.04 is frozen'); const iPhone = playwright.devices['iPhone 12']; const context = await browser.newContext(iPhone); const { actual, expected } = await checkFeatures('mobile-safari-18', context, server);