Skip to content

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

test(bidi): unskip accept-language header websocket test (#42055)

Holger Benlfcc765fdbc23
diff --git a/tests/bidi/expectations/moz-firefox-nightly-library.txt b/tests/bidi/expectations/moz-firefox-nightly-library.txt
index ff9869d611..54d883f479 100644
--- a/tests/bidi/expectations/moz-firefox-nightly-library.txt
+++ b/tests/bidi/expectations/moz-firefox-nightly-library.txt
@@ -194,7 +194,8 @@ library/trace-viewer.spec.ts › should pick locator in iframe [fail]
library/trace-viewer.spec.ts › should render console [fail]
library/trace-viewer.spec.ts › should show only one pointer with multilevel iframes [fail]
library/trace-viewer.spec.ts › should show websocket messages [fail]
-library/tracing.spec.ts › should produce screencast frames fit [fail]
+library/tracing.spec.ts › should produce screencast frames crop [timeout]
+library/tracing.spec.ts › should produce screencast frames fit [timeout]
library/tracing.spec.ts › should produce screencast frames scale [fail]
library/tracing.spec.ts › should save trace while a WebSocket keeps streaming frames [fail]
library/web-socket.spec.ts › should emit binary frame events [timeout]
diff --git a/tests/bidi/expectations/moz-firefox-nightly-page.txt b/tests/bidi/expectations/moz-firefox-nightly-page.txt
index d8cf3f1ca0..5fde30e517 100644
--- a/tests/bidi/expectations/moz-firefox-nightly-page.txt
+++ b/tests/bidi/expectations/moz-firefox-nightly-page.txt
@@ -53,6 +53,8 @@ page/page-accessibility.spec.ts › should work with aria-invalid accessibility
page/page-accessibility.spec.ts › should work with regular text [fail]
page/page-add-init-script.spec.ts › init script should run only once in iframe [fail]
page/page-add-init-script.spec.ts › init script should run only once in popup [timeout]
+page/page-add-init-script-callback.spec.ts › should call a function passed as an argument [fail]
+page/page-add-init-script-callback.spec.ts › should work in a child frame [fail]
page/page-add-script-tag.spec.ts › should throw when added with content to the CSP page [fail]
page/page-add-style-tag.spec.ts › should throw when added with content to the CSP page [timeout]
page/page-aria-snapshot-ai.spec.ts › return empty snapshot when iframe is not loaded [flaky]
@@ -120,6 +122,7 @@ page/page-network-response.spec.ts › should reject response.finished if contex
page/page-network-response.spec.ts › should report all headers [fail]
page/page-network-response.spec.ts › should report if request was fromServiceWorker [fail]
page/page-network-response.spec.ts › should report multiple set-cookie headers [fail]
+page/page-network-response.spec.ts › should return non-utf8 body even when content-type says utf8 [fail]
page/page-network-response.spec.ts › should wait until response completes [fail]
page/page-request-continue.spec.ts › continue with headers should send fresh cookie from the browser cookie store [fail]
page/page-request-continue.spec.ts › should not throw if request was cancelled by the page [timeout]
diff --git a/tests/library/browsercontext-locale.spec.ts b/tests/library/browsercontext-locale.spec.ts
index 28c17871e9..bb6ef20563 100644
--- a/tests/library/browsercontext-locale.spec.ts
+++ b/tests/library/browsercontext-locale.spec.ts
@@ -225,8 +225,8 @@ it('should send user Accept-Language header', {
it('should send Accept-Language header on WebSocket handshake', {
annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23732' }],
-}, async ({ browser, server, browserName, browserMajorVersion }) => {
- it.fixme(browserName === 'firefox', 'Firefox does not send Accept-Language on WebSocket handshake');
+}, async ({ browser, server, browserName, browserMajorVersion, isBidi }) => {
+ it.fixme(browserName === 'firefox' && !isBidi, 'Firefox/Juggler does not send Accept-Language on WebSocket handshake');
it.fixme(browserName === 'chromium' && browserMajorVersion === 150, 'Chromium 150 sends the browser Accept-Language instead of the emulated locale on WebSocket handshake, https://github.com/microsoft/playwright/issues/23732');
const context = await browser.newContext({ locale: 'en-GB' });
const page = await context.newPage();