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): reset mouse position on reuse (#41262)
Holger Benlce24537a6f77
diff --git a/packages/playwright-core/src/server/bidi/bidiPage.ts b/packages/playwright-core/src/server/bidi/bidiPage.tsindex 6637b0d46e..ac8fd62fca 100644--- a/packages/playwright-core/src/server/bidi/bidiPage.ts+++ b/packages/playwright-core/src/server/bidi/bidiPage.ts@@ -626,6 +626,8 @@ export class BidiPage implements PageDelegate {}async resetForReuse(progress: Progress): Promise<void> {+ // See https://github.com/microsoft/playwright/issues/22432.+ await this.rawMouse.move(progress, 0, 0, 'none', new Set(), new Set(), false);}async pdf(options: channels.PagePdfParams): Promise<Buffer> {diff --git a/tests/bidi/expectations/moz-firefox-nightly-library.txt b/tests/bidi/expectations/moz-firefox-nightly-library.txtindex 70bbb117e3..61048944c4 100644--- a/tests/bidi/expectations/moz-firefox-nightly-library.txt+++ b/tests/bidi/expectations/moz-firefox-nightly-library.txt@@ -6,19 +6,19 @@ library/browsercontext-basic.spec.ts › should disable javascript [fail]library/browsercontext-basic.spec.ts › should emulate media in cross-process iframe [fail]library/browsercontext-basic.spec.ts › should emulate media in popup [fail]library/browsercontext-cookies-third-party.spec.ts › same origin third party 'Partitioned;' cookie with different origin intermediate iframe [fail]-library/browsercontext-cookies-third-party.spec.ts › save/load third party non-partitioned cookies [fail]library/browsercontext-cookies-third-party.spec.ts › save/load third party 'Partitioned;' cookies [fail]+library/browsercontext-cookies-third-party.spec.ts › save/load third party non-partitioned cookies [fail]library/browsercontext-cookies-third-party.spec.ts › should be able to send third party cookies via an iframe [fail]library/browsercontext-cookies-third-party.spec.ts › third party 'Partitioned;' cookies [timeout]library/browsercontext-cookies-third-party.spec.ts › third party non-partitioned cookies [timeout]library/browsercontext-cookies.spec.ts › should support requestStorageAccess [fail]-library/browsercontext-csp.spec.ts › should bypass after cross-process navigation [fail]library/browsercontext-csp.spec.ts › should bypass CSP header [fail]library/browsercontext-csp.spec.ts › should bypass CSP in iframes as well [fail]library/browsercontext-csp.spec.ts › should bypass CSP meta tag @smoke [fail]+library/browsercontext-csp.spec.ts › should bypass after cross-process navigation [fail]library/browsercontext-devtools.spec.ts › should close tab via close button [fail]-library/browsercontext-devtools.spec.ts › should show no-pages placeholder when all tabs are closed [fail]library/browsercontext-devtools.spec.ts › should display screencast image [fail]+library/browsercontext-devtools.spec.ts › should show no-pages placeholder when all tabs are closed [fail]library/browsercontext-events.spec.ts › console event should work with element handles [fail]library/browsercontext-har.spec.ts › should change document URL after redirected navigation [fail]library/browsercontext-har.spec.ts › should change document URL after redirected navigation on click [timeout]@@ -69,15 +69,14 @@ library/browsertype-connect.spec.ts › launchServer › should upload a folderlibrary/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]+library/browsertype-connect.spec.ts › run-server › should saveAs videos from remote browser [timeout]library/browsertype-connect.spec.ts › run-server › should upload a folder [fail]library/browsertype-launch.spec.ts › should reject all promises when browser is closed [timeout]library/browsertype-launch.spec.ts › should reject if launched browser fails immediately [fail]library/capabilities.spec.ts › SharedArrayBuffer should work @smoke [timeout]library/capabilities.spec.ts › should play video @smoke [timeout]library/channels.spec.ts › should work with the domain module [timeout]-library/chromium/chromium.spec.ts › http credentials › httpCredentials [timeout]library/chromium/chromium.spec.ts › PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 › serviceWorker(), and fromServiceWorker() work [timeout]library/chromium/chromium.spec.ts › PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 › setExtraHTTPHeaders [timeout]library/chromium/chromium.spec.ts › PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 › setOffline [timeout]@@ -89,6 +88,7 @@ library/chromium/chromium.spec.ts › PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVElibrary/chromium/chromium.spec.ts › PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 › should report failure (due to content-type) of main service worker request [timeout]library/chromium/chromium.spec.ts › PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 › should report failure (due to redirect) of main service worker request [timeout]library/chromium/chromium.spec.ts › PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 › should report intercepted service worker requests in HAR [timeout]+library/chromium/chromium.spec.ts › http credentials › httpCredentials [timeout]library/chromium/chromium.spec.ts › serviceWorkers() should return current workers [timeout]library/chromium/chromium.spec.ts › should close service worker together with the context [timeout]library/chromium/chromium.spec.ts › should create a worker from a service worker [timeout]@@ -100,6 +100,7 @@ library/chromium/launcher.spec.ts › should report console messages from contenlibrary/chromium/launcher.spec.ts › should return background pages [timeout]library/chromium/launcher.spec.ts › should return background pages when recording video [timeout]library/chromium/launcher.spec.ts › should support request/response events when using backgroundPage() [timeout]+library/client-certificates.spec.ts › browser › should not intercept TLS for origins without a client certificate [fail]library/debug-controller.spec.ts › should allow setting recorder mode only for specific browser [fail]library/debug-controller.spec.ts › should record [flaky]library/debug-controller.spec.ts › should work with browser._launchServer [flaky]@@ -111,6 +112,7 @@ library/defaultbrowsercontext-2.spec.ts › should support contrast option [faillibrary/defaultbrowsercontext-2.spec.ts › should support forcedColors option [fail]library/defaultbrowsercontext-2.spec.ts › should support hasTouch option [fail]library/defaultbrowsercontext-2.spec.ts › should support reducedMotion option [fail]+library/defaultbrowsercontext-2.spec.ts › should work in persistent context [fail]library/download.spec.ts › download event › should be able to cancel pending downloads [timeout]library/download.spec.ts › download event › should report download path within page.on('download', …) handler for Blobs [timeout]library/download.spec.ts › download event › should report new window downloads [timeout]@@ -121,6 +123,16 @@ library/emulation-focus.spec.ts › should think that all pages are focused @smolibrary/fetch-proxy.spec.ts › context request should pick up proxy credentials [timeout]library/firefox/launcher.spec.ts › should support custom firefox policies [fail]library/geolocation.spec.ts › should use context options for popup [timeout]+library/har-websocket.spec.ts › should attach websocket messages [fail]+library/har-websocket.spec.ts › should attach websocket messages for a still open websocket after stopping [timeout]+library/har-websocket.spec.ts › should embed websocket messages [fail]+library/har-websocket.spec.ts › should include websocket handshake headers and status [fail]+library/har-websocket.spec.ts › should omit websocket messages [fail]+library/har-websocket.spec.ts › should only have one websocket entry [fail]+library/har-websocket.spec.ts › should record websocket connection failure [timeout]+library/har-websocket.spec.ts › should record websocket handshake failure [fail]+library/har-websocket.spec.ts › should still allow routeWebSocket to modify messages when capturing HAR [fail]+library/har-websocket.spec.ts › should still capture websocket when route passes messages through [fail]library/har.spec.ts › should have connection details [fail]library/har.spec.ts › should have connection details for failed requests [fail]library/har.spec.ts › should have connection details for redirects [fail]@@ -131,11 +143,13 @@ library/har.spec.ts › should include postData [fail]library/har.spec.ts › should include set-cookies [fail]library/har.spec.ts › should include set-cookies with comma [fail]library/har.spec.ts › should include sizes [fail]+library/har.spec.ts › should not hang on slow chunked response [timeout]library/har.spec.ts › should report the correct _transferSize with PNG files [fail]library/har.spec.ts › should return security details directly from response [fail]library/har.spec.ts › should return server address directly from response [fail]library/headful.spec.ts › should click bottom row w/ infobar in OOPIF [fail]library/headful.spec.ts › should click in OOPIF [fail]+library/heap.spec.ts › cycle handles [timeout]library/hit-target.spec.ts › should detect overlaid element in a transformed iframe [fail]library/inspector/cli-codegen-2.spec.ts › cli codegen › should --test-id-attribute [timeout]library/inspector/cli-codegen-2.spec.ts › cli codegen › should not clash pages [timeout]@@ -170,13 +184,14 @@ library/popup.spec.ts › should use viewport size from window features [timeoutlibrary/proxy.spec.ts › should reconnect with credentials after CONNECT 407 closes the socket [fail]library/role-utils.spec.ts › axe-core accessible-text [timeout]library/role-utils.spec.ts › wpt accname #2 [timeout]+library/role-utils.spec.ts › wpt accname #3 [timeout]library/route-web-socket.spec.ts › should emit close upon frame detach [timeout]library/screencast.spec.ts › onFrame receives viewport size [fail]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 › start should work when recordVideo is set [fail]library/screencast.spec.ts › supports multiple onFrame listeners [fail]library/screenshot.spec.ts › page screenshot › should work with device scale factor and scale:css [fail]library/screenshot.spec.ts › page screenshot › should work with device scale factor, clip and scale:css [fail]@@ -196,11 +211,13 @@ library/trace-viewer.spec.ts › canvas clipping in iframe [timeout]library/trace-viewer.spec.ts › canvas disabled title [fail]library/trace-viewer.spec.ts › should filter network requests by multiple resource types [flaky]library/trace-viewer.spec.ts › should filter network requests by url [fail]+library/trace-viewer.spec.ts › should filter network requests by websocket type [fail]library/trace-viewer.spec.ts › should highlight locator in iframe while typing [fail]library/trace-viewer.spec.ts › should open console errors on click [fail]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 collect trace with resources, but no js [fail]library/tracing.spec.ts › should produce screencast frames crop [fail]library/tracing.spec.ts › should produce screencast frames fit [fail]@@ -217,10 +234,10 @@ library/video.spec.ts › screencast › should close ffmpeg even if there werelibrary/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]-library/video.spec.ts › screencast › should fail when recordVideo is set [fail]library/video.spec.ts › screencast › should expose video path [timeout]library/video.spec.ts › screencast › should expose video path blank page [timeout]library/video.spec.ts › screencast › should expose video path blank popup [timeout]+library/video.spec.ts › screencast › should fail when recordVideo is set [fail]library/video.spec.ts › screencast › should not create video for internal pages [fail]library/video.spec.ts › screencast › should scale frames down to the requested size [timeout]library/video.spec.ts › screencast › should throw if browser dies [fail]diff --git a/tests/bidi/expectations/moz-firefox-nightly-page.txt b/tests/bidi/expectations/moz-firefox-nightly-page.txtindex 62286cfe9a..6d25017c4c 100644--- a/tests/bidi/expectations/moz-firefox-nightly-page.txt+++ b/tests/bidi/expectations/moz-firefox-nightly-page.txt@@ -51,8 +51,8 @@ page/page-accessibility.spec.ts › should work on a menu [fail]page/page-accessibility.spec.ts › should work when there is a title [fail]page/page-accessibility.spec.ts › should work with aria-invalid accessibility tree [fail]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 popup [timeout]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-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]@@ -67,7 +67,6 @@ page/page-click.spec.ts › should click in a transformed iframe with force [faipage/page-click.spec.ts › should click the button with fixed position inside an iframe [fail]page/page-click.spec.ts › should double click the button [fail]page/page-click.spec.ts › should select the text by triple clicking [fail]-library/page-close.spec.ts › should not treat navigations as new popups [fail]page/page-drag.spec.ts › Drag and drop › should cancel on escape [fail]page/page-drag.spec.ts › Drag and drop › should respect the drop effect [fail]page/page-drag.spec.ts › Drag and drop › should send the right events [fail]@@ -103,8 +102,8 @@ page/page-history.spec.ts › goBack/goForward should work with bfcache-able pagpage/page-history.spec.ts › page.goBack should work for file urls [timeout]page/page-history.spec.ts › regression test for issue 20791 [flaky]page/page-keyboard.spec.ts › insertText should only emit input event [fail]-page/page-keyboard.spec.ts › should press audio and media control keys [fail]page/page-keyboard.spec.ts › should press Enter [fail]+page/page-keyboard.spec.ts › should press audio and media control keys [fail]page/page-keyboard.spec.ts › should send a character with insertText [fail]page/page-mouse.spec.ts › should always round down [fail]page/page-mouse.spec.ts › should dblclick the div [timeout]@@ -132,12 +131,13 @@ page/page-route.spec.ts › should be abortable with custom error codes [fail]page/page-route.spec.ts › should intercept when postData is more than 1MB [fail]page/page-route.spec.ts › should not override cookie header [timeout]page/page-route.spec.ts › should not throw if request was cancelled by the page [timeout]-page/page-screenshot.spec.ts › page screenshot › should allow transparency [fail]page/page-screenshot.spec.ts › page screenshot animations › should not capture css animations in shadow DOM [flaky]page/page-screenshot.spec.ts › page screenshot animations › should not capture pseudo element css animation [fail]+page/page-screenshot.spec.ts › page screenshot › should allow transparency [fail]page/page-set-input-files.spec.ts › should upload a folder [fail]page/page-wait-for-load-state.spec.ts › should wait for load state of about:blank popup [timeout]page/page-wait-for-load-state.spec.ts › should wait for load state of about:blank popup with noopener [timeout]+page/page-wait-for-load-state.spec.ts › should wait for load state of about:blank popup with noopener [timeout]page/page-wait-for-load-state.spec.ts › should wait for load state of empty url popup [timeout]page/wheel.spec.ts › should dispatch wheel events after popup was opened @smoke [timeout]page/workers.spec.ts › Page.workers @smoke [timeout]