Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: skip Intl.ListFormat test on ubuntu20.04 (#28185)

Max Schmittff706ec8bdd7
diff --git a/tests/library/capabilities.spec.ts b/tests/library/capabilities.spec.ts
index 604ad479b1..58bb215a6a 100644
--- a/tests/library/capabilities.spec.ts
+++ b/tests/library/capabilities.spec.ts
@@ -17,6 +17,7 @@
import os from 'os';
import url from 'url';
import { contextTest as it, expect } from '../config/browserTest';
+import { hostPlatform } from '../../packages/playwright-core/src/utils/hostPlatform';
it('SharedArrayBuffer should work @smoke', async function({ contextFactory, httpsServer, browserName }) {
it.fail(browserName === 'webkit', 'no shared array buffer on webkit');
@@ -284,8 +285,9 @@ it('should send no Content-Length header for GET requests with a Content-Type',
expect(request.headers['content-length']).toBe(undefined);
});
-it('Intl.ListFormat should work', async ({ page, server }) => {
+it('Intl.ListFormat should work', async ({ page, server, browserName }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23978' });
+ it.skip(browserName === 'webkit' && hostPlatform.startsWith('ubuntu20.04'), 'libicu is too old and WebKit disables Intl.ListFormat by default then');
await page.goto(server.EMPTY_PAGE);
const formatted = await page.evaluate(() => {
const data = ['first', 'second', 'third'];