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
chore(bidi): add missing Firefox prefs for disabling telemetry (#39999)
Holger Benl47ac34595434
diff --git a/packages/playwright-core/src/server/bidi/third_party/firefoxPrefs.ts b/packages/playwright-core/src/server/bidi/third_party/firefoxPrefs.tsindex 0176e579a5..75b32a6288 100644--- a/packages/playwright-core/src/server/bidi/third_party/firefoxPrefs.ts+++ b/packages/playwright-core/src/server/bidi/third_party/firefoxPrefs.ts@@ -125,6 +125,8 @@ function defaultProfilePreferences('datareporting.healthreport.service.enabled': false,'datareporting.healthreport.service.firstRun': false,'datareporting.healthreport.uploadEnabled': false,+ 'datareporting.usage.uploadEnabled': false,+ 'telemetry.fog.test.localhost_port': -1,// Do not show datareporting policy notifications which can interfere with tests'datareporting.policy.dataSubmissionEnabled': false,diff --git a/tests/bidi/expectations/moz-firefox-nightly-library.txt b/tests/bidi/expectations/moz-firefox-nightly-library.txtindex d05db29c8f..5cdceb1d47 100644--- a/tests/bidi/expectations/moz-firefox-nightly-library.txt+++ b/tests/bidi/expectations/moz-firefox-nightly-library.txt@@ -25,6 +25,8 @@ library/browsercontext-har.spec.ts › should goForward to redirected navigationlibrary/browsercontext-har.spec.ts › should record overridden requests to har [fail]library/browsercontext-har.spec.ts › should reload redirected navigation [fail]library/browsercontext-har.spec.ts › should round-trip har with postData [fail]+library/browsercontext-locale.spec.ts › should format number [fail]+library/browsercontext-locale.spec.ts › should format number in popups [fail]library/browsercontext-locale.spec.ts › should format number in workers [timeout]library/browsercontext-network-event.spec.ts › should reject response.finished if context closes [timeout]library/browsercontext-page-event.spec.ts › should have about:blank for empty url with domcontentloaded [timeout]@@ -40,6 +42,7 @@ library/browsercontext-reuse.spec.ts › reuse launch › should update viewportlibrary/browsercontext-service-worker-policy.spec.ts › block › should not throw error on about:blank [fail]library/browsercontext-storage-state.spec.ts › should roundtrip local storage in third-party context [fail]library/browsercontext-storage-state.spec.ts › should set local storage in third-party context [fail]+library/browsercontext-user-agent.spec.ts › should override navigator.platform to match custom user agent [fail]library/browsercontext-viewport-mobile.spec.ts › mobile viewport › default mobile viewports to 980 width [fail]library/browsercontext-viewport-mobile.spec.ts › mobile viewport › should be detectable [fail]library/browsercontext-viewport-mobile.spec.ts › mobile viewport › should detect touch when applying viewport with touches [fail]@@ -50,11 +53,13 @@ library/browsercontext-viewport-mobile.spec.ts › mobile viewport › should sulibrary/browsercontext-viewport.spec.ts › should drag with high dpi [fail]library/browsercontext-viewport.spec.ts › should support touch with null viewport [fail]library/browsertype-connect.spec.ts › launchServer › should be able to connect 20 times to a single server without warnings [timeout]+library/browsertype-connect.spec.ts › launchServer › should name video file after page guid when connecting to remote browser with artifactsDir [fail]library/browsertype-connect.spec.ts › launchServer › should save download [fail]library/browsertype-connect.spec.ts › launchServer › should save videos to artifactsDir [fail]library/browsertype-connect.spec.ts › launchServer › should saveAs videos from remote browser [timeout]library/browsertype-connect.spec.ts › launchServer › should upload a folder [fail]library/browsertype-connect.spec.ts › run-server › should be able to connect 20 times to a single server without warnings [timeout]+library/browsertype-connect.spec.ts › run-server › should name video file after page guid when connecting to remote browser with artifactsDir [fail]library/browsertype-connect.spec.ts › run-server › should save download [fail]library/browsertype-connect.spec.ts › run-server › should saveAs videos from remote browser [timeout]library/browsertype-connect.spec.ts › run-server › should save videos to artifactsDir [fail]@@ -154,6 +159,8 @@ library/role-utils.spec.ts › axe-core accessible-text [timeout]library/role-utils.spec.ts › wpt accname #2 [timeout]library/route-web-socket.spec.ts › should emit close upon frame detach [timeout]library/screencast.spec.ts › screencast.start delivers frames via onFrame callback [fail]+library/screencast.spec.ts › start dispose stops recording [fail]+library/screencast.spec.ts › start should work when recordVideo is set [fail]library/screencast.spec.ts › start returns a disposable that stops screencast [fail]library/screencast.spec.ts › start reuses existing screencast when video recording is running [fail]library/screencast.spec.ts › supports multiple onFrame listeners [fail]@@ -192,6 +199,7 @@ library/video.spec.ts › screencast › should capture full viewport on hidpi [library/video.spec.ts › screencast › should capture navigation [timeout]library/video.spec.ts › screencast › should capture static page [timeout]library/video.spec.ts › screencast › should capture static page in persistent context @smoke [fail]+library/video.spec.ts › screencast › should close ffmpeg even if there were no frames [fail]library/video.spec.ts › screencast › should continue recording main page after popup closes [timeout]library/video.spec.ts › screencast › should delete video [timeout]library/video.spec.ts › screencast › should emulate an iphone [timeout]