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
test: add identifiers to page and library test titles (#43485)
Pavel Feldman6bbe2475ba79
diff --git a/tests/bidi/expectations/bidi-chromium-library.conf b/tests/bidi/expectations/bidi-chromium-library.confindex 537476a763..3881d3b515 100644--- a/tests/bidi/expectations/bidi-chromium-library.conf+++ b/tests/bidi/expectations/bidi-chromium-library.conf@@ -1,149 +1,149 @@-library/beforeunload.spec.ts > should access page after beforeunload [fixme]-library/beforeunload.spec.ts > should run beforeunload if asked for @smoke [fixme]-library/browser.spec.ts > version should work [fixme]-library/browsercontext-add-cookies.spec.ts > should roundtrip cookie [fixme]-library/browsercontext-add-cookies.spec.ts > should set cookie with reasonable defaults [fixme]-library/browsercontext-add-cookies.spec.ts > should set cookies with SameSite attribute and no secure attribute [fixme]-library/browsercontext-base-url.spec.ts > should construct a new URL when a baseURL in browserType.launchPersistentContext is passed to page.goto [fixme]-library/browsercontext-basic.spec.ts > fetch with keepalive should throw when offline [fixme]-library/browsercontext-basic.spec.ts > should disable javascript [fixme]-library/browsercontext-basic.spec.ts > should emulate media in cross-process iframe [fixme]-library/browsercontext-basic.spec.ts > should emulate media in popup [fixme]-library/browsercontext-basic.spec.ts > should emulate navigator.onLine [fixme]-library/browsercontext-basic.spec.ts > should emulate offline event [fixme]-library/browsercontext-basic.spec.ts > should work with offline option [fixme]-library/browsercontext-clearcookies.spec.ts > should remove cookies by domain [fixme]-library/browsercontext-clearcookies.spec.ts > should remove cookies by name [fixme]-library/browsercontext-clearcookies.spec.ts > should remove cookies by name and domain [fixme]-library/browsercontext-clearcookies.spec.ts > should remove cookies by name regex [fixme]-library/browsercontext-clearcookies.spec.ts > should remove cookies by path [fixme]-library/browsercontext-cookies-third-party.spec.ts > add 'Partitioned;' cookie via API [fixme]-library/browsercontext-cookies-third-party.spec.ts > same origin third party 'Partitioned;' cookie with different origin intermediate iframe [fixme]-library/browsercontext-cookies-third-party.spec.ts > save/load third party 'Partitioned;' cookies [fixme]-library/browsercontext-cookies-third-party.spec.ts > save/load third party non-partitioned cookies [fixme]-library/browsercontext-cookies-third-party.spec.ts > should(not) block third party cookies - persistent context [fixme]-library/browsercontext-cookies-third-party.spec.ts > third party 'Partitioned;' cookies [fixme]-library/browsercontext-cookies-third-party.spec.ts > third party non-partitioned cookies [fixme]-library/browsercontext-cookies-third-party.spec.ts > top level 'Partitioned;' cookie and same origin iframe [fixme]-library/browsercontext-cookies.spec.ts > iframe should inherit cookies from parent [fixme]-library/browsercontext-cookies.spec.ts > should get a cookie @smoke [fixme]-library/browsercontext-cookies.spec.ts > should get a non-session cookie [fixme]-library/browsercontext-cookies.spec.ts > should get multiple cookies [fixme]-library/browsercontext-cookies.spec.ts > should parse cookie with large Max-Age correctly [fixme]-library/browsercontext-credentials.spec.ts > should fail with correct credentials and mismatching hostname [fixme]-library/browsercontext-credentials.spec.ts > should fail with correct credentials and mismatching port [fixme]-library/browsercontext-credentials.spec.ts > should fail with correct credentials and mismatching scheme [fixme]-library/browsercontext-credentials.spec.ts > should work with setHTTPCredentials [fixme]-library/browsercontext-csp.spec.ts > should bypass after cross-process navigation [fixme]-library/browsercontext-csp.spec.ts > should bypass CSP header [fixme]-library/browsercontext-csp.spec.ts > should bypass CSP in iframes as well [fixme]-library/browsercontext-csp.spec.ts > should bypass CSP meta tag @smoke [fixme]-library/browsercontext-events.spec.ts > console event should work in immediately closed popup [fixme]-library/browsercontext-events.spec.ts > console event should work in popup 2 [fixme]-library/browsercontext-events.spec.ts > console event should work with element handles [fixme]-library/browsercontext-events.spec.ts > dialog event should work in immediately closed popup [fixme]-library/browsercontext-events.spec.ts > dialog event should work in popup [fixme]-library/browsercontext-events.spec.ts > dialog event should work in popup 2 [fixme]-library/browsercontext-events.spec.ts > dialog event should work with inline script tag [fixme]-library/browsercontext-events.spec.ts > weberror event should work [fixme]-library/browsercontext-fetch.spec.ts > should work with connectOverCDP [fixme]-library/browsercontext-har.spec.ts > should change document URL after redirected navigation [fixme]-library/browsercontext-har.spec.ts > should goBack to redirected navigation [fixme]-library/browsercontext-har.spec.ts > should goForward to redirected navigation [fixme]-library/browsercontext-har.spec.ts > should record overridden requests to har [fixme]-library/browsercontext-har.spec.ts > should reload redirected navigation [fixme]-library/browsercontext-har.spec.ts > should round-trip har with postData [fixme]-library/browsercontext-locale.spec.ts > should format number in popups [fixme]+library/beforeunload.spec.ts > BU-006 should access page after beforeunload [fixme]+library/beforeunload.spec.ts > BU-005 should run beforeunload if asked for @smoke [fixme]+library/browser.spec.ts > BR-004 version should work [fixme]+library/browsercontext-add-cookies.spec.ts > CO-023 should roundtrip cookie [fixme]+library/browsercontext-add-cookies.spec.ts > CO-032 should set cookie with reasonable defaults [fixme]+library/browsercontext-add-cookies.spec.ts > CO-022 should set cookies with SameSite attribute and no secure attribute [fixme]+library/browsercontext-base-url.spec.ts > NA-091 should construct a new URL when a baseURL in browserType.launchPersistentContext is passed to page.goto [fixme]+library/browsercontext-basic.spec.ts > BC-024 fetch with keepalive should throw when offline [fixme]+library/browsercontext-basic.spec.ts > BC-018 should disable javascript [fixme]+library/browsercontext-basic.spec.ts > BC-029 should emulate media in cross-process iframe [fixme]+library/browsercontext-basic.spec.ts > BC-028 should emulate media in popup [fixme]+library/browsercontext-basic.spec.ts > BC-025 should emulate navigator.onLine [fixme]+library/browsercontext-basic.spec.ts > BC-027 should emulate offline event [fixme]+library/browsercontext-basic.spec.ts > BC-023 should work with offline option [fixme]+library/browsercontext-clearcookies.spec.ts > CO-046 should remove cookies by domain [fixme]+library/browsercontext-clearcookies.spec.ts > CO-044 should remove cookies by name [fixme]+library/browsercontext-clearcookies.spec.ts > CO-048 should remove cookies by name and domain [fixme]+library/browsercontext-clearcookies.spec.ts > CO-045 should remove cookies by name regex [fixme]+library/browsercontext-clearcookies.spec.ts > CO-047 should remove cookies by path [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-056 add 'Partitioned;' cookie via API [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-057 same origin third party 'Partitioned;' cookie with different origin intermediate iframe [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-055 save/load third party 'Partitioned;' cookies [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-053 save/load third party non-partitioned cookies [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-060 should(not) block third party cookies - persistent context [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-054 third party 'Partitioned;' cookies [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-052 third party non-partitioned cookies [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-058 top level 'Partitioned;' cookie and same origin iframe [fixme]+library/browsercontext-cookies.spec.ts > CO-018 iframe should inherit cookies from parent [fixme]+library/browsercontext-cookies.spec.ts > CO-002 should get a cookie @smoke [fixme]+library/browsercontext-cookies.spec.ts > CO-003 should get a non-session cookie [fixme]+library/browsercontext-cookies.spec.ts > CO-008 should get multiple cookies [fixme]+library/browsercontext-cookies.spec.ts > CO-017 should parse cookie with large Max-Age correctly [fixme]+library/browsercontext-credentials.spec.ts > AU-014 should fail with correct credentials and mismatching hostname [fixme]+library/browsercontext-credentials.spec.ts > AU-015 should fail with correct credentials and mismatching port [fixme]+library/browsercontext-credentials.spec.ts > AU-013 should fail with correct credentials and mismatching scheme [fixme]+library/browsercontext-credentials.spec.ts > AU-002 should work with setHTTPCredentials [fixme]+library/browsercontext-csp.spec.ts > CS-003 should bypass after cross-process navigation [fixme]+library/browsercontext-csp.spec.ts > CS-002 should bypass CSP header [fixme]+library/browsercontext-csp.spec.ts > CS-004 should bypass CSP in iframes as well [fixme]+library/browsercontext-csp.spec.ts > CS-001 should bypass CSP meta tag @smoke [fixme]+library/browsercontext-events.spec.ts > BC-036 console event should work in immediately closed popup [fixme]+library/browsercontext-events.spec.ts > BC-035 console event should work in popup 2 [fixme]+library/browsercontext-events.spec.ts > BC-033 console event should work with element handles [fixme]+library/browsercontext-events.spec.ts > BC-041 dialog event should work in immediately closed popup [fixme]+library/browsercontext-events.spec.ts > BC-039 dialog event should work in popup [fixme]+library/browsercontext-events.spec.ts > BC-040 dialog event should work in popup 2 [fixme]+library/browsercontext-events.spec.ts > BC-042 dialog event should work with inline script tag [fixme]+library/browsercontext-events.spec.ts > BC-043 weberror event should work [fixme]+library/browsercontext-fetch.spec.ts > FE-169 should work with connectOverCDP [fixme]+library/browsercontext-har.spec.ts > HA-079 should change document URL after redirected navigation [fixme]+library/browsercontext-har.spec.ts > HA-081 should goBack to redirected navigation [fixme]+library/browsercontext-har.spec.ts > HA-082 should goForward to redirected navigation [fixme]+library/browsercontext-har.spec.ts > HA-089 should record overridden requests to har [fixme]+library/browsercontext-har.spec.ts > HA-083 should reload redirected navigation [fixme]+library/browsercontext-har.spec.ts > HA-088 should round-trip har with postData [fixme]+library/browsercontext-locale.spec.ts > LC-005 should format number in popups [fixme]library/browsercontext-locale.spec.ts > should format number in workers [fixme]-library/browsercontext-network-event.spec.ts > BrowserContext.Events.Request [fixme]-library/browsercontext-network-event.spec.ts > BrowserContext.Events.Response [fixme]-library/browsercontext-page-event.spec.ts > should have about:blank for empty url with domcontentloaded [fixme]-library/browsercontext-page-event.spec.ts > should have about:blank url with domcontentloaded [fixme]-library/browsercontext-page-event.spec.ts > should have an opener [fixme]-library/browsercontext-page-event.spec.ts > should have url [fixme]+library/browsercontext-network-event.spec.ts > NE-121 BrowserContext.Events.Request [fixme]+library/browsercontext-network-event.spec.ts > NE-122 BrowserContext.Events.Response [fixme]+library/browsercontext-page-event.spec.ts > BC-065 should have about:blank for empty url with domcontentloaded [fixme]+library/browsercontext-page-event.spec.ts > BC-064 should have about:blank url with domcontentloaded [fixme]+library/browsercontext-page-event.spec.ts > BC-069 should have an opener [fixme]+library/browsercontext-page-event.spec.ts > BC-062 should have url [fixme]library/browsercontext-page-event.spec.ts > should not hang on ctrl-click during provisional load [fixme]-library/browsercontext-page-event.spec.ts > should report when a new page is created and closed [fixme]-library/browsercontext-proxy.spec.ts > should proxy local network requests > by default > link-local [fixme]-library/browsercontext-proxy.spec.ts > should proxy local network requests > with other bypasses > link-local [fixme]-library/browsercontext-proxy.spec.ts > should proxy local network requests > with other bypasses > localhost [fixme]-library/browsercontext-proxy.spec.ts > should proxy local network requests > with other bypasses > loopback address [fixme]-library/browsercontext-proxy.spec.ts > should use proxy for https urls [fixme]-library/browsercontext-reuse.spec.ts > reuse connect > should continue issuing events after closing the reused page [fixme]-library/browsercontext-reuse.spec.ts > reuse connect > should not cache resources [fixme]-library/browsercontext-reuse.spec.ts > reuse connect > should re-add binding after reset [fixme]-library/browsercontext-reuse.spec.ts > reuse connect > should reset mouse position [fixme]-library/browsercontext-reuse.spec.ts > reuse connect > should update viewport and media [fixme]-library/browsercontext-reuse.spec.ts > reuse connect > should work with routeWebSocket [fixme]-library/browsercontext-reuse.spec.ts > reuse launch > should continue issuing events after closing the reused page [fixme]-library/browsercontext-reuse.spec.ts > reuse launch > should not cache resources [fixme]-library/browsercontext-reuse.spec.ts > reuse launch > should reset mouse position [fixme]-library/browsercontext-reuse.spec.ts > reuse launch > should update viewport and media [fixme]-library/browsercontext-route.spec.ts > should support Set-Cookie header [fixme]-library/browsercontext-route.spec.ts > should use Set-Cookie header in future requests [fixme]-library/browsercontext-service-worker-policy.spec.ts > block > blocks service worker registration [fixme]-library/browsercontext-set-extra-http-headers.spec.ts > should override extra headers from browser context [fixme]-library/browsercontext-storage-state.spec.ts > should capture cookies [fixme]-library/browsercontext-storage-state.spec.ts > should round-trip through the file [fixme]-library/browsercontext-user-agent.spec.ts > custom user agent for download [fixme]-library/browsercontext-user-agent.spec.ts > should work for navigator.userAgentData and sec-ch-ua headers [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > default mobile viewports to 980 width [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > should emulate the hover media feature [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > should fire orientationchange event [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > should preserve window.orientation override after navigation [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > should support touch emulation [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > should support window.orientation emulation [fixme]-library/browsercontext-viewport.spec.ts > should support touch with null viewport [fixme]-library/browsertype-connect.spec.ts > launchServer > disconnected event should be emitted when browser is closed or server is closed [fixme]-library/browsertype-connect.spec.ts > launchServer > disconnected event should have browser as argument [fixme]-library/browsertype-connect.spec.ts > launchServer > setInputFiles should preserve lastModified timestamp [fixme]-library/browsertype-connect.spec.ts > launchServer > should be able to connect 20 times to a single server without warnings [fixme]-library/browsertype-connect.spec.ts > launchServer > should be able to connect two browsers at the same time [fixme]-library/browsertype-connect.spec.ts > launchServer > should be able to connect when the wsEndpoint is passed as an option [fixme]-library/browsertype-connect.spec.ts > launchServer > should be able to reconnect to a browser [fixme]-library/browsertype-connect.spec.ts > launchServer > should be able to visit ipv6 [fixme]-library/browsertype-connect.spec.ts > launchServer > should be able to visit ipv6 through localhost [fixme]-library/browsertype-connect.spec.ts > launchServer > should connect over http [fixme]-library/browsertype-connect.spec.ts > launchServer > should connect over wss [fixme]-library/browsertype-connect.spec.ts > launchServer > should emit close events on pages and contexts [fixme]-library/browsertype-connect.spec.ts > launchServer > should error when saving download after deletion [fixme]-library/browsertype-connect.spec.ts > launchServer > should filter launch options [fixme]-library/browsertype-connect.spec.ts > launchServer > should fulfill with global fetch result [fixme]-library/browsertype-connect.spec.ts > launchServer > should handle exceptions during connect [fixme]-library/browsertype-connect.spec.ts > launchServer > should ignore page.pause when headed [fixme]-library/browsertype-connect.spec.ts > launchServer > should not throw on close after disconnect [fixme]-library/browsertype-connect.spec.ts > launchServer > should properly disconnect when connection closes from the client side [fixme]-library/browsertype-connect.spec.ts > launchServer > should record trace with sources [fixme]-library/browsertype-connect.spec.ts > launchServer > should reject navigation when browser closes [fixme]-library/browsertype-connect.spec.ts > launchServer > should reject waitForEvent before browser.close finishes [fixme]-library/browsertype-connect.spec.ts > launchServer > should reject waitForEvent before browser.onDisconnect fires [fixme]-library/browsertype-connect.spec.ts > launchServer > should reject waitForSelector when browser closes [fixme]-library/browsertype-connect.spec.ts > launchServer > should respect selectors [fixme]-library/browsertype-connect.spec.ts > launchServer > should save download [fixme]-library/browsertype-connect.spec.ts > launchServer > should save har [fixme]-library/browsertype-connect.spec.ts > launchServer > should saveAs videos from remote browser [fixme]-library/browsertype-connect.spec.ts > launchServer > should set the browser connected state [fixme]-library/browsertype-connect.spec.ts > launchServer > should support slowmo option [fixme]-library/browsertype-connect.spec.ts > launchServer > should terminate network waiters [fixme]-library/browsertype-connect.spec.ts > launchServer > should throw when calling waitForNavigation after disconnect [fixme]-library/browsertype-connect.spec.ts > launchServer > should throw when used after isConnected returns false [fixme]-library/browsertype-connect.spec.ts > launchServer > should upload large file [fixme]-library/browsertype-connect.spec.ts > launchServer only > should be able to reconnect to a browser 12 times without warnings [fixme]-library/browsertype-connect.spec.ts > launchServer only > should properly disconnect when connection closes from the server side [fixme]-library/browsertype-connect.spec.ts > launchServer only > should work with cluster [fixme]-library/browsertype-connect.spec.ts > run-server > should error when saving download after deletion [fixme]-library/browsertype-connect.spec.ts > run-server > should save download [fixme]-library/browsertype-connect.spec.ts > run-server > should saveAs videos from remote browser [fixme]-library/browsertype-connect.spec.ts > run-server > socks proxy > should lead to the error page for forwarded requests when the connection is refused [fixme]+library/browsercontext-page-event.spec.ts > BC-066 should report when a new page is created and closed [fixme]+library/browsercontext-proxy.spec.ts > should proxy local network requests > by default > PR-024 link-local [fixme]+library/browsercontext-proxy.spec.ts > should proxy local network requests > with other bypasses > PR-024 link-local [fixme]+library/browsercontext-proxy.spec.ts > should proxy local network requests > with other bypasses > PR-024 localhost [fixme]+library/browsercontext-proxy.spec.ts > should proxy local network requests > with other bypasses > PR-024 loopback address [fixme]+library/browsercontext-proxy.spec.ts > PR-028 should use proxy for https urls [fixme]+library/browsercontext-reuse.spec.ts > reuse connect > BC-081 should continue issuing events after closing the reused page [fixme]+library/browsercontext-reuse.spec.ts > reuse connect > BC-076 should not cache resources [fixme]+library/browsercontext-reuse.spec.ts > reuse connect > BC-073 should re-add binding after reset [fixme]+library/browsercontext-reuse.spec.ts > reuse connect > BC-078 should reset mouse position [fixme]+library/browsercontext-reuse.spec.ts > reuse connect > BC-083 should update viewport and media [fixme]+library/browsercontext-reuse.spec.ts > reuse connect > BC-082 should work with routeWebSocket [fixme]+library/browsercontext-reuse.spec.ts > reuse launch > BC-081 should continue issuing events after closing the reused page [fixme]+library/browsercontext-reuse.spec.ts > reuse launch > BC-076 should not cache resources [fixme]+library/browsercontext-reuse.spec.ts > reuse launch > BC-078 should reset mouse position [fixme]+library/browsercontext-reuse.spec.ts > reuse launch > BC-083 should update viewport and media [fixme]+library/browsercontext-route.spec.ts > RO-169 should support Set-Cookie header [fixme]+library/browsercontext-route.spec.ts > RO-171 should use Set-Cookie header in future requests [fixme]+library/browsercontext-service-worker-policy.spec.ts > block > WO-029 blocks service worker registration [fixme]+library/browsercontext-set-extra-http-headers.spec.ts > NE-119 should override extra headers from browser context [fixme]+library/browsercontext-storage-state.spec.ts > ST-006 should capture cookies [fixme]+library/browsercontext-storage-state.spec.ts > ST-004 should round-trip through the file [fixme]+library/browsercontext-user-agent.spec.ts > UA-005 custom user agent for download [fixme]+library/browsercontext-user-agent.spec.ts > UA-006 should work for navigator.userAgentData and sec-ch-ua headers [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-020 default mobile viewports to 980 width [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-022 should emulate the hover media feature [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-019 should fire orientationchange event [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-017 should preserve window.orientation override after navigation [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-012 should support touch emulation [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-016 should support window.orientation emulation [fixme]+library/browsercontext-viewport.spec.ts > VP-010 should support touch with null viewport [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-050 disconnected event should be emitted when browser is closed or server is closed [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-051 disconnected event should have browser as argument [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-078 setInputFiles should preserve lastModified timestamp [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-067 should be able to connect 20 times to a single server without warnings [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-043 should be able to connect two browsers at the same time [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-071 should be able to connect when the wsEndpoint is passed as an option [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-038 should be able to reconnect to a browser [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-040 should be able to visit ipv6 [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-042 should be able to visit ipv6 through localhost [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-079 should connect over http [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-034 should connect over wss [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-058 should emit close events on pages and contexts [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-069 should error when saving download after deletion [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-073 should filter launch options [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-075 should fulfill with global fetch result [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-052 should handle exceptions during connect [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-041 should ignore page.pause when headed [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-063 should not throw on close after disconnect [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-070 should properly disconnect when connection closes from the client side [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-074 should record trace with sources [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-056 should reject navigation when browser closes [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-060 should reject waitForEvent before browser.close finishes [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-061 should reject waitForEvent before browser.onDisconnect fires [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-057 should reject waitForSelector when browser closes [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-062 should respect selectors [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-068 should save download [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-072 should save har [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-064 should saveAs videos from remote browser [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-053 should set the browser connected state [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-049 should support slowmo option [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-059 should terminate network waiters [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-055 should throw when calling waitForNavigation after disconnect [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-054 should throw when used after isConnected returns false [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-076 should upload large file [fixme]+library/browsertype-connect.spec.ts > launchServer only > BT-091 should be able to reconnect to a browser 12 times without warnings [fixme]+library/browsertype-connect.spec.ts > launchServer only > BT-090 should properly disconnect when connection closes from the server side [fixme]+library/browsertype-connect.spec.ts > launchServer only > BT-089 should work with cluster [fixme]+library/browsertype-connect.spec.ts > run-server > BT-069 should error when saving download after deletion [fixme]+library/browsertype-connect.spec.ts > run-server > BT-068 should save download [fixme]+library/browsertype-connect.spec.ts > run-server > BT-064 should saveAs videos from remote browser [fixme]+library/browsertype-connect.spec.ts > run-server > socks proxy > BT-086 should lead to the error page for forwarded requests when the connection is refused [fixme]library/browsertype-launch.spec.ts > should handle exception [fixme]-library/browsertype-launch.spec.ts > should handle timeout [fixme]-library/browsertype-launch.spec.ts > should reject all promises when browser is closed [fixme]-library/browsertype-launch.spec.ts > should reject if launched browser fails immediately [fixme]+library/browsertype-launch.spec.ts > BT-012 should handle timeout [fixme]+library/browsertype-launch.spec.ts > BT-004 should reject all promises when browser is closed [fixme]+library/browsertype-launch.spec.ts > BT-010 should reject if launched browser fails immediately [fixme]library/browsertype-launch.spec.ts > should report launch log [fixme]-library/channels.spec.ts > should scope CDPSession handles [fixme]-library/channels.spec.ts > should work with the domain module [fixme]-library/chromium/bfcache.spec.ts > bindings should work after restoring from bfcache [fixme]-library/chromium/chromium.spec.ts > http credentials > httpCredentials [fixme]-library/chromium/chromium.spec.ts > PLAYWRIGHT_DISABLE_SERVICE_WORKER_NETWORK [fixme]+library/channels.spec.ts > CN-002 should scope CDPSession handles [fixme]+library/channels.spec.ts > CN-005 should work with the domain module [fixme]+library/chromium/bfcache.spec.ts > CR-042 bindings should work after restoring from bfcache [fixme]+library/chromium/chromium.spec.ts > http credentials > CR-004 httpCredentials [fixme]+library/chromium/chromium.spec.ts > CR-024 PLAYWRIGHT_DISABLE_SERVICE_WORKER_NETWORK [fixme]library/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 > serviceWorker(), and fromServiceWorker() work [fixme]library/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 > setExtraHTTPHeaders [fixme]library/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 > setOffline [fixme]@@ -155,483 +155,483 @@ library/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTlibrary/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 > should report failure (due to content-type) of main service worker request [fixme]library/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 > should report failure (due to redirect) of main service worker request [fixme]library/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 > should report intercepted service worker requests in HAR [fixme]-library/chromium/chromium.spec.ts > serviceWorker(), and fromServiceWorker() work [fixme]-library/chromium/chromium.spec.ts > serviceWorkers() should return current workers [fixme]-library/chromium/chromium.spec.ts > setExtraHTTPHeaders [fixme]-library/chromium/chromium.spec.ts > setOffline [fixme]-library/chromium/chromium.spec.ts > should capture console.log from ServiceWorker start [fixme]-library/chromium/chromium.spec.ts > should close service worker together with the context [fixme]-library/chromium/chromium.spec.ts > should create a worker from a service worker [fixme]-library/chromium/chromium.spec.ts > should create a worker from service worker with noop routing [fixme]-library/chromium/chromium.spec.ts > should emit console messages from service worker [fixme]-library/chromium/chromium.spec.ts > should emit new service worker on update [fixme]-library/chromium/chromium.spec.ts > should intercept only serviceworker request, not page [fixme]-library/chromium/chromium.spec.ts > should intercept service worker importScripts [fixme]-library/chromium/chromium.spec.ts > should intercept service worker requests (main and within) [fixme]-library/chromium/chromium.spec.ts > should pass args with spaces [fixme]-library/chromium/chromium.spec.ts > should produce network events, routing, and annotations for Service Worker (advanced) [fixme]-library/chromium/chromium.spec.ts > should produce network events, routing, and annotations for Service Worker [fixme]-library/chromium/chromium.spec.ts > should report failure (due to content-type) of main service worker request [fixme]-library/chromium/chromium.spec.ts > should report failure (due to redirect) of main service worker request [fixme]-library/chromium/chromium.spec.ts > should report intercepted service worker requests in HAR [fixme]-library/chromium/chromium.spec.ts > should throw when connecting twice to an already running persistent context (--remote-debugging-pipe) [fixme]-library/chromium/chromium.spec.ts > should throw when connecting twice to an already running persistent context (--remote-debugging-port) [fixme]-library/chromium/connect-over-cdp.spec.ts > setInputFiles should preserve lastModified timestamp [fixme]-library/chromium/connect-over-cdp.spec.ts > setInputFiles should use local path when isLocal is set [fixme]-library/chromium/connect-over-cdp.spec.ts > should allow tracing over cdp session [fixme]-library/chromium/connect-over-cdp.spec.ts > should be able to connect via localhost [fixme]-library/chromium/connect-over-cdp.spec.ts > should cleanup artifacts dir after connectOverCDP disconnects due to ws close [fixme]-library/chromium/connect-over-cdp.spec.ts > should connect over a ws endpoint [fixme]-library/chromium/connect-over-cdp.spec.ts > should connect to an existing cdp session [fixme]-library/chromium/connect-over-cdp.spec.ts > should connect to an existing cdp session twice [fixme]-library/chromium/connect-over-cdp.spec.ts > should connect to an existing cdp session when passed as a first argument [fixme]-library/chromium/connect-over-cdp.spec.ts > should connect to existing page with iframe and navigate [fixme]-library/chromium/connect-over-cdp.spec.ts > should connect to existing service workers [fixme]-library/chromium/connect-over-cdp.spec.ts > should connect via https [fixme]-library/chromium/connect-over-cdp.spec.ts > should connectOverCDP and manage downloads in default context [fixme]-library/chromium/connect-over-cdp.spec.ts > should not reuse utility worlds between two clients [fixme]-library/chromium/connect-over-cdp.spec.ts > should report all pages in an existing browser [fixme]-library/chromium/connect-over-cdp.spec.ts > should return valid browser from context.browser() [fixme]-library/chromium/connect-over-cdp.spec.ts > should send default User-Agent header with connect request [fixme]-library/chromium/connect-over-cdp.spec.ts > should send extra headers with connect request [fixme]+library/chromium/chromium.spec.ts > CR-010 serviceWorker(), and fromServiceWorker() work [fixme]+library/chromium/chromium.spec.ts > CR-005 serviceWorkers() should return current workers [fixme]+library/chromium/chromium.spec.ts > CR-021 setExtraHTTPHeaders [fixme]+library/chromium/chromium.spec.ts > CR-020 setOffline [fixme]+library/chromium/chromium.spec.ts > CR-026 should capture console.log from ServiceWorker start [fixme]+library/chromium/chromium.spec.ts > CR-008 should close service worker together with the context [fixme]+library/chromium/chromium.spec.ts > CR-001 should create a worker from a service worker [fixme]+library/chromium/chromium.spec.ts > CR-002 should create a worker from service worker with noop routing [fixme]+library/chromium/chromium.spec.ts > CR-025 should emit console messages from service worker [fixme]+library/chromium/chromium.spec.ts > CR-003 should emit new service worker on update [fixme]+library/chromium/chromium.spec.ts > CR-016 should intercept only serviceworker request, not page [fixme]+library/chromium/chromium.spec.ts > CR-014 should intercept service worker importScripts [fixme]+library/chromium/chromium.spec.ts > CR-011 should intercept service worker requests (main and within) [fixme]+library/chromium/chromium.spec.ts > CR-009 should pass args with spaces [fixme]+library/chromium/chromium.spec.ts > CR-018 should produce network events, routing, and annotations for Service Worker (advanced) [fixme]+library/chromium/chromium.spec.ts > CR-017 should produce network events, routing, and annotations for Service Worker [fixme]+library/chromium/chromium.spec.ts > CR-012 should report failure (due to content-type) of main service worker request [fixme]+library/chromium/chromium.spec.ts > CR-013 should report failure (due to redirect) of main service worker request [fixme]+library/chromium/chromium.spec.ts > CR-015 should report intercepted service worker requests in HAR [fixme]+library/chromium/chromium.spec.ts > CR-023 should throw when connecting twice to an already running persistent context (--remote-debugging-pipe) [fixme]+library/chromium/chromium.spec.ts > CR-022 should throw when connecting twice to an already running persistent context (--remote-debugging-port) [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-029 setInputFiles should preserve lastModified timestamp [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-030 setInputFiles should use local path when isLocal is set [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-028 should allow tracing over cdp session [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-026 should be able to connect via localhost [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-005 should cleanup artifacts dir after connectOverCDP disconnects due to ws close [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-012 should connect over a ws endpoint [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-001 should connect to an existing cdp session [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-009 should connect to an existing cdp session twice [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-022 should connect to an existing cdp session when passed as a first argument [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-010 should connect to existing page with iframe and navigate [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-011 should connect to existing service workers [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-018 should connect via https [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-008 should connectOverCDP and manage downloads in default context [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-032 should not reuse utility worlds between two clients [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-017 should report all pages in an existing browser [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-019 should return valid browser from context.browser() [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-016 should send default User-Agent header with connect request [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-013 should send extra headers with connect request [fixme]library/chromium/connect-over-cdp.spec.ts > should use logger in default context [fixme]-library/chromium/connect-over-cdp.spec.ts > should use proxy with connectOverCDP [fixme]-library/chromium/css-coverage.spec.ts > should ignore injected stylesheets [fixme]-library/chromium/css-coverage.spec.ts > should NOT report scripts across navigations [fixme]-library/chromium/css-coverage.spec.ts > should report multiple stylesheets [fixme]-library/chromium/css-coverage.spec.ts > should report sourceURLs [fixme]-library/chromium/css-coverage.spec.ts > should report stylesheets across navigations [fixme]-library/chromium/css-coverage.spec.ts > should report stylesheets that have no coverage [fixme]-library/chromium/css-coverage.spec.ts > should work [fixme]-library/chromium/css-coverage.spec.ts > should work with a recently loaded stylesheet [fixme]-library/chromium/css-coverage.spec.ts > should work with complicated usecases [fixme]-library/chromium/css-coverage.spec.ts > should work with media queries [fixme]-library/chromium/disable-web-security.spec.ts > test utility world in popup w/ --disable-web-security [fixme]-library/chromium/extensions.spec.ts > MV3 > should give access to the service worker [fixme]-library/chromium/extensions.spec.ts > MV3 > should give access to the service worker when recording video [fixme]-library/chromium/extensions.spec.ts > MV3 > should report console messages from content script [fixme]-library/chromium/extensions.spec.ts > MV3 > should support request/response events in the service worker [fixme]-library/chromium/js-coverage.spec.ts > should ignore eval() scripts by default [fixme]-library/chromium/js-coverage.spec.ts > should not hang when there is a debugger statement [fixme]-library/chromium/js-coverage.spec.ts > should NOT report scripts across navigations when enabled [fixme]-library/chromium/js-coverage.spec.ts > should report multiple scripts [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-023 should use proxy with connectOverCDP [fixme]+library/chromium/css-coverage.spec.ts > CV-014 should ignore injected stylesheets [fixme]+library/chromium/css-coverage.spec.ts > CV-016 should NOT report scripts across navigations [fixme]+library/chromium/css-coverage.spec.ts > CV-010 should report multiple stylesheets [fixme]+library/chromium/css-coverage.spec.ts > CV-009 should report sourceURLs [fixme]+library/chromium/css-coverage.spec.ts > CV-015 should report stylesheets across navigations [fixme]+library/chromium/css-coverage.spec.ts > CV-011 should report stylesheets that have no coverage [fixme]+library/chromium/css-coverage.spec.ts > CV-008 should work [fixme]+library/chromium/css-coverage.spec.ts > CV-017 should work with a recently loaded stylesheet [fixme]+library/chromium/css-coverage.spec.ts > CV-013 should work with complicated usecases [fixme]+library/chromium/css-coverage.spec.ts > CV-012 should work with media queries [fixme]+library/chromium/disable-web-security.spec.ts > CR-045 test utility world in popup w/ --disable-web-security [fixme]+library/chromium/extensions.spec.ts > MV3 > CR-037 should give access to the service worker [fixme]+library/chromium/extensions.spec.ts > MV3 > CR-038 should give access to the service worker when recording video [fixme]+library/chromium/extensions.spec.ts > MV3 > CR-040 should report console messages from content script [fixme]+library/chromium/extensions.spec.ts > MV3 > CR-039 should support request/response events in the service worker [fixme]+library/chromium/js-coverage.spec.ts > CV-003 should ignore eval() scripts by default [fixme]+library/chromium/js-coverage.spec.ts > CV-007 should not hang when there is a debugger statement [fixme]+library/chromium/js-coverage.spec.ts > CV-006 should NOT report scripts across navigations when enabled [fixme]+library/chromium/js-coverage.spec.ts > CV-005 should report multiple scripts [fixme]library/chromium/js-coverage.spec.ts > should report scripts across navigations when disabled [fixme]-library/chromium/js-coverage.spec.ts > should report sourceURLs [fixme]-library/chromium/js-coverage.spec.ts > should work [fixme]-library/chromium/js-coverage.spec.ts > shouldn't ignore eval() scripts if reportAnonymousScripts is true [fixme]-library/chromium/launcher.spec.ts > should not create pages automatically [fixme]-library/chromium/oopif.spec.ts > contentFrame should work [fixme]-library/chromium/oopif.spec.ts > ElementHandle.boundingBox() should work [fixme]-library/chromium/oopif.spec.ts > should allow cdp sessions on oopifs [fixme]-library/chromium/oopif.spec.ts > should allow to re-connect to OOPIFs with CDP when iframes were there already [fixme]-library/chromium/oopif.spec.ts > should be able to click in iframe [fixme]-library/chromium/oopif.spec.ts > should click [fixme]-library/chromium/oopif.spec.ts > should click a button when it overlays oopif [fixme]-library/chromium/oopif.spec.ts > should emit filechooser event for iframe [fixme]-library/chromium/oopif.spec.ts > should emulate media [fixme]-library/chromium/oopif.spec.ts > should emulate offline [fixme]-library/chromium/oopif.spec.ts > should expose function [fixme]-library/chromium/oopif.spec.ts > should handle oopif detach [fixme]-library/chromium/oopif.spec.ts > should handle remote -> local -> remote transitions [fixme]-library/chromium/oopif.spec.ts > should load oopif iframes with subresources and route [fixme]-library/chromium/oopif.spec.ts > should not throw on exposeFunction when oopif detaches [fixme]-library/chromium/oopif.spec.ts > should report google.com frame with headed [fixme]-library/chromium/oopif.spec.ts > should report main requests [fixme]-library/chromium/oopif.spec.ts > should report oopif frames [fixme]-library/chromium/oopif.spec.ts > should respect route [fixme]-library/chromium/oopif.spec.ts > should support addInitScript [fixme]-library/chromium/oopif.spec.ts > should support context options [fixme]-library/chromium/oopif.spec.ts > should support exposeFunction [fixme]-library/chromium/oopif.spec.ts > should take screenshot [fixme]-library/chromium/session.spec.ts > should be able to detach session [fixme]-library/chromium/session.spec.ts > should detach when page closes [fixme]-library/chromium/session.spec.ts > should enable and disable domains independently [fixme]-library/chromium/session.spec.ts > should not break page.close() [fixme]-library/chromium/session.spec.ts > should reject protocol calls when page closes [fixme]-library/chromium/session.spec.ts > should send events [fixme]-library/chromium/session.spec.ts > should throw if target is part of main [fixme]-library/chromium/session.spec.ts > should throw nice errors [fixme]-library/chromium/session.spec.ts > should work [fixme]-library/chromium/session.spec.ts > should work with main frame [fixme]-library/chromium/session.spec.ts > should work with newBrowserCDPSession [fixme]-library/chromium/tracing.spec.ts > should create directories as needed [fixme]-library/chromium/tracing.spec.ts > should output a trace [fixme]-library/chromium/tracing.spec.ts > should return a buffer [fixme]-library/chromium/tracing.spec.ts > should run with custom categories if provided [fixme]-library/chromium/tracing.spec.ts > should support a buffer without a path [fixme]-library/chromium/tracing.spec.ts > should throw if tracing on two pages [fixme]-library/chromium/tracing.spec.ts > should work without options [fixme]-library/client-certificates.spec.ts > browser > persistentContext > should pass with matching certificates [fixme]+library/chromium/js-coverage.spec.ts > CV-002 should report sourceURLs [fixme]+library/chromium/js-coverage.spec.ts > CV-001 should work [fixme]+library/chromium/js-coverage.spec.ts > CV-004 shouldn't ignore eval() scripts if reportAnonymousScripts is true [fixme]+library/chromium/launcher.spec.ts > CR-035 should not create pages automatically [fixme]+library/chromium/oopif.spec.ts > OO-021 contentFrame should work [fixme]+library/chromium/oopif.spec.ts > OO-019 ElementHandle.boundingBox() should work [fixme]+library/chromium/oopif.spec.ts > OO-022 should allow cdp sessions on oopifs [fixme]+library/chromium/oopif.spec.ts > OO-028 should allow to re-connect to OOPIFs with CDP when iframes were there already [fixme]+library/chromium/oopif.spec.ts > OO-024 should be able to click in iframe [fixme]+library/chromium/oopif.spec.ts > OO-020 should click [fixme]+library/chromium/oopif.spec.ts > OO-017 should click a button when it overlays oopif [fixme]+library/chromium/oopif.spec.ts > OO-023 should emit filechooser event for iframe [fixme]+library/chromium/oopif.spec.ts > OO-008 should emulate media [fixme]+library/chromium/oopif.spec.ts > OO-009 should emulate offline [fixme]+library/chromium/oopif.spec.ts > OO-007 should expose function [fixme]+library/chromium/oopif.spec.ts > OO-002 should handle oopif detach [fixme]+library/chromium/oopif.spec.ts > OO-005 should handle remote -> local -> remote transitions [fixme]+library/chromium/oopif.spec.ts > OO-013 should load oopif iframes with subresources and route [fixme]+library/chromium/oopif.spec.ts > OO-025 should not throw on exposeFunction when oopif detaches [fixme]+library/chromium/oopif.spec.ts > OO-018 should report google.com frame with headed [fixme]+library/chromium/oopif.spec.ts > OO-014 should report main requests [fixme]+library/chromium/oopif.spec.ts > OO-001 should report oopif frames [fixme]+library/chromium/oopif.spec.ts > OO-011 should respect route [fixme]+library/chromium/oopif.spec.ts > OO-016 should support addInitScript [fixme]+library/chromium/oopif.spec.ts > OO-010 should support context options [fixme]+library/chromium/oopif.spec.ts > OO-015 should support exposeFunction [fixme]+library/chromium/oopif.spec.ts > OO-012 should take screenshot [fixme]+library/chromium/session.spec.ts > CD-042 should be able to detach session [fixme]+library/chromium/session.spec.ts > CD-047 should detach when page closes [fixme]+library/chromium/session.spec.ts > CD-041 should enable and disable domains independently [fixme]+library/chromium/session.spec.ts > CD-046 should not break page.close() [fixme]+library/chromium/session.spec.ts > CD-048 should reject protocol calls when page closes [fixme]+library/chromium/session.spec.ts > CD-039 should send events [fixme]+library/chromium/session.spec.ts > CD-045 should throw if target is part of main [fixme]+library/chromium/session.spec.ts > CD-043 should throw nice errors [fixme]+library/chromium/session.spec.ts > CD-037 should work [fixme]+library/chromium/session.spec.ts > CD-044 should work with main frame [fixme]+library/chromium/session.spec.ts > CD-052 should work with newBrowserCDPSession [fixme]+library/chromium/tracing.spec.ts > TR-044 should create directories as needed [fixme]+library/chromium/tracing.spec.ts > TR-043 should output a trace [fixme]+library/chromium/tracing.spec.ts > TR-047 should return a buffer [fixme]+library/chromium/tracing.spec.ts > TR-045 should run with custom categories if provided [fixme]+library/chromium/tracing.spec.ts > TR-049 should support a buffer without a path [fixme]+library/chromium/tracing.spec.ts > TR-046 should throw if tracing on two pages [fixme]+library/chromium/tracing.spec.ts > TR-048 should work without options [fixme]+library/client-certificates.spec.ts > browser > persistentContext > CC-041 should pass with matching certificates [fixme]library/debug-controller.spec.ts > should allow setting recorder mode only for specific browser [fixme]-library/defaultbrowsercontext-1.spec.ts > context.addCookies() should work [fixme]-library/defaultbrowsercontext-1.spec.ts > context.clearCookies() should work [fixme]-library/defaultbrowsercontext-1.spec.ts > context.cookies() should work @smoke [fixme]-library/defaultbrowsercontext-1.spec.ts > should support acceptDownloads option [fixme]-library/defaultbrowsercontext-1.spec.ts > should support bypassCSP option [fixme]-library/defaultbrowsercontext-1.spec.ts > should support deviceScaleFactor option [fixme]-library/defaultbrowsercontext-1.spec.ts > should support javascriptEnabled option [fixme]-library/defaultbrowsercontext-1.spec.ts > should support offline option [fixme]-library/defaultbrowsercontext-1.spec.ts > should support userAgent option [fixme]-library/defaultbrowsercontext-1.spec.ts > should support viewport option [fixme]-library/defaultbrowsercontext-2.spec.ts > coverage should work [fixme]-library/defaultbrowsercontext-2.spec.ts > dialog.accept should work [fixme]-library/defaultbrowsercontext-2.spec.ts > exposes browser [fixme]-library/defaultbrowsercontext-2.spec.ts > should accept relative userDataDir [fixme]-library/defaultbrowsercontext-2.spec.ts > should accept userDataDir [fixme]-library/defaultbrowsercontext-2.spec.ts > should connect to a browser with the default page [fixme]-library/defaultbrowsercontext-2.spec.ts > should create userDataDir if it does not exist [fixme]-library/defaultbrowsercontext-2.spec.ts > should fire close event for a persistent context [fixme]-library/defaultbrowsercontext-2.spec.ts > should handle exception [fixme]-library/defaultbrowsercontext-2.spec.ts > should handle timeout [fixme]-library/defaultbrowsercontext-2.spec.ts > should have default URL when launching browser [fixme]-library/defaultbrowsercontext-2.spec.ts > should have passed URL when launching with ignoreDefaultArgs: true [fixme]-library/defaultbrowsercontext-2.spec.ts > should respect selectors [fixme]-library/defaultbrowsercontext-2.spec.ts > should restore state from userDataDir [fixme]-library/defaultbrowsercontext-2.spec.ts > should support colorScheme option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support contrast option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support extraHTTPHeaders option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support forcedColors option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support geolocation and permissions options [fixme]-library/defaultbrowsercontext-2.spec.ts > should support har option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support hasTouch option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support ignoreHTTPSErrors option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support locale option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support reducedMotion option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support timezoneId option [fixme]-library/defaultbrowsercontext-2.spec.ts > should work in persistent context [fixme]-library/defaultbrowsercontext-2.spec.ts > user agent is up to date [fixme]-library/download.spec.ts > download event > should be able to cancel pending downloads [fixme]-library/download.spec.ts > download event > should close the context without awaiting the download [fixme]-library/download.spec.ts > download event > should create subdirectories when saving to non-existent user-specified path [fixme]-library/download.spec.ts > download event > should delete downloads on browser gone [fixme]-library/download.spec.ts > download event > should delete downloads on context destruction [fixme]-library/download.spec.ts > download event > should delete file [fixme]-library/download.spec.ts > download event > should download large binary.zip [fixme]-library/download.spec.ts > download event > should emit download event from nested iframes [fixme]-library/download.spec.ts > download event > should error when saving after deletion [fixme]-library/download.spec.ts > download event > should error when saving with downloads disabled [fixme]-library/download.spec.ts > download event > should expose stream [fixme]-library/download.spec.ts > download event > should not fail explicitly to cancel a download even if that is already finished [fixme]-library/download.spec.ts > download event > should report alt-click downloads [fixme]-library/download.spec.ts > download event > should report download path within page.on('download', …) handler for Blobs [fixme]-library/download.spec.ts > download event > should report download path within page.on('download', …) handler for Files [fixme]-library/download.spec.ts > download event > should report download when navigation turns into download @smoke [fixme]-library/download.spec.ts > download event > should report downloads for download attribute [fixme]-library/download.spec.ts > download event > should report downloads with acceptDownloads: false [fixme]-library/download.spec.ts > download event > should report downloads with acceptDownloads: true [fixme]-library/download.spec.ts > download event > should report downloads with interception [fixme]-library/download.spec.ts > download event > should report new window downloads [fixme]-library/download.spec.ts > download event > should report non-navigation downloads [fixme]-library/download.spec.ts > download event > should report proper download url when download is from download attribute [fixme]-library/download.spec.ts > download event > should save to overwritten filepath [fixme]-library/download.spec.ts > download event > should save to two different paths with multiple saveAs calls [fixme]-library/download.spec.ts > download event > should save to user-specified path without updating original path [fixme]-library/download.spec.ts > download event > should throw if browser dies [fixme]-library/download.spec.ts > download event > should work with Cross-Origin-Opener-Policy [fixme]-library/download.spec.ts > should be able to download a inline PDF file via navigation [fixme]-library/download.spec.ts > should be able to download a inline PDF file via response interception [fixme]-library/download.spec.ts > should be able to download a PDF file [fixme]-library/download.spec.ts > should convert navigation to a resource with unsupported mime type into download [fixme]-library/download.spec.ts > should download even if there is no "attachment" value [fixme]-library/download.spec.ts > should download links with data url [fixme]-library/download.spec.ts > should download successfully when routing [fixme]-library/download.spec.ts > should save to user-specified path [fixme]-library/downloads-path.spec.ts > downloads path > should accept downloads in persistent context [fixme]-library/downloads-path.spec.ts > downloads path > should delete downloads when context closes [fixme]-library/downloads-path.spec.ts > downloads path > should delete downloads when persistent context closes [fixme]-library/downloads-path.spec.ts > downloads path > should keep downloadsPath folder [fixme]-library/downloads-path.spec.ts > downloads path > should report downloads in downloadsPath folder [fixme]-library/downloads-path.spec.ts > downloads path > should report downloads in downloadsPath folder with a relative path [fixme]-library/emulation-focus.spec.ts > should change document.activeElement [fixme]-library/emulation-focus.spec.ts > should focus popups by default [fixme]-library/emulation-focus.spec.ts > should not affect screenshots [fixme]-library/geolocation.spec.ts > should isolate contexts [fixme]-library/geolocation.spec.ts > should use context options [fixme]-library/geolocation.spec.ts > should use context options for popup [fixme]-library/geolocation.spec.ts > should work @smoke [fixme]-library/geolocation.spec.ts > watchPosition should be notified [fixme]-library/har.spec.ts > should calculate time [fixme]-library/har.spec.ts > should have connection details [fixme]-library/har.spec.ts > should have connection details for failed requests [fixme]-library/har.spec.ts > should have connection details for redirects [fixme]-library/har.spec.ts > should have pages in persistent context [fixme]-library/har.spec.ts > should have popup requests [fixme]-library/har.spec.ts > should have security details [fixme]-library/har.spec.ts > should include binary postData [fixme]-library/har.spec.ts > should include form params [fixme]-library/har.spec.ts > should include postData [fixme]-library/har.spec.ts > should include set-cookies [fixme]-library/har.spec.ts > should include set-cookies with comma [fixme]-library/har.spec.ts > should include sizes [fixme]-library/har.spec.ts > should not hang on resources served from cache [fixme]-library/har.spec.ts > should report the correct response body size when the bodySize is 0 [fixme]-library/har.spec.ts > should return receive time [fixme]-library/har.spec.ts > should return security details directly from response [fixme]-library/har.spec.ts > should return server address directly from response [fixme]-library/headful.spec.ts > should click background tab [fixme]-library/headful.spec.ts > should click bottom row w/ infobar in OOPIF [fixme]-library/headful.spec.ts > should click in OOPIF [fixme]-library/headful.spec.ts > should close browser with beforeunload page [fixme]-library/headful.spec.ts > should close browsercontext with pending beforeunload dialog [fixme]-library/headful.spec.ts > should have default url when launching browser @smoke [fixme]-library/headful.spec.ts > should not override viewport size when passed null [fixme]-library/hit-target.spec.ts > should detect overlaid element in a transformed iframe [fixme]+library/defaultbrowsercontext-1.spec.ts > DC-002 context.addCookies() should work [fixme]+library/defaultbrowsercontext-1.spec.ts > DC-003 context.clearCookies() should work [fixme]+library/defaultbrowsercontext-1.spec.ts > DC-001 context.cookies() should work @smoke [fixme]+library/defaultbrowsercontext-1.spec.ts > DC-011 should support acceptDownloads option [fixme]+library/defaultbrowsercontext-1.spec.ts > DC-007 should support bypassCSP option [fixme]+library/defaultbrowsercontext-1.spec.ts > DC-005 should support deviceScaleFactor option [fixme]+library/defaultbrowsercontext-1.spec.ts > DC-008 should support javascriptEnabled option [fixme]+library/defaultbrowsercontext-1.spec.ts > DC-010 should support offline option [fixme]+library/defaultbrowsercontext-1.spec.ts > DC-006 should support userAgent option [fixme]+library/defaultbrowsercontext-1.spec.ts > DC-004 should support viewport option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-034 coverage should work [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-039 dialog.accept should work [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-041 exposes browser [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-024 should accept relative userDataDir [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-023 should accept userDataDir [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-036 should connect to a browser with the default page [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-026 should create userDataDir if it does not exist [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-033 should fire close event for a persistent context [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-032 should handle exception [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-031 should handle timeout [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-028 should have default URL when launching browser [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-030 should have passed URL when launching with ignoreDefaultArgs: true [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-035 should respect selectors [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-025 should restore state from userDataDir [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-014 should support colorScheme option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-017 should support contrast option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-022 should support extraHTTPHeaders option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-016 should support forcedColors option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-020 should support geolocation and permissions options [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-037 should support har option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-012 should support hasTouch option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-021 should support ignoreHTTPSErrors option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-019 should support locale option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-015 should support reducedMotion option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-018 should support timezoneId option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-013 should work in persistent context [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-038 user agent is up to date [fixme]+library/download.spec.ts > download event > DO-027 should be able to cancel pending downloads [fixme]+library/download.spec.ts > download event > DO-024 should close the context without awaiting the download [fixme]+library/download.spec.ts > download event > DO-010 should create subdirectories when saving to non-existent user-specified path [fixme]+library/download.spec.ts > download event > DO-021 should delete downloads on browser gone [fixme]+library/download.spec.ts > download event > DO-020 should delete downloads on context destruction [fixme]+library/download.spec.ts > download event > DO-018 should delete file [fixme]+library/download.spec.ts > download event > DO-026 should download large binary.zip [fixme]+library/download.spec.ts > download event > DO-030 should emit download event from nested iframes [fixme]+library/download.spec.ts > download event > DO-012 should error when saving after deletion [fixme]+library/download.spec.ts > download event > DO-011 should error when saving with downloads disabled [fixme]+library/download.spec.ts > download event > DO-019 should expose stream [fixme]+library/download.spec.ts > download event > DO-028 should not fail explicitly to cancel a download even if that is already finished [fixme]+library/download.spec.ts > download event > DO-016 should report alt-click downloads [fixme]+library/download.spec.ts > download event > DO-015 should report download path within page.on('download', …) handler for Blobs [fixme]+library/download.spec.ts > download event > DO-014 should report download path within page.on('download', …) handler for Files [fixme]+library/download.spec.ts > download event > DO-001 should report download when navigation turns into download @smoke [fixme]+library/download.spec.ts > download event > DO-006 should report downloads for download attribute [fixme]+library/download.spec.ts > download event > DO-003 should report downloads with acceptDownloads: false [fixme]+library/download.spec.ts > download event > DO-004 should report downloads with acceptDownloads: true [fixme]+library/download.spec.ts > download event > DO-029 should report downloads with interception [fixme]+library/download.spec.ts > download event > DO-017 should report new window downloads [fixme]+library/download.spec.ts > download event > DO-013 should report non-navigation downloads [fixme]+library/download.spec.ts > download event > DO-005 should report proper download url when download is from download attribute [fixme]+library/download.spec.ts > download event > DO-009 should save to overwritten filepath [fixme]+library/download.spec.ts > download event > DO-008 should save to two different paths with multiple saveAs calls [fixme]+library/download.spec.ts > download event > DO-007 should save to user-specified path without updating original path [fixme]+library/download.spec.ts > download event > DO-025 should throw if browser dies [fixme]+library/download.spec.ts > download event > DO-002 should work with Cross-Origin-Opener-Policy [fixme]+library/download.spec.ts > DO-033 should be able to download a inline PDF file via navigation [fixme]+library/download.spec.ts > DO-032 should be able to download a inline PDF file via response interception [fixme]+library/download.spec.ts > DO-031 should be able to download a PDF file [fixme]+library/download.spec.ts > DO-036 should convert navigation to a resource with unsupported mime type into download [fixme]+library/download.spec.ts > DO-035 should download even if there is no "attachment" value [fixme]+library/download.spec.ts > DO-037 should download links with data url [fixme]+library/download.spec.ts > DO-038 should download successfully when routing [fixme]+library/download.spec.ts > DO-034 should save to user-specified path [fixme]+library/downloads-path.spec.ts > downloads path > DO-043 should accept downloads in persistent context [fixme]+library/downloads-path.spec.ts > downloads path > DO-040 should delete downloads when context closes [fixme]+library/downloads-path.spec.ts > downloads path > DO-044 should delete downloads when persistent context closes [fixme]+library/downloads-path.spec.ts > downloads path > DO-039 should keep downloadsPath folder [fixme]+library/downloads-path.spec.ts > downloads path > DO-041 should report downloads in downloadsPath folder [fixme]+library/downloads-path.spec.ts > downloads path > DO-042 should report downloads in downloadsPath folder with a relative path [fixme]+library/emulation-focus.spec.ts > EM-018 should change document.activeElement [fixme]+library/emulation-focus.spec.ts > EM-015 should focus popups by default [fixme]+library/emulation-focus.spec.ts > EM-019 should not affect screenshots [fixme]+library/geolocation.spec.ts > GE-003 should isolate contexts [fixme]+library/geolocation.spec.ts > GE-007 should use context options [fixme]+library/geolocation.spec.ts > GE-009 should use context options for popup [fixme]+library/geolocation.spec.ts > GE-001 should work @smoke [fixme]+library/geolocation.spec.ts > GE-008 watchPosition should be notified [fixme]+library/har.spec.ts > HA-030 should calculate time [fixme]+library/har.spec.ts > HA-041 should have connection details [fixme]+library/har.spec.ts > HA-044 should have connection details for failed requests [fixme]+library/har.spec.ts > HA-043 should have connection details for redirects [fixme]+library/har.spec.ts > HA-004 should have pages in persistent context [fixme]+library/har.spec.ts > HA-039 should have popup requests [fixme]+library/har.spec.ts > HA-042 should have security details [fixme]+library/har.spec.ts > HA-011 should include binary postData [fixme]+library/har.spec.ts > HA-012 should include form params [fixme]+library/har.spec.ts > HA-010 should include postData [fixme]+library/har.spec.ts > HA-014 should include set-cookies [fixme]+library/har.spec.ts > HA-018 should include set-cookies with comma [fixme]+library/har.spec.ts > HA-028 should include sizes [fixme]+library/har.spec.ts > HA-055 should not hang on resources served from cache [fixme]+library/har.spec.ts > HA-038 should report the correct response body size when the bodySize is 0 [fixme]+library/har.spec.ts > HA-031 should return receive time [fixme]+library/har.spec.ts > HA-046 should return security details directly from response [fixme]+library/har.spec.ts > HA-045 should return server address directly from response [fixme]+library/headful.spec.ts > HE-007 should click background tab [fixme]+library/headful.spec.ts > HE-014 should click bottom row w/ infobar in OOPIF [fixme]+library/headful.spec.ts > HE-013 should click in OOPIF [fixme]+library/headful.spec.ts > HE-002 should close browser with beforeunload page [fixme]+library/headful.spec.ts > HE-003 should close browsercontext with pending beforeunload dialog [fixme]+library/headful.spec.ts > HE-001 should have default url when launching browser @smoke [fixme]+library/headful.spec.ts > HE-011 should not override viewport size when passed null [fixme]+library/hit-target.spec.ts > HT-017 should detect overlaid element in a transformed iframe [fixme]library/inspector/cli-codegen-1.spec.ts > cli codegen > should assert navigation [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should await popup [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should check [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should check a radio button [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should check with keyboard [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should click [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should click after same-document navigation [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should click button with nested div [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should emit single keyup on ArrowDown [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should fill [contentEditable] [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should fill [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should fill japanese text [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should fill textarea [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should fill textarea with new lines at the end [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should ignore AltGraph [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should ignore programmatic events [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should make a positioned click on a canvas [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should middle click [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should not target selector preview by text regexp [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should press [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should record ArrowDown [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should record omnibox navigations after performAction [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should record omnibox navigations after recordAction [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should record slider [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should select [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should select with size attribute [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should uncheck [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should update selected element after pressing Tab [fixme]-library/inspector/cli-codegen-1.spec.ts > cli codegen > should work with TrustedTypes [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > click should emit events in order [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should check input with chaining id [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should clear files [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should contain close page [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should contain open page [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should contain second page [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should download files [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should fill tricky characters [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should handle dialogs [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should handle history.postData [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should not clash pages [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should not lead to an error if html gets clicked [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should record navigations after identical pushState [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should record open in a new tab with url [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should reset hover model on action when element detaches [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should update active model on action [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-028 should await popup [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-021 should check [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-022 should check a radio button [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-023 should check with keyboard [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-001 should click [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-006 should click after same-document navigation [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-034 should click button with nested div [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-019 should emit single keyup on ArrowDown [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-014 should fill [contentEditable] [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-010 should fill [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-011 should fill japanese text [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-012 should fill textarea [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-013 should fill textarea with new lines at the end [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-031 should ignore AltGraph [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-005 should ignore programmatic events [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-007 should make a positioned click on a canvas [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-032 should middle click [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-009 should not target selector preview by text regexp [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-016 should press [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-018 should record ArrowDown [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-035 should record omnibox navigations after performAction [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-036 should record omnibox navigations after recordAction [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-033 should record slider [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-026 should select [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-027 should select with size attribute [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-025 should uncheck [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-017 should update selected element after pressing Tab [fixme]+library/inspector/cli-codegen-1.spec.ts > cli codegen > CG-008 should work with TrustedTypes [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-052 click should emit events in order [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-055 should check input with chaining id [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-045 should clear files [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-041 should contain close page [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-039 should contain open page [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-040 should contain second page [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-047 should download files [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-057 should fill tricky characters [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-048 should handle dialogs [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-049 should handle history.postData [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-051 should not clash pages [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-042 should not lead to an error if html gets clicked [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-056 should record navigations after identical pushState [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-050 should record open in a new tab with url [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-053 should reset hover model on action when element detaches [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-054 should update active model on action [fixme]library/inspector/cli-codegen-2.spec.ts > cli codegen > should update hover model on action [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should upload a single file [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should upload multiple files [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-043 should upload a single file [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-044 should upload multiple files [fixme]library/inspector/cli-codegen-2.spec.ts > should --test-id-attribute [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should assert value [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should assert value on disabled input [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should assert value on disabled select [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should assert visibility [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should click locator.first [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should click locator.nth [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should consume contextmenu events, despite a custom context menu [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-083 should assert value [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-084 should assert value on disabled input [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-085 should assert value on disabled select [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-086 should assert visibility [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-061 should click locator.first [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-062 should click locator.nth [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-079 should consume contextmenu events, despite a custom context menu [fixme]library/inspector/cli-codegen-3.spec.ts > cli codegen > should consume pointer events [fixme]library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate frame locators [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate frame locators with id attribute [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate frame locators with name attribute [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate frame locators with special characters in name attribute [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate frame locators with testId [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate frame locators with title attribute [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate getByAltText [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate getByLabel [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate getByLabel without regex [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate getByPlaceholder [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate getByTestId [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate role locators undef frame locators [fixme]-library/inspector/pause.spec.ts > pause > should highlight locators with custom testId [fixme]-library/inspector/pause.spec.ts > pause > should highlight on explore (csharp) [fixme]-library/inspector/pause.spec.ts > pause > should highlight on explore [fixme]-library/inspector/pause.spec.ts > pause > should highlight pointer, only in main frame [fixme]-library/launcher.spec.ts > should throw a friendly error if its headed and there is no xserver on linux running [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-070 should generate frame locators with id attribute [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-069 should generate frame locators with name attribute [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-067 should generate frame locators with special characters in name attribute [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-071 should generate frame locators with testId [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-068 should generate frame locators with title attribute [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-075 should generate getByAltText [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-076 should generate getByLabel [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-077 should generate getByLabel without regex [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-074 should generate getByPlaceholder [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-073 should generate getByTestId [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-072 should generate role locators undef frame locators [fixme]+library/inspector/pause.spec.ts > pause > IN-028 should highlight locators with custom testId [fixme]+library/inspector/pause.spec.ts > pause > IN-026 should highlight on explore (csharp) [fixme]+library/inspector/pause.spec.ts > pause > IN-025 should highlight on explore [fixme]+library/inspector/pause.spec.ts > pause > IN-013 should highlight pointer, only in main frame [fixme]+library/launcher.spec.ts > BT-021 should throw a friendly error if its headed and there is no xserver on linux running [fixme]library/locator-generator.spec.ts > reverse engineer internal:has-text locators [fixme]-library/multiclient.spec.ts > last emulateMedia wins [fixme]-library/multiclient.spec.ts > should launch persistent [fixme]-library/multiclient.spec.ts > should not allow parallel css coverage [fixme]-library/multiclient.spec.ts > should not allow parallel js coverage and cleanup upon disconnect [fixme]-library/multiclient.spec.ts > should unroute websockets [fixme]-library/page-clock.spec.ts > runFor > creates updated Date while ticking [fixme]-library/page-clock.spec.ts > runFor > passes 1 minute [fixme]-library/page-clock.spec.ts > runFor > passes 8 seconds [fixme]-library/page-clock.spec.ts > runFor > triggers multiple simultaneous timers [fixme]-library/page-clock.spec.ts > runFor > triggers simultaneous timers [fixme]-library/page-clock.spec.ts > stubTimers > replaces global setInterval [fixme]-library/page-close.spec.ts > expect should not print timed out error message when page closes [fixme]-library/page-close.spec.ts > interrupt request.response() and request.allHeaders() on page.close [fixme]-library/page-close.spec.ts > should not treat navigations as new popups [fixme]-library/page-close.spec.ts > should reject all promises when page is closed [fixme]-library/page-event-crash.spec.ts > should be able to close context when page crashes [fixme]-library/page-event-crash.spec.ts > should cancel navigation when page crashes [fixme]-library/page-event-crash.spec.ts > should cancel waitForEvent when page crashes [fixme]-library/page-event-crash.spec.ts > should emit crash event when page crashes [fixme]-library/page-event-crash.spec.ts > should throw on any action after page crashes [fixme]-library/pdf.spec.ts > should be able to generate outline [fixme]+library/multiclient.spec.ts > MC-008 last emulateMedia wins [fixme]+library/multiclient.spec.ts > MC-015 should launch persistent [fixme]+library/multiclient.spec.ts > MC-006 should not allow parallel css coverage [fixme]+library/multiclient.spec.ts > MC-005 should not allow parallel js coverage and cleanup upon disconnect [fixme]+library/multiclient.spec.ts > MC-012 should unroute websockets [fixme]+library/page-clock.spec.ts > runFor > CK-008 creates updated Date while ticking [fixme]+library/page-clock.spec.ts > runFor > CK-010 passes 1 minute [fixme]+library/page-clock.spec.ts > runFor > CK-009 passes 8 seconds [fixme]+library/page-clock.spec.ts > runFor > CK-005 triggers multiple simultaneous timers [fixme]+library/page-clock.spec.ts > runFor > CK-004 triggers simultaneous timers [fixme]+library/page-clock.spec.ts > stubTimers > CK-022 replaces global setInterval [fixme]+library/page-close.spec.ts > PA-040 expect should not print timed out error message when page closes [fixme]+library/page-close.spec.ts > PA-051 interrupt request.response() and request.allHeaders() on page.close [fixme]+library/page-close.spec.ts > PA-052 should not treat navigations as new popups [fixme]+library/page-close.spec.ts > PA-042 should reject all promises when page is closed [fixme]+library/page-event-crash.spec.ts > ER-019 should be able to close context when page crashes [fixme]+library/page-event-crash.spec.ts > ER-018 should cancel navigation when page crashes [fixme]+library/page-event-crash.spec.ts > ER-017 should cancel waitForEvent when page crashes [fixme]+library/page-event-crash.spec.ts > ER-014 should emit crash event when page crashes [fixme]+library/page-event-crash.spec.ts > ER-015 should throw on any action after page crashes [fixme]+library/pdf.spec.ts > PD-002 should be able to generate outline [fixme]library/permissions.spec.ts > should be able to use the local-fonts API [fixme]-library/permissions.spec.ts > local network request is allowed from public origin [fixme]-library/permissions.spec.ts > permissions > should accumulate when adding [fixme]-library/permissions.spec.ts > permissions > should be prompt by default [fixme]-library/permissions.spec.ts > permissions > should clear permissions [fixme]-library/permissions.spec.ts > permissions > should deny permission when not listed [fixme]-library/permissions.spec.ts > permissions > should fail when bad permission is given [fixme]-library/permissions.spec.ts > permissions > should grant permission when creating context [fixme]-library/permissions.spec.ts > permissions > should grant permission when listed for all domains [fixme]-library/permissions.spec.ts > permissions > should isolate permissions between browser contexts [fixme]-library/permissions.spec.ts > permissions > should trigger permission onchange [fixme]-library/permissions.spec.ts > should support clipboard read [fixme]-library/permissions.spec.ts > storage access [fixme]-library/popup.spec.ts > BrowserContext.addInitScript should apply to a cross-process popup [fixme]-library/popup.spec.ts > should inherit extra headers from browser context [fixme]-library/popup.spec.ts > should inherit http credentials from browser context [fixme]-library/popup.spec.ts > should inherit offline from browser context [fixme]-library/popup.spec.ts > should inherit touch support from browser context [fixme]-library/popup.spec.ts > should inherit user agent from browser context @smoke [fixme]-library/popup.spec.ts > should not throttle rAF in the opener page [fixme]-library/popup.spec.ts > should respect routes from browser context [fixme]-library/popup.spec.ts > should respect routes from browser context when using window.open [fixme]-library/popup.spec.ts > should use viewport size from window features [fixme]-library/proxy.spec.ts > should authenticate [fixme]-library/proxy.spec.ts > should proxy local network requests > by default > link-local [fixme]-library/resource-timing.spec.ts > should work when serving from memory cache [fixme]-library/role-utils.spec.ts > wpt accname #0 [fixme]-library/role-utils.spec.ts > wpt accname #1 [fixme]-library/role-utils.spec.ts > wpt accname #2 [fixme]-library/screenshot.spec.ts > element screenshot > element screenshot should work with a mobile viewport [fixme]-library/screenshot.spec.ts > element screenshot > element screenshot should work with device scale factor [fixme]-library/screenshot.spec.ts > element screenshot > page screenshot should capture css transform with device pixels [fixme]-library/screenshot.spec.ts > element screenshot > should capture full element when larger than viewport with device scale factor [fixme]-library/screenshot.spec.ts > element screenshot > should capture full element when larger than viewport with device scale factor and scale:css [fixme]-library/screenshot.spec.ts > page screenshot > should run in parallel in multiple pages [fixme]-library/screenshot.spec.ts > page screenshot > should work with a mobile viewport [fixme]-library/screenshot.spec.ts > page screenshot > should work with a mobile viewport and clip [fixme]-library/screenshot.spec.ts > page screenshot > should work with a mobile viewport and fullPage [fixme]-library/screenshot.spec.ts > page screenshot > should work with device scale factor [fixme]-library/screenshot.spec.ts > page screenshot > should work with device scale factor and clip [fixme]-library/screenshot.spec.ts > page screenshot > should work with device scale factor and scale:css [fixme]-library/screenshot.spec.ts > page screenshot > should work with device scale factor, clip and scale:css [fixme]-library/selector-generator.spec.ts > selector generator > should accept valid aria-label for candidate consideration [fixme]-library/selector-generator.spec.ts > selector generator > should accept valid data-test-id for candidate consideration [fixme]-library/selector-generator.spec.ts > selector generator > should chain text after parent [fixme]-library/selector-generator.spec.ts > selector generator > should escape text with quote [fixme]-library/selector-generator.spec.ts > selector generator > should escape text with slash [fixme]-library/selector-generator.spec.ts > selector generator > should find text in shadow dom [fixme]-library/selector-generator.spec.ts > selector generator > should generate exact label when necessary [fixme]-library/selector-generator.spec.ts > selector generator > should generate exact placeholder when necessary [fixme]-library/selector-generator.spec.ts > selector generator > should generate exact role when necessary [fixme]-library/selector-generator.spec.ts > selector generator > should generate exact text when necessary [fixme]-library/selector-generator.spec.ts > selector generator > should generate exact title when necessary [fixme]-library/selector-generator.spec.ts > selector generator > should generate label selector [fixme]+library/permissions.spec.ts > PE-018 local network request is allowed from public origin [fixme]+library/permissions.spec.ts > permissions > PE-007 should accumulate when adding [fixme]+library/permissions.spec.ts > permissions > PE-001 should be prompt by default [fixme]+library/permissions.spec.ts > permissions > PE-008 should clear permissions [fixme]+library/permissions.spec.ts > permissions > PE-002 should deny permission when not listed [fixme]+library/permissions.spec.ts > permissions > PE-003 should fail when bad permission is given [fixme]+library/permissions.spec.ts > permissions > PE-010 should grant permission when creating context [fixme]+library/permissions.spec.ts > permissions > PE-009 should grant permission when listed for all domains [fixme]+library/permissions.spec.ts > permissions > PE-013 should isolate permissions between browser contexts [fixme]+library/permissions.spec.ts > permissions > PE-012 should trigger permission onchange [fixme]+library/permissions.spec.ts > PE-014 should support clipboard read [fixme]+library/permissions.spec.ts > PE-016 storage access [fixme]+library/popup.spec.ts > PO-024 BrowserContext.addInitScript should apply to a cross-process popup [fixme]+library/popup.spec.ts > PO-016 should inherit extra headers from browser context [fixme]+library/popup.spec.ts > PO-018 should inherit http credentials from browser context [fixme]+library/popup.spec.ts > PO-017 should inherit offline from browser context [fixme]+library/popup.spec.ts > PO-019 should inherit touch support from browser context [fixme]+library/popup.spec.ts > PO-014 should inherit user agent from browser context @smoke [fixme]+library/popup.spec.ts > PO-027 should not throttle rAF in the opener page [fixme]+library/popup.spec.ts > PO-015 should respect routes from browser context [fixme]+library/popup.spec.ts > PO-022 should respect routes from browser context when using window.open [fixme]+library/popup.spec.ts > PO-021 should use viewport size from window features [fixme]+library/proxy.spec.ts > PR-007 should authenticate [fixme]+library/proxy.spec.ts > should proxy local network requests > by default > PR-005 link-local [fixme]+library/resource-timing.spec.ts > NE-135 should work when serving from memory cache [fixme]+library/role-utils.spec.ts > AR-143 wpt accname #0 [fixme]+library/role-utils.spec.ts > AR-143 wpt accname #1 [fixme]+library/role-utils.spec.ts > AR-143 wpt accname #2 [fixme]+library/screenshot.spec.ts > element screenshot > SS-081 element screenshot should work with a mobile viewport [fixme]+library/screenshot.spec.ts > element screenshot > SS-082 element screenshot should work with device scale factor [fixme]+library/screenshot.spec.ts > element screenshot > SS-094 page screenshot should capture css transform with device pixels [fixme]+library/screenshot.spec.ts > element screenshot > SS-092 should capture full element when larger than viewport with device scale factor [fixme]+library/screenshot.spec.ts > element screenshot > SS-093 should capture full element when larger than viewport with device scale factor and scale:css [fixme]+library/screenshot.spec.ts > page screenshot > SS-068 should run in parallel in multiple pages [fixme]+library/screenshot.spec.ts > page screenshot > SS-069 should work with a mobile viewport [fixme]+library/screenshot.spec.ts > page screenshot > SS-070 should work with a mobile viewport and clip [fixme]+library/screenshot.spec.ts > page screenshot > SS-071 should work with a mobile viewport and fullPage [fixme]+library/screenshot.spec.ts > page screenshot > SS-072 should work with device scale factor [fixme]+library/screenshot.spec.ts > page screenshot > SS-073 should work with device scale factor and clip [fixme]+library/screenshot.spec.ts > page screenshot > SS-074 should work with device scale factor and scale:css [fixme]+library/screenshot.spec.ts > page screenshot > SS-076 should work with device scale factor, clip and scale:css [fixme]+library/selector-generator.spec.ts > selector generator > GN-081 should accept valid aria-label for candidate consideration [fixme]+library/selector-generator.spec.ts > selector generator > GN-086 should accept valid data-test-id for candidate consideration [fixme]+library/selector-generator.spec.ts > selector generator > GN-060 should chain text after parent [fixme]+library/selector-generator.spec.ts > selector generator > GN-047 should escape text with quote [fixme]+library/selector-generator.spec.ts > selector generator > GN-048 should escape text with slash [fixme]+library/selector-generator.spec.ts > selector generator > GN-072 should find text in shadow dom [fixme]+library/selector-generator.spec.ts > selector generator > GN-093 should generate exact label when necessary [fixme]+library/selector-generator.spec.ts > selector generator > GN-091 should generate exact placeholder when necessary [fixme]+library/selector-generator.spec.ts > selector generator > GN-092 should generate exact role when necessary [fixme]+library/selector-generator.spec.ts > selector generator > GN-089 should generate exact text when necessary [fixme]+library/selector-generator.spec.ts > selector generator > GN-090 should generate exact title when necessary [fixme]+library/selector-generator.spec.ts > selector generator > GN-087 should generate label selector [fixme]library/selector-generator.spec.ts > selector generator > should generate multiple: noId [fixme]library/selector-generator.spec.ts > selector generator > should generate multiple: noId noText [fixme]library/selector-generator.spec.ts > selector generator > should generate multiple: noText in role [fixme]library/selector-generator.spec.ts > selector generator > should generate multiple: noText in text [fixme]-library/selector-generator.spec.ts > selector generator > should generate relative selector [fixme]-library/selector-generator.spec.ts > selector generator > should generate text and normalize whitespace [fixme]-library/selector-generator.spec.ts > selector generator > should generate text for <input type=button> [fixme]-library/selector-generator.spec.ts > selector generator > should generate title selector [fixme]-library/selector-generator.spec.ts > selector generator > should handle first non-unique data-testid [fixme]-library/selector-generator.spec.ts > selector generator > should handle second non-unique data-testid [fixme]-library/selector-generator.spec.ts > selector generator > should ignore empty aria-label for candidate consideration [fixme]-library/selector-generator.spec.ts > selector generator > should ignore empty data-test-id for candidate consideration [fixme]-library/selector-generator.spec.ts > selector generator > should ignore empty role for candidate consideration [fixme]-library/selector-generator.spec.ts > selector generator > should match in deep shadow dom [fixme]-library/selector-generator.spec.ts > selector generator > should match in shadow dom [fixme]-library/selector-generator.spec.ts > selector generator > should not accept invalid role for candidate consideration [fixme]-library/selector-generator.spec.ts > selector generator > should not escape spaces inside named attr selectors [fixme]-library/selector-generator.spec.ts > selector generator > should not escape text with >> [fixme]-library/selector-generator.spec.ts > selector generator > should not improve guid text [fixme]-library/selector-generator.spec.ts > selector generator > should not over-escape for CSS syntax [fixme]-library/selector-generator.spec.ts > selector generator > should not prefer zero-sized button over inner span [fixme]-library/selector-generator.spec.ts > selector generator > should not use generated id [fixme]-library/selector-generator.spec.ts > selector generator > should not use icon fonts aria name [fixme]-library/selector-generator.spec.ts > selector generator > should not use input[value] [fixme]-library/selector-generator.spec.ts > selector generator > should not use text for select [fixme]-library/selector-generator.spec.ts > selector generator > should prefer button over inner span [fixme]-library/selector-generator.spec.ts > selector generator > should prefer class to ordinal [fixme]-library/selector-generator.spec.ts > selector generator > should prefer data-testid [fixme]-library/selector-generator.spec.ts > selector generator > should prefer role other input[type] [fixme]-library/selector-generator.spec.ts > selector generator > should prefer role with hasText to css with hasText [fixme]-library/selector-generator.spec.ts > selector generator > should prefer role=button over inner span [fixme]-library/selector-generator.spec.ts > selector generator > should prioritize attributes correctly > name [fixme]-library/selector-generator.spec.ts > selector generator > should prioritize attributes correctly > placeholder [fixme]-library/selector-generator.spec.ts > selector generator > should prioritize attributes correctly > role [fixme]-library/selector-generator.spec.ts > selector generator > should prioritize attributes correctly > type [fixme]-library/selector-generator.spec.ts > selector generator > should properly join child selectors under nested ordinals [fixme]-library/selector-generator.spec.ts > selector generator > should separate selectors by >> [fixme]-library/selector-generator.spec.ts > selector generator > should trim long text [fixme]-library/selector-generator.spec.ts > selector generator > should trim text [fixme]-library/selector-generator.spec.ts > selector generator > should try to improve label text by shortening [fixme]-library/selector-generator.spec.ts > selector generator > should try to improve role name [fixme]-library/selector-generator.spec.ts > selector generator > should try to improve text [fixme]-library/selector-generator.spec.ts > selector generator > should try to improve text by shortening [fixme]-library/selector-generator.spec.ts > selector generator > should use data-testid in strict errors [fixme]-library/selector-generator.spec.ts > selector generator > should use internal:has-text [fixme]-library/selector-generator.spec.ts > selector generator > should use internal:has-text with regexp [fixme]-library/selector-generator.spec.ts > selector generator > should use internal:has-text with regexp with a quote [fixme]-library/selector-generator.spec.ts > selector generator > should use nested ordinals [fixme]-library/selector-generator.spec.ts > selector generator > should use ordinal for identical nodes [fixme]-library/selector-generator.spec.ts > selector generator > should use parent text [fixme]-library/selector-generator.spec.ts > selector generator > should use readable id [fixme]-library/selector-generator.spec.ts > selector generator > should use the name attributes for elements that can have it [fixme]-library/selector-generator.spec.ts > selector generator > should work in dynamic iframes without navigation [fixme]-library/selector-generator.spec.ts > selector generator > should work with tricky attributes [fixme]-library/selector-generator.spec.ts > selector generator > should work without CSS.escape [fixme]-library/shared-worker.spec.ts > should survive shared worker restart [fixme]-library/signals.spec.ts > signals > should close the browser on SIGINT [fixme]-library/slowmo.spec.ts > slowMo > Frame SlowMo setInputFiles [fixme]-library/slowmo.spec.ts > slowMo > Page SlowMo reload [fixme]-library/slowmo.spec.ts > slowMo > Page SlowMo setInputFiles [fixme]+library/selector-generator.spec.ts > selector generator > GN-094 should generate relative selector [fixme]+library/selector-generator.spec.ts > selector generator > GN-031 should generate text and normalize whitespace [fixme]+library/selector-generator.spec.ts > selector generator > GN-033 should generate text for <input type=button> [fixme]+library/selector-generator.spec.ts > selector generator > GN-082 should generate title selector [fixme]+library/selector-generator.spec.ts > selector generator > GN-053 should handle first non-unique data-testid [fixme]+library/selector-generator.spec.ts > selector generator > GN-054 should handle second non-unique data-testid [fixme]+library/selector-generator.spec.ts > selector generator > GN-080 should ignore empty aria-label for candidate consideration [fixme]+library/selector-generator.spec.ts > selector generator > GN-085 should ignore empty data-test-id for candidate consideration [fixme]+library/selector-generator.spec.ts > selector generator > GN-083 should ignore empty role for candidate consideration [fixme]+library/selector-generator.spec.ts > selector generator > GN-074 should match in deep shadow dom [fixme]+library/selector-generator.spec.ts > selector generator > GN-073 should match in shadow dom [fixme]+library/selector-generator.spec.ts > selector generator > GN-084 should not accept invalid role for candidate consideration [fixme]+library/selector-generator.spec.ts > selector generator > GN-032 should not escape spaces inside named attr selectors [fixme]+library/selector-generator.spec.ts > selector generator > GN-046 should not escape text with >> [fixme]+library/selector-generator.spec.ts > selector generator > GN-045 should not improve guid text [fixme]+library/selector-generator.spec.ts > selector generator > GN-079 should not over-escape for CSS syntax [fixme]+library/selector-generator.spec.ts > selector generator > GN-030 should not prefer zero-sized button over inner span [fixme]+library/selector-generator.spec.ts > selector generator > GN-056 should not use generated id [fixme]+library/selector-generator.spec.ts > selector generator > GN-104 should not use icon fonts aria name [fixme]+library/selector-generator.spec.ts > selector generator > GN-067 should not use input[value] [fixme]+library/selector-generator.spec.ts > selector generator > GN-049 should not use text for select [fixme]+library/selector-generator.spec.ts > selector generator > GN-028 should prefer button over inner span [fixme]+library/selector-generator.spec.ts > selector generator > GN-065 should prefer class to ordinal [fixme]+library/selector-generator.spec.ts > selector generator > GN-051 should prefer data-testid [fixme]+library/selector-generator.spec.ts > selector generator > GN-088 should prefer role other input[type] [fixme]+library/selector-generator.spec.ts > selector generator > GN-103 should prefer role with hasText to css with hasText [fixme]+library/selector-generator.spec.ts > selector generator > GN-029 should prefer role=button over inner span [fixme]+library/selector-generator.spec.ts > selector generator > should prioritize attributes correctly > GN-070 name [fixme]+library/selector-generator.spec.ts > selector generator > should prioritize attributes correctly > GN-069 placeholder [fixme]+library/selector-generator.spec.ts > selector generator > should prioritize attributes correctly > GN-068 role [fixme]+library/selector-generator.spec.ts > selector generator > should prioritize attributes correctly > GN-071 type [fixme]+library/selector-generator.spec.ts > selector generator > GN-066 should properly join child selectors under nested ordinals [fixme]+library/selector-generator.spec.ts > selector generator > GN-062 should separate selectors by >> [fixme]+library/selector-generator.spec.ts > selector generator > GN-063 should trim long text [fixme]+library/selector-generator.spec.ts > selector generator > GN-034 should trim text [fixme]+library/selector-generator.spec.ts > selector generator > GN-044 should try to improve label text by shortening [fixme]+library/selector-generator.spec.ts > selector generator > GN-035 should try to improve role name [fixme]+library/selector-generator.spec.ts > selector generator > GN-042 should try to improve text [fixme]+library/selector-generator.spec.ts > selector generator > GN-043 should try to improve text by shortening [fixme]+library/selector-generator.spec.ts > selector generator > GN-052 should use data-testid in strict errors [fixme]+library/selector-generator.spec.ts > selector generator > GN-057 should use internal:has-text [fixme]+library/selector-generator.spec.ts > selector generator > GN-058 should use internal:has-text with regexp [fixme]+library/selector-generator.spec.ts > selector generator > GN-059 should use internal:has-text with regexp with a quote [fixme]+library/selector-generator.spec.ts > selector generator > GN-064 should use nested ordinals [fixme]+library/selector-generator.spec.ts > selector generator > GN-050 should use ordinal for identical nodes [fixme]+library/selector-generator.spec.ts > selector generator > GN-061 should use parent text [fixme]+library/selector-generator.spec.ts > selector generator > GN-055 should use readable id [fixme]+library/selector-generator.spec.ts > selector generator > GN-076 should use the name attributes for elements that can have it [fixme]+library/selector-generator.spec.ts > selector generator > GN-075 should work in dynamic iframes without navigation [fixme]+library/selector-generator.spec.ts > selector generator > GN-077 should work with tricky attributes [fixme]+library/selector-generator.spec.ts > selector generator > GN-078 should work without CSS.escape [fixme]+library/shared-worker.spec.ts > WO-026 should survive shared worker restart [fixme]+library/signals.spec.ts > signals > SI-004 should close the browser on SIGINT [fixme]+library/slowmo.spec.ts > slowMo > SL-025 Frame SlowMo setInputFiles [fixme]+library/slowmo.spec.ts > slowMo > SL-010 Page SlowMo reload [fixme]+library/slowmo.spec.ts > slowMo > SL-012 Page SlowMo setInputFiles [fixme]library/snapshotter.spec.ts > snapshots > should capture snapshot target [fixme]-library/tap.spec.ts > should not send mouse events touchstart is canceled [fixme]-library/tap.spec.ts > should not send mouse events when touchend is canceled [fixme]-library/tap.spec.ts > should not wait for a navigation caused by a tap [fixme]-library/tap.spec.ts > should send all of the correct events @smoke [fixme]-library/tap.spec.ts > should send well formed touch points [fixme]-library/tap.spec.ts > should wait until an element is visible to tap it [fixme]-library/tap.spec.ts > should work with modifiers [fixme]-library/tap.spec.ts > trial run should not tap [fixme]-library/trace-viewer.spec.ts > should handle multiple headers [fixme]-library/trace-viewer.spec.ts > should highlight locator in iframe while typing [fixme]-library/trace-viewer.spec.ts > should open console errors on click [fixme]-library/trace-viewer.spec.ts > should pick locator in iframe [fixme]-library/trace-viewer.spec.ts > should render console [fixme]-library/trace-viewer.spec.ts > should serve css without content-type [fixme]-library/trace-viewer.spec.ts > should show empty trace viewer [fixme]-library/tracing.spec.ts > should collect trace with resources, but no js [fixme]-library/tracing.spec.ts > should not include trace resources from the previous chunks [fixme]-library/tracing.spec.ts > should respect tracesDir and name [fixme]-library/video.spec.ts > screencast > should be 800x450 by default [fixme]-library/video.spec.ts > screencast > should be 800x600 with null viewport [fixme]-library/video.spec.ts > screencast > should capture css transformation [fixme]-library/video.spec.ts > screencast > should capture navigation [fixme]-library/video.spec.ts > screencast > should capture static page [fixme]-library/video.spec.ts > screencast > should capture static page in persistent context @smoke [fixme]-library/video.spec.ts > screencast > should continue recording main page after popup closes [fixme]-library/video.spec.ts > screencast > should delete video [fixme]-library/video.spec.ts > screencast > should emulate an iphone [fixme]-library/video.spec.ts > screencast > should expose video path [fixme]-library/video.spec.ts > screencast > should expose video path blank page [fixme]-library/video.spec.ts > screencast > should expose video path blank popup [fixme]-library/video.spec.ts > screencast > should throw if browser dies [fixme]-library/video.spec.ts > screencast > should throw on browser close [fixme]-library/video.spec.ts > screencast > should use viewport scaled down to fit into 800x800 as default size [fixme]-library/video.spec.ts > screencast > should wait for video to finish if page was closed [fixme]-library/video.spec.ts > screencast > should work for popups [fixme]+library/tap.spec.ts > TA-003 should not send mouse events touchstart is canceled [fixme]+library/tap.spec.ts > TA-004 should not send mouse events when touchend is canceled [fixme]+library/tap.spec.ts > TA-005 should not wait for a navigation caused by a tap [fixme]+library/tap.spec.ts > TA-001 should send all of the correct events @smoke [fixme]+library/tap.spec.ts > TA-007 should send well formed touch points [fixme]+library/tap.spec.ts > TA-008 should wait until an element is visible to tap it [fixme]+library/tap.spec.ts > TA-006 should work with modifiers [fixme]+library/tap.spec.ts > TA-002 trial run should not tap [fixme]+library/trace-viewer.spec.ts > TV-051 should handle multiple headers [fixme]+library/trace-viewer.spec.ts > TV-077 should highlight locator in iframe while typing [fixme]+library/trace-viewer.spec.ts > TV-017 should open console errors on click [fixme]+library/trace-viewer.spec.ts > TV-076 should pick locator in iframe [fixme]+library/trace-viewer.spec.ts > TV-014 should render console [fixme]+library/trace-viewer.spec.ts > TV-088 should serve css without content-type [fixme]+library/trace-viewer.spec.ts > TV-001 should show empty trace viewer [fixme]+library/tracing.spec.ts > TR-001 should collect trace with resources, but no js [fixme]+library/tracing.spec.ts > TR-014 should not include trace resources from the previous chunks [fixme]+library/tracing.spec.ts > TR-013 should respect tracesDir and name [fixme]+library/video.spec.ts > screencast > VI-017 should be 800x450 by default [fixme]+library/video.spec.ts > screencast > VI-020 should be 800x600 with null viewport [fixme]+library/video.spec.ts > screencast > VI-013 should capture css transformation [fixme]+library/video.spec.ts > screencast > VI-012 should capture navigation [fixme]+library/video.spec.ts > screencast > VI-003 should capture static page [fixme]+library/video.spec.ts > screencast > VI-021 should capture static page in persistent context @smoke [fixme]+library/video.spec.ts > screencast > VI-005 should continue recording main page after popup closes [fixme]+library/video.spec.ts > screencast > VI-007 should delete video [fixme]+library/video.spec.ts > screencast > VI-022 should emulate an iphone [fixme]+library/video.spec.ts > screencast > VI-006 should expose video path [fixme]+library/video.spec.ts > screencast > VI-008 should expose video path blank page [fixme]+library/video.spec.ts > screencast > VI-011 should expose video path blank popup [fixme]+library/video.spec.ts > screencast > VI-024 should throw if browser dies [fixme]+library/video.spec.ts > screencast > VI-023 should throw on browser close [fixme]+library/video.spec.ts > screencast > VI-016 should use viewport scaled down to fit into 800x800 as default size [fixme]+library/video.spec.ts > screencast > VI-025 should wait for video to finish if page was closed [fixme]+library/video.spec.ts > screencast > VI-014 should work for popups [fixme]library/video.spec.ts > screencast > should work with old options [fixme]-library/video.spec.ts > screencast > should work with relative path for recordVideo.dir [fixme]-library/video.spec.ts > screencast > should work with weird screen resolution [fixme]-library/video.spec.ts > should saveAs video [fixme]-library/web-socket.spec.ts > should emit binary frame events [fixme]-library/web-socket.spec.ts > should emit close events [fixme]-library/web-socket.spec.ts > should emit error [fixme]-library/web-socket.spec.ts > should emit frame events [fixme]-library/web-socket.spec.ts > should filter out the close events when the server closes with a message [fixme]-library/web-socket.spec.ts > should not have stray error events [fixme]-library/web-socket.spec.ts > should pass self as argument to close event [fixme]-library/web-socket.spec.ts > should reject waitForEvent on page close [fixme]-library/web-socket.spec.ts > should reject waitForEvent on socket close [fixme]\ No newline at end of file+library/video.spec.ts > screencast > VI-010 should work with relative path for recordVideo.dir [fixme]+library/video.spec.ts > screencast > VI-009 should work with weird screen resolution [fixme]+library/video.spec.ts > VI-031 should saveAs video [fixme]+library/web-socket.spec.ts > WS-006 should emit binary frame events [fixme]+library/web-socket.spec.ts > WS-002 should emit close events [fixme]+library/web-socket.spec.ts > WS-007 should emit error [fixme]+library/web-socket.spec.ts > WS-003 should emit frame events [fixme]+library/web-socket.spec.ts > WS-004 should filter out the close events when the server closes with a message [fixme]+library/web-socket.spec.ts > WS-008 should not have stray error events [fixme]+library/web-socket.spec.ts > WS-005 should pass self as argument to close event [fixme]+library/web-socket.spec.ts > WS-010 should reject waitForEvent on page close [fixme]+library/web-socket.spec.ts > WS-009 should reject waitForEvent on socket close [fixme]\ No newline at end of filediff --git a/tests/bidi/expectations/bidi-chromium-page.conf b/tests/bidi/expectations/bidi-chromium-page.confindex 952e9278e5..8ff3c3b0bc 100644--- a/tests/bidi/expectations/bidi-chromium-page.conf+++ b/tests/bidi/expectations/bidi-chromium-page.conf@@ -1,45 +1,45 @@-page/elementhandle-bounding-box.spec.ts > should handle nested frames [fixme]-page/elementhandle-bounding-box.spec.ts > should return null for invisible elements [fixme]-page/elementhandle-click.spec.ts > should work for TextNodes [fixme]-page/elementhandle-content-frame.spec.ts > should work for cross-frame evaluations [fixme]-page/elementhandle-owner-frame.spec.ts > should work for cross-process iframes [fixme]-page/elementhandle-query-selector.spec.ts > should work for adopted elements [fixme]-page/elementhandle-screenshot.spec.ts > element screenshot > should not issue resize event [fixme]-page/elementhandle-scroll-into-view.spec.ts > should scroll display:contents into view [fixme]-page/elementhandle-scroll-into-view.spec.ts > should throw for detached element [fixme]-page/elementhandle-scroll-into-view.spec.ts > should timeout waiting for visible [fixme]-page/elementhandle-scroll-into-view.spec.ts > should wait for display:none to become visible [fixme]-page/elementhandle-scroll-into-view.spec.ts > should wait for nested display:none to become visible [fixme]-page/expect-boolean.spec.ts > toBeAttached > over navigation [fixme]-page/expect-matcher-result.spec.ts > toHaveScreenshot should populate matcherResult [fixme]+page/elementhandle-bounding-box.spec.ts > EH-002 should handle nested frames [fixme]+page/elementhandle-bounding-box.spec.ts > EH-005 should return null for invisible elements [fixme]+page/elementhandle-click.spec.ts > EH-013 should work for TextNodes [fixme]+page/elementhandle-content-frame.spec.ts > EH-021 should work for cross-frame evaluations [fixme]+page/elementhandle-owner-frame.spec.ts > EH-056 should work for cross-process iframes [fixme]+page/elementhandle-query-selector.spec.ts > EH-069 should work for adopted elements [fixme]+page/elementhandle-screenshot.spec.ts > element screenshot > EH-092 should not issue resize event [fixme]+page/elementhandle-scroll-into-view.spec.ts > EH-096 should scroll display:contents into view [fixme]+page/elementhandle-scroll-into-view.spec.ts > EH-094 should throw for detached element [fixme]+page/elementhandle-scroll-into-view.spec.ts > EH-101 should timeout waiting for visible [fixme]+page/elementhandle-scroll-into-view.spec.ts > EH-095 should wait for display:none to become visible [fixme]+page/elementhandle-scroll-into-view.spec.ts > EH-099 should wait for nested display:none to become visible [fixme]+page/expect-boolean.spec.ts > toBeAttached > EX-086 over navigation [fixme]+page/expect-matcher-result.spec.ts > EX-180 toHaveScreenshot should populate matcherResult [fixme]page/expect-timeout.spec.ts > should not print timed out error message when page closes [fixme]-page/frame-evaluate.spec.ts > should allow cross-frame element handles [fixme]-page/frame-evaluate.spec.ts > should dispose context on cross-origin navigation [fixme]-page/frame-evaluate.spec.ts > should dispose context on navigation [fixme]-page/frame-evaluate.spec.ts > should not allow cross-frame element handles when frames do not script each other [fixme]-page/frame-frame-element.spec.ts > should work with contentFrame [fixme]-page/frame-frame-element.spec.ts > should work with frameset [fixme]-page/frame-goto.spec.ts > should continue after client redirect [fixme]-page/frame-hierarchy.spec.ts > should detach child frames on navigation [fixme]-page/frame-hierarchy.spec.ts > should refuse to display x-frame-options:deny iframe [fixme]-page/frame-hierarchy.spec.ts > should report different frame instance when frame re-attaches [fixme]-page/frame-hierarchy.spec.ts > should return frame.page() [fixme]-page/frame-hierarchy.spec.ts > should send "framenavigated" when navigating on anchor URLs [fixme]-page/frame-hierarchy.spec.ts > should support framesets [fixme]-page/interception.spec.ts > should intercept after a service worker [fixme]-page/jshandle-to-string.spec.ts > should beautifully render sparse arrays [fixme]+page/frame-evaluate.spec.ts > FR-007 should allow cross-frame element handles [fixme]+page/frame-evaluate.spec.ts > FR-004 should dispose context on cross-origin navigation [fixme]+page/frame-evaluate.spec.ts > FR-003 should dispose context on navigation [fixme]+page/frame-evaluate.spec.ts > FR-008 should not allow cross-frame element handles when frames do not script each other [fixme]+page/frame-frame-element.spec.ts > FR-015 should work with contentFrame [fixme]+page/frame-frame-element.spec.ts > FR-016 should work with frameset [fixme]+page/frame-goto.spec.ts > FR-022 should continue after client redirect [fixme]+page/frame-hierarchy.spec.ts > FR-029 should detach child frames on navigation [fixme]+page/frame-hierarchy.spec.ts > FR-035 should refuse to display x-frame-options:deny iframe [fixme]+page/frame-hierarchy.spec.ts > FR-034 should report different frame instance when frame re-attaches [fixme]+page/frame-hierarchy.spec.ts > FR-036 should return frame.page() [fixme]+page/frame-hierarchy.spec.ts > FR-026 should send "framenavigated" when navigating on anchor URLs [fixme]+page/frame-hierarchy.spec.ts > FR-030 should support framesets [fixme]+page/interception.spec.ts > RO-152 should intercept after a service worker [fixme]+page/jshandle-to-string.spec.ts > JH-020 should beautifully render sparse arrays [fixme]page/locator-click.spec.ts > should work for TextNodes [fixme]-page/locator-convenience.spec.ts > should return page [fixme]-page/locator-is-visible.spec.ts > isVisible during navigation should not throw [fixme]-page/locator-misc-1.spec.ts > should upload the file [fixme]-page/locator-misc-2.spec.ts > should take screenshot [fixme]-page/locator-query.spec.ts > should enforce same frame for has/leftOf/rightOf/above/below/near [fixme]-page/network-post-data.spec.ts > should get post data for file/blob [fixme]-page/network-post-data.spec.ts > should get post data for navigator.sendBeacon api calls [fixme]-page/network-post-data.spec.ts > should return correct postData buffer for utf-8 body [fixme]-page/network-post-data.spec.ts > should return post data for PUT requests [fixme]-page/network-post-data.spec.ts > should return post data w/o content-type @smoke [fixme]-page/network-post-data.spec.ts > should throw on invalid JSON in post data [fixme]+page/locator-convenience.spec.ts > LO-071 should return page [fixme]+page/locator-is-visible.spec.ts > LO-124 isVisible during navigation should not throw [fixme]+page/locator-misc-1.spec.ts > LO-139 should upload the file [fixme]+page/locator-misc-2.spec.ts > LO-146 should take screenshot [fixme]+page/locator-query.spec.ts > LO-180 should enforce same frame for has/leftOf/rightOf/above/below/near [fixme]+page/network-post-data.spec.ts > NE-112 should get post data for file/blob [fixme]+page/network-post-data.spec.ts > NE-113 should get post data for navigator.sendBeacon api calls [fixme]+page/network-post-data.spec.ts > NE-108 should return correct postData buffer for utf-8 body [fixme]+page/network-post-data.spec.ts > NE-111 should return post data for PUT requests [fixme]+page/network-post-data.spec.ts > NE-109 should return post data w/o content-type @smoke [fixme]+page/network-post-data.spec.ts > NE-110 should throw on invalid JSON in post data [fixme]page/network-request-body.spec.ts > should get request body for file/blob [fixme]page/network-request-body.spec.ts > should get request body for navigator.sendBeacon api calls [fixme]page/network-request-body.spec.ts > should return body for PUT requests [fixme]@@ -66,217 +66,217 @@ page/page-accessibility.spec.ts > should work on a menu [fixme]page/page-accessibility.spec.ts > should work when there is a title [fixme]page/page-accessibility.spec.ts > should work with aria-invalid accessibility tree [fixme]page/page-accessibility.spec.ts > should work with regular text [fixme]-page/page-add-init-script.spec.ts > init script should run only once in iframe [fixme]-page/page-add-locator-handler.spec.ts > should work with toHaveScreenshot [fixme]-page/page-add-script-tag.spec.ts > should throw when added with content to the CSP page [fixme]-page/page-aria-snapshot-ai.spec.ts > should stitch all frame snapshots [fixme]-page/page-autowaiting-basic.spec.ts > should await form-get on click [fixme]-page/page-autowaiting-basic.spec.ts > should await form-post on click [fixme]-page/page-autowaiting-no-hang.spec.ts > clicking in the middle of navigation that aborts [fixme]-page/page-autowaiting-no-hang.spec.ts > goBack in the middle of navigation that commits [fixme]-page/page-basic.spec.ts > frame.press should work [fixme]-page/page-basic.spec.ts > page.frame should respect url [fixme]-page/page-click-scroll.spec.ts > should scroll into view display:contents [fixme]-page/page-click.spec.ts > should click button inside frameset [fixme]-page/page-click.spec.ts > should click in a nested transformed iframe [fixme]-page/page-click.spec.ts > should click in a transformed iframe [fixme]-page/page-click.spec.ts > should click in a transformed iframe with force [fixme]-page/page-click.spec.ts > should click the button @smoke [fixme]-page/page-click.spec.ts > should click the button with fixed position inside an iframe [fixme]-page/page-click.spec.ts > should issue clicks in parallel in page and popup [fixme]-page/page-click.spec.ts > should not hang when frame is detached [fixme]-page/page-click.spec.ts > should set PointerEvent.pressure on pointerdown [fixme]-page/page-click.spec.ts > should set PointerEvent.pressure on pointermove [fixme]-page/page-dialog.spec.ts > should handle multiple alerts [fixme]-page/page-dialog.spec.ts > should handle multiple confirms [fixme]-page/page-drag.spec.ts > Drag and drop > should cancel on escape [fixme]-page/page-drag.spec.ts > Drag and drop > should not send dragover on the first mousemove [fixme]-page/page-emulate-media.spec.ts > should change the actual colors in css [fixme]-page/page-emulate-media.spec.ts > should default to light [fixme]-page/page-emulate-media.spec.ts > should emulate colorScheme should work @smoke [fixme]-page/page-emulate-media.spec.ts > should emulate contrast [fixme]-page/page-emulate-media.spec.ts > should emulate forcedColors [fixme]-page/page-emulate-media.spec.ts > should emulate reduced motion [fixme]-page/page-emulate-media.spec.ts > should emulate type @smoke [fixme]-page/page-emulate-media.spec.ts > should keep reduced motion and color emulation after reload [fixme]-page/page-emulate-media.spec.ts > should work during navigation [fixme]-page/page-evaluate-no-stall.spec.ts > should throw when no main execution context [fixme]-page/page-evaluate.spec.ts > should throw a nice error after a navigation [fixme]-page/page-evaluate.spec.ts > should throw when evaluation triggers reload [fixme]-page/page-event-console.spec.ts > should not throw when there are console messages in detached iframes [fixme]-page/page-event-console.spec.ts > should trigger correct Log [fixme]-page/page-event-console.spec.ts > should work @smoke [fixme]-page/page-event-console.spec.ts > should work for different console API calls [fixme]-page/page-event-load.spec.ts > should fire once with iframe navigation [fixme]-page/page-event-network.spec.ts > should resolve responses after a navigation [fixme]-page/page-event-pageerror.spec.ts > should contain sourceURL [fixme]-page/page-event-pageerror.spec.ts > should contain the Error.name property [fixme]-page/page-event-pageerror.spec.ts > should emit error from unhandled rejects [fixme]-page/page-event-pageerror.spec.ts > should fire [fixme]-page/page-event-pageerror.spec.ts > should handle object [fixme]-page/page-event-pageerror.spec.ts > should handle odd values [fixme]-page/page-event-pageerror.spec.ts > should handle window [fixme]-page/page-event-pageerror.spec.ts > should not receive console message for pageError [fixme]-page/page-event-pageerror.spec.ts > should support an empty Error.name property [fixme]-page/page-event-popup.spec.ts > should be able to capture alert [fixme]-page/page-event-popup.spec.ts > should report popup opened from iframes [fixme]-page/page-event-popup.spec.ts > should work with clicking target=_blank [fixme]-page/page-event-request.spec.ts > should fire requestfailed when intercepting race [fixme]-page/page-event-request.spec.ts > should not expose preflight OPTIONS request [fixme]-page/page-event-request.spec.ts > should not expose preflight OPTIONS request with network interception [fixme]-page/page-event-request.spec.ts > should report navigation requests and responses handled by service worker with routing [fixme]-page/page-event-request.spec.ts > should report requests and responses handled by service worker [fixme]-page/page-event-request.spec.ts > should report requests and responses handled by service worker with routing [fixme]-page/page-expose-function.spec.ts > should be callable from-inside addInitScript [fixme]+page/page-add-init-script.spec.ts > IS-011 init script should run only once in iframe [fixme]+page/page-add-locator-handler.spec.ts > LH-008 should work with toHaveScreenshot [fixme]+page/page-add-script-tag.spec.ts > AT-010 should throw when added with content to the CSP page [fixme]+page/page-aria-snapshot-ai.spec.ts > AR-052 should stitch all frame snapshots [fixme]+page/page-autowaiting-basic.spec.ts > AW-004 should await form-get on click [fixme]+page/page-autowaiting-basic.spec.ts > AW-005 should await form-post on click [fixme]+page/page-autowaiting-no-hang.spec.ts > AW-020 clicking in the middle of navigation that aborts [fixme]+page/page-autowaiting-no-hang.spec.ts > AW-023 goBack in the middle of navigation that commits [fixme]+page/page-basic.spec.ts > PA-017 frame.press should work [fixme]+page/page-basic.spec.ts > PA-013 page.frame should respect url [fixme]+page/page-click-scroll.spec.ts > CL-095 should scroll into view display:contents [fixme]+page/page-click.spec.ts > CL-002 should click button inside frameset [fixme]+page/page-click.spec.ts > CL-080 should click in a nested transformed iframe [fixme]+page/page-click.spec.ts > CL-077 should click in a transformed iframe [fixme]+page/page-click.spec.ts > CL-079 should click in a transformed iframe with force [fixme]+page/page-click.spec.ts > CL-001 should click the button @smoke [fixme]+page/page-click.spec.ts > CL-035 should click the button with fixed position inside an iframe [fixme]+page/page-click.spec.ts > CL-003 should issue clicks in parallel in page and popup [fixme]+page/page-click.spec.ts > CL-069 should not hang when frame is detached [fixme]+page/page-click.spec.ts > CL-085 should set PointerEvent.pressure on pointerdown [fixme]+page/page-click.spec.ts > CL-086 should set PointerEvent.pressure on pointermove [fixme]+page/page-dialog.spec.ts > DI-010 should handle multiple alerts [fixme]+page/page-dialog.spec.ts > DI-011 should handle multiple confirms [fixme]+page/page-drag.spec.ts > Drag and drop > DD-005 should cancel on escape [fixme]+page/page-drag.spec.ts > Drag and drop > DD-003 should not send dragover on the first mousemove [fixme]+page/page-emulate-media.spec.ts > EM-007 should change the actual colors in css [fixme]+page/page-emulate-media.spec.ts > EM-004 should default to light [fixme]+page/page-emulate-media.spec.ts > EM-003 should emulate colorScheme should work @smoke [fixme]+page/page-emulate-media.spec.ts > EM-011 should emulate contrast [fixme]+page/page-emulate-media.spec.ts > EM-010 should emulate forcedColors [fixme]+page/page-emulate-media.spec.ts > EM-008 should emulate reduced motion [fixme]+page/page-emulate-media.spec.ts > EM-001 should emulate type @smoke [fixme]+page/page-emulate-media.spec.ts > EM-009 should keep reduced motion and color emulation after reload [fixme]+page/page-emulate-media.spec.ts > EM-006 should work during navigation [fixme]+page/page-evaluate-no-stall.spec.ts > EV-137 should throw when no main execution context [fixme]+page/page-evaluate.spec.ts > EV-063 should throw a nice error after a navigation [fixme]+page/page-evaluate.spec.ts > EV-022 should throw when evaluation triggers reload [fixme]+page/page-event-console.spec.ts > CM-010 should not throw when there are console messages in detached iframes [fixme]+page/page-event-console.spec.ts > CM-008 should trigger correct Log [fixme]+page/page-event-console.spec.ts > CM-001 should work @smoke [fixme]+page/page-event-console.spec.ts > CM-004 should work for different console API calls [fixme]+page/page-event-load.spec.ts > NA-088 should fire once with iframe navigation [fixme]+page/page-event-network.spec.ts > NE-090 should resolve responses after a navigation [fixme]+page/page-event-pageerror.spec.ts > ER-003 should contain sourceURL [fixme]+page/page-event-pageerror.spec.ts > ER-004 should contain the Error.name property [fixme]+page/page-event-pageerror.spec.ts > ER-010 should emit error from unhandled rejects [fixme]+page/page-event-pageerror.spec.ts > ER-001 should fire [fixme]+page/page-event-pageerror.spec.ts > ER-007 should handle object [fixme]+page/page-event-pageerror.spec.ts > ER-006 should handle odd values [fixme]+page/page-event-pageerror.spec.ts > ER-008 should handle window [fixme]+page/page-event-pageerror.spec.ts > ER-002 should not receive console message for pageError [fixme]+page/page-event-pageerror.spec.ts > ER-005 should support an empty Error.name property [fixme]+page/page-event-popup.spec.ts > PO-005 should be able to capture alert [fixme]+page/page-event-popup.spec.ts > PO-013 should report popup opened from iframes [fixme]+page/page-event-popup.spec.ts > PO-010 should work with clicking target=_blank [fixme]+page/page-event-request.spec.ts > NE-100 should fire requestfailed when intercepting race [fixme]+page/page-event-request.spec.ts > NE-105 should not expose preflight OPTIONS request [fixme]+page/page-event-request.spec.ts > NE-106 should not expose preflight OPTIONS request with network interception [fixme]+page/page-event-request.spec.ts > NE-098 should report navigation requests and responses handled by service worker with routing [fixme]+page/page-event-request.spec.ts > NE-095 should report requests and responses handled by service worker [fixme]+page/page-event-request.spec.ts > NE-096 should report requests and responses handled by service worker with routing [fixme]+page/page-expose-function.spec.ts > EF-007 should be callable from-inside addInitScript [fixme]page/page-expose-function.spec.ts > should not result in unhandled rejection [fixme]-page/page-expose-function.spec.ts > should work on frames [fixme]-page/page-expose-function.spec.ts > should work on frames before navigation [fixme]-page/page-expose-function.spec.ts > should work with busted Array.prototype.map/push [fixme]-page/page-filechooser.spec.ts > should not throw when frame is detached immediately [fixme]-page/page-fill.spec.ts > should not double-fill in contenteditable with beforeinput handler in Firefox [fixme]-page/page-focus.spec.ts > should emit blur event [fixme]-page/page-goto.spec.ts > should be able to navigate to a page controlled by service worker [fixme]-page/page-goto.spec.ts > should fail when canceled by another navigation [fixme]-page/page-goto.spec.ts > should fail when replaced by another navigation [fixme]-page/page-goto.spec.ts > should not leak listeners during navigation [fixme]-page/page-goto.spec.ts > should override referrer-policy [fixme]-page/page-goto.spec.ts > should send referer [fixme]-page/page-goto.spec.ts > should send referer of cross-origin URL [fixme]-page/page-goto.spec.ts > should work with anchor navigation [fixme]-page/page-goto.spec.ts > should work with file URL with subframes [fixme]-page/page-goto.spec.ts > should work with lazy loading iframes [fixme]-page/page-goto.spec.ts > should work with subframes return 204 with domcontentloaded [fixme]-page/page-history.spec.ts > goBack/goForward should work with bfcache-able pages [fixme]-page/page-history.spec.ts > page.goBack during renderer-initiated navigation [fixme]-page/page-history.spec.ts > page.goForward during renderer-initiated navigation [fixme]-page/page-history.spec.ts > page.reload during renderer-initiated navigation [fixme]-page/page-history.spec.ts > page.reload should work with data url [fixme]-page/page-history.spec.ts > regression test for issue 20791 [fixme]-page/page-history.spec.ts > should reload proper page [fixme]-page/page-keyboard.spec.ts > insertText should only emit input event [fixme]-page/page-keyboard.spec.ts > should press Enter [fixme]-page/page-keyboard.spec.ts > should send a character with insertText [fixme]-page/page-keyboard.spec.ts > should send proper codes while typing with shift [fixme]-page/page-keyboard.spec.ts > should shift raw codes [fixme]-page/page-keyboard.spec.ts > should work after a cross origin navigation [fixme]-page/page-navigation.spec.ts > should work with _blank target in form [fixme]-page/page-navigation.spec.ts > should work with cross-process _blank target [fixme]-page/page-network-idle.spec.ts > should navigate to empty page with networkidle [fixme]-page/page-network-idle.spec.ts > should wait for networkidle from the popup [fixme]-page/page-network-request.spec.ts > page.reload return 304 status code [fixme]-page/page-network-request.spec.ts > should get the same headers as the server [fixme]-page/page-network-request.spec.ts > should get the same headers as the server CORS [fixme]-page/page-network-request.spec.ts > should handle mixed-content blocked requests [fixme]-page/page-network-request.spec.ts > should not allow to access frame on popup main request [fixme]-page/page-network-request.spec.ts > should not get preflight CORS requests when intercepting [fixme]-page/page-network-request.spec.ts > should not return allHeaders() until they are available [fixme]-page/page-network-request.spec.ts > should parse the data if content-type is application/x-www-form-urlencoded [fixme]-page/page-network-request.spec.ts > should parse the data if content-type is application/x-www-form-urlencoded; charset=UTF-8 [fixme]-page/page-network-request.spec.ts > should parse the json post data [fixme]-page/page-network-request.spec.ts > should report raw headers [fixme]-page/page-network-request.spec.ts > should report raw response headers in redirects [fixme]-page/page-network-request.spec.ts > should return event source [fixme]-page/page-network-request.spec.ts > should return multipart/form-data [fixme]-page/page-network-request.spec.ts > should return navigation bit [fixme]-page/page-network-request.spec.ts > should return postData [fixme]-page/page-network-request.spec.ts > should work with binary post data [fixme]-page/page-network-request.spec.ts > should work with binary post data and interception [fixme]-page/page-network-response.spec.ts > should behave the same way for headers and allHeaders [fixme]-page/page-network-response.spec.ts > should provide a Response with a file URL [fixme]-page/page-network-response.spec.ts > should report all headers [fixme]-page/page-network-response.spec.ts > should report if request was fromServiceWorker [fixme]-page/page-network-response.spec.ts > should report multiple set-cookie headers [fixme]-page/page-network-response.spec.ts > should return headers after route.fulfill [fixme]-page/page-network-response.spec.ts > should return set-cookie header after route.fulfill [fixme]-page/page-network-sizes.spec.ts > should handle redirects [fixme]-page/page-network-sizes.spec.ts > should have the correct responseBodySize [fixme]-page/page-network-sizes.spec.ts > should have the correct responseBodySize for chunked request [fixme]-page/page-network-sizes.spec.ts > should have the correct responseBodySize with gzip compression [fixme]-page/page-network-sizes.spec.ts > should set bodySize to 0 when there was no response body [fixme]-page/page-network-sizes.spec.ts > should set bodySize, headersSize, and transferSize [fixme]-page/page-network-sizes.spec.ts > should work with 200 status code [fixme]-page/page-network-sizes.spec.ts > should work with 401 status code [fixme]-page/page-network-sizes.spec.ts > should work with 404 status code [fixme]-page/page-network-sizes.spec.ts > should work with 500 status code [fixme]-page/page-request-continue.spec.ts > propagate headers cross origin redirect [fixme]-page/page-request-continue.spec.ts > redirected requests should report overridden headers [fixme]-page/page-request-continue.spec.ts > should not allow to override unsafe HTTP headers [fixme]-page/page-request-fulfill.spec.ts > headerValue should return set-cookie from intercepted response [fixme]-page/page-request-fulfill.spec.ts > should allow mocking binary responses [fixme]-page/page-request-fulfill.spec.ts > should allow mocking svg with charset [fixme]-page/page-request-fulfill.spec.ts > should fulfill with fetch response that has multiple set-cookie [fixme]-page/page-request-fulfill.spec.ts > should fulfill with multiple set-cookie [fixme]-page/page-request-fulfill.spec.ts > should include the origin header [fixme]-page/page-request-gc.spec.ts > should work [fixme]-page/page-request-intercept.spec.ts > request.postData is not null when fetching FormData with a Blob [fixme]-page/page-request-intercept.spec.ts > should abort favicon requests if interception is enabled [fixme]+page/page-expose-function.spec.ts > EF-010 should work on frames [fixme]+page/page-expose-function.spec.ts > EF-011 should work on frames before navigation [fixme]+page/page-expose-function.spec.ts > EF-019 should work with busted Array.prototype.map/push [fixme]+page/page-filechooser.spec.ts > FC-010 should not throw when frame is detached immediately [fixme]+page/page-fill.spec.ts > FI-016 should not double-fill in contenteditable with beforeinput handler in Firefox [fixme]+page/page-focus.spec.ts > FO-003 should emit blur event [fixme]+page/page-goto.spec.ts > NA-051 should be able to navigate to a page controlled by service worker [fixme]+page/page-goto.spec.ts > NA-056 should fail when canceled by another navigation [fixme]+page/page-goto.spec.ts > NA-037 should fail when replaced by another navigation [fixme]+page/page-goto.spec.ts > NA-044 should not leak listeners during navigation [fixme]+page/page-goto.spec.ts > NA-055 should override referrer-policy [fixme]+page/page-goto.spec.ts > NA-052 should send referer [fixme]+page/page-goto.spec.ts > NA-053 should send referer of cross-origin URL [fixme]+page/page-goto.spec.ts > NA-014 should work with anchor navigation [fixme]+page/page-goto.spec.ts > NA-004 should work with file URL with subframes [fixme]+page/page-goto.spec.ts > NA-057 should work with lazy loading iframes [fixme]+page/page-goto.spec.ts > NA-019 should work with subframes return 204 with domcontentloaded [fixme]+page/page-history.spec.ts > NA-074 goBack/goForward should work with bfcache-able pages [fixme]+page/page-history.spec.ts > NA-083 page.goBack during renderer-initiated navigation [fixme]+page/page-history.spec.ts > NA-084 page.goForward during renderer-initiated navigation [fixme]+page/page-history.spec.ts > NA-077 page.reload during renderer-initiated navigation [fixme]+page/page-history.spec.ts > NA-076 page.reload should work with data url [fixme]+page/page-history.spec.ts > NA-085 regression test for issue 20791 [fixme]+page/page-history.spec.ts > NA-086 should reload proper page [fixme]+page/page-keyboard.spec.ts > KB-006 insertText should only emit input event [fixme]+page/page-keyboard.spec.ts > KB-025 should press Enter [fixme]+page/page-keyboard.spec.ts > KB-004 should send a character with insertText [fixme]+page/page-keyboard.spec.ts > KB-012 should send proper codes while typing with shift [fixme]+page/page-keyboard.spec.ts > KB-018 should shift raw codes [fixme]+page/page-keyboard.spec.ts > KB-036 should work after a cross origin navigation [fixme]+page/page-navigation.spec.ts > NA-069 should work with _blank target in form [fixme]+page/page-navigation.spec.ts > NA-068 should work with cross-process _blank target [fixme]+page/page-network-idle.spec.ts > NE-070 should navigate to empty page with networkidle [fixme]+page/page-network-idle.spec.ts > NE-079 should wait for networkidle from the popup [fixme]+page/page-network-request.spec.ts > NE-028 page.reload return 304 status code [fixme]+page/page-network-request.spec.ts > NE-007 should get the same headers as the server [fixme]+page/page-network-request.spec.ts > NE-009 should get the same headers as the server CORS [fixme]+page/page-network-request.spec.ts > NE-029 should handle mixed-content blocked requests [fixme]+page/page-network-request.spec.ts > NE-027 should not allow to access frame on popup main request [fixme]+page/page-network-request.spec.ts > NE-010 should not get preflight CORS requests when intercepting [fixme]+page/page-network-request.spec.ts > NE-008 should not return allHeaders() until they are available [fixme]+page/page-network-request.spec.ts > NE-017 should parse the data if content-type is application/x-www-form-urlencoded [fixme]+page/page-network-request.spec.ts > NE-018 should parse the data if content-type is application/x-www-form-urlencoded; charset=UTF-8 [fixme]+page/page-network-request.spec.ts > NE-016 should parse the json post data [fixme]+page/page-network-request.spec.ts > NE-024 should report raw headers [fixme]+page/page-network-request.spec.ts > NE-025 should report raw response headers in redirects [fixme]+page/page-network-request.spec.ts > NE-021 should return event source [fixme]+page/page-network-request.spec.ts > NE-020 should return multipart/form-data [fixme]+page/page-network-request.spec.ts > NE-022 should return navigation bit [fixme]+page/page-network-request.spec.ts > NE-011 should return postData [fixme]+page/page-network-request.spec.ts > NE-012 should work with binary post data [fixme]+page/page-network-request.spec.ts > NE-013 should work with binary post data and interception [fixme]+page/page-network-response.spec.ts > NE-045 should behave the same way for headers and allHeaders [fixme]+page/page-network-response.spec.ts > NE-046 should provide a Response with a file URL [fixme]+page/page-network-response.spec.ts > NE-043 should report all headers [fixme]+page/page-network-response.spec.ts > NE-049 should report if request was fromServiceWorker [fixme]+page/page-network-response.spec.ts > NE-044 should report multiple set-cookie headers [fixme]+page/page-network-response.spec.ts > NE-048 should return headers after route.fulfill [fixme]+page/page-network-response.spec.ts > NE-047 should return set-cookie header after route.fulfill [fixme]+page/page-network-sizes.spec.ts > NE-065 should handle redirects [fixme]+page/page-network-sizes.spec.ts > NE-062 should have the correct responseBodySize [fixme]+page/page-network-sizes.spec.ts > NE-063 should have the correct responseBodySize for chunked request [fixme]+page/page-network-sizes.spec.ts > NE-064 should have the correct responseBodySize with gzip compression [fixme]+page/page-network-sizes.spec.ts > NE-061 should set bodySize to 0 when there was no response body [fixme]+page/page-network-sizes.spec.ts > NE-060 should set bodySize, headersSize, and transferSize [fixme]+page/page-network-sizes.spec.ts > NE-067 should work with 200 status code [fixme]+page/page-network-sizes.spec.ts > NE-067 should work with 401 status code [fixme]+page/page-network-sizes.spec.ts > NE-067 should work with 404 status code [fixme]+page/page-network-sizes.spec.ts > NE-067 should work with 500 status code [fixme]+page/page-request-continue.spec.ts > RO-089 propagate headers cross origin redirect [fixme]+page/page-request-continue.spec.ts > RO-085 redirected requests should report overridden headers [fixme]+page/page-request-continue.spec.ts > RO-059 should not allow to override unsafe HTTP headers [fixme]+page/page-request-fulfill.spec.ts > RO-113 headerValue should return set-cookie from intercepted response [fixme]+page/page-request-fulfill.spec.ts > RO-101 should allow mocking binary responses [fixme]+page/page-request-fulfill.spec.ts > RO-102 should allow mocking svg with charset [fixme]+page/page-request-fulfill.spec.ts > RO-112 should fulfill with fetch response that has multiple set-cookie [fixme]+page/page-request-fulfill.spec.ts > RO-111 should fulfill with multiple set-cookie [fixme]+page/page-request-fulfill.spec.ts > RO-106 should include the origin header [fixme]+page/page-request-gc.spec.ts > RO-149 should work [fixme]+page/page-request-intercept.spec.ts > RO-147 request.postData is not null when fetching FormData with a Blob [fixme]+page/page-request-intercept.spec.ts > RO-148 should abort favicon requests if interception is enabled [fixme]page/page-request-intercept.spec.ts > should fulfill popup main request using alias [fixme]-page/page-request-intercept.spec.ts > should override with defaults when intercepted response not provided [fixme]-page/page-route.spec.ts > should add Access-Control-Allow-Origin by default when fulfill [fixme]-page/page-route.spec.ts > should allow null origin for about:blank [fixme]-page/page-route.spec.ts > should be abortable with custom error codes [fixme]-page/page-route.spec.ts > should contain raw request header [fixme]-page/page-route.spec.ts > should intercept when postData is more than 1MB [fixme]-page/page-route.spec.ts > should not auto-intercept non-preflight OPTIONS with network interception [fixme]-page/page-route.spec.ts > should not override cookie header [fixme]-page/page-route.spec.ts > should support cors for different methods [fixme]-page/page-route.spec.ts > should support cors with credentials [fixme]-page/page-route.spec.ts > should support cors with POST [fixme]-page/page-screenshot.spec.ts > page screenshot > should allow transparency [fixme]-page/page-set-extra-http-headers.spec.ts > should not duplicate referer header [fixme]-page/page-set-input-files.spec.ts > input event.composed should be true and cross shadow dom boundary [fixme]-page/page-set-input-files.spec.ts > input should trigger events when files changed second time [fixme]+page/page-request-intercept.spec.ts > RO-136 should override with defaults when intercepted response not provided [fixme]+page/page-route.spec.ts > RO-035 should add Access-Control-Allow-Origin by default when fulfill [fixme]+page/page-route.spec.ts > RO-036 should allow null origin for about:blank [fixme]+page/page-route.spec.ts > RO-016 should be abortable with custom error codes [fixme]+page/page-route.spec.ts > RO-049 should contain raw request header [fixme]+page/page-route.spec.ts > RO-054 should intercept when postData is more than 1MB [fixme]+page/page-route.spec.ts > RO-039 should not auto-intercept non-preflight OPTIONS with network interception [fixme]+page/page-route.spec.ts > RO-009 should not override cookie header [fixme]+page/page-route.spec.ts > RO-044 should support cors for different methods [fixme]+page/page-route.spec.ts > RO-041 should support cors with credentials [fixme]+page/page-route.spec.ts > RO-040 should support cors with POST [fixme]+page/page-screenshot.spec.ts > page screenshot > SS-014 should allow transparency [fixme]+page/page-set-extra-http-headers.spec.ts > NE-118 should not duplicate referer header [fixme]+page/page-set-input-files.spec.ts > IF-019 input event.composed should be true and cross shadow dom boundary [fixme]+page/page-set-input-files.spec.ts > IF-020 input should trigger events when files changed second time [fixme]page/page-set-input-files.spec.ts > should accept single file [fixme]page/page-set-input-files.spec.ts > should be able to read selected file [fixme]page/page-set-input-files.spec.ts > should be able to reset selected files with empty file list [fixme]-page/page-set-input-files.spec.ts > should detect mime type [fixme]+page/page-set-input-files.spec.ts > IF-016 should detect mime type [fixme]page/page-set-input-files.spec.ts > should emit event addListener/removeListener [fixme]page/page-set-input-files.spec.ts > should emit event after navigation [fixme]page/page-set-input-files.spec.ts > should emit event for iframe [fixme]page/page-set-input-files.spec.ts > should emit event on/off [fixme]page/page-set-input-files.spec.ts > should emit event once [fixme]page/page-set-input-files.spec.ts > should emit event via prepend [fixme]-page/page-set-input-files.spec.ts > should emit input and change events [fixme]+page/page-set-input-files.spec.ts > IF-018 should emit input and change events [fixme]page/page-set-input-files.spec.ts > should not accept multiple files for single-file input [fixme]page/page-set-input-files.spec.ts > should not throw when filechooser belongs to iframe [fixme]-page/page-set-input-files.spec.ts > should preserve lastModified timestamp [fixme]+page/page-set-input-files.spec.ts > IF-021 should preserve lastModified timestamp [fixme]page/page-set-input-files.spec.ts > should return the same file chooser when there are many watchdogs simultaneously [fixme]-page/page-set-input-files.spec.ts > should set from memory [fixme]+page/page-set-input-files.spec.ts > IF-014 should set from memory [fixme]page/page-set-input-files.spec.ts > should trigger listener added before navigation [fixme]-page/page-set-input-files.spec.ts > should work @smoke [fixme]+page/page-set-input-files.spec.ts > IF-013 should work @smoke [fixme]page/page-set-input-files.spec.ts > should work for "multiple" [fixme]page/page-set-input-files.spec.ts > should work for "webkitdirectory" [fixme]page/page-set-input-files.spec.ts > should work for single file pick [fixme]page/page-set-input-files.spec.ts > should work when file input is attached to DOM [fixme]page/page-set-input-files.spec.ts > should work when file input is not attached to DOM [fixme]-page/page-set-input-files.spec.ts > should work with CSP [fixme]+page/page-set-input-files.spec.ts > IF-015 should work with CSP [fixme]page/page-set-input-files.spec.ts > should work with no timeout [fixme]-page/page-wait-for-load-state.spec.ts > should wait for load state of about:blank popup [fixme]-page/page-wait-for-load-state.spec.ts > should wait for load state of about:blank popup with noopener [fixme]-page/page-wait-for-load-state.spec.ts > should wait for load state of empty url popup [fixme]-page/page-wait-for-load-state.spec.ts > should wait for load state of newPage [fixme]-page/page-wait-for-navigation.spec.ts > should work with url match [fixme]-page/page-wait-for-selector-1.spec.ts > should throw when frame is detached [fixme]-page/page-wait-for-selector-2.spec.ts > should throw when frame is detached xpath [fixme]-page/page-wait-for-selector-2.spec.ts > should work when navigating before node adoption [fixme]-page/page-wait-for-url.spec.ts > should work with commit and about:blank [fixme]-page/retarget.spec.ts > setInputFiles should work with label [fixme]-page/wheel.spec.ts > should dispatch wheel events after popup was opened @smoke [fixme]-page/workers.spec.ts > Page.workers @smoke [fixme]-page/workers.spec.ts > should attribute network activity for worker inside iframe to the iframe [fixme]-page/workers.spec.ts > should clear upon cross-process navigation [fixme]-page/workers.spec.ts > should clear upon navigation [fixme]-page/workers.spec.ts > should dispatch console messages when page has workers [fixme]-page/workers.spec.ts > should emit created and destroyed events [fixme]-page/workers.spec.ts > should evaluate [fixme]-page/workers.spec.ts > should have JSHandles for console logs [fixme]-page/workers.spec.ts > should not report console logs from workers twice [fixme]-page/workers.spec.ts > should report and intercept network from nested worker [fixme]-page/workers.spec.ts > should report console event on the worker [fixme]-page/workers.spec.ts > should report console event on the worker when not listening on page or context [fixme]-page/workers.spec.ts > should report console logs [fixme]-page/workers.spec.ts > should report errors [fixme]-page/workers.spec.ts > should report network activity [fixme]-page/workers.spec.ts > should report network activity on worker creation [fixme]-page/workers.spec.ts > should support extra http headers [fixme]-page/workers.spec.ts > should support offline [fixme]\ No newline at end of file+page/page-wait-for-load-state.spec.ts > WA-084 should wait for load state of about:blank popup [fixme]+page/page-wait-for-load-state.spec.ts > WA-085 should wait for load state of about:blank popup with noopener [fixme]+page/page-wait-for-load-state.spec.ts > WA-083 should wait for load state of empty url popup [fixme]+page/page-wait-for-load-state.spec.ts > WA-089 should wait for load state of newPage [fixme]+page/page-wait-for-navigation.spec.ts > WA-105 should work with url match [fixme]+page/page-wait-for-selector-1.spec.ts > WA-043 should throw when frame is detached [fixme]+page/page-wait-for-selector-2.spec.ts > WA-068 should throw when frame is detached xpath [fixme]+page/page-wait-for-selector-2.spec.ts > WA-072 should work when navigating before node adoption [fixme]+page/page-wait-for-url.spec.ts > WA-114 should work with commit and about:blank [fixme]+page/retarget.spec.ts > RE-006 setInputFiles should work with label [fixme]+page/wheel.spec.ts > MO-018 should dispatch wheel events after popup was opened @smoke [fixme]+page/workers.spec.ts > WO-001 Page.workers @smoke [fixme]+page/workers.spec.ts > WO-014 should attribute network activity for worker inside iframe to the iframe [fixme]+page/workers.spec.ts > WO-013 should clear upon cross-process navigation [fixme]+page/workers.spec.ts > WO-012 should clear upon navigation [fixme]+page/workers.spec.ts > WO-019 should dispatch console messages when page has workers [fixme]+page/workers.spec.ts > WO-002 should emit created and destroyed events [fixme]+page/workers.spec.ts > WO-008 should evaluate [fixme]+page/workers.spec.ts > WO-007 should have JSHandles for console logs [fixme]+page/workers.spec.ts > WO-006 should not report console logs from workers twice [fixme]+page/workers.spec.ts > WO-020 should report and intercept network from nested worker [fixme]+page/workers.spec.ts > WO-009 should report console event on the worker [fixme]+page/workers.spec.ts > WO-010 should report console event on the worker when not listening on page or context [fixme]+page/workers.spec.ts > WO-004 should report console logs [fixme]+page/workers.spec.ts > WO-011 should report errors [fixme]+page/workers.spec.ts > WO-015 should report network activity [fixme]+page/workers.spec.ts > WO-016 should report network activity on worker creation [fixme]+page/workers.spec.ts > WO-021 should support extra http headers [fixme]+page/workers.spec.ts > WO-022 should support offline [fixme]\ No newline at end of filediff --git a/tests/bidi/expectations/moz-firefox-nightly-library.conf b/tests/bidi/expectations/moz-firefox-nightly-library.confindex 33aff003df..4b83834461 100644--- a/tests/bidi/expectations/moz-firefox-nightly-library.conf+++ b/tests/bidi/expectations/moz-firefox-nightly-library.conf@@ -1,70 +1,70 @@library/agent-perform.spec.ts > retrieve a secret [fixme]-library/browsercontext-add-cookies.spec.ts > should allow unnamed cookies [fixme]-library/browsercontext-basic.spec.ts > fetch with keepalive should throw when offline [fixme]-library/browsercontext-basic.spec.ts > should disable javascript [fixme]-library/browsercontext-basic.spec.ts > should emulate media in cross-process iframe [fixme]-library/browsercontext-basic.spec.ts > should emulate media in popup [fixme]-library/browsercontext-cookies-third-party.spec.ts > same origin third party 'Partitioned;' cookie with different origin intermediate iframe [fixme]-library/browsercontext-cookies-third-party.spec.ts > save/load third party 'Partitioned;' cookies [fixme]-library/browsercontext-cookies-third-party.spec.ts > save/load third party non-partitioned cookies [fixme]-library/browsercontext-cookies-third-party.spec.ts > should be able to send third party cookies via an iframe [fixme]-library/browsercontext-cookies-third-party.spec.ts > third party 'Partitioned;' cookies [fixme]-library/browsercontext-cookies-third-party.spec.ts > third party non-partitioned cookies [fixme]-library/browsercontext-cookies.spec.ts > should support requestStorageAccess [fixme]-library/browsercontext-csp.spec.ts > should bypass CSP header [fixme]-library/browsercontext-csp.spec.ts > should bypass CSP in iframes as well [fixme]-library/browsercontext-csp.spec.ts > should bypass CSP meta tag @smoke [fixme]-library/browsercontext-csp.spec.ts > should bypass after cross-process navigation [fixme]+library/browsercontext-add-cookies.spec.ts > CO-040 should allow unnamed cookies [fixme]+library/browsercontext-basic.spec.ts > BC-024 fetch with keepalive should throw when offline [fixme]+library/browsercontext-basic.spec.ts > BC-018 should disable javascript [fixme]+library/browsercontext-basic.spec.ts > BC-029 should emulate media in cross-process iframe [fixme]+library/browsercontext-basic.spec.ts > BC-028 should emulate media in popup [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-057 same origin third party 'Partitioned;' cookie with different origin intermediate iframe [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-055 save/load third party 'Partitioned;' cookies [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-053 save/load third party non-partitioned cookies [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-059 should be able to send third party cookies via an iframe [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-054 third party 'Partitioned;' cookies [fixme]+library/browsercontext-cookies-third-party.spec.ts > CO-052 third party non-partitioned cookies [fixme]+library/browsercontext-cookies.spec.ts > CO-016 should support requestStorageAccess [fixme]+library/browsercontext-csp.spec.ts > CS-002 should bypass CSP header [fixme]+library/browsercontext-csp.spec.ts > CS-004 should bypass CSP in iframes as well [fixme]+library/browsercontext-csp.spec.ts > CS-001 should bypass CSP meta tag @smoke [fixme]+library/browsercontext-csp.spec.ts > CS-003 should bypass after cross-process navigation [fixme]library/browsercontext-devtools.spec.ts > should close tab via close button [fixme]library/browsercontext-devtools.spec.ts > should display screencast image [fixme]library/browsercontext-devtools.spec.ts > should show no-pages placeholder when all tabs are closed [fixme]-library/browsercontext-events.spec.ts > console event should work with element handles [fixme]-library/browsercontext-har.spec.ts > should goForward to redirected navigation [fixme]-library/browsercontext-har.spec.ts > should record overridden requests to har [fixme]-library/browsercontext-har.spec.ts > should round-trip har with postData [fixme]-library/browsercontext-locale.spec.ts > should format number [fixme]-library/browsercontext-locale.spec.ts > should format number in popups [fixme]+library/browsercontext-events.spec.ts > BC-033 console event should work with element handles [fixme]+library/browsercontext-har.spec.ts > HA-082 should goForward to redirected navigation [fixme]+library/browsercontext-har.spec.ts > HA-089 should record overridden requests to har [fixme]+library/browsercontext-har.spec.ts > HA-088 should round-trip har with postData [fixme]+library/browsercontext-locale.spec.ts > LC-003 should format number [fixme]+library/browsercontext-locale.spec.ts > LC-005 should format number in popups [fixme]library/browsercontext-locale.spec.ts > should format number in workers [fixme]-library/browsercontext-network-event.spec.ts > should reject response.finished if context closes [fixme]-library/browsercontext-page-event.spec.ts > should have about:blank for empty url with domcontentloaded [fixme]-library/browsercontext-page-event.spec.ts > should have about:blank url with domcontentloaded [fixme]-library/browsercontext-page-event.spec.ts > should have an opener [fixme]-library/browsercontext-page-event.spec.ts > should have url [fixme]-library/browsercontext-page-event.spec.ts > should report when a new page is created and closed [fixme]-library/browsercontext-pages.spec.ts > frame.focus should work multiple times [fixme]-library/browsercontext-pages.spec.ts > should click the button with deviceScaleFactor set [fixme]-library/browsercontext-reuse.spec.ts > reuse connect > should not cache resources [fixme]-library/browsercontext-reuse.spec.ts > reuse connect > should reset serviceworker [fixme]-library/browsercontext-reuse.spec.ts > reuse connect > should reset serviceworker that hangs in importScripts [fixme]-library/browsercontext-reuse.spec.ts > reuse connect > should update viewport and media [fixme]-library/browsercontext-reuse.spec.ts > reuse launch > should not cache resources [fixme]-library/browsercontext-reuse.spec.ts > reuse launch > should reset serviceworker [fixme]-library/browsercontext-reuse.spec.ts > reuse launch > should reset serviceworker that hangs in importScripts [fixme]-library/browsercontext-reuse.spec.ts > reuse launch > should update viewport and media [fixme]-library/browsercontext-service-worker-policy.spec.ts > block > should not throw error on about:blank [fixme]-library/browsercontext-storage-state.spec.ts > should roundtrip local storage in third-party context [fixme]-library/browsercontext-storage-state.spec.ts > should set local storage in third-party context [fixme]-library/browsercontext-storage-state.spec.ts > should work when service worker is intefering and the origin is not open [fixme]+library/browsercontext-network-event.spec.ts > NE-127 should reject response.finished if context closes [fixme]+library/browsercontext-page-event.spec.ts > BC-065 should have about:blank for empty url with domcontentloaded [fixme]+library/browsercontext-page-event.spec.ts > BC-064 should have about:blank url with domcontentloaded [fixme]+library/browsercontext-page-event.spec.ts > BC-069 should have an opener [fixme]+library/browsercontext-page-event.spec.ts > BC-062 should have url [fixme]+library/browsercontext-page-event.spec.ts > BC-066 should report when a new page is created and closed [fixme]+library/browsercontext-pages.spec.ts > BC-053 frame.focus should work multiple times [fixme]+library/browsercontext-pages.spec.ts > BC-056 should click the button with deviceScaleFactor set [fixme]+library/browsercontext-reuse.spec.ts > reuse connect > BC-076 should not cache resources [fixme]+library/browsercontext-reuse.spec.ts > reuse connect > BC-074 should reset serviceworker [fixme]+library/browsercontext-reuse.spec.ts > reuse connect > BC-075 should reset serviceworker that hangs in importScripts [fixme]+library/browsercontext-reuse.spec.ts > reuse connect > BC-083 should update viewport and media [fixme]+library/browsercontext-reuse.spec.ts > reuse launch > BC-076 should not cache resources [fixme]+library/browsercontext-reuse.spec.ts > reuse launch > BC-074 should reset serviceworker [fixme]+library/browsercontext-reuse.spec.ts > reuse launch > BC-075 should reset serviceworker that hangs in importScripts [fixme]+library/browsercontext-reuse.spec.ts > reuse launch > BC-083 should update viewport and media [fixme]+library/browsercontext-service-worker-policy.spec.ts > block > WO-030 should not throw error on about:blank [fixme]+library/browsercontext-storage-state.spec.ts > ST-015 should roundtrip local storage in third-party context [fixme]+library/browsercontext-storage-state.spec.ts > ST-014 should set local storage in third-party context [fixme]+library/browsercontext-storage-state.spec.ts > ST-013 should work when service worker is intefering and the origin is not open [fixme]library/browsercontext-user-agent.spec.ts > should override navigator.platform to match custom user agent [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > default mobile viewports to 980 width [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > should be detectable [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > should detect touch when applying viewport with touches [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > should emulate the hover media feature [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > should preserve window.orientation override after navigation [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > should support touch emulation [fixme]-library/browsercontext-viewport-mobile.spec.ts > mobile viewport > should support window.orientation emulation [fixme]-library/browsercontext-viewport.spec.ts > should drag with high dpi [fixme]-library/browsercontext-viewport.spec.ts > should keep touch emulation after screenshot beyond viewport [fixme]-library/browsercontext-viewport.spec.ts > should support touch with null viewport [fixme]-library/browsertype-connect.spec.ts > launchServer > should be able to connect 20 times to a single server without warnings [fixme]-library/browsertype-connect.spec.ts > launchServer > should save download [fixme]-library/browsertype-connect.spec.ts > launchServer > should upload a folder [fixme]-library/browsertype-connect.spec.ts > run-server > should be able to connect 20 times to a single server without warnings [fixme]-library/browsertype-connect.spec.ts > run-server > should save download [fixme]-library/browsertype-connect.spec.ts > run-server > should upload a folder [fixme]-library/browsertype-launch.spec.ts > should reject if launched browser fails immediately [fixme]-library/capabilities.spec.ts > SharedArrayBuffer should work @smoke [fixme]-library/channels.spec.ts > should work with the domain module [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-020 default mobile viewports to 980 width [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-013 should be detectable [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-014 should detect touch when applying viewport with touches [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-022 should emulate the hover media feature [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-017 should preserve window.orientation override after navigation [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-012 should support touch emulation [fixme]+library/browsercontext-viewport-mobile.spec.ts > mobile viewport > DV-016 should support window.orientation emulation [fixme]+library/browsercontext-viewport.spec.ts > VP-014 should drag with high dpi [fixme]+library/browsercontext-viewport.spec.ts > VP-011 should keep touch emulation after screenshot beyond viewport [fixme]+library/browsercontext-viewport.spec.ts > VP-010 should support touch with null viewport [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-067 should be able to connect 20 times to a single server without warnings [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-068 should save download [fixme]+library/browsertype-connect.spec.ts > launchServer > BT-077 should upload a folder [fixme]+library/browsertype-connect.spec.ts > run-server > BT-067 should be able to connect 20 times to a single server without warnings [fixme]+library/browsertype-connect.spec.ts > run-server > BT-068 should save download [fixme]+library/browsertype-connect.spec.ts > run-server > BT-077 should upload a folder [fixme]+library/browsertype-launch.spec.ts > BT-010 should reject if launched browser fails immediately [fixme]+library/capabilities.spec.ts > CA-001 SharedArrayBuffer should work @smoke [fixme]+library/channels.spec.ts > CN-005 should work with the domain module [fixme]library/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 > serviceWorker(), and fromServiceWorker() work [fixme]library/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 > setExtraHTTPHeaders [fixme]library/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 > setOffline [fixme]@@ -76,138 +76,138 @@ library/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTlibrary/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 > should report failure (due to content-type) of main service worker request [fixme]library/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 > should report failure (due to redirect) of main service worker request [fixme]library/chromium/chromium.spec.ts > PW_EXPERIMENTAL_SERVICE_WORKER_NETWORK_EVENTS=1 > should report intercepted service worker requests in HAR [fixme]-library/chromium/chromium.spec.ts > http credentials > httpCredentials [fixme]-library/chromium/chromium.spec.ts > serviceWorkers() should return current workers [fixme]-library/chromium/chromium.spec.ts > should close service worker together with the context [fixme]-library/chromium/chromium.spec.ts > should create a worker from a service worker [fixme]-library/chromium/chromium.spec.ts > should create a worker from service worker with noop routing [fixme]-library/chromium/chromium.spec.ts > should emit new service worker on update [fixme]-library/chromium/connect-over-cdp.spec.ts > should send default User-Agent header with connect request [fixme]-library/chromium/connect-over-cdp.spec.ts > should send extra headers with connect request [fixme]+library/chromium/chromium.spec.ts > http credentials > CR-004 httpCredentials [fixme]+library/chromium/chromium.spec.ts > CR-005 serviceWorkers() should return current workers [fixme]+library/chromium/chromium.spec.ts > CR-008 should close service worker together with the context [fixme]+library/chromium/chromium.spec.ts > CR-001 should create a worker from a service worker [fixme]+library/chromium/chromium.spec.ts > CR-002 should create a worker from service worker with noop routing [fixme]+library/chromium/chromium.spec.ts > CR-003 should emit new service worker on update [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-016 should send default User-Agent header with connect request [fixme]+library/chromium/connect-over-cdp.spec.ts > CD-013 should send extra headers with connect request [fixme]library/chromium/launcher.spec.ts > should report console messages from content script [fixme]library/chromium/launcher.spec.ts > should return background pages [fixme]library/chromium/launcher.spec.ts > should return background pages when recording video [fixme]library/chromium/launcher.spec.ts > should support request/response events when using backgroundPage() [fixme]library/client-certificates.spec.ts > browser > persistentContext > should intercept TLS and send no client certificate when noCertificate is set for the visited origin [fixme]library/client-certificates.spec.ts > browser > should intercept TLS and send no client certificate when noCertificate is set for the visited origin [fixme]-library/client-certificates.spec.ts > browser > should not intercept TLS for origins without a client certificate [fixme]+library/client-certificates.spec.ts > browser > CC-016 should not intercept TLS for origins without a client certificate [fixme]library/debug-controller.spec.ts > should allow setting recorder mode only for specific browser [fixme]-library/debug-controller.spec.ts > should record [fixme]+library/debug-controller.spec.ts > DB-015 should record [fixme]library/debug-controller.spec.ts > should work with browser._launchServer [fixme]-library/defaultbrowsercontext-1.spec.ts > should support bypassCSP option [fixme]-library/defaultbrowsercontext-1.spec.ts > should support javascriptEnabled option [fixme]-library/defaultbrowsercontext-2.spec.ts > should have passed URL when launching with ignoreDefaultArgs: true [fixme]-library/defaultbrowsercontext-2.spec.ts > should support colorScheme option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support contrast option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support forcedColors option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support hasTouch option [fixme]-library/defaultbrowsercontext-2.spec.ts > should support reducedMotion option [fixme]-library/defaultbrowsercontext-2.spec.ts > should work in persistent context [fixme]-library/download.spec.ts > download event > should be able to cancel pending downloads [fixme]-library/download.spec.ts > download event > should report new window downloads [fixme]-library/download.spec.ts > download event > should throw if browser dies [fixme]-library/emulation-focus.spec.ts > should focus popups by default [fixme]-library/emulation-focus.spec.ts > should focus with more than one page/context [fixme]-library/emulation-focus.spec.ts > should think that all pages are focused @smoke [fixme]-library/fetch-proxy.spec.ts > context request should pick up proxy credentials [fixme]-library/firefox/launcher.spec.ts > should support custom firefox policies [fixme]-library/geolocation.spec.ts > should use context options for popup [fixme]-library/har-websocket.spec.ts > should attach websocket messages [fixme]-library/har-websocket.spec.ts > should attach websocket messages for a still open websocket after stopping [fixme]-library/har-websocket.spec.ts > should embed websocket messages [fixme]-library/har-websocket.spec.ts > should include websocket handshake headers and status [fixme]-library/har-websocket.spec.ts > should omit websocket messages [fixme]-library/har-websocket.spec.ts > should only have one websocket entry [fixme]-library/har-websocket.spec.ts > should record websocket connection failure [fixme]-library/har-websocket.spec.ts > should record websocket handshake failure [fixme]-library/har-websocket.spec.ts > should respect PLAYWRIGHT_HAR_NO_WEBSOCKET_FRAMES [fixme]-library/har-websocket.spec.ts > should still allow routeWebSocket to modify messages when capturing HAR [fixme]-library/har-websocket.spec.ts > should still capture websocket when route passes messages through [fixme]-library/har.spec.ts > should have connection details [fixme]-library/har.spec.ts > should have connection details for failed requests [fixme]-library/har.spec.ts > should have connection details for redirects [fixme]-library/har.spec.ts > should have security details [fixme]-library/har.spec.ts > should include binary postData [fixme]-library/har.spec.ts > should include form params [fixme]-library/har.spec.ts > should include postData [fixme]-library/har.spec.ts > should include set-cookies [fixme]-library/har.spec.ts > should include set-cookies with comma [fixme]-library/har.spec.ts > should include sizes [fixme]-library/har.spec.ts > should not hang on slow chunked response [fixme]-library/har.spec.ts > should report the correct _transferSize with PNG files [fixme]-library/har.spec.ts > should return security details directly from response [fixme]-library/har.spec.ts > should return server address directly from response [fixme]-library/headful.spec.ts > should click bottom row w/ infobar in OOPIF [fixme]-library/headful.spec.ts > should click in OOPIF [fixme]-library/heap.spec.ts > cycle handles [fixme]-library/hit-target.spec.ts > should detect overlaid element in a transformed iframe [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should --test-id-attribute [fixme]-library/inspector/cli-codegen-2.spec.ts > cli codegen > should not clash pages [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate frame locators (1) [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate frame locators (2) [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate frame locators (3) [fixme]-library/inspector/cli-codegen-3.spec.ts > cli codegen > should generate frame locators (4) [fixme]-library/launcher.spec.ts > should throw a friendly error if its headed and there is no xserver on linux running [fixme]-library/locator-dispatchevent-touch.spec.ts > should support touch points in touch event arguments [fixme]-library/multiclient.spec.ts > last emulateMedia wins [fixme]-library/multiclient.spec.ts > should chain routes [fixme]-library/multiclient.spec.ts > should unroute websockets [fixme]-library/page-clock.spec.ts > popup > should tick after popup [fixme]-library/page-event-crash.spec.ts > should be able to close context when page crashes [fixme]-library/page-event-crash.spec.ts > should be able to close page after crash [fixme]-library/page-event-crash.spec.ts > should cancel navigation when page crashes [fixme]-library/page-event-crash.spec.ts > should cancel waitForEvent when page crashes [fixme]-library/page-event-crash.spec.ts > should emit crash event when page crashes [fixme]-library/page-event-crash.spec.ts > should throw on any action after page crashes [fixme]-library/permissions.spec.ts > permissions > should deny permission when not listed [fixme]-library/permissions.spec.ts > permissions > should fail when bad permission is given [fixme]-library/permissions.spec.ts > permissions > should isolate permissions between browser contexts [fixme]-library/permissions.spec.ts > permissions > should trigger permission onchange [fixme]-library/permissions.spec.ts > should support clipboard read [fixme]-library/popup.spec.ts > BrowserContext.addInitScript should apply to a cross-process popup [fixme]-library/popup.spec.ts > should expose function from browser context [fixme]-library/popup.spec.ts > should inherit touch support from browser context [fixme]-library/popup.spec.ts > should not dispatch binding on a closed page [fixme]-library/popup.spec.ts > should not throw when click closes popup [fixme]-library/popup.spec.ts > should use viewport size from window features [fixme]-library/proxy.spec.ts > should reconnect with credentials after CONNECT 407 closes the socket [fixme]-library/role-utils.spec.ts > axe-core accessible-text [fixme]-library/role-utils.spec.ts > wpt accname #2 [fixme]-library/role-utils.spec.ts > wpt accname #3 [fixme]-library/route-web-socket.spec.ts > should emit close upon frame detach [fixme]-library/screencast.spec.ts > onFrame receives viewport size [fixme]-library/screenshot.spec.ts > page screenshot > should work with device scale factor and scale:css [fixme]-library/screenshot.spec.ts > page screenshot > should work with device scale factor, clip and scale:css [fixme]-library/selector-generator.spec.ts > selector generator > should work in dynamic iframes without navigation [fixme]-library/slowmo.spec.ts > slowMo > Frame SlowMo check [fixme]-library/slowmo.spec.ts > slowMo > Frame SlowMo uncheck [fixme]-library/tap.spec.ts > should not send mouse events touchstart is canceled [fixme]-library/tap.spec.ts > should not send mouse events when touchend is canceled [fixme]-library/tap.spec.ts > should not wait for a navigation caused by a tap [fixme]-library/tap.spec.ts > should send all of the correct events @smoke [fixme]-library/tap.spec.ts > should send well formed touch points [fixme]-library/tap.spec.ts > should wait until an element is visible to tap it [fixme]-library/tap.spec.ts > should work with modifiers [fixme]-library/tap.spec.ts > trial run should not tap [fixme]-library/trace-viewer.spec.ts > should filter network requests by multiple resource types [fixme]-library/trace-viewer.spec.ts > should filter network requests by url [fixme]-library/trace-viewer.spec.ts > should filter network requests by websocket type [fixme]-library/trace-viewer.spec.ts > should highlight locator in iframe while typing [fixme]-library/trace-viewer.spec.ts > should open console errors on click [fixme]-library/trace-viewer.spec.ts > should pick locator in iframe [fixme]-library/trace-viewer.spec.ts > should render console [fixme]-library/trace-viewer.spec.ts > should show only one pointer with multilevel iframes [fixme]-library/trace-viewer.spec.ts > should show websocket messages [fixme]-library/tracing.spec.ts > should produce screencast frames crop [fixme]-library/tracing.spec.ts > should produce screencast frames fit [fixme]-library/tracing.spec.ts > should produce screencast frames scale [fixme]-library/tracing.spec.ts > should save trace while a WebSocket keeps streaming frames [fixme]-library/web-socket.spec.ts > should emit binary frame events [fixme]-library/web-socket.spec.ts > should emit close events [fixme]-library/web-socket.spec.ts > should emit error [fixme]-library/web-socket.spec.ts > should emit frame events [fixme]-library/web-socket.spec.ts > should filter out the close events when the server closes with a message [fixme]-library/web-socket.spec.ts > should not have stray error events [fixme]-library/web-socket.spec.ts > should pass self as argument to close event [fixme]-library/web-socket.spec.ts > should reject waitForEvent on page close [fixme]-library/web-socket.spec.ts > should reject waitForEvent on socket close [fixme]\ No newline at end of file+library/defaultbrowsercontext-1.spec.ts > DC-007 should support bypassCSP option [fixme]+library/defaultbrowsercontext-1.spec.ts > DC-008 should support javascriptEnabled option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-030 should have passed URL when launching with ignoreDefaultArgs: true [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-014 should support colorScheme option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-017 should support contrast option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-016 should support forcedColors option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-012 should support hasTouch option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-015 should support reducedMotion option [fixme]+library/defaultbrowsercontext-2.spec.ts > DC-013 should work in persistent context [fixme]+library/download.spec.ts > download event > DO-027 should be able to cancel pending downloads [fixme]+library/download.spec.ts > download event > DO-017 should report new window downloads [fixme]+library/download.spec.ts > download event > DO-025 should throw if browser dies [fixme]+library/emulation-focus.spec.ts > EM-015 should focus popups by default [fixme]+library/emulation-focus.spec.ts > EM-021 should focus with more than one page/context [fixme]+library/emulation-focus.spec.ts > EM-014 should think that all pages are focused @smoke [fixme]+library/fetch-proxy.spec.ts > PR-041 context request should pick up proxy credentials [fixme]+library/firefox/launcher.spec.ts > FF-003 should support custom firefox policies [fixme]+library/geolocation.spec.ts > GE-009 should use context options for popup [fixme]+library/har-websocket.spec.ts > HA-104 should attach websocket messages [fixme]+library/har-websocket.spec.ts > HA-105 should attach websocket messages for a still open websocket after stopping [fixme]+library/har-websocket.spec.ts > HA-103 should embed websocket messages [fixme]+library/har-websocket.spec.ts > HA-102 should include websocket handshake headers and status [fixme]+library/har-websocket.spec.ts > HA-106 should omit websocket messages [fixme]+library/har-websocket.spec.ts > HA-101 should only have one websocket entry [fixme]+library/har-websocket.spec.ts > HA-107 should record websocket connection failure [fixme]+library/har-websocket.spec.ts > HA-108 should record websocket handshake failure [fixme]+library/har-websocket.spec.ts > HA-112 should respect PLAYWRIGHT_HAR_NO_WEBSOCKET_FRAMES [fixme]+library/har-websocket.spec.ts > HA-111 should still allow routeWebSocket to modify messages when capturing HAR [fixme]+library/har-websocket.spec.ts > HA-109 should still capture websocket when route passes messages through [fixme]+library/har.spec.ts > HA-041 should have connection details [fixme]+library/har.spec.ts > HA-044 should have connection details for failed requests [fixme]+library/har.spec.ts > HA-043 should have connection details for redirects [fixme]+library/har.spec.ts > HA-042 should have security details [fixme]+library/har.spec.ts > HA-011 should include binary postData [fixme]+library/har.spec.ts > HA-012 should include form params [fixme]+library/har.spec.ts > HA-010 should include postData [fixme]+library/har.spec.ts > HA-014 should include set-cookies [fixme]+library/har.spec.ts > HA-018 should include set-cookies with comma [fixme]+library/har.spec.ts > HA-028 should include sizes [fixme]+library/har.spec.ts > HA-056 should not hang on slow chunked response [fixme]+library/har.spec.ts > HA-032 should report the correct _transferSize with PNG files [fixme]+library/har.spec.ts > HA-046 should return security details directly from response [fixme]+library/har.spec.ts > HA-045 should return server address directly from response [fixme]+library/headful.spec.ts > HE-014 should click bottom row w/ infobar in OOPIF [fixme]+library/headful.spec.ts > HE-013 should click in OOPIF [fixme]+library/heap.spec.ts > LE-014 cycle handles [fixme]+library/hit-target.spec.ts > HT-017 should detect overlaid element in a transformed iframe [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-058 should --test-id-attribute [fixme]+library/inspector/cli-codegen-2.spec.ts > cli codegen > CG-051 should not clash pages [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-063 should generate frame locators (1) [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-064 should generate frame locators (2) [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-065 should generate frame locators (3) [fixme]+library/inspector/cli-codegen-3.spec.ts > cli codegen > CG-066 should generate frame locators (4) [fixme]+library/launcher.spec.ts > BT-021 should throw a friendly error if its headed and there is no xserver on linux running [fixme]+library/locator-dispatchevent-touch.spec.ts > TA-010 should support touch points in touch event arguments [fixme]+library/multiclient.spec.ts > MC-008 last emulateMedia wins [fixme]+library/multiclient.spec.ts > MC-009 should chain routes [fixme]+library/multiclient.spec.ts > MC-012 should unroute websockets [fixme]+library/page-clock.spec.ts > popup > CK-027 should tick after popup [fixme]+library/page-event-crash.spec.ts > ER-019 should be able to close context when page crashes [fixme]+library/page-event-crash.spec.ts > ER-020 should be able to close page after crash [fixme]+library/page-event-crash.spec.ts > ER-018 should cancel navigation when page crashes [fixme]+library/page-event-crash.spec.ts > ER-017 should cancel waitForEvent when page crashes [fixme]+library/page-event-crash.spec.ts > ER-014 should emit crash event when page crashes [fixme]+library/page-event-crash.spec.ts > ER-015 should throw on any action after page crashes [fixme]+library/permissions.spec.ts > permissions > PE-002 should deny permission when not listed [fixme]+library/permissions.spec.ts > permissions > PE-003 should fail when bad permission is given [fixme]+library/permissions.spec.ts > permissions > PE-013 should isolate permissions between browser contexts [fixme]+library/permissions.spec.ts > permissions > PE-012 should trigger permission onchange [fixme]+library/permissions.spec.ts > PE-014 should support clipboard read [fixme]+library/popup.spec.ts > PO-024 BrowserContext.addInitScript should apply to a cross-process popup [fixme]+library/popup.spec.ts > PO-025 should expose function from browser context [fixme]+library/popup.spec.ts > PO-019 should inherit touch support from browser context [fixme]+library/popup.spec.ts > PO-026 should not dispatch binding on a closed page [fixme]+library/popup.spec.ts > PO-028 should not throw when click closes popup [fixme]+library/popup.spec.ts > PO-021 should use viewport size from window features [fixme]+library/proxy.spec.ts > PR-008 should reconnect with credentials after CONNECT 407 closes the socket [fixme]+library/role-utils.spec.ts > AR-146 axe-core accessible-text [fixme]+library/role-utils.spec.ts > AR-143 wpt accname #2 [fixme]+library/role-utils.spec.ts > AR-143 wpt accname #3 [fixme]+library/route-web-socket.spec.ts > WS-031 should emit close upon frame detach [fixme]+library/screencast.spec.ts > SC-003 onFrame receives viewport size [fixme]+library/screenshot.spec.ts > page screenshot > SS-074 should work with device scale factor and scale:css [fixme]+library/screenshot.spec.ts > page screenshot > SS-076 should work with device scale factor, clip and scale:css [fixme]+library/selector-generator.spec.ts > selector generator > GN-075 should work in dynamic iframes without navigation [fixme]+library/slowmo.spec.ts > slowMo > SL-015 Frame SlowMo check [fixme]+library/slowmo.spec.ts > slowMo > SL-027 Frame SlowMo uncheck [fixme]+library/tap.spec.ts > TA-003 should not send mouse events touchstart is canceled [fixme]+library/tap.spec.ts > TA-004 should not send mouse events when touchend is canceled [fixme]+library/tap.spec.ts > TA-005 should not wait for a navigation caused by a tap [fixme]+library/tap.spec.ts > TA-001 should send all of the correct events @smoke [fixme]+library/tap.spec.ts > TA-007 should send well formed touch points [fixme]+library/tap.spec.ts > TA-008 should wait until an element is visible to tap it [fixme]+library/tap.spec.ts > TA-006 should work with modifiers [fixme]+library/tap.spec.ts > TA-002 trial run should not tap [fixme]+library/trace-viewer.spec.ts > TV-028 should filter network requests by multiple resource types [fixme]+library/trace-viewer.spec.ts > TV-031 should filter network requests by url [fixme]+library/trace-viewer.spec.ts > TV-035 should filter network requests by websocket type [fixme]+library/trace-viewer.spec.ts > TV-077 should highlight locator in iframe while typing [fixme]+library/trace-viewer.spec.ts > TV-017 should open console errors on click [fixme]+library/trace-viewer.spec.ts > TV-076 should pick locator in iframe [fixme]+library/trace-viewer.spec.ts > TV-014 should render console [fixme]+library/trace-viewer.spec.ts > TV-092 should show only one pointer with multilevel iframes [fixme]+library/trace-viewer.spec.ts > TV-036 should show websocket messages [fixme]+library/tracing.spec.ts > TR-023 should produce screencast frames crop [fixme]+library/tracing.spec.ts > TR-023 should produce screencast frames fit [fixme]+library/tracing.spec.ts > TR-023 should produce screencast frames scale [fixme]+library/tracing.spec.ts > TR-042 should save trace while a WebSocket keeps streaming frames [fixme]+library/web-socket.spec.ts > WS-006 should emit binary frame events [fixme]+library/web-socket.spec.ts > WS-002 should emit close events [fixme]+library/web-socket.spec.ts > WS-007 should emit error [fixme]+library/web-socket.spec.ts > WS-003 should emit frame events [fixme]+library/web-socket.spec.ts > WS-004 should filter out the close events when the server closes with a message [fixme]+library/web-socket.spec.ts > WS-008 should not have stray error events [fixme]+library/web-socket.spec.ts > WS-005 should pass self as argument to close event [fixme]+library/web-socket.spec.ts > WS-010 should reject waitForEvent on page close [fixme]+library/web-socket.spec.ts > WS-009 should reject waitForEvent on socket close [fixme]\ No newline at end of filediff --git a/tests/bidi/expectations/moz-firefox-nightly-page.conf b/tests/bidi/expectations/moz-firefox-nightly-page.confindex 52a9c4f7c6..80d29a5369 100644--- a/tests/bidi/expectations/moz-firefox-nightly-page.conf+++ b/tests/bidi/expectations/moz-firefox-nightly-page.conf@@ -1,30 +1,30 @@-page/elementhandle-click.spec.ts > should double click the button [fixme]-page/elementhandle-click.spec.ts > should work for TextNodes [fixme]-page/elementhandle-content-frame.spec.ts > should work for cross-frame evaluations [fixme]-page/elementhandle-screenshot.spec.ts > element screenshot > should work for an element with an offset [fixme]-page/elementhandle-screenshot.spec.ts > element screenshot > should work with a rotated element [fixme]-page/elementhandle-scroll-into-view.spec.ts > should scroll display:contents into view [fixme]-page/elementhandle-scroll-into-view.spec.ts > should throw for detached element [fixme]-page/elementhandle-scroll-into-view.spec.ts > should timeout waiting for visible [fixme]-page/elementhandle-scroll-into-view.spec.ts > should wait for display:none to become visible [fixme]-page/elementhandle-scroll-into-view.spec.ts > should wait for nested display:none to become visible [fixme]-page/elementhandle-scroll-into-view.spec.ts > should work @smoke [fixme]-page/frame-evaluate.spec.ts > should allow cross-frame element handles [fixme]-page/frame-evaluate.spec.ts > should dispose context on cross-origin navigation [fixme]-page/frame-evaluate.spec.ts > should dispose context on navigation [fixme]-page/frame-hierarchy.spec.ts > should support framesets [fixme]-page/interception.spec.ts > should disable memory cache when intercepting [fixme]-page/interception.spec.ts > should intercept worker requests when enabled after worker creation [fixme]-page/jshandle-to-string.spec.ts > should beautifully render sparse arrays [fixme]-page/locator-click.spec.ts > should double click the button [fixme]+page/elementhandle-click.spec.ts > EH-018 should double click the button [fixme]+page/elementhandle-click.spec.ts > EH-013 should work for TextNodes [fixme]+page/elementhandle-content-frame.spec.ts > EH-021 should work for cross-frame evaluations [fixme]+page/elementhandle-screenshot.spec.ts > element screenshot > EH-087 should work for an element with an offset [fixme]+page/elementhandle-screenshot.spec.ts > element screenshot > EH-082 should work with a rotated element [fixme]+page/elementhandle-scroll-into-view.spec.ts > EH-096 should scroll display:contents into view [fixme]+page/elementhandle-scroll-into-view.spec.ts > EH-094 should throw for detached element [fixme]+page/elementhandle-scroll-into-view.spec.ts > EH-101 should timeout waiting for visible [fixme]+page/elementhandle-scroll-into-view.spec.ts > EH-095 should wait for display:none to become visible [fixme]+page/elementhandle-scroll-into-view.spec.ts > EH-099 should wait for nested display:none to become visible [fixme]+page/elementhandle-scroll-into-view.spec.ts > EH-093 should work @smoke [fixme]+page/frame-evaluate.spec.ts > FR-007 should allow cross-frame element handles [fixme]+page/frame-evaluate.spec.ts > FR-004 should dispose context on cross-origin navigation [fixme]+page/frame-evaluate.spec.ts > FR-003 should dispose context on navigation [fixme]+page/frame-hierarchy.spec.ts > FR-030 should support framesets [fixme]+page/interception.spec.ts > RO-163 should disable memory cache when intercepting [fixme]+page/interception.spec.ts > RO-158 should intercept worker requests when enabled after worker creation [fixme]+page/jshandle-to-string.spec.ts > JH-020 should beautifully render sparse arrays [fixme]+page/locator-click.spec.ts > LO-054 should double click the button [fixme]page/locator-click.spec.ts > should work for TextNodes [fixme]-page/locator-misc-2.spec.ts > should scroll into view [fixme]-page/network-post-data.spec.ts > should get post data for file/blob [fixme]-page/network-post-data.spec.ts > should get post data for navigator.sendBeacon api calls [fixme]-page/network-post-data.spec.ts > should return correct postData buffer for utf-8 body [fixme]-page/network-post-data.spec.ts > should return post data for PUT requests [fixme]-page/network-post-data.spec.ts > should return post data w/o content-type @smoke [fixme]-page/network-post-data.spec.ts > should throw on invalid JSON in post data [fixme]+page/locator-misc-2.spec.ts > LO-141 should scroll into view [fixme]+page/network-post-data.spec.ts > NE-112 should get post data for file/blob [fixme]+page/network-post-data.spec.ts > NE-113 should get post data for navigator.sendBeacon api calls [fixme]+page/network-post-data.spec.ts > NE-108 should return correct postData buffer for utf-8 body [fixme]+page/network-post-data.spec.ts > NE-111 should return post data for PUT requests [fixme]+page/network-post-data.spec.ts > NE-109 should return post data w/o content-type @smoke [fixme]+page/network-post-data.spec.ts > NE-110 should throw on invalid JSON in post data [fixme]page/network-request-body.spec.ts > should get request body for file/blob [fixme]page/network-request-body.spec.ts > should get request body for navigator.sendBeacon api calls [fixme]page/network-request-body.spec.ts > should return body for PUT requests [fixme]@@ -51,109 +51,109 @@ page/page-accessibility.spec.ts > should work on a menu [fixme]page/page-accessibility.spec.ts > should work when there is a title [fixme]page/page-accessibility.spec.ts > should work with aria-invalid accessibility tree [fixme]page/page-accessibility.spec.ts > should work with regular text [fixme]-page/page-add-init-script.spec.ts > init script should run only once in iframe [fixme]+page/page-add-init-script.spec.ts > IS-011 init script should run only once in iframe [fixme]page/page-add-init-script.spec.ts > init script should run only once in popup [fixme]-page/page-add-init-script-callback.spec.ts > should call a function passed as an argument [fixme]-page/page-add-init-script-callback.spec.ts > should work in a child frame [fixme]-page/page-add-script-tag.spec.ts > should throw when added with content to the CSP page [fixme]-page/page-add-style-tag.spec.ts > should throw when added with content to the CSP page [fixme]-page/page-aria-snapshot-ai.spec.ts > return empty snapshot when iframe is not loaded [fixme]-page/page-basic.spec.ts > frame.press should work [fixme]+page/page-add-init-script-callback.spec.ts > IS-014 should call a function passed as an argument [fixme]+page/page-add-init-script-callback.spec.ts > IS-021 should work in a child frame [fixme]+page/page-add-script-tag.spec.ts > AT-010 should throw when added with content to the CSP page [fixme]+page/page-add-style-tag.spec.ts > AT-019 should throw when added with content to the CSP page [fixme]+page/page-aria-snapshot-ai.spec.ts > AR-080 return empty snapshot when iframe is not loaded [fixme]+page/page-basic.spec.ts > PA-017 frame.press should work [fixme]page/page-basic.spec.ts > should return null if parent page has been closed [fixme]-page/page-click-scroll.spec.ts > should scroll into view display:contents [fixme]-page/page-click-scroll.spec.ts > should scroll into view display:contents with position [fixme]-page/page-click.spec.ts > should click a button that is overlaid by a permission popup [fixme]-page/page-click.spec.ts > should click in a nested transformed iframe [fixme]-page/page-click.spec.ts > should click in a transformed iframe [fixme]-page/page-click.spec.ts > should click in a transformed iframe with force [fixme]-page/page-click.spec.ts > should click the button with fixed position inside an iframe [fixme]-page/page-click.spec.ts > should double click the button [fixme]-page/page-click.spec.ts > should not retain removed iframe after clicking inside it [fixme]-page/page-click.spec.ts > should select the text by triple clicking [fixme]-page/page-drag.spec.ts > Drag and drop > should cancel on escape [fixme]-page/page-drag.spec.ts > Drag and drop > should respect the drop effect [fixme]-page/page-drag.spec.ts > Drag and drop > should send the right events [fixme]-page/page-drag.spec.ts > Drag and drop > should work @smoke [fixme]-page/page-drag.spec.ts > Drag and drop > should work if a frame is stalled [fixme]-page/page-drag.spec.ts > Drag and drop > should work if the drag event is captured but not canceled [fixme]-page/page-drag.spec.ts > Drag and drop > should work inside iframe [fixme]-page/page-drag.spec.ts > Drag and drop > should work with locators [fixme]-page/page-drag.spec.ts > Drag and drop > should work with the helper method [fixme]-page/page-drag.spec.ts > should handle custom dataTransfer [fixme]-page/page-emulate-media.spec.ts > should change the actual colors in css [fixme]-page/page-emulate-media.spec.ts > should default to light [fixme]-page/page-emulate-media.spec.ts > should emulate colorScheme should work @smoke [fixme]-page/page-emulate-media.spec.ts > should emulate contrast [fixme]-page/page-emulate-media.spec.ts > should emulate forcedColors [fixme]-page/page-emulate-media.spec.ts > should emulate reduced motion [fixme]-page/page-emulate-media.spec.ts > should emulate type @smoke [fixme]-page/page-emulate-media.spec.ts > should keep reduced motion and color emulation after reload [fixme]-page/page-emulate-media.spec.ts > should report hover and fine pointer for desktop [fixme]-page/page-emulate-media.spec.ts > should work during navigation [fixme]-page/page-event-console.spec.ts > should trigger correct Log [fixme]-page/page-event-console.spec.ts > should work @smoke [fixme]-page/page-event-request.spec.ts > should report requests and responses handled by service worker [fixme]-page/page-event-request.spec.ts > should report requests and responses handled by service worker with routing [fixme]-page/page-expose-function.spec.ts > should work with setContent [fixme]-page/page-filechooser.spec.ts > should be able to reset selected files with empty file list [fixme]-page/page-filechooser.spec.ts > should emit event for iframe [fixme]-page/page-filechooser.spec.ts > should respect timeout [fixme]-page/page-goto.spec.ts > should override referrer-policy [fixme]-page/page-goto.spec.ts > should send referer [fixme]-page/page-goto.spec.ts > should send referer of cross-origin URL [fixme]-page/page-history.spec.ts > goBack/goForward should work with bfcache-able pages [fixme]-page/page-history.spec.ts > page.goBack should work for file urls [fixme]-page/page-history.spec.ts > regression test for issue 20791 [fixme]-page/page-keyboard.spec.ts > should press audio and media control keys [fixme]-page/page-mouse.spec.ts > should always round down [fixme]-page/page-mouse.spec.ts > should dblclick the div [fixme]-page/page-network-idle.spec.ts > should not wait for an open EventSource connection [fixme]-page/page-network-idle.spec.ts > should not wait for an open EventSource connection in setContent [fixme]-page/page-network-request.spec.ts > should not allow to access frame on popup main request [fixme]-page/page-network-request.spec.ts > should not get preflight CORS requests when intercepting [fixme]-page/page-network-request.spec.ts > should parse the data if content-type is application/x-www-form-urlencoded [fixme]-page/page-network-request.spec.ts > should parse the data if content-type is application/x-www-form-urlencoded; charset=UTF-8 [fixme]-page/page-network-request.spec.ts > should parse the json post data [fixme]-page/page-network-request.spec.ts > should return event source [fixme]-page/page-network-request.spec.ts > should return multipart/form-data [fixme]-page/page-network-request.spec.ts > should return postData [fixme]-page/page-network-request.spec.ts > should work with binary post data [fixme]-page/page-network-request.spec.ts > should work with binary post data and interception [fixme]+page/page-click-scroll.spec.ts > CL-095 should scroll into view display:contents [fixme]+page/page-click-scroll.spec.ts > CL-097 should scroll into view display:contents with position [fixme]+page/page-click.spec.ts > CL-078 should click a button that is overlaid by a permission popup [fixme]+page/page-click.spec.ts > CL-080 should click in a nested transformed iframe [fixme]+page/page-click.spec.ts > CL-077 should click in a transformed iframe [fixme]+page/page-click.spec.ts > CL-079 should click in a transformed iframe with force [fixme]+page/page-click.spec.ts > CL-035 should click the button with fixed position inside an iframe [fixme]+page/page-click.spec.ts > CL-028 should double click the button [fixme]+page/page-click.spec.ts > CL-076 should not retain removed iframe after clicking inside it [fixme]+page/page-click.spec.ts > CL-016 should select the text by triple clicking [fixme]+page/page-drag.spec.ts > Drag and drop > DD-005 should cancel on escape [fixme]+page/page-drag.spec.ts > Drag and drop > DD-008 should respect the drop effect [fixme]+page/page-drag.spec.ts > Drag and drop > DD-002 should send the right events [fixme]+page/page-drag.spec.ts > Drag and drop > DD-001 should work @smoke [fixme]+page/page-drag.spec.ts > Drag and drop > DD-012 should work if a frame is stalled [fixme]+page/page-drag.spec.ts > Drag and drop > DD-010 should work if the drag event is captured but not canceled [fixme]+page/page-drag.spec.ts > Drag and drop > DD-004 should work inside iframe [fixme]+page/page-drag.spec.ts > Drag and drop > DD-016 should work with locators [fixme]+page/page-drag.spec.ts > Drag and drop > DD-013 should work with the helper method [fixme]+page/page-drag.spec.ts > DD-019 should handle custom dataTransfer [fixme]+page/page-emulate-media.spec.ts > EM-007 should change the actual colors in css [fixme]+page/page-emulate-media.spec.ts > EM-004 should default to light [fixme]+page/page-emulate-media.spec.ts > EM-003 should emulate colorScheme should work @smoke [fixme]+page/page-emulate-media.spec.ts > EM-011 should emulate contrast [fixme]+page/page-emulate-media.spec.ts > EM-010 should emulate forcedColors [fixme]+page/page-emulate-media.spec.ts > EM-008 should emulate reduced motion [fixme]+page/page-emulate-media.spec.ts > EM-001 should emulate type @smoke [fixme]+page/page-emulate-media.spec.ts > EM-009 should keep reduced motion and color emulation after reload [fixme]+page/page-emulate-media.spec.ts > EM-012 should report hover and fine pointer for desktop [fixme]+page/page-emulate-media.spec.ts > EM-006 should work during navigation [fixme]+page/page-event-console.spec.ts > CM-008 should trigger correct Log [fixme]+page/page-event-console.spec.ts > CM-001 should work @smoke [fixme]+page/page-event-request.spec.ts > NE-095 should report requests and responses handled by service worker [fixme]+page/page-event-request.spec.ts > NE-096 should report requests and responses handled by service worker with routing [fixme]+page/page-expose-function.spec.ts > EF-015 should work with setContent [fixme]+page/page-filechooser.spec.ts > FC-020 should be able to reset selected files with empty file list [fixme]+page/page-filechooser.spec.ts > FC-004 should emit event for iframe [fixme]+page/page-filechooser.spec.ts > FC-011 should respect timeout [fixme]+page/page-goto.spec.ts > NA-055 should override referrer-policy [fixme]+page/page-goto.spec.ts > NA-052 should send referer [fixme]+page/page-goto.spec.ts > NA-053 should send referer of cross-origin URL [fixme]+page/page-history.spec.ts > NA-074 goBack/goForward should work with bfcache-able pages [fixme]+page/page-history.spec.ts > NA-073 page.goBack should work for file urls [fixme]+page/page-history.spec.ts > NA-085 regression test for issue 20791 [fixme]+page/page-keyboard.spec.ts > KB-026 should press audio and media control keys [fixme]+page/page-mouse.spec.ts > MO-013 should always round down [fixme]+page/page-mouse.spec.ts > MO-002 should dblclick the div [fixme]+page/page-network-idle.spec.ts > NE-082 should not wait for an open EventSource connection [fixme]+page/page-network-idle.spec.ts > NE-083 should not wait for an open EventSource connection in setContent [fixme]+page/page-network-request.spec.ts > NE-027 should not allow to access frame on popup main request [fixme]+page/page-network-request.spec.ts > NE-010 should not get preflight CORS requests when intercepting [fixme]+page/page-network-request.spec.ts > NE-017 should parse the data if content-type is application/x-www-form-urlencoded [fixme]+page/page-network-request.spec.ts > NE-018 should parse the data if content-type is application/x-www-form-urlencoded; charset=UTF-8 [fixme]+page/page-network-request.spec.ts > NE-016 should parse the json post data [fixme]+page/page-network-request.spec.ts > NE-021 should return event source [fixme]+page/page-network-request.spec.ts > NE-020 should return multipart/form-data [fixme]+page/page-network-request.spec.ts > NE-011 should return postData [fixme]+page/page-network-request.spec.ts > NE-012 should work with binary post data [fixme]+page/page-network-request.spec.ts > NE-013 should work with binary post data and interception [fixme]page/page-network-response.spec.ts > should reject response.finished if context closes [fixme]-page/page-network-response.spec.ts > should report all headers [fixme]-page/page-network-response.spec.ts > should report if request was fromServiceWorker [fixme]-page/page-network-response.spec.ts > should report multiple set-cookie headers [fixme]-page/page-network-response.spec.ts > should return non-utf8 body even when content-type says utf8 [fixme]-page/page-network-response.spec.ts > should wait until response completes [fixme]-page/page-request-continue.spec.ts > continue with headers should send fresh cookie from the browser cookie store [fixme]-page/page-request-continue.spec.ts > should not throw if request was cancelled by the page [fixme]-page/page-request-fulfill.spec.ts > should fulfill with gzip and readback [fixme]-page/page-request-fulfill.spec.ts > should not throw if request was cancelled by the page [fixme]-page/page-request-intercept.spec.ts > request.postData is not null when fetching FormData with a Blob [fixme]-page/page-request-intercept.spec.ts > should intercept multipart/form-data request body [fixme]-page/page-route.spec.ts > should be abortable with custom error codes [fixme]-page/page-route.spec.ts > should intercept when postData is more than 1MB [fixme]-page/page-route.spec.ts > should not override cookie header [fixme]-page/page-route.spec.ts > should not throw if request was cancelled by the page [fixme]-page/page-screenshot.spec.ts > page screenshot animations > should not capture css animations in shadow DOM [fixme]-page/page-screenshot.spec.ts > page screenshot animations > should not capture pseudo element css animation [fixme]-page/page-screenshot.spec.ts > page screenshot > should allow transparency [fixme]-page/page-set-input-files.spec.ts > should upload a folder [fixme]-page/page-wait-for-load-state.spec.ts > should wait for load state of about:blank popup [fixme]-page/page-wait-for-load-state.spec.ts > should wait for load state of about:blank popup with noopener [fixme]-page/page-wait-for-load-state.spec.ts > should wait for load state of empty url popup [fixme]-page/wheel.spec.ts > should dispatch wheel events after popup was opened @smoke [fixme]-page/workers.spec.ts > Page.workers @smoke [fixme]-page/workers.spec.ts > should attribute network activity for worker inside iframe to the iframe [fixme]-page/workers.spec.ts > should clear upon cross-process navigation [fixme]-page/workers.spec.ts > should clear upon navigation [fixme]-page/workers.spec.ts > should dispatch console messages when page has workers [fixme]-page/workers.spec.ts > should emit created and destroyed events [fixme]-page/workers.spec.ts > should evaluate [fixme]-page/workers.spec.ts > should have JSHandles for console logs [fixme]-page/workers.spec.ts > should report and intercept network from nested worker [fixme]-page/workers.spec.ts > should report console event on the worker [fixme]-page/workers.spec.ts > should report console event on the worker when not listening on page or context [fixme]-page/workers.spec.ts > should report network activity [fixme]-page/workers.spec.ts > should support extra http headers [fixme]-page/workers.spec.ts > should support offline [fixme]\ No newline at end of file+page/page-network-response.spec.ts > NE-043 should report all headers [fixme]+page/page-network-response.spec.ts > NE-049 should report if request was fromServiceWorker [fixme]+page/page-network-response.spec.ts > NE-044 should report multiple set-cookie headers [fixme]+page/page-network-response.spec.ts > NE-041 should return non-utf8 body even when content-type says utf8 [fixme]+page/page-network-response.spec.ts > NE-037 should wait until response completes [fixme]+page/page-request-continue.spec.ts > RO-080 continue with headers should send fresh cookie from the browser cookie store [fixme]+page/page-request-continue.spec.ts > RO-064 should not throw if request was cancelled by the page [fixme]+page/page-request-fulfill.spec.ts > RO-117 should fulfill with gzip and readback [fixme]+page/page-request-fulfill.spec.ts > RO-100 should not throw if request was cancelled by the page [fixme]+page/page-request-intercept.spec.ts > RO-147 request.postData is not null when fetching FormData with a Blob [fixme]+page/page-request-intercept.spec.ts > RO-141 should intercept multipart/form-data request body [fixme]+page/page-route.spec.ts > RO-016 should be abortable with custom error codes [fixme]+page/page-route.spec.ts > RO-054 should intercept when postData is more than 1MB [fixme]+page/page-route.spec.ts > RO-009 should not override cookie header [fixme]+page/page-route.spec.ts > RO-017 should not throw if request was cancelled by the page [fixme]+page/page-screenshot.spec.ts > page screenshot animations > SS-054 should not capture css animations in shadow DOM [fixme]+page/page-screenshot.spec.ts > page screenshot animations > SS-053 should not capture pseudo element css animation [fixme]+page/page-screenshot.spec.ts > page screenshot > SS-014 should allow transparency [fixme]+page/page-set-input-files.spec.ts > IF-002 should upload a folder [fixme]+page/page-wait-for-load-state.spec.ts > WA-084 should wait for load state of about:blank popup [fixme]+page/page-wait-for-load-state.spec.ts > WA-085 should wait for load state of about:blank popup with noopener [fixme]+page/page-wait-for-load-state.spec.ts > WA-083 should wait for load state of empty url popup [fixme]+page/wheel.spec.ts > MO-018 should dispatch wheel events after popup was opened @smoke [fixme]+page/workers.spec.ts > WO-001 Page.workers @smoke [fixme]+page/workers.spec.ts > WO-014 should attribute network activity for worker inside iframe to the iframe [fixme]+page/workers.spec.ts > WO-013 should clear upon cross-process navigation [fixme]+page/workers.spec.ts > WO-012 should clear upon navigation [fixme]+page/workers.spec.ts > WO-019 should dispatch console messages when page has workers [fixme]+page/workers.spec.ts > WO-002 should emit created and destroyed events [fixme]+page/workers.spec.ts > WO-008 should evaluate [fixme]+page/workers.spec.ts > WO-007 should have JSHandles for console logs [fixme]+page/workers.spec.ts > WO-020 should report and intercept network from nested worker [fixme]+page/workers.spec.ts > WO-009 should report console event on the worker [fixme]+page/workers.spec.ts > WO-010 should report console event on the worker when not listening on page or context [fixme]+page/workers.spec.ts > WO-015 should report network activity [fixme]+page/workers.spec.ts > WO-021 should support extra http headers [fixme]+page/workers.spec.ts > WO-022 should support offline [fixme]\ No newline at end of filediff --git a/tests/config/registryReporter.ts b/tests/config/registryReporter.tsnew file mode 100644index 0000000000..3991ca9630--- /dev/null+++ b/tests/config/registryReporter.ts@@ -0,0 +1,196 @@+/**+ * Copyright (c) Microsoft Corporation.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import fs from 'fs';+import path from 'path';++import type { FullResult, Reporter, Suite, TestError } from '@playwright/test/reporter';++const testsDir = path.join(__dirname, '..');+const registryFile = path.join(testsDir, 'registry.md');+const idPattern = /^(?<code>[A-Z]{2})-(?:[A-Z]{2,3}-)?\d{3} /;+const updateCommand = 'PWTEST_UPDATE_REGISTRY=1 npm run test -- --list --reporter=./tests/config/registryReporter.ts';++type Entry = {+ id: string;+ code: string;+ file: string;+ location: string;+ titlePaths: Map<string, string[]>;+};++// Checks tests/registry.md against the test titles. Use with --list.+class RegistryReporter implements Reporter {+ private _errors = new Set<string>();++ printsToStdio() {+ return true;+ }++ onBegin(_: unknown, suite: Suite) {+ const entries = this._collectEntries(suite);+ const text = fs.readFileSync(registryFile, 'utf8');+ const subsystemsIndex = text.indexOf('\n## Subsystems\n');+ if (subsystemsIndex === -1) {+ this._errors.add('tests/registry.md: the "## Subsystems" section is missing');+ return;+ }+ const names = new Map<string, string>();+ for (const match of text.matchAll(/^\| `([A-Z]{2})` \| ([^|]+?) \|/gm))+ names.set(match[1], match[2]);+ for (const entry of entries.values()) {+ if (!names.has(entry.code))+ this._errors.add(`${entry.location}: code ${entry.code} is not in the Subsystems table of tests/registry.md`);+ }++ const expected = renderRegistry(text.substring(0, subsystemsIndex + 1), names, entries);+ if (expected === text)+ return;+ if (process.env.PWTEST_UPDATE_REGISTRY) {+ fs.writeFileSync(registryFile, expected);+ console.log(`Updated ${path.relative(process.cwd(), registryFile)}`);+ return;+ }+ const actualLines = new Set(text.split('\n'));+ const expectedLines = new Set(expected.split('\n'));+ const missing = [...expectedLines].filter(line => !actualLines.has(line));+ const extra = [...actualLines].filter(line => !expectedLines.has(line));+ this._errors.add([+ `tests/registry.md does not match the test titles. To update it, run:`,+ ` ${updateCommand}`,+ ...missing.slice(0, 10).map(line => ` + ${line}`),+ ...extra.slice(0, 10).map(line => ` - ${line}`),+ ].join('\n'));+ }++ onError(error: TestError) {+ this._errors.add(error.stack ?? error.message ?? String(error.value));+ }++ async onEnd(): Promise<{ status?: FullResult['status'] } | undefined> {+ for (const error of this._errors)+ console.error(error);+ if (this._errors.size)+ return { status: 'failed' };+ }++ private _collectEntries(suite: Suite) {+ const entries = new Map<string, Entry>();+ for (const test of suite.allTests()) {+ const file = path.relative(testsDir, test.location.file).split(path.sep).join('/');+ const location = `${file}:${test.location.line}:${test.location.column}`;+ const match = idPattern.exec(test.title);+ if (!match) {+ this._errors.add(`${location}: the title must start with an identifier, for example "CL-001 ": ${test.title}`);+ continue;+ }+ const id = match[0].trim();+ let entry = entries.get(id);+ if (!entry) {+ entry = { id, code: match.groups!.code, file, location, titlePaths: new Map() };+ entries.set(id, entry);+ } else if (entry.location !== location) {+ this._errors.add(`${location}: identifier ${id} is already used by the test at ${entry.location}`);+ continue;+ }+ const titlePath = [...test.titlePath().slice(3, -1), test.title.substring(match[0].length)];+ entry.titlePaths.set(titlePath.join('\0'), titlePath);+ }+ return entries;+ }+}++function renderRegistry(header: string, names: Map<string, string>, entries: Map<string, Entry>): string {+ const byCode = new Map<string, Entry[]>([...names.keys()].map(code => [code, []]));+ for (const entry of [...entries.values()].sort((a, b) => a.id.localeCompare(b.id)))+ byCode.get(entry.code)?.push(entry);+ const listed = [...byCode.values()].flat();+ const copies = listed.reduce((sum, entry) => sum + entry.titlePaths.size, 0);+ const lines = [+ header.trimEnd(),+ '',+ '## Subsystems',+ '',+ `${names.size} subsystems, ${listed.length} tests (${copies} with loop copies).`,+ '',+ '| Code | Subsystem | Files | Tests |',+ '|---|---|---|---|',+ ];+ for (const [code, name] of names)+ lines.push(`| \`${code}\` | ${name} | ${renderFiles(byCode.get(code)!)} | ${byCode.get(code)!.length} |`);+ lines.push('', '## Tests');+ for (const [code, name] of names) {+ const list = byCode.get(code)!;+ if (!list.length)+ continue;+ lines.push('', `### ${code} — ${name}`, '', '| ID | File | Title |', '|---|---|---|');+ for (const entry of list) {+ const count = entry.titlePaths.size;+ lines.push(`| \`${entry.id}\` | \`${entry.file}\` | ${escapeMarkdown(renderTitle([...entry.titlePaths.values()]))}${count > 1 ? ` *(${count} copies)*` : ''} |`);+ }+ }+ return lines.join('\n') + '\n';+}++function renderFiles(list: Entry[]): string {+ const byDir = new Map<string, Set<string>>();+ for (const entry of list) {+ const dir = path.posix.dirname(entry.file);+ if (!byDir.has(dir))+ byDir.set(dir, new Set());+ byDir.get(dir)!.add(path.posix.basename(entry.file, '.spec.ts'));+ }+ return [...byDir].map(([dir, names]) => names.size > 1 ? `\`${dir}/{${[...names].join(', ')}}\`` : `\`${dir}/${[...names][0]}\``).join('<br>');+}++function renderTitle(titlePaths: string[][]): string {+ if (titlePaths.length === 1)+ return titlePaths[0].join(' › ');+ const describes = titlePaths.map(titlePath => titlePath.slice(0, -1));+ const depth = Math.max(...describes.map(describe => describe.length));+ const parts: string[] = [];+ for (let i = 0; i < depth; i++)+ parts.push(mergeVariants(describes.map(describe => describe[i]).filter(title => title !== undefined)));+ parts.push(mergeVariants(titlePaths.map(titlePath => titlePath[titlePath.length - 1])));+ return parts.join(' › ');+}++function mergeVariants(values: string[]): string {+ const unique = [...new Set(values)];+ if (unique.length === 1)+ return unique[0];+ let prefix = unique.reduce((common, value) => common.substring(0, commonLength(common, value)));+ prefix = prefix.substring(0, prefix.lastIndexOf(' ') + 1);+ const rests = unique.map(value => value.substring(prefix.length));+ const reversed = (text: string) => [...text].reverse().join('');+ let suffix = reversed(rests.map(reversed).reduce((common, value) => common.substring(0, commonLength(common, value))));+ const space = suffix.indexOf(' ');+ suffix = space === -1 ? '' : suffix.substring(space);+ return `${prefix}{${rests.map(rest => rest.substring(0, rest.length - suffix.length)).join(', ')}}${suffix}`;+}++function commonLength(a: string, b: string): number {+ let length = 0;+ while (length < a.length && length < b.length && a[length] === b[length])+ length++;+ return length;+}++function escapeMarkdown(text: string): string {+ return text.replace(/[\\`*_[\]<>|]/g, char => '\\' + char);+}++export default RegistryReporter;diff --git a/tests/library/beforeunload.spec.ts b/tests/library/beforeunload.spec.tsindex c8e2ce30a8..016d2274f5 100644--- a/tests/library/beforeunload.spec.ts+++ b/tests/library/beforeunload.spec.ts@@ -17,7 +17,7 @@import { contextTest as it, expect } from '../config/browserTest';-it('should close browser with beforeunload page', async ({ server, browserType }) => {+it('BU-001 should close browser with beforeunload page', async ({ server, browserType }) => {const browser = await browserType.launch();const page = await browser.newPage();await page.goto(server.PREFIX + '/beforeunload.html');@@ -27,7 +27,7 @@ it('should close browser with beforeunload page', async ({ server, browserType }await browser.close();});-it('should close browsercontext with beforeunload page', async ({ server, page, context }) => {+it('BU-002 should close browsercontext with beforeunload page', async ({ server, page, context }) => {await page.goto(server.PREFIX + '/beforeunload.html');// We have to interact with a page so that 'beforeunload' handlers// fire.@@ -35,7 +35,7 @@ it('should close browsercontext with beforeunload page', async ({ server, page,await context.close();});-it('should be able to navigate away from page with beforeunload', async ({ server, page, context }) => {+it('BU-003 should be able to navigate away from page with beforeunload', async ({ server, page, context }) => {await page.goto(server.PREFIX + '/beforeunload.html');// We have to interact with a page so that 'beforeunload' handlers// fire.@@ -43,7 +43,7 @@ it('should be able to navigate away from page with beforeunload', async ({ serveawait page.goto(server.EMPTY_PAGE);});-it('should close page with beforeunload listener', async ({ context, server }) => {+it('BU-004 should close page with beforeunload listener', async ({ context, server }) => {const newPage = await context.newPage();await newPage.goto(server.PREFIX + '/beforeunload.html');// We have to interact with a page so that 'beforeunload' handlers@@ -52,7 +52,7 @@ it('should close page with beforeunload listener', async ({ context, server }) =await newPage.close();});-it('should run beforeunload if asked for @smoke', async ({ context, server, browserName }) => {+it('BU-005 should run beforeunload if asked for @smoke', async ({ context, server, browserName }) => {const newPage = await context.newPage();await newPage.goto(server.PREFIX + '/beforeunload.html');// We have to interact with a page so that 'beforeunload' handlers@@ -76,7 +76,7 @@ it('should run beforeunload if asked for @smoke', async ({ context, server, brow]);});-it('should access page after beforeunload', async ({ page, server }) => {+it('BU-006 should access page after beforeunload', async ({ page, server }) => {await page.goto(server.PREFIX + '/beforeunload.html');// We have to interact with a page so that 'beforeunload' handlers// fire.@@ -89,7 +89,7 @@ it('should access page after beforeunload', async ({ page, server }) => {await page.evaluate(() => document.title);});-it('should not stall on evaluate when dismissing beforeunload', async ({ page, server }) => {+it('BU-007 should not stall on evaluate when dismissing beforeunload', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23141' });await page.goto(server.PREFIX + '/beforeunload.html');@@ -104,7 +104,7 @@ it('should not stall on evaluate when dismissing beforeunload', async ({ page, s]);});-it('should not stall on click when dismissing beforeunload', async ({ page, server }) => {+it('BU-008 should not stall on click when dismissing beforeunload', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/33806' });await page.goto(server.EMPTY_PAGE);@@ -127,7 +127,7 @@ it('should not stall on click when dismissing beforeunload', async ({ page, servawait expect(page).toHaveURL(server.PREFIX + '/frames/one-frame.html');});-it('should support dismissing the dialog multiple times', async ({ page, server }) => {+it('BU-009 should support dismissing the dialog multiple times', async ({ page, server }) => {await page.goto(server.PREFIX + '/beforeunload.html');// We have to interact with a page so that 'beforeunload' handlers@@ -149,7 +149,7 @@ it('should support dismissing the dialog multiple times', async ({ page, serverawait dialog2.dismiss();});-it('should support closing the page after a previous dismiss', async ({ page, server }) => {+it('BU-010 should support closing the page after a previous dismiss', async ({ page, server }) => {await page.goto(server.PREFIX + '/beforeunload.html');// We have to interact with a page so that 'beforeunload' handlers@@ -167,7 +167,7 @@ it('should support closing the page after a previous dismiss', async ({ page, seawait expect(page.isClosed()).toBe(true);});-it('should support closing the page via a subsequent onbeforeunload dialog', async ({ page, server }) => {+it('BU-011 should support closing the page via a subsequent onbeforeunload dialog', async ({ page, server }) => {await page.goto(server.PREFIX + '/beforeunload.html');// We have to interact with a page so that 'beforeunload' handlers@@ -185,7 +185,7 @@ it('should support closing the page via a subsequent onbeforeunload dialog', asyawait expect(page.isClosed()).toBe(true);});-it('does not get stalled by beforeUnload', {+it('BU-012 does not get stalled by beforeUnload', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/38731' },}, async ({ page, server }) => {await page.goto(server.HELLO_WORLD);diff --git a/tests/library/browser-server.spec.ts b/tests/library/browser-server.spec.tsindex 9f02faf996..7b33f51227 100644--- a/tests/library/browser-server.spec.ts+++ b/tests/library/browser-server.spec.ts@@ -25,7 +25,7 @@ it.beforeEach(({}, testInfo) => {process.env.PWTEST_SERVER_REGISTRY = testInfo.outputPath('registry');});-it('should start and stop pipe server', async ({ browserType, browser }) => {+it('BR-008 should start and stop pipe server', async ({ browserType, browser }) => {const serverInfo = await browser.bind('default', {});expect(serverInfo).toEqual(expect.objectContaining({endpoint: expect.stringMatching(/browser-/),@@ -40,7 +40,7 @@ it('should start and stop pipe server', async ({ browserType, browser }) => {await browser.unbind();});-it('should write descriptor on start and remove on stop', async ({ browser }) => {+it('BR-009 should write descriptor on start and remove on stop', async ({ browser }) => {const serverInfo = await browser.bind('my-title', { wsPath: 'test' } as any);const registryDir = it.info().outputPath('registry');@@ -63,7 +63,7 @@ it('should write descriptor on start and remove on stop', async ({ browser }) =>expect(fs.existsSync(serverInfo.endpoint)).toBe(false);});-it('should start ws server with host/port and produce well-formed endpoint', async ({ browserType, browser }) => {+it('BR-010 should start ws server with host/port and produce well-formed endpoint', async ({ browserType, browser }) => {const serverInfo = await browser.bind('default', { host: 'localhost', port: 0 });expect(serverInfo.endpoint).toMatch(/^ws:\/\/(127\.0\.0\.1|\[::1\]):\d+\/[a-f0-9]+$/);diff --git a/tests/library/browser.spec.ts b/tests/library/browser.spec.tsindex 42750dad1c..9d7dcf259b 100644--- a/tests/library/browser.spec.ts+++ b/tests/library/browser.spec.ts@@ -17,11 +17,11 @@import { kTargetClosedErrorMessage } from '../config/errors';import { browserTest as test, expect } from '../config/browserTest';-test('should return browserType', function({ browser, browserType }) {+test('BR-001 should return browserType', function({ browser, browserType }) {expect(browser.browserType()).toBe(browserType);});-test('should create new page @smoke', async function({ browser }) {+test('BR-002 should create new page @smoke', async function({ browser }) {const page1 = await browser.newPage();expect(browser.contexts().length).toBe(1);@@ -35,7 +35,7 @@ test('should create new page @smoke', async function({ browser }) {expect(browser.contexts().length).toBe(0);});-test('should throw upon second create new page', async function({ browser }) {+test('BR-003 should throw upon second create new page', async function({ browser }) {const page = await browser.newPage();let error: Error;await page.context().newPage().catch(e => error = e);@@ -43,7 +43,7 @@ test('should throw upon second create new page', async function({ browser }) {expect(error!.message).toContain('Please use browser.newContext()');});-test('version should work', async function({ browser, browserName }) {+test('BR-004 version should work', async function({ browser, browserName }) {const version = browser.version();if (browserName === 'chromium')expect(version.match(/^\d+\.\d+\.\d+\.\d+$/)).toBeTruthy();@@ -51,7 +51,7 @@ test('version should work', async function({ browser, browserName }) {expect(version.match(/^\d+\.\d+/)).toBeTruthy();});-test('should dispatch page.on(close) upon browser.close and reject evaluate', async ({ browserType }) => {+test('BR-005 should dispatch page.on(close) upon browser.close and reject evaluate', async ({ browserType }) => {const browser = await browserType.launch();const page = await browser.newPage();let closed = false;@@ -63,7 +63,7 @@ test('should dispatch page.on(close) upon browser.close and reject evaluate', asexpect(error.message).toContain(kTargetClosedErrorMessage);});-test('should fire context event on newContext', async ({ browser }) => {+test('BR-006 should fire context event on newContext', async ({ browser }) => {const events = [];browser.on('context', ctx => events.push(ctx));const context = await browser.newContext();@@ -71,7 +71,7 @@ test('should fire context event on newContext', async ({ browser }) => {await context.close();});-test('newContext should not leave a context upon failure', async ({ browser, toImpl }) => {+test('BR-007 newContext should not leave a context upon failure', async ({ browser, toImpl }) => {const error = await browser.newContext({__testHookBeforeSetStorageState: () => Promise.reject(new Error('Oh my')),} as any).catch(e => e);diff --git a/tests/library/browsercontext-add-cookies.spec.ts b/tests/library/browsercontext-add-cookies.spec.tsindex 5bf990ef5b..588e80a1c0 100644--- a/tests/library/browsercontext-add-cookies.spec.ts+++ b/tests/library/browsercontext-add-cookies.spec.ts@@ -19,7 +19,7 @@ import type { IncomingHttpHeaders } from 'http';import type { Cookie } from '@playwright/test';import { contextTest as it, playwrightTest, expect } from '../config/browserTest';-it('should work @smoke', async ({ context, page, server }) => {+it('CO-019 should work @smoke', async ({ context, page, server }) => {await page.goto(server.EMPTY_PAGE);await context.addCookies([{url: server.EMPTY_PAGE,@@ -29,7 +29,7 @@ it('should work @smoke', async ({ context, page, server }) => {expect(await page.evaluate(() => document.cookie)).toEqual('password=123456');});-it('should work with expires=-1', async ({ context, page }) => {+it('CO-020 should work with expires=-1', async ({ context, page }) => {await context.addCookies([{name: 'username',value: 'John Doe',@@ -47,7 +47,7 @@ it('should work with expires=-1', async ({ context, page }) => {expect(await page.evaluate(() => document.cookie)).toEqual('username=John Doe');});-it('should add cookies with empty value', async ({ context, page, server }) => {+it('CO-021 should add cookies with empty value', async ({ context, page, server }) => {await context.addCookies([{name: 'marker',value: '',@@ -65,7 +65,7 @@ it('should add cookies with empty value', async ({ context, page, server }) => {expect(await page.evaluate(() => document.cookie)).toEqual('marker=');});-it('should set cookies with SameSite attribute and no secure attribute', async ({ context, browserName, isWindows, isLinux, defaultSameSiteCookieValue, channel, isBidi }) => {+it('CO-022 should set cookies with SameSite attribute and no secure attribute', async ({ context, browserName, isWindows, isLinux, defaultSameSiteCookieValue, channel, isBidi }) => {// Use domain instead of URL to ensure that the `secure` attribute is not set.await context.addCookies([{domain: 'foo.com',@@ -131,7 +131,7 @@ it('should set cookies with SameSite attribute and no secure attribute', async (}]));});-it('should roundtrip cookie', async ({ context, page, server }) => {+it('CO-023 should roundtrip cookie', async ({ context, page, server }) => {await page.goto(server.EMPTY_PAGE);// @see https://en.wikipedia.org/wiki/Year_2038_problemconst date = +(new Date('1/1/2038'));@@ -150,7 +150,7 @@ it('should roundtrip cookie', async ({ context, page, server }) => {expect(normalizedExpires(await context.cookies())).toEqual(normalizedExpires(cookies));});-it('should send cookie header', async ({ server, context }) => {+it('CO-024 should send cookie header', async ({ server, context }) => {let cookie = '';server.setRoute('/empty.html', (req, res) => {cookie = req.headers.cookie!;@@ -162,7 +162,7 @@ it('should send cookie header', async ({ server, context }) => {expect(cookie).toBe('cookie=value');});-it('should isolate cookies in browser contexts', async ({ context, server, browser }) => {+it('CO-025 should isolate cookies in browser contexts', async ({ context, server, browser }) => {const anotherContext = await browser.newContext();await context.addCookies([{ url: server.EMPTY_PAGE, name: 'isolatecookie', value: 'page1value' }]);await anotherContext.addCookies([{ url: server.EMPTY_PAGE, name: 'isolatecookie', value: 'page2value' }]);@@ -178,7 +178,7 @@ it('should isolate cookies in browser contexts', async ({ context, server, browsawait anotherContext.close();});-it('should isolate session cookies', async ({ context, server, browser }) => {+it('CO-026 should isolate session cookies', async ({ context, server, browser }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', 'session=value');res.end();@@ -204,7 +204,7 @@ it('should isolate session cookies', async ({ context, server, browser }) => {}});-it('should isolate persistent cookies', async ({ context, server, browser }) => {+it('CO-027 should isolate persistent cookies', async ({ context, server, browser }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', 'persistent=persistent-value; max-age=3600');res.end();@@ -224,7 +224,7 @@ it('should isolate persistent cookies', async ({ context, server, browser }) =>await context2.close();});-it('should isolate send cookie header', async ({ server, context, browser }) => {+it('CO-028 should isolate send cookie header', async ({ server, context, browser }) => {let cookie = '';server.setRoute('/empty.html', (req, res) => {cookie = req.headers.cookie || '';@@ -245,7 +245,7 @@ it('should isolate send cookie header', async ({ server, context, browser }) =>}});-playwrightTest('should isolate cookies between launches', async ({ browserType, server }) => {+playwrightTest('CO-029 should isolate cookies between launches', async ({ browserType, server }) => {playwrightTest.slow();const browser1 = await browserType.launch();@@ -260,7 +260,7 @@ playwrightTest('should isolate cookies between launches', async ({ browserType,await browser2.close();});-it('should set multiple cookies', async ({ context, page, server }) => {+it('CO-030 should set multiple cookies', async ({ context, page, server }) => {await page.goto(server.EMPTY_PAGE);await context.addCookies([{url: server.EMPTY_PAGE,@@ -280,7 +280,7 @@ it('should set multiple cookies', async ({ context, page, server }) => {]);});-it('should have |expires| set to |-1| for session cookies', async ({ context, server }) => {+it('CO-031 should have |expires| set to |-1| for session cookies', async ({ context, server }) => {await context.addCookies([{url: server.EMPTY_PAGE,name: 'expires',@@ -290,7 +290,7 @@ it('should have |expires| set to |-1| for session cookies', async ({ context, seexpect(cookies[0].expires).toBe(-1);});-it('should set cookie with reasonable defaults', async ({ context, server, defaultSameSiteCookieValue }) => {+it('CO-032 should set cookie with reasonable defaults', async ({ context, server, defaultSameSiteCookieValue }) => {await context.addCookies([{url: server.EMPTY_PAGE,name: 'defaults',@@ -309,7 +309,7 @@ it('should set cookie with reasonable defaults', async ({ context, server, defau}]);});-it('should set a cookie with a path', async ({ context, page, server, browserName, isWindows, channel }) => {+it('CO-033 should set a cookie with a path', async ({ context, page, server, browserName, isWindows, channel }) => {await page.goto(server.PREFIX + '/grid.html');await context.addCookies([{domain: server.HOSTNAME,@@ -335,7 +335,7 @@ it('should set a cookie with a path', async ({ context, page, server, browserNamexpect(await page.evaluate('document.cookie')).toBe('gridcookie=GRID');});-it('should not set a cookie with blank page URL', async function({ context, server }) {+it('CO-034 should not set a cookie with blank page URL', async function({ context, server }) {let error = null;try {await context.addCookies([@@ -350,7 +350,7 @@ it('should not set a cookie with blank page URL', async function({ context, serv);});-it('should not set a cookie on a data URL page', async function({ context }) {+it('CO-035 should not set a cookie on a data URL page', async function({ context }) {let error = null;try {await context.addCookies([{ url: 'data:,Hello%2C%20World!', name: 'example-cookie', value: 'best' }]);@@ -360,7 +360,7 @@ it('should not set a cookie on a data URL page', async function({ context }) {expect(error.message).toContain('Data URL page can not have cookie "example-cookie"');});-it('should default to setting secure cookie for HTTPS websites', async ({ context, page, server }) => {+it('CO-036 should default to setting secure cookie for HTTPS websites', async ({ context, page, server }) => {await page.goto(server.EMPTY_PAGE);const SECURE_URL = 'https://example.com';await context.addCookies([{@@ -372,7 +372,7 @@ it('should default to setting secure cookie for HTTPS websites', async ({ contexexpect(cookie.secure).toBe(true);});-it('should be able to set unsecure cookie for HTTP website', async ({ context, page, server }) => {+it('CO-037 should be able to set unsecure cookie for HTTP website', async ({ context, page, server }) => {await page.goto(server.EMPTY_PAGE);const HTTP_URL = 'http://example.com';await context.addCookies([{@@ -384,7 +384,7 @@ it('should be able to set unsecure cookie for HTTP website', async ({ context, pexpect(cookie.secure).toBe(false);});-it('should set a cookie on a different domain', async ({ context, page, server, browserName, isWindows, channel }) => {+it('CO-038 should set a cookie on a different domain', async ({ context, page, server, browserName, isWindows, channel }) => {await page.goto(server.EMPTY_PAGE);await context.addCookies([{url: 'https://www.example.com',@@ -405,7 +405,7 @@ it('should set a cookie on a different domain', async ({ context, page, server,}]);});-it('should set cookies for a frame', async ({ context, page, server }) => {+it('CO-039 should set cookies for a frame', async ({ context, page, server }) => {await page.goto(server.EMPTY_PAGE);await context.addCookies([{ url: server.PREFIX, name: 'frame-cookie', value: 'value' }@@ -423,7 +423,7 @@ it('should set cookies for a frame', async ({ context, page, server }) => {expect(await page.frames()[1].evaluate('document.cookie')).toBe('frame-cookie=value');});-it('should allow unnamed cookies', async ({ page, context, server, browserName, platform, isBidi }) => {+it('CO-040 should allow unnamed cookies', async ({ page, context, server, browserName, platform, isBidi }) => {server.setRoute('/cookies', (req, res) => {res.write(req.headers.cookie ?? 'undefined-on-server');res.end();@@ -452,7 +452,7 @@ it('should allow unnamed cookies', async ({ page, context, server, browserName,expect.soft(await page.evaluate('document.cookie')).toBe('unnamed-via-js');});-it('should set secure cookies on secure WebSocket', async ({ contextFactory, httpsServer }) => {+it('CO-041 should set secure cookies on secure WebSocket', async ({ contextFactory, httpsServer }) => {let resolveReceivedWebSocketHeaders = (headers: IncomingHttpHeaders) => { };const receivedWebSocketHeaders = new Promise<IncomingHttpHeaders>(resolve => resolveReceivedWebSocketHeaders = resolve);httpsServer.onceWebSocketConnection((ws, req) => resolveReceivedWebSocketHeaders(req.headers));diff --git a/tests/library/browsercontext-add-init-script.spec.ts b/tests/library/browsercontext-add-init-script.spec.tsindex 7704c9de5b..ab92c15c72 100644--- a/tests/library/browsercontext-add-init-script.spec.ts+++ b/tests/library/browsercontext-add-init-script.spec.ts@@ -17,7 +17,7 @@import { contextTest as it, expect } from '../config/browserTest';-it('should work with browser context scripts @smoke', async ({ context, server }) => {+it('IS-024 should work with browser context scripts @smoke', async ({ context, server }) => {await context.addInitScript(() => (window as any)['temp'] = 123);const page = await context.newPage();await page.addInitScript(() => (window as any)['injected'] = (window as any)['temp']);@@ -25,7 +25,7 @@ it('should work with browser context scripts @smoke', async ({ context, server }expect(await page.evaluate(() => (window as any)['result'])).toBe(123);});-it('should work without navigation, after all bindings', async ({ context }) => {+it('IS-025 should work without navigation, after all bindings', async ({ context }) => {let callback: (arg: unknown) => void;const promise = new Promise(f => callback = f);await context.exposeFunction('woof', function(arg: any) {@@ -42,7 +42,7 @@ it('should work without navigation, after all bindings', async ({ context }) =>expect(await promise).toBe('hey');});-it('should work without navigation in popup', async ({ context }) => {+it('IS-026 should work without navigation in popup', async ({ context }) => {await context.addInitScript(() => (window as any)['temp'] = 123);const page = await context.newPage();const [popup] = await Promise.all([@@ -52,14 +52,14 @@ it('should work without navigation in popup', async ({ context }) => {expect(await popup.evaluate(() => (window as any)['temp'])).toBe(123);});-it('should work with browser context scripts with a path', async ({ context, server, asset }) => {+it('IS-027 should work with browser context scripts with a path', async ({ context, server, asset }) => {await context.addInitScript({ path: asset('injectedfile.js') });const page = await context.newPage();await page.goto(server.PREFIX + '/tamperable.html');expect(await page.evaluate(() => (window as any)['result'])).toBe(123);});-it('should work with browser context scripts for already created pages', async ({ context, server }) => {+it('IS-028 should work with browser context scripts for already created pages', async ({ context, server }) => {const page = await context.newPage();await context.addInitScript(() => (window as any)['temp'] = 123);await page.addInitScript(() => (window as any)['injected'] = (window as any)['temp']);@@ -67,7 +67,7 @@ it('should work with browser context scripts for already created pages', async (expect(await page.evaluate(() => (window as any)['result'])).toBe(123);});-it('should remove context init script after dispose', async ({ context, server }) => {+it('IS-029 should remove context init script after dispose', async ({ context, server }) => {const disposable = await context.addInitScript(() => (window as any)['temp'] = 123);const page = await context.newPage();await page.goto(server.PREFIX + '/tamperable.html');@@ -78,7 +78,7 @@ it('should remove context init script after dispose', async ({ context, server }expect(await page.evaluate(() => (window as any)['temp'])).toBe(undefined);});-it('should remove context init script and keep working in new pages', async ({ context, server }) => {+it('IS-030 should remove context init script and keep working in new pages', async ({ context, server }) => {const disposable = await context.addInitScript(() => (window as any)['temp'] = 123);await disposable.dispose();const page = await context.newPage();@@ -86,7 +86,7 @@ it('should remove context init script and keep working in new pages', async ({ cexpect(await page.evaluate(() => (window as any)['temp'])).toBe(undefined);});-it('should expose functions passed as arguments', async ({ context, server }) => {+it('IS-031 should expose functions passed as arguments', async ({ context, server }) => {const received: string[] = [];await context.addInitScript(async ({ cb }) => {await cb(location.href);@@ -96,7 +96,7 @@ it('should expose functions passed as arguments', async ({ context, server }) =>await expect.poll(() => received).toContain(server.EMPTY_PAGE);});-it('should expose functions that survive navigation', async ({ context, server }) => {+it('IS-032 should expose functions that survive navigation', async ({ context, server }) => {const received: number[] = [];await context.addInitScript(({ cb }) => {(window as any).cb = cb;@@ -109,7 +109,7 @@ it('should expose functions that survive navigation', async ({ context, server }expect(received).toEqual([1, 2]);});-it('should expose functions in popups', async ({ context, server }) => {+it('IS-033 should expose functions in popups', async ({ context, server }) => {await context.addInitScript(({ mul }) => {(window as any).mul = mul;}, { mul: (a: number, b: number) => a * b }, { exposeFunctions: true });@@ -122,7 +122,7 @@ it('should expose functions in popups', async ({ context, server }) => {expect(await popup.evaluate(() => (window as any).mul(6, 7))).toBe(42);});-it('should remove exposed functions after dispose', async ({ context, server }) => {+it('IS-034 should remove exposed functions after dispose', async ({ context, server }) => {const disposable = await context.addInitScript(({ cb }) => {(window as any).cb = cb;}, { cb: (n: number) => n * 2 }, { exposeFunctions: true });@@ -134,7 +134,7 @@ it('should remove exposed functions after dispose', async ({ context, server })expect(await page.evaluate(() => typeof (window as any).cb)).toBe('undefined');});-it('init script should run only once in popup', async ({ context }) => {+it('IS-035 init script should run only once in popup', async ({ context }) => {await context.addInitScript(() => {window['callCount'] = (window['callCount'] || 0) + 1;});diff --git a/tests/library/browsercontext-base-url.spec.ts b/tests/library/browsercontext-base-url.spec.tsindex a549e30db9..f131c61f13 100644--- a/tests/library/browsercontext-base-url.spec.ts+++ b/tests/library/browsercontext-base-url.spec.ts@@ -17,7 +17,7 @@import { browserTest as it, expect } from '../config/browserTest';-it('should construct a new URL when a baseURL in browser.newContext is passed to page.goto @smoke', async function({ browser, server }) {+it('NA-089 should construct a new URL when a baseURL in browser.newContext is passed to page.goto @smoke', async function({ browser, server }) {const context = await browser.newContext({baseURL: server.PREFIX,});@@ -26,7 +26,7 @@ it('should construct a new URL when a baseURL in browser.newContext is passed toawait context.close();});-it('should construct a new URL when a baseURL in browser.newPage is passed to page.goto', async function({ browser, server }) {+it('NA-090 should construct a new URL when a baseURL in browser.newPage is passed to page.goto', async function({ browser, server }) {const page = await browser.newPage({baseURL: server.PREFIX,});@@ -34,7 +34,7 @@ it('should construct a new URL when a baseURL in browser.newPage is passed to paawait page.close();});-it('should construct a new URL when a baseURL in browserType.launchPersistentContext is passed to page.goto', async function({ browserType, server, createUserDataDir }) {+it('NA-091 should construct a new URL when a baseURL in browserType.launchPersistentContext is passed to page.goto', async function({ browserType, server, createUserDataDir }) {const userDataDir = await createUserDataDir();const context = await browserType.launchPersistentContext(userDataDir, {baseURL: server.PREFIX,@@ -44,7 +44,7 @@ it('should construct a new URL when a baseURL in browserType.launchPersistentConawait context.close();});-it('should construct the URLs correctly when a baseURL without a trailing slash in browser.newPage is passed to page.goto', async function({ browser, server }) {+it('NA-092 should construct the URLs correctly when a baseURL without a trailing slash in browser.newPage is passed to page.goto', async function({ browser, server }) {const page = await browser.newPage({baseURL: server.PREFIX + '/url-construction',});@@ -54,7 +54,7 @@ it('should construct the URLs correctly when a baseURL without a trailing slashawait page.close();});-it('should construct the URLs correctly when a baseURL with a trailing slash in browser.newPage is passed to page.goto', async function({ browser, server }) {+it('NA-093 should construct the URLs correctly when a baseURL with a trailing slash in browser.newPage is passed to page.goto', async function({ browser, server }) {const page = await browser.newPage({baseURL: server.PREFIX + '/url-construction/',});@@ -66,7 +66,7 @@ it('should construct the URLs correctly when a baseURL with a trailing slash inawait page.close();});-it('should not construct a new URL when valid URLs are passed', async function({ browser, server }) {+it('NA-094 should not construct a new URL when valid URLs are passed', async function({ browser, server }) {const page = await browser.newPage({baseURL: 'http://microsoft.com',});@@ -80,7 +80,7 @@ it('should not construct a new URL when valid URLs are passed', async function({await page.close();});-it('should be able to match a URL relative to its given URL with urlMatcher', async function({ browser, server }) {+it('NA-095 should be able to match a URL relative to its given URL with urlMatcher', async function({ browser, server }) {const page = await browser.newPage({baseURL: server.PREFIX + '/foobar/',});@@ -102,7 +102,7 @@ it('should be able to match a URL relative to its given URL with urlMatcher', asawait page.close();});-it('should not construct a new URL with baseURL when a glob was used', async function({ browser, server }) {+it('NA-096 should not construct a new URL with baseURL when a glob was used', async function({ browser, server }) {const page = await browser.newPage({baseURL: server.PREFIX + '/foobar/',});diff --git a/tests/library/browsercontext-basic.spec.ts b/tests/library/browsercontext-basic.spec.tsindex d09e3f656b..e23b032f39 100644--- a/tests/library/browsercontext-basic.spec.ts+++ b/tests/library/browsercontext-basic.spec.ts@@ -20,7 +20,7 @@ import { browserTest as it, expect } from '../config/browserTest';import { attachFrame, verifyViewport } from '../config/utils';import type { Page } from '@playwright/test';-it('should create new context @smoke', async function({ browser }) {+it('BC-001 should create new context @smoke', async function({ browser }) {expect(browser.contexts().length).toBe(0);const context = await browser.newContext();expect(browser.contexts()).toEqual([context]);@@ -33,7 +33,7 @@ it('should create new context @smoke', async function({ browser }) {await context2.close();});-it('should be able to click across browser contexts', async function({ browser }) {+it('BC-002 should be able to click across browser contexts', async function({ browser }) {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29096' });expect(browser.contexts().length).toBe(0);@@ -69,7 +69,7 @@ it('should be able to click across browser contexts', async function({ browser }await page2.close();});-it('should be able to hover across browser contexts in parallel', async function({ browser, browserName, headless }) {+it('BC-003 should be able to hover across browser contexts in parallel', async function({ browser, browserName, headless }) {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40562' });it.fixme(browserName === 'firefox' && !headless, 'Hover is flaky in headed Firefox');@@ -103,7 +103,7 @@ it('should be able to hover across browser contexts in parallel', async functionawait Promise.all(pages.map(page => page.context().close()));});-it('window.open should use parent tab context', async function({ browser, server }) {+it('BC-004 window.open should use parent tab context', async function({ browser, server }) {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -115,7 +115,7 @@ it('window.open should use parent tab context', async function({ browser, serverawait context.close();});-it('should isolate localStorage and cookies @smoke', async function({ browser, server }) {+it('BC-005 should isolate localStorage and cookies @smoke', async function({ browser, server }) {// Create two incognito contexts.const context1 = await browser.newContext();const context2 = await browser.newContext();@@ -160,14 +160,14 @@ it('should isolate localStorage and cookies @smoke', async function({ browser, sexpect(browser.contexts().length).toBe(0);});-it('should propagate default viewport to the page', async ({ browser }) => {+it('BC-006 should propagate default viewport to the page', async ({ browser }) => {const context = await browser.newContext({ viewport: { width: 456, height: 789 } });const page = await context.newPage();await verifyViewport(page, 456, 789);await context.close();});-it('should make a copy of default viewport', async ({ browser }) => {+it('BC-007 should make a copy of default viewport', async ({ browser }) => {const viewport = { width: 456, height: 789 };const context = await browser.newContext({ viewport });viewport.width = 567;@@ -176,29 +176,29 @@ it('should make a copy of default viewport', async ({ browser }) => {await context.close();});-it('should respect deviceScaleFactor', async ({ browser }) => {+it('BC-008 should respect deviceScaleFactor', async ({ browser }) => {const context = await browser.newContext({ deviceScaleFactor: 3 });const page = await context.newPage();expect(await page.evaluate('window.devicePixelRatio')).toBe(3);await context.close();});-it('should not allow deviceScaleFactor with null viewport', async ({ browser }) => {+it('BC-009 should not allow deviceScaleFactor with null viewport', async ({ browser }) => {const error = await browser.newContext({ viewport: null, deviceScaleFactor: 1 }).catch(e => e);expect(error.message).toContain('"deviceScaleFactor" option is not supported with null "viewport"');});-it('should not allow isMobile with null viewport', async ({ browser }) => {+it('BC-010 should not allow isMobile with null viewport', async ({ browser }) => {const error = await browser.newContext({ viewport: null, isMobile: true }).catch(e => e);expect(error.message).toContain('"isMobile" option is not supported with null "viewport"');});-it('close() should work for empty context', async ({ browser }) => {+it('BC-011 close() should work for empty context', async ({ browser }) => {const context = await browser.newContext();await context.close();});-it('close() should abort waitForEvent', async ({ browser }) => {+it('BC-012 close() should abort waitForEvent', async ({ browser }) => {const context = await browser.newContext();const promise = context.waitForEvent('page').catch(e => e);await context.close();@@ -206,13 +206,13 @@ it('close() should abort waitForEvent', async ({ browser }) => {expect(error.message).toContain(kTargetClosedErrorMessage);});-it('close() should be callable twice', async ({ browser }) => {+it('BC-013 close() should be callable twice', async ({ browser }) => {const context = await browser.newContext();await context.close();await context.close();});-it('should pass self to close event', async ({ browser }) => {+it('BC-014 should pass self to close event', async ({ browser }) => {const newContext = await browser.newContext();const [closedContext] = await Promise.all([newContext.waitForEvent('close'),@@ -221,7 +221,7 @@ it('should pass self to close event', async ({ browser }) => {expect(closedContext).toBe(newContext);});-it('should not report frameless pages on error', async ({ browser, server }) => {+it('BC-015 should not report frameless pages on error', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();server.setRoute('/empty.html', (req, res) => {@@ -239,7 +239,7 @@ it('should not report frameless pages on error', async ({ browser, server }) =>}});-it('should return all of the pages', async ({ browser, server }) => {+it('BC-016 should return all of the pages', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();const second = await context.newPage();@@ -250,7 +250,7 @@ it('should return all of the pages', async ({ browser, server }) => {await context.close();});-it('should close all belonging pages once closing context', async function({ browser }) {+it('BC-017 should close all belonging pages once closing context', async function({ browser }) {const context = await browser.newContext();await context.newPage();expect(context.pages().length).toBe(1);@@ -259,7 +259,7 @@ it('should close all belonging pages once closing context', async function({ broexpect(context.pages().length).toBe(0);});-it('should disable javascript', async ({ browser, browserName }) => {+it('BC-018 should disable javascript', async ({ browser, browserName }) => {{const context = await browser.newContext({ javaScriptEnabled: false });const page = await context.newPage();@@ -282,14 +282,14 @@ it('should disable javascript', async ({ browser, browserName }) => {}});-it('should be able to navigate after disabling javascript', async ({ browser, server }) => {+it('BC-019 should be able to navigate after disabling javascript', async ({ browser, server }) => {const context = await browser.newContext({ javaScriptEnabled: false });const page = await context.newPage();await page.goto(server.EMPTY_PAGE);await context.close();});-it('should not hang on promises after disabling javascript', async ({ browserName, contextFactory, isBidi }) => {+it('BC-020 should not hang on promises after disabling javascript', async ({ browserName, contextFactory, isBidi }) => {it.fixme(browserName === 'firefox' && !isBidi);const context = await contextFactory({ javaScriptEnabled: false });const page = await context.newPage();@@ -297,7 +297,7 @@ it('should not hang on promises after disabling javascript', async ({ browserNamexpect(await page.evaluate(async () => 2)).toBe(2);});-it('setContent should work after disabling javascript', async ({ contextFactory }) => {+it('BC-021 setContent should work after disabling javascript', async ({ contextFactory }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18235' });const context = await contextFactory({ javaScriptEnabled: false });const page = await context.newPage();@@ -305,7 +305,7 @@ it('setContent should work after disabling javascript', async ({ contextFactoryawait expect(page.locator('h1')).toHaveText('Hello');});-it('should retry click after disabling javascript', async ({ contextFactory }) => {+it('BC-022 should retry click after disabling javascript', async ({ contextFactory }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42977' });const context = await contextFactory({ javaScriptEnabled: false });const page = await context.newPage();@@ -323,7 +323,7 @@ it('should retry click after disabling javascript', async ({ contextFactory }) =await expect(page.locator('details')).toHaveAttribute('open', '');});-it('should work with offline option', async ({ browser, server, browserName }) => {+it('BC-023 should work with offline option', async ({ browser, server, browserName }) => {const context = await browser.newContext({ offline: true });const page = await context.newPage();let error = null;@@ -345,7 +345,7 @@ it('should work with offline option', async ({ browser, server, browserName }) =await context.close();});-it('fetch with keepalive should throw when offline', {+it('BC-024 fetch with keepalive should throw when offline', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35701' },}, async ({ contextFactory, server }) => {const context = await contextFactory();@@ -373,7 +373,7 @@ it('fetch with keepalive should throw when offline', {expect(offlineResponse).toEqual('error');});-it('should emulate navigator.onLine', async ({ browser, server }) => {+it('BC-025 should emulate navigator.onLine', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();expect(await page.evaluate(() => window.navigator.onLine)).toBe(true);@@ -384,7 +384,7 @@ it('should emulate navigator.onLine', async ({ browser, server }) => {await context.close();});-it('should emulate navigator.onLine across navigations', {+it('BC-026 should emulate navigator.onLine across navigations', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42174' },{ type: 'issue', description: 'https://issues.chromium.org/issues/544795254' },@@ -416,7 +416,7 @@ it('should emulate navigator.onLine across navigations', {await context.close();});-it('should emulate offline event', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37295' } }, async ({ browser }) => {+it('BC-027 should emulate offline event', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37295' } }, async ({ browser }) => {const context = await browser.newContext();const page = await context.newPage();const events = await page.evaluateHandle(() => {@@ -432,7 +432,7 @@ it('should emulate offline event', { annotation: { type: 'issue', description: 'await context.close();});-it('should emulate media in popup', async ({ browser, server }) => {+it('BC-028 should emulate media in popup', async ({ browser, server }) => {{const context = await browser.newContext({ colorScheme: 'dark' });const page = await context.newPage();@@ -458,7 +458,7 @@ it('should emulate media in popup', async ({ browser, server }) => {}});-it('should emulate media in cross-process iframe', async ({ browser, server }) => {+it('BC-029 should emulate media in cross-process iframe', async ({ browser, server }) => {const page = await browser.newPage({ colorScheme: 'dark' });await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.CROSS_PROCESS_PREFIX + '/empty.html');@@ -467,13 +467,13 @@ it('should emulate media in cross-process iframe', async ({ browser, server }) =await page.close();});-it('default user agent', async ({ launchPersistent, browser, page, mode }) => {+it('BC-030 default user agent', async ({ launchPersistent, browser, page, mode }) => {it.skip(mode !== 'default');const { userAgent } = await (browser as any)._channel.defaultUserAgentForTest();expect(await page.evaluate(() => navigator.userAgent)).toBe(userAgent);});-it('should create two pages in parallel in various contexts', {+it('BC-031 should create two pages in parallel in various contexts', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/34586' }}, async ({ browser }) => {const context1 = await browser.newContext();diff --git a/tests/library/browsercontext-clearcookies.spec.ts b/tests/library/browsercontext-clearcookies.spec.tsindex 72cd834ec6..d98b86e979 100644--- a/tests/library/browsercontext-clearcookies.spec.ts+++ b/tests/library/browsercontext-clearcookies.spec.ts@@ -17,7 +17,7 @@import { contextTest as it, expect } from '../config/browserTest';-it('should clear cookies', async ({ context, page, server }) => {+it('CO-042 should clear cookies', async ({ context, page, server }) => {await page.goto(server.EMPTY_PAGE);await context.addCookies([{url: server.EMPTY_PAGE,@@ -31,7 +31,7 @@ it('should clear cookies', async ({ context, page, server }) => {expect(await page.evaluate('document.cookie')).toBe('');});-it('should isolate cookies when clearing', async ({ context, server, browser }) => {+it('CO-043 should isolate cookies when clearing', async ({ context, server, browser }) => {const anotherContext = await browser.newContext();await context.addCookies([{ url: server.EMPTY_PAGE, name: 'page1cookie', value: 'page1value' }]);await anotherContext.addCookies([{ url: server.EMPTY_PAGE, name: 'page2cookie', value: 'page2value' }]);@@ -49,7 +49,7 @@ it('should isolate cookies when clearing', async ({ context, server, browser })await anotherContext.close();});-it('should remove cookies by name', async ({ context, page, server }) => {+it('CO-044 should remove cookies by name', async ({ context, page, server }) => {await context.addCookies([{name: 'cookie1',value: '1',@@ -69,7 +69,7 @@ it('should remove cookies by name', async ({ context, page, server }) => {expect(await page.evaluate('document.cookie')).toBe('cookie2=2');});-it('should remove cookies by name regex', async ({ context, page, server }) => {+it('CO-045 should remove cookies by name regex', async ({ context, page, server }) => {await context.addCookies([{name: 'cookie1',value: '1',@@ -89,7 +89,7 @@ it('should remove cookies by name regex', async ({ context, page, server }) => {expect(await page.evaluate('document.cookie')).toBe('cookie2=2');});-it('should remove cookies by domain', async ({ context, page, server }) => {+it('CO-046 should remove cookies by domain', async ({ context, page, server }) => {await context.addCookies([{name: 'cookie1',value: '1',@@ -113,7 +113,7 @@ it('should remove cookies by domain', async ({ context, page, server }) => {expect(await page.evaluate('document.cookie')).toBe('cookie1=1');});-it('should remove cookies by path', async ({ context, page, server }) => {+it('CO-047 should remove cookies by path', async ({ context, page, server }) => {await context.addCookies([{name: 'cookie1',value: '1',@@ -143,7 +143,7 @@ it('should remove cookies by path', async ({ context, page, server }) => {expect(await page.evaluate('document.cookie')).toBe('cookie3=3');});-it('should remove cookies by name and domain', async ({ context, page, server }) => {+it('CO-048 should remove cookies by name and domain', async ({ context, page, server }) => {await context.addCookies([{name: 'cookie1',value: '1',@@ -165,7 +165,7 @@ it('should remove cookies by name and domain', async ({ context, page, server })expect(await page.evaluate('document.cookie')).toBe('cookie1=1');});-it('should not transiently delete non-matching cookies when filtering', {+it('CO-049 should not transiently delete non-matching cookies when filtering', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40953' },}, async ({ context, page, server, browserName, isWindows, isFrozenWebkit }) => {it.skip(browserName === 'webkit' && isWindows, 'cookieStore change events not supported on WebKit/Windows (curl backend lacks cookie change notifications)');@@ -202,7 +202,7 @@ it('should not transiently delete non-matching cookies when filtering', {expect(await page.evaluate('document.cookie')).toBe('keep_me=1');});-it('should remove partitioned cookies by name', {+it('CO-050 should remove partitioned cookies by name', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40953' },}, async ({ browser, httpsServer, browserName }) => {it.skip(browserName !== 'chromium', 'Partitioned cookies (CHIPS) are Chromium-specific');@@ -240,7 +240,7 @@ it('should remove partitioned cookies by name', {await context.close();});-it('should remove nameless cookies by empty name', {+it('CO-051 should remove nameless cookies by empty name', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43112' },}, async ({ context }) => {await context.addCookies([diff --git a/tests/library/browsercontext-cookies-third-party.spec.ts b/tests/library/browsercontext-cookies-third-party.spec.tsindex 86288e7a7b..a4d4c17ad5 100644--- a/tests/library/browsercontext-cookies-third-party.spec.ts+++ b/tests/library/browsercontext-cookies-third-party.spec.ts@@ -163,11 +163,11 @@ async function runNonPartitionedTest(page: Page, httpsServer: TestServer, browse};}-test(`third party non-partitioned cookies`, async ({ page, browserName, httpsServer, isMac, isLinux, isBidi, urls, channel }) => {+test(`CO-052 third party non-partitioned cookies`, async ({ page, browserName, httpsServer, isMac, isLinux, isBidi, urls, channel }) => {await runNonPartitionedTest(page, httpsServer, browserName, isMac, isLinux, isBidi, channel, urls);});-test(`save/load third party non-partitioned cookies`, async ({ page, browserName, httpsServer, isMac, isLinux, isBidi, browser, urls, channel }) => {+test(`CO-053 save/load third party non-partitioned cookies`, async ({ page, browserName, httpsServer, isMac, isLinux, isBidi, browser, urls, channel }) => {// Run the test to populate the cookies.const { expectedTopLevel, expectedThirdParty } = await runNonPartitionedTest(page, httpsServer, browserName, isMac, isLinux, isBidi, channel, urls);@@ -254,11 +254,11 @@ async function runPartitionedTest(page: Page, httpsServer: TestServer, browserNaawait expect(frameBody).toHaveText('Received cookie: frame-non-partitioned=value; frame-partitioned=value; top-level-non-partitioned=value');}-test(`third party 'Partitioned;' cookies`, async ({ page, browserName, httpsServer, isMac, webkitPartitions, isBidi, urls }) => {+test(`CO-054 third party 'Partitioned;' cookies`, async ({ page, browserName, httpsServer, isMac, webkitPartitions, isBidi, urls }) => {await runPartitionedTest(page, httpsServer, browserName, isMac, webkitPartitions, isBidi, urls);});-test(`save/load third party 'Partitioned;' cookies`, async ({ page, browserName, httpsServer, isMac, webkitPartitions, isBidi, browser, urls }) => {+test(`CO-055 save/load third party 'Partitioned;' cookies`, async ({ page, browserName, httpsServer, isMac, webkitPartitions, isBidi, browser, urls }) => {test.fixme(browserName === 'firefox' && !isBidi, 'Firefox cookie partitioning is disabled in Firefox(Juggler).');test.fixme(browserName === 'webkit' && !isMac, 'Linux and Windows WebKit builds do not partition third-party cookies at all.');@@ -328,7 +328,7 @@ test(`save/load third party 'Partitioned;' cookies`, async ({ page, browserName,});});-test(`add 'Partitioned;' cookie via API`, async ({ page, context, browserName, httpsServer, isMac, webkitPartitions, isBidi, urls }) => {+test(`CO-056 add 'Partitioned;' cookie via API`, async ({ page, context, browserName, httpsServer, isMac, webkitPartitions, isBidi, urls }) => {addCommonCookieHandlers(httpsServer, urls);await context.addCookies([@@ -429,7 +429,7 @@ test(`add 'Partitioned;' cookie via API`, async ({ page, context, browserName, h});-test(`same origin third party 'Partitioned;' cookie with different origin intermediate iframe`, async ({ page, httpsServer, browser, isBidi, urls }) => {+test(`CO-057 same origin third party 'Partitioned;' cookie with different origin intermediate iframe`, async ({ page, httpsServer, browser, isBidi, urls }) => {addCommonCookieHandlers(httpsServer, urls);httpsServer.setRoute('/set-cookie.html', (req, res) => {res.setHeader('Set-Cookie', [@@ -467,7 +467,7 @@ test(`same origin third party 'Partitioned;' cookie with different origin interm});});-test(`top level 'Partitioned;' cookie and same origin iframe`, async ({ page, browserName, httpsServer, browser, isBidi, urls }) => {+test(`CO-058 top level 'Partitioned;' cookie and same origin iframe`, async ({ page, browserName, httpsServer, browser, isBidi, urls }) => {addCommonCookieHandlers(httpsServer, urls);httpsServer.setRoute('/set-cookie.html', (req, res) => {res.setHeader('Set-Cookie', [@@ -527,7 +527,7 @@ test(`top level 'Partitioned;' cookie and same origin iframe`, async ({ page, br});});-test('should be able to send third party cookies via an iframe', async ({ browser, httpsServer, browserName, isMac, isBidi }) => {+test('CO-059 should be able to send third party cookies via an iframe', async ({ browser, httpsServer, browserName, isMac, isBidi }) => {test.fixme(browserName === 'webkit' && isMac);test.skip(browserName === 'firefox' && isBidi, 'Firefox\'s Total Cookie Protection blocks this third-party cookie');test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16937' });@@ -557,12 +557,12 @@ test('should be able to send third party cookies via an iframe', async ({ browse}});-test('should(not) block third party cookies - persistent context', async ({ httpsServer, launchPersistent, allowsThirdParty, defaultSameSiteCookieValue }) => {+test('CO-060 should(not) block third party cookies - persistent context', async ({ httpsServer, launchPersistent, allowsThirdParty, defaultSameSiteCookieValue }) => {const { page, context } = await launchPersistent();await testThirdPartyCookiesAreBlocked(page, context, httpsServer, allowsThirdParty, defaultSameSiteCookieValue);});-test('should(not) block third party cookies - ephemeral context', async ({ page, context, httpsServer, allowsThirdParty, defaultSameSiteCookieValue }) => {+test('CO-061 should(not) block third party cookies - ephemeral context', async ({ page, context, httpsServer, allowsThirdParty, defaultSameSiteCookieValue }) => {await testThirdPartyCookiesAreBlocked(page, context, httpsServer, allowsThirdParty, defaultSameSiteCookieValue);});@@ -602,7 +602,7 @@ async function testThirdPartyCookiesAreBlocked(page: Page, context: BrowserConte}}-test('should not block third party SameSite=None cookies', async ({ contextFactory, httpsServer, browserName }) => {+test('CO-062 should not block third party SameSite=None cookies', async ({ contextFactory, httpsServer, browserName }) => {test.skip(browserName === 'webkit', 'No third party cookies in WebKit');test.skip(process.env.PW_CLOCK === 'frozen');const context = await contextFactory({diff --git a/tests/library/browsercontext-cookies.spec.ts b/tests/library/browsercontext-cookies.spec.tsindex aabcffc819..9bf5cc2d19 100644--- a/tests/library/browsercontext-cookies.spec.ts+++ b/tests/library/browsercontext-cookies.spec.ts@@ -17,11 +17,11 @@import { contextTest as it, expect } from '../config/browserTest';-it('should return no cookies in pristine browser context', async ({ context, page, server }) => {+it('CO-001 should return no cookies in pristine browser context', async ({ context, page, server }) => {expect(await context.cookies()).toEqual([]);});-it('should get a cookie @smoke', async ({ context, page, server, defaultSameSiteCookieValue }) => {+it('CO-002 should get a cookie @smoke', async ({ context, page, server, defaultSameSiteCookieValue }) => {await page.goto(server.EMPTY_PAGE);const documentCookie = await page.evaluate(() => {document.cookie = 'username=John Doe';@@ -40,7 +40,7 @@ it('should get a cookie @smoke', async ({ context, page, server, defaultSameSite}]);});-it('should get a non-session cookie', async ({ context, page, server, defaultSameSiteCookieValue }) => {+it('CO-003 should get a non-session cookie', async ({ context, page, server, defaultSameSiteCookieValue }) => {await page.goto(server.EMPTY_PAGE);// @see https://en.wikipedia.org/wiki/Year_2038_problemconst date = +(new Date('1/1/2038'));@@ -72,7 +72,7 @@ it('should get a non-session cookie', async ({ context, page, server, defaultSamexpect(cookies[0].expires).toBeGreaterThan((Date.now() + FOUR_HUNDRED_DAYS - FIVE_MINUTES) / 1000);});-it('should allow adding cookies with >400 days expiration', {+it('CO-004 should allow adding cookies with >400 days expiration', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37903' }}, async ({ context, server }) => {// Browsers start to cap cookies with 400 days max expires value.@@ -104,7 +104,7 @@ it('should allow adding cookies with >400 days expiration', {expect(cookies[0].expires).toBeLessThanOrEqual(expire);});-it('should properly report httpOnly cookie', async ({ context, page, server }) => {+it('CO-005 should properly report httpOnly cookie', async ({ context, page, server }) => {server.setRoute('/empty.html', (req, res) => {res.setHeader('Set-Cookie', 'name=value;HttpOnly; Path=/');res.end();@@ -115,7 +115,7 @@ it('should properly report httpOnly cookie', async ({ context, page, server }) =expect(cookies[0].httpOnly).toBe(true);});-it('should properly report "Strict" sameSite cookie', async ({ context, page, server, browserName, platform, channel }) => {+it('CO-006 should properly report "Strict" sameSite cookie', async ({ context, page, server, browserName, platform, channel }) => {it.fail(browserName === 'webkit' && platform === 'win32' && channel !== 'webkit-wsl');server.setRoute('/empty.html', (req, res) => {@@ -128,7 +128,7 @@ it('should properly report "Strict" sameSite cookie', async ({ context, page, seexpect(cookies[0].sameSite).toBe('Strict');});-it('should properly report "Lax" sameSite cookie', async ({ context, page, server, browserName, platform, channel }) => {+it('CO-007 should properly report "Lax" sameSite cookie', async ({ context, page, server, browserName, platform, channel }) => {it.fail(browserName === 'webkit' && platform === 'win32' && channel !== 'webkit-wsl');server.setRoute('/empty.html', (req, res) => {@@ -141,7 +141,7 @@ it('should properly report "Lax" sameSite cookie', async ({ context, page, serveexpect(cookies[0].sameSite).toBe('Lax');});-it('should get multiple cookies', async ({ context, page, server, defaultSameSiteCookieValue }) => {+it('CO-008 should get multiple cookies', async ({ context, page, server, defaultSameSiteCookieValue }) => {await page.goto(server.EMPTY_PAGE);const documentCookie = await page.evaluate(() => {document.cookie = 'username=John Doe';@@ -174,7 +174,7 @@ it('should get multiple cookies', async ({ context, page, server, defaultSameSit]));});-it('should get cookies from multiple urls', async ({ context, browserName, isWindows, channel }) => {+it('CO-009 should get cookies from multiple urls', async ({ context, browserName, isWindows, channel }) => {await context.addCookies([{url: 'https://foo.com',name: 'doggo',@@ -213,7 +213,7 @@ it('should get cookies from multiple urls', async ({ context, browserName, isWin}]));});-it('should work with subdomain cookie', async ({ context, browserName, isWindows, channel }) => {+it('CO-010 should work with subdomain cookie', async ({ context, browserName, isWindows, channel }) => {await context.addCookies([{domain: '.foo.com',path: '/',@@ -244,7 +244,7 @@ it('should work with subdomain cookie', async ({ context, browserName, isWindows}]);});-it('should only return cookies that apply to the url', {+it('CO-011 should only return cookies that apply to the url', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43078' },}, async ({ context }) => {await context.addCookies([@@ -263,7 +263,7 @@ it('should only return cookies that apply to the url', {expect(await names('http://foo.com/foo/bar')).toEqual(['slash']);});-it('should return cookies with empty value', async ({ context, page, server }) => {+it('CO-012 should return cookies with empty value', async ({ context, page, server }) => {server.setRoute('/empty.html', (req, res) => {res.setHeader('Set-Cookie', 'name=;Path=/');res.end();@@ -278,7 +278,7 @@ it('should return cookies with empty value', async ({ context, page, server }) =]);});-it('should return secure cookies based on HTTP(S) protocol', async ({ context, browserName, isWindows, channel }) => {+it('CO-013 should return secure cookies based on HTTP(S) protocol', async ({ context, browserName, isWindows, channel }) => {await context.addCookies([{url: 'https://foo.com',name: 'doggo',@@ -325,13 +325,13 @@ it('should return secure cookies based on HTTP(S) protocol', async ({ context, b});for (const host of ['127.0.0.1', '[::1]']) {- it(`should return secure cookies for http ${host}`, { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43115' } }, async ({ context }) => {+ it(`CO-014 should return secure cookies for http ${host}`, { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43115' } }, async ({ context }) => {await context.addCookies([{ name: 'a', value: 'v', domain: host, path: '/', secure: true }]);expect((await context.cookies(`http://${host}/`)).map(c => c.name)).toEqual(['a']);});}-it('should add cookies with an expiration', async ({ context }) => {+it('CO-015 should add cookies with an expiration', async ({ context }) => {const expires = Math.floor((Date.now() / 1000)) + 3600;await context.addCookies([{url: 'https://foo.com',@@ -379,7 +379,7 @@ it('should add cookies with an expiration', async ({ context }) => {}])).rejects.toThrow(/Cookie should have a valid expires/);});-it('should support requestStorageAccess', async ({ page, server, channel, browserName, isMac, isLinux, isWindows, macVersion }) => {+it('CO-016 should support requestStorageAccess', async ({ page, server, channel, browserName, isMac, isLinux, isWindows, macVersion }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/17285' });it.skip(browserName === 'chromium', 'requestStorageAccess API is not available in Chromium');@@ -432,7 +432,7 @@ it('should support requestStorageAccess', async ({ page, server, channel, browse}});-it('should parse cookie with large Max-Age correctly', async ({ server, page, defaultSameSiteCookieValue, browserName, platform }) => {+it('CO-017 should parse cookie with large Max-Age correctly', async ({ server, page, defaultSameSiteCookieValue, browserName, platform }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30305' });server.setRoute('/foobar', (req, res) => {@@ -458,7 +458,7 @@ it('should parse cookie with large Max-Age correctly', async ({ server, page, de]);});-it('iframe should inherit cookies from parent', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35439' } }, async ({ page, isLinux, browserName }) => {+it('CO-018 iframe should inherit cookies from parent', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35439' } }, async ({ page, isLinux, browserName }) => {await page.route('**/*', async (route, request) => {if (request.url().includes('sub.example.test')) {await route.fulfill({diff --git a/tests/library/browsercontext-credentials.spec.ts b/tests/library/browsercontext-credentials.spec.tsindex e420cb467a..6f06ec8007 100644--- a/tests/library/browsercontext-credentials.spec.ts+++ b/tests/library/browsercontext-credentials.spec.ts@@ -23,7 +23,7 @@ const it = base.extend<{ failsOn401: boolean }>({},});-it('should fail without credentials', async ({ browser, server, failsOn401 }) => {+it('AU-001 should fail without credentials', async ({ browser, server, failsOn401 }) => {server.setAuth('/empty.html', 'user', 'pass');const context = await browser.newContext();const page = await context.newPage();@@ -34,7 +34,7 @@ it('should fail without credentials', async ({ browser, server, failsOn401 }) =>expect(responseOrError.status()).toBe(401);});-it('should work with setHTTPCredentials', async ({ browser, server, failsOn401 }) => {+it('AU-002 should work with setHTTPCredentials', async ({ browser, server, failsOn401 }) => {server.setAuth('/empty.html', 'user', 'pass');const context = await browser.newContext();const page = await context.newPage();@@ -51,7 +51,7 @@ it('should work with setHTTPCredentials', async ({ browser, server, failsOn401 }await context.close();});-it('should work with setHTTPCredentials and multiple credentials', async ({ browser, server, browserName }) => {+it('AU-003 should work with setHTTPCredentials and multiple credentials', async ({ browser, server, browserName }) => {server.setAuth('/empty.html', 'user1', 'pass1');const context = await browser.newContext();const page = await context.newPage();@@ -67,7 +67,7 @@ it('should work with setHTTPCredentials and multiple credentials', async ({ browawait context.close();});-it('should work with correct credentials @smoke', async ({ browser, server }) => {+it('AU-004 should work with correct credentials @smoke', async ({ browser, server }) => {server.setAuth('/empty.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: { username: 'user', password: 'pass' }@@ -78,7 +78,7 @@ it('should work with correct credentials @smoke', async ({ browser, server }) =>await context.close();});-it('should fail with wrong credentials', async ({ browser, server }) => {+it('AU-005 should fail with wrong credentials', async ({ browser, server }) => {server.setAuth('/empty.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: { username: 'foo', password: 'bar' }@@ -89,7 +89,7 @@ it('should fail with wrong credentials', async ({ browser, server }) => {await context.close();});-it('should return resource body', async ({ browser, server }) => {+it('AU-006 should return resource body', async ({ browser, server }) => {server.setAuth('/playground.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: { username: 'user', password: 'pass' }@@ -102,7 +102,7 @@ it('should return resource body', async ({ browser, server }) => {await context.close();});-it('should work with a single credential in an array', async ({ browser, server }) => {+it('AU-007 should work with a single credential in an array', async ({ browser, server }) => {server.setAuth('/empty.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: [{ username: 'user', password: 'pass' }]@@ -113,7 +113,7 @@ it('should work with a single credential in an array', async ({ browser, serverawait context.close();});-it('should work with multiple credentials for different origins', async ({ browser, server, browserName }) => {+it('AU-008 should work with multiple credentials for different origins', async ({ browser, server, browserName }) => {server.setAuth('/empty.html', 'user1', 'pass1');const context = await browser.newContext({httpCredentials: [@@ -130,7 +130,7 @@ it('should work with multiple credentials for different origins', async ({ browsawait context.close();});-it('should fall back to credentials without origin', async ({ browser, server, browserName }) => {+it('AU-009 should fall back to credentials without origin', async ({ browser, server, browserName }) => {server.setAuth('/empty.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: [@@ -147,7 +147,7 @@ it('should fall back to credentials without origin', async ({ browser, server, bawait context.close();});-it('should use the first matching credential', async ({ browser, server, browserName }) => {+it('AU-010 should use the first matching credential', async ({ browser, server, browserName }) => {server.setAuth('/empty.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: [@@ -161,7 +161,7 @@ it('should use the first matching credential', async ({ browser, server, browserawait context.close();});-it('should work with correct credentials and matching origin', async ({ browser, server }) => {+it('AU-011 should work with correct credentials and matching origin', async ({ browser, server }) => {server.setAuth('/empty.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX }@@ -172,7 +172,7 @@ it('should work with correct credentials and matching origin', async ({ browser,await context.close();});-it('should work with correct credentials and matching origin case insensitive', async ({ browser, server }) => {+it('AU-012 should work with correct credentials and matching origin case insensitive', async ({ browser, server }) => {server.setAuth('/empty.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase() }@@ -183,7 +183,7 @@ it('should work with correct credentials and matching origin case insensitive',await context.close();});-it('should fail with correct credentials and mismatching scheme', async ({ browser, server, failsOn401 }) => {+it('AU-013 should fail with correct credentials and mismatching scheme', async ({ browser, server, failsOn401 }) => {server.setAuth('/empty.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.replace('http://', 'https://') }@@ -197,7 +197,7 @@ it('should fail with correct credentials and mismatching scheme', async ({ browsawait context.close();});-it('should fail with correct credentials and mismatching hostname', async ({ browser, server, failsOn401 }) => {+it('AU-014 should fail with correct credentials and mismatching hostname', async ({ browser, server, failsOn401 }) => {server.setAuth('/empty.html', 'user', 'pass');const hostname = new URL(server.PREFIX).hostname;const origin = server.PREFIX.replace(hostname, 'mismatching-hostname');@@ -213,7 +213,7 @@ it('should fail with correct credentials and mismatching hostname', async ({ broawait context.close();});-it('should fail with correct credentials and mismatching port', async ({ browser, server, failsOn401 }) => {+it('AU-015 should fail with correct credentials and mismatching port', async ({ browser, server, failsOn401 }) => {server.setAuth('/empty.html', 'user', 'pass');const origin = server.PREFIX.replace(server.PORT.toString(), (server.PORT + 1).toString());const context = await browser.newContext({@@ -228,7 +228,7 @@ it('should fail with correct credentials and mismatching port', async ({ browserawait context.close();});-it('should not override Authorization header set by the page', async ({ browser, server }) => {+it('AU-016 should not override Authorization header set by the page', async ({ browser, server }) => {server.setAuth('/empty.html', 'user', 'pass');server.setRoute('/echo-auth', (req, res) => {res.end(req.headers['authorization'] || '<none>');diff --git a/tests/library/browsercontext-csp.spec.ts b/tests/library/browsercontext-csp.spec.tsindex afce53055b..02c8fb20fa 100644--- a/tests/library/browsercontext-csp.spec.ts+++ b/tests/library/browsercontext-csp.spec.ts@@ -18,7 +18,7 @@import { browserTest as it, expect } from '../config/browserTest';import { attachFrame } from '../config/utils';-it('should bypass CSP meta tag @smoke', async ({ browser, server }) => {+it('CS-001 should bypass CSP meta tag @smoke', async ({ browser, server }) => {// Make sure CSP prohibits addScriptTag.{const context = await browser.newContext();@@ -42,7 +42,7 @@ it('should bypass CSP meta tag @smoke', async ({ browser, server }) => {}});-it('should bypass CSP header', async ({ browser, server }) => {+it('CS-002 should bypass CSP header', async ({ browser, server }) => {// Make sure CSP prohibits addScriptTag.server.setRoute('/empty.html', (req, res) => {res.setHeader('Content-Security-Policy', 'default-src "self"');@@ -71,7 +71,7 @@ it('should bypass CSP header', async ({ browser, server }) => {}});-it('should bypass after cross-process navigation', async ({ browser, server }) => {+it('CS-003 should bypass after cross-process navigation', async ({ browser, server }) => {const context = await browser.newContext({ bypassCSP: true });const page = await context.newPage();await page.goto(server.PREFIX + '/csp.html');@@ -86,7 +86,7 @@ it('should bypass after cross-process navigation', async ({ browser, server }) =await context.close();});-it('should bypass CSP in iframes as well', async ({ browser, server }) => {+it('CS-004 should bypass CSP in iframes as well', async ({ browser, server }) => {// Make sure CSP prohibits addScriptTag in an iframe.{const context = await browser.newContext();@@ -112,7 +112,7 @@ it('should bypass CSP in iframes as well', async ({ browser, server }) => {}});-it('should not crash on javascript: navigation', async ({ browser, server }) => {+it('CS-005 should not crash on javascript: navigation', async ({ browser, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43213' });const context = await browser.newContext({ bypassCSP: true });const page = await context.newPage();diff --git a/tests/library/browsercontext-device.spec.ts b/tests/library/browsercontext-device.spec.tsindex c36acda6fe..18cf7fa753 100644--- a/tests/library/browsercontext-device.spec.ts+++ b/tests/library/browsercontext-device.spec.ts@@ -20,7 +20,7 @@ import { browserTest as it, expect } from '../config/browserTest';it.describe('device', () => {it.skip(({ browserName, isBidi }) => browserName === 'firefox' && !isBidi);- it('should work @smoke', async ({ playwright, browser, server }) => {+ it('DV-001 should work @smoke', async ({ playwright, browser, server }) => {const iPhone = playwright.devices['iPhone 6'];const context = await browser.newContext({ ...iPhone });const page = await context.newPage();@@ -30,7 +30,7 @@ it.describe('device', () => {await context.close();});- it('should support clicking', async ({ playwright, browser, server }) => {+ it('DV-002 should support clicking', async ({ playwright, browser, server }) => {const iPhone = playwright.devices['iPhone 6'];const context = await browser.newContext({ ...iPhone });const page = await context.newPage();@@ -42,7 +42,7 @@ it.describe('device', () => {await context.close();});- it('should scroll to click', async ({ browser, server }) => {+ it('DV-003 should scroll to click', async ({ browser, server }) => {const context = await browser.newContext({viewport: {width: 400,@@ -59,7 +59,7 @@ it.describe('device', () => {await context.close();});- it('should scroll twice when emulated', async ({ contextFactory, playwright }) => {+ it('DV-004 should scroll twice when emulated', async ({ contextFactory, playwright }) => {const device = playwright.devices['iPhone 6'];const context = await contextFactory(device);const page = await context.newPage();@@ -77,7 +77,7 @@ it.describe('device', () => {await context.close();});- it('should reset scroll top after a navigation', async ({ server, contextFactory, playwright, browserName }) => {+ it('DV-005 should reset scroll top after a navigation', async ({ server, contextFactory, playwright, browserName }) => {it.skip(browserName === 'webkit');const device = playwright.devices['iPhone 6'];@@ -91,7 +91,7 @@ it.describe('device', () => {await context.close();});- it('should scroll to a precise position with mobile scale', async ({ server, contextFactory, playwright, browserName }) => {+ it('DV-006 should scroll to a precise position with mobile scale', async ({ server, contextFactory, playwright, browserName }) => {it.skip(browserName === 'webkit');const device = playwright.devices['iPhone 6'];@@ -104,7 +104,7 @@ it.describe('device', () => {await context.close();});- it('should emulate viewport and screen size', async ({ contextFactory, playwright }) => {+ it('DV-007 should emulate viewport and screen size', async ({ contextFactory, playwright }) => {const device = playwright.devices['iPhone 12'];const context = await contextFactory(device);const page = await context.newPage();@@ -123,7 +123,7 @@ it.describe('device', () => {await context.close();});- it('should emulate viewport without screen size', async ({ contextFactory, playwright }) => {+ it('DV-008 should emulate viewport without screen size', async ({ contextFactory, playwright }) => {const device = playwright.devices['iPhone 6'];const context = await contextFactory(device);const page = await context.newPage();diff --git a/tests/library/browsercontext-dsf.spec.ts b/tests/library/browsercontext-dsf.spec.tsindex 7cd33e72c9..3a7326eade 100644--- a/tests/library/browsercontext-dsf.spec.ts+++ b/tests/library/browsercontext-dsf.spec.ts@@ -16,7 +16,7 @@import { browserTest as it, expect } from '../config/browserTest';-it('should fetch lodpi assets @smoke', async ({ contextFactory, server }) => {+it('DV-009 should fetch lodpi assets @smoke', async ({ contextFactory, server }) => {const context = await contextFactory({deviceScaleFactor: 1});@@ -28,7 +28,7 @@ it('should fetch lodpi assets @smoke', async ({ contextFactory, server }) => {expect(request.url()).toContain('image1x');});-it('should fetch hidpi assets', async ({ contextFactory, server }) => {+it('DV-010 should fetch hidpi assets', async ({ contextFactory, server }) => {const context = await contextFactory({deviceScaleFactor: 2});diff --git a/tests/library/browsercontext-events.spec.ts b/tests/library/browsercontext-events.spec.tsindex e616e4a389..504968e210 100644--- a/tests/library/browsercontext-events.spec.ts+++ b/tests/library/browsercontext-events.spec.ts@@ -17,7 +17,7 @@import { browserTest as test, expect } from '../config/browserTest';import type { ElementHandle } from 'playwright-core';-test('console event should work @smoke', async ({ page }) => {+test('BC-032 console event should work @smoke', async ({ page }) => {const [, message] = await Promise.all([page.evaluate(() => console.log('hello')),page.context().waitForEvent('console'),@@ -27,7 +27,7 @@ test('console event should work @smoke', async ({ page }) => {expect(message.page()).toBe(page);});-test('console event should work with element handles', async ({ page }) => {+test('BC-033 console event should work with element handles', async ({ page }) => {await page.setContent('<body>hello</body>');const [message] = await Promise.all([page.context().waitForEvent('console'),@@ -38,7 +38,7 @@ test('console event should work with element handles', async ({ page }) => {await (body as ElementHandle).click();});-test('console event should work in popup', async ({ page }) => {+test('BC-034 console event should work in popup', async ({ page }) => {const [, message, popup] = await Promise.all([page.evaluate(() => {const win = window.open('');@@ -52,7 +52,7 @@ test('console event should work in popup', async ({ page }) => {expect(message.page()).toBe(popup);});-test('console event should work in popup 2', async ({ page, browserName, isBidi }) => {+test('BC-035 console event should work in popup 2', async ({ page, browserName, isBidi }) => {test.fixme(browserName === 'firefox' && !isBidi, 'console message from javascript: url is not reported at all');const [, message, popup] = await Promise.all([@@ -69,7 +69,7 @@ test('console event should work in popup 2', async ({ page, browserName, isBidiexpect(message.page()).toBe(popup);});-test('console event should work in immediately closed popup', async ({ page, browserName, isBidi }) => {+test('BC-036 console event should work in immediately closed popup', async ({ page, browserName, isBidi }) => {test.fixme(browserName === 'firefox' && !isBidi, 'console message is not reported at all');const [, message, popup] = await Promise.all([@@ -86,7 +86,7 @@ test('console event should work in immediately closed popup', async ({ page, broexpect(message.page()).toBe(popup);});-test('dialog event should work @smoke', async ({ page }) => {+test('BC-037 dialog event should work @smoke', async ({ page }) => {const promise = page.evaluate(() => prompt('hey?'));const [dialog1, dialog2] = await Promise.all([page.context().waitForEvent('dialog'),@@ -100,7 +100,7 @@ test('dialog event should work @smoke', async ({ page }) => {expect(await promise).toBe('hello');});-test('dialogclosed event should work', async ({ page }) => {+test('BC-038 dialogclosed event should work', async ({ page }) => {const promise = page.evaluate(() => prompt('hey?'));const dialog = await page.context().waitForEvent('dialog');const [closed1, closed2] = await Promise.all([@@ -113,7 +113,7 @@ test('dialogclosed event should work', async ({ page }) => {expect(await promise).toBe('hello');});-test('dialog event should work in popup', async ({ page }) => {+test('BC-039 dialog event should work in popup', async ({ page }) => {const promise = page.evaluate(() => {const win = window.open('');return (win as any).prompt('hey?');@@ -130,7 +130,7 @@ test('dialog event should work in popup', async ({ page }) => {expect(await promise).toBe('hello');});-test('dialog event should work in popup 2', async ({ page, browserName }) => {+test('BC-040 dialog event should work in popup 2', async ({ page, browserName }) => {test.fixme(browserName === 'firefox', 'dialog from javascript: url is not reported at all');const promise = page.evaluate(async () => {@@ -145,7 +145,7 @@ test('dialog event should work in popup 2', async ({ page, browserName }) => {await promise;});-test('dialog event should work in immediately closed popup', async ({ page }) => {+test('BC-041 dialog event should work in immediately closed popup', async ({ page }) => {const promise = page.evaluate(async () => {const win = window.open()!;const result = (win as any).prompt('hey?');@@ -164,7 +164,7 @@ test('dialog event should work in immediately closed popup', async ({ page }) =>expect(await promise).toBe('hello');});-test('dialog event should work with inline script tag', async ({ page, server }) => {+test('BC-042 dialog event should work with inline script tag', async ({ page, server }) => {server.setRoute('/popup.html', (req, res) => {res.setHeader('content-type', 'text/html');res.end(`<script>window.result = prompt('hey?')</script>`);@@ -186,7 +186,7 @@ test('dialog event should work with inline script tag', async ({ page, server })await expect.poll(() => popup.evaluate('window.result')).toBe('hello');});-test('weberror event should work', async ({ page }) => {+test('BC-043 weberror event should work', async ({ page }) => {const [webError] = await Promise.all([page.context().waitForEvent('weberror'),page.setContent('<script>throw new Error("boom")</script>'),@@ -195,7 +195,7 @@ test('weberror event should work', async ({ page }) => {expect(webError.error().stack).toContain('boom');});-test('weberror event should include location', async ({ page, server }) => {+test('BC-044 weberror event should include location', async ({ page, server }) => {server.setRoute('/error.js', (req, res) => {res.setHeader('content-type', 'application/javascript');res.end(`@@ -222,7 +222,7 @@ test('weberror event should include location', async ({ page, server }) => {expect(location.column).toBeGreaterThan(0); // column is not consistent across browsers});-test('pageload event should work @smoke', async ({ page, server }) => {+test('BC-045 pageload event should work @smoke', async ({ page, server }) => {const [eventPage] = await Promise.all([page.context().waitForEvent('pageload'),page.goto(server.EMPTY_PAGE),@@ -230,7 +230,7 @@ test('pageload event should work @smoke', async ({ page, server }) => {expect(eventPage).toBe(page);});-test('framenavigated event should work @smoke', async ({ page, server }) => {+test('BC-046 framenavigated event should work @smoke', async ({ page, server }) => {const [frame] = await Promise.all([page.context().waitForEvent('framenavigated'),page.goto(server.EMPTY_PAGE),@@ -239,7 +239,7 @@ test('framenavigated event should work @smoke', async ({ page, server }) => {expect(frame.url()).toBe(server.EMPTY_PAGE);});-test('pageclose event should work @smoke', async ({ context }) => {+test('BC-047 pageclose event should work @smoke', async ({ context }) => {const page = await context.newPage();const [closed] = await Promise.all([context.waitForEvent('pageclose'),@@ -248,7 +248,7 @@ test('pageclose event should work @smoke', async ({ context }) => {expect(closed).toBe(page);});-test('frameattached event should work @smoke', async ({ page, server }) => {+test('BC-048 frameattached event should work @smoke', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [frame] = await Promise.all([page.context().waitForEvent('frameattached'),@@ -261,7 +261,7 @@ test('frameattached event should work @smoke', async ({ page, server }) => {expect(frame.parentFrame()).toBe(page.mainFrame());});-test('framedetached event should work @smoke', async ({ page, server }) => {+test('BC-049 framedetached event should work @smoke', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.evaluate(() => {const iframe = document.createElement('iframe');@@ -277,7 +277,7 @@ test('framedetached event should work @smoke', async ({ page, server }) => {expect(frame.parentFrame()).toBe(page.mainFrame());});-test('download event should work @smoke', async ({ page, server }) => {+test('BC-050 download event should work @smoke', async ({ page, server }) => {server.setRoute('/download', (req, res) => {res.setHeader('Content-Type', 'application/octet-stream');res.setHeader('Content-Disposition', 'attachment; filename=file.txt');diff --git a/tests/library/browsercontext-expose-function.spec.ts b/tests/library/browsercontext-expose-function.spec.tsindex 6050f5961f..b6731c0cc1 100644--- a/tests/library/browsercontext-expose-function.spec.ts+++ b/tests/library/browsercontext-expose-function.spec.ts@@ -17,7 +17,7 @@import { contextTest as it, expect } from '../config/browserTest';-it('expose binding should work', async ({ context }) => {+it('EF-022 expose binding should work', async ({ context }) => {let bindingSource: any;await context.exposeBinding('add', (source, a, b) => {bindingSource = source;@@ -31,7 +31,7 @@ it('expose binding should work', async ({ context }) => {expect(result).toEqual(11);});-it('should work', async ({ context, server }) => {+it('EF-023 should work', async ({ context, server }) => {await context.exposeFunction('add', (a: number, b: number) => a + b);const page = await context.newPage();await page.exposeFunction('mul', (a: number, b: number) => a * b);@@ -44,7 +44,7 @@ it('should work', async ({ context, server }) => {expect(result).toEqual({ mul: 36, add: 13, sub: 5, addHandle: 11 });});-it('should dispose', async ({ context, server }) => {+it('EF-024 should dispose', async ({ context, server }) => {const binding = await context.exposeFunction('compute', function(a, b) {return a * b;});@@ -61,7 +61,7 @@ it('should dispose', async ({ context, server }) => {expect(e.message).toContain('is not a function');});-it('should throw for duplicate registrations', async ({ context, server }) => {+it('EF-025 should throw for duplicate registrations', async ({ context, server }) => {await context.exposeFunction('foo', () => {});await context.exposeFunction('bar', () => {});let error = await context.exposeFunction('foo', () => {}).catch(e => e);@@ -74,7 +74,7 @@ it('should throw for duplicate registrations', async ({ context, server }) => {expect(error.message).toContain('Function "baz" has been already registered in one of the pages');});-it('should be callable from-inside addInitScript', async ({ context, server }) => {+it('EF-026 should be callable from-inside addInitScript', async ({ context, server }) => {let args: string[] = [];await context.exposeFunction('woof', function(arg: string) {args.push(arg);@@ -89,7 +89,7 @@ it('should be callable from-inside addInitScript', async ({ context, server }) =await expect.poll(() => args).toEqual(['context', 'page']);});-it('should work with CSP', async ({ page, context, server }) => {+it('EF-027 should work with CSP', async ({ page, context, server }) => {server.setCSP('/empty.html', 'default-src "self"');await page.goto(server.EMPTY_PAGE);let called = false;@@ -98,7 +98,7 @@ it('should work with CSP', async ({ page, context, server }) => {expect(called).toBe(true);});-it('should call binding from pagehide handler when navigating away', {+it('EF-028 should call binding from pagehide handler when navigating away', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43064' },}, async ({ context, page, server, browserName }) => {it.fixme(browserName === 'chromium', 'Chromium drops CDP events from the old document after the frame host swap');diff --git a/tests/library/browsercontext-fetch-algorithms.spec.ts b/tests/library/browsercontext-fetch-algorithms.spec.tsindex dd46209f67..03c5b6b9cf 100644--- a/tests/library/browsercontext-fetch-algorithms.spec.ts+++ b/tests/library/browsercontext-fetch-algorithms.spec.ts@@ -40,7 +40,7 @@ it.describe('algorithms', () => {br: brotliCompress(responseBody)})) {it.describe(`${type} decompression`, () => {- it(`should support decompression`, async ({ context, server }) => {+ it(`FE-180 should support decompression`, async ({ context, server }) => {server.setRoute('/compressed', async (req, res) => {res.setHeader('Content-Encoding', type);res.end(await zipped);@@ -50,7 +50,7 @@ it.describe('algorithms', () => {expect(await response.text()).toEqual(responseBody);});- it(`should not fail if response content-length header is missing (${type})`, async ({ context, server }) => {+ it(`FE-181 should not fail if response content-length header is missing (${type})`, async ({ context, server }) => {server.setRoute('/compressed', async (req, res) => {res.setHeader('Content-Encoding', type);res.removeHeader('Content-Length');@@ -61,7 +61,7 @@ it.describe('algorithms', () => {expect(await response.text()).toEqual(responseBody);});- it('should not fail with chunked responses (without Content-Length header)', async ({ context, server }) => {+ it('FE-182 should not fail with chunked responses (without Content-Length header)', async ({ context, server }) => {server.setRoute('/compressed', async (req, res) => {res.setHeader('Content-Encoding', type);res.setHeader('Transfer-Encoding', 'chunked');@@ -74,7 +74,7 @@ it.describe('algorithms', () => {expect(await response.text()).toEqual(responseBody);});- it('should not fail with an empty response without content-length header (Z_BUF_ERROR)', async ({ context, server }) => {+ it('FE-183 should not fail with an empty response without content-length header (Z_BUF_ERROR)', async ({ context, server }) => {server.setRoute('/compressed', async (req, res) => {res.setHeader('Content-Encoding', type);res.removeHeader('Content-Length');@@ -85,7 +85,7 @@ it.describe('algorithms', () => {expect(await response.text()).toEqual('');});- it('should not fail with an empty response with content-length header (Z_BUF_ERROR)', async ({ context, server }) => {+ it('FE-184 should not fail with an empty response with content-length header (Z_BUF_ERROR)', async ({ context, server }) => {server.setRoute('/compressed', async (req, res) => {res.setHeader('Content-Encoding', type);res.end();diff --git a/tests/library/browsercontext-fetch-happy-eyeballs.spec.ts b/tests/library/browsercontext-fetch-happy-eyeballs.spec.tsindex 974d096e79..d81f72afc5 100644--- a/tests/library/browsercontext-fetch-happy-eyeballs.spec.ts+++ b/tests/library/browsercontext-fetch-happy-eyeballs.spec.ts@@ -43,21 +43,21 @@ it.beforeEach(({ server }) => {});});-it('get should work', async ({ context, server }) => {+it('FE-185 get should work', async ({ context, server }) => {const response = await context.request.get(server.PREFIX + '/simple.json', { __testHookLookup } as any);expect(response.url()).toBe(server.PREFIX + '/simple.json');await expect(response).toBeOK();expect(interceptedHostnameLookup).toBe('localhost');});-it('get should work on request fixture', async ({ request, server }) => {+it('FE-186 get should work on request fixture', async ({ request, server }) => {const response = await request.get(server.PREFIX + '/simple.json', { __testHookLookup } as any);expect(response.url()).toBe(server.PREFIX + '/simple.json');await expect(response).toBeOK();expect(interceptedHostnameLookup).toBe('localhost');});-it('https post should work with ignoreHTTPSErrors option', async ({ context, httpsServer }) => {+it('FE-187 https post should work with ignoreHTTPSErrors option', async ({ context, httpsServer }) => {const response = await context.request.post(httpsServer.EMPTY_PAGE, {ignoreHTTPSErrors: true,__testHookLookup@@ -67,7 +67,7 @@ it('https post should work with ignoreHTTPSErrors option', async ({ context, htt});-it('should work with ip6 and port as the host', async ({ request, server }) => {+it('FE-188 should work with ip6 and port as the host', async ({ request, server }) => {it.skip(!!process.env.INSIDE_DOCKER, 'docker does not support IPv6 by default');const response = await request.get(`http://[::1]:${server.PORT}/simple.json`);expect(response.url()).toBe(`http://[::1]:${server.PORT}/simple.json`);diff --git a/tests/library/browsercontext-fetch.spec.ts b/tests/library/browsercontext-fetch.spec.tsindex fd80723c73..3131a4b85d 100644--- a/tests/library/browsercontext-fetch.spec.ts+++ b/tests/library/browsercontext-fetch.spec.ts@@ -36,7 +36,7 @@ const __testHookLookup = (hostname: string): LookupAddress[] => {throw new Error(`Failed to resolve hostname: ${hostname}`);};-it('get should work @smoke', async ({ context, server, mode }) => {+it('FE-088 get should work @smoke', async ({ context, server, mode }) => {const response = await context.request.get(server.PREFIX + '/simple.json');expect(response.url()).toBe(server.PREFIX + '/simple.json');expect(response.status()).toBe(200);@@ -47,7 +47,7 @@ it('get should work @smoke', async ({ context, server, mode }) => {expect(await response.text()).toBe('{"foo": "bar"}\n');});-it('fetch should work', async ({ context, server }) => {+it('FE-089 fetch should work', async ({ context, server }) => {const response = await context.request.fetch(server.PREFIX + '/simple.json');expect(response.url()).toBe(server.PREFIX + '/simple.json');expect(response.status()).toBe(200);@@ -58,7 +58,7 @@ it('fetch should work', async ({ context, server }) => {expect(await response.text()).toBe('{"foo": "bar"}\n');});-it('should return timing', async ({ context }) => {+it('FE-090 should return timing', async ({ context }) => {// Create a fresh server to guarantee a new connection, because keep-alive// sockets from other tests do not have dns/connect timings.const httpServer = http.createServer((req, res) => res.end('Hello'));@@ -82,7 +82,7 @@ it('should return timing', async ({ context }) => {}});-it('should return timing for https', async ({ context }) => {+it('FE-091 should return timing for https', async ({ context }) => {// Create a fresh server to guarantee a new connection, because keep-alive// sockets from other tests do not have dns/connect timings.const httpsServer = https.createServer(await TestServer.certOptions(), (req, res) => res.end('Hello'));@@ -105,7 +105,7 @@ it('should return timing for https', async ({ context }) => {}});-it('should throw on network error', async ({ context, server }) => {+it('FE-092 should throw on network error', async ({ context, server }) => {server.setRoute('/test', (req, res) => {req.socket.destroy();});@@ -113,7 +113,7 @@ it('should throw on network error', async ({ context, server }) => {expect(error.message).toContain('apiRequestContext.get: socket hang up');});-it('should throw on network error after redirect', async ({ context, server }) => {+it('FE-093 should throw on network error after redirect', async ({ context, server }) => {server.setRedirect('/redirect', '/test');server.setRoute('/test', (req, res) => {req.socket.destroy();@@ -122,7 +122,7 @@ it('should throw on network error after redirect', async ({ context, server }) =expect(error.message).toContain('apiRequestContext.get: socket hang up');});-it('should throw on network error when sending body', async ({ context, server }) => {+it('FE-094 should throw on network error when sending body', async ({ context, server }) => {server.setRoute('/test', (req, res) => {res.writeHead(200, {'content-length': 4096,@@ -136,7 +136,7 @@ it('should throw on network error when sending body', async ({ context, server }expect(error.message).toContain('apiRequestContext.get: aborted');});-it('should throw on network error when sending body after redirect', async ({ context, server }) => {+it('FE-095 should throw on network error when sending body after redirect', async ({ context, server }) => {server.setRedirect('/redirect', '/test');server.setRoute('/test', (req, res) => {res.writeHead(200, {@@ -151,7 +151,7 @@ it('should throw on network error when sending body after redirect', async ({ coexpect(error.message).toContain('apiRequestContext.get: aborted');});-it('should add session cookies to request', async ({ context, server }) => {+it('FE-096 should add session cookies to request', async ({ context, server }) => {await context.addCookies([{name: 'username',value: 'John Doe',@@ -171,7 +171,7 @@ it('should add session cookies to request', async ({ context, server }) => {expect(req.headers.cookie).toEqual('username=John Doe');});-it('should filter cookies by domain', {+it('FE-097 should filter cookies by domain', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36069' }}, async ({ context, server }) => {await context.addCookies([{@@ -203,7 +203,7 @@ it('should filter cookies by domain', {});for (const method of ['fetch', 'delete', 'get', 'head', 'patch', 'post', 'put'] as const) {- it(`${method} should support params passed as object`, async ({ context, server }) => {+ it(`FE-098 ${method} should support params passed as object`, async ({ context, server }) => {const url = new URL(server.EMPTY_PAGE);url.searchParams.set('param1', 'value1');url.searchParams.set('парам2', 'знач2');@@ -227,7 +227,7 @@ for (const method of ['fetch', 'delete', 'get', 'head', 'patch', 'post', 'put']expect(responseParams.get('парам2')).toBe('знач2');});- it(`${method} should support params passed as URLSearchParams`, async ({ context, server }) => {+ it(`FE-099 ${method} should support params passed as URLSearchParams`, async ({ context, server }) => {const url = new URL(server.EMPTY_PAGE);const searchParams = new URLSearchParams();searchParams.append('param1', 'value1');@@ -248,7 +248,7 @@ for (const method of ['fetch', 'delete', 'get', 'head', 'patch', 'post', 'put']expect(responseParams.get('парам2')).toBe('знач2');});- it(`${method} should support params passed as string`, async ({ context, server }) => {+ it(`FE-100 ${method} should support params passed as string`, async ({ context, server }) => {const url = new URL(server.EMPTY_PAGE);const params = '?param1=value1¶m1=value2&парам2=знач2';@@ -266,7 +266,7 @@ for (const method of ['fetch', 'delete', 'get', 'head', 'patch', 'post', 'put']expect(responseParams.get('парам2')).toBe('знач2');});- it(`${method} should append string and URLSearchParams params to the URL query`, {+ it(`FE-101 ${method} should append string and URLSearchParams params to the URL query`, {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43210' },}, async ({ context, server }) => {for (const params of ['q=cat', '?q=cat', new URLSearchParams({ q: 'cat' })]) {@@ -278,7 +278,7 @@ for (const method of ['fetch', 'delete', 'get', 'head', 'patch', 'post', 'put']}});- it(`${method} should support failOnStatusCode`, async ({ context, server }) => {+ it(`FE-102 ${method} should support failOnStatusCode`, async ({ context, server }) => {const error = await context.request[method](server.PREFIX + '/does-not-exist.html', {failOnStatusCode: true}).catch(e => e);@@ -287,13 +287,13 @@ for (const method of ['fetch', 'delete', 'get', 'head', 'patch', 'post', 'put']expect(error.message).toContain('Response text:\nFile not found:');});- it(`${method}should support ignoreHTTPSErrors option`, async ({ context, httpsServer }) => {+ it(`FE-103 ${method}should support ignoreHTTPSErrors option`, async ({ context, httpsServer }) => {const response = await context.request[method](httpsServer.EMPTY_PAGE, { ignoreHTTPSErrors: true });expect(response.status()).toBe(200);});}-it('should not add context cookie if cookie header passed as a parameter', async ({ context, server }) => {+it('FE-104 should not add context cookie if cookie header passed as a parameter', async ({ context, server }) => {await context.addCookies([{name: 'username',value: 'John Doe',@@ -316,7 +316,7 @@ it('should not add context cookie if cookie header passed as a parameter', asyncexpect(req.headers.cookie).toEqual('foo=bar');});-it('should follow redirects', async ({ context, server }) => {+it('FE-105 should follow redirects', async ({ context, server }) => {server.setRedirect('/redirect1', '/redirect2');server.setRedirect('/redirect2', '/simple.json');await context.addCookies([{@@ -338,7 +338,7 @@ it('should follow redirects', async ({ context, server }) => {expect(await response.json()).toEqual({ foo: 'bar' });});-it('should follow redirects correctly when Location header contains UTF-8 characters', async ({ context, server }) => {+it('FE-106 should follow redirects correctly when Location header contains UTF-8 characters', async ({ context, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30903' });server.setRoute('/redirect', (req, res) => {// Node.js only allows US-ASCII, so we can't send invalid headers directly. Sending it as a raw response instead.@@ -352,7 +352,7 @@ it('should follow redirects correctly when Location header contains UTF-8 characexpect(response.url()).toBe(server.PREFIX + '/empty.html?' + new URLSearchParams({ message: 'マスクПривет' }));});-it('should add cookies from Set-Cookie header', async ({ context, page, server }) => {+it('FE-107 should add cookies from Set-Cookie header', async ({ context, page, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['session=value', 'foo=bar; max-age=3600']);res.end();@@ -373,7 +373,7 @@ it('should add cookies from Set-Cookie header', async ({ context, page, server }expect((await page.evaluate(() => document.cookie)).split(';').map(s => s.trim()).sort()).toEqual(['foo=bar', 'session=value']);});-it('page.request.addCookies should add cookies to the browser context', async ({ context, page, server }) => {+it('FE-108 page.request.addCookies should add cookies to the browser context', async ({ context, page, server }) => {await page.request.addCookies([{ name: 'a', value: 'b', url: server.EMPTY_PAGE },{ name: 'c', value: 'd', domain: 'localhost', path: '/', expires: Date.now() / 1000 + 3600 },@@ -391,7 +391,7 @@ it('page.request.addCookies should add cookies to the browser context', async ({expect((await page.evaluate(() => document.cookie)).split(';').map(s => s.trim()).sort()).toEqual(['a=b', 'c=d']);});-it('page.request.cookies should return browser context cookies', async ({ context, page, server }) => {+it('FE-109 page.request.cookies should return browser context cookies', async ({ context, page, server }) => {await context.addCookies([{ name: 'a', value: 'b', url: server.EMPTY_PAGE },{ name: 'c', value: 'd', domain: 'example.com', path: '/' },@@ -401,7 +401,7 @@ it('page.request.cookies should return browser context cookies', async ({ contexexpect(await page.request.cookies(server.EMPTY_PAGE)).toEqual(await context.cookies(server.EMPTY_PAGE));});-it('page.request.clearCookies should clear browser context cookies', async ({ context, page, server }) => {+it('FE-110 page.request.clearCookies should clear browser context cookies', async ({ context, page, server }) => {await context.addCookies([{ name: 'a', value: 'b', url: server.EMPTY_PAGE },{ name: 'c', value: 'd', url: server.EMPTY_PAGE },@@ -417,7 +417,7 @@ it('page.request.clearCookies should clear browser context cookies', async ({ coexpect(req.headers.cookie).toBeUndefined();});-it('should preserve cookie order from Set-Cookie header', async ({ context, page, server, browserName, isLinux }) => {+it('FE-111 should preserve cookie order from Set-Cookie header', async ({ context, page, server, browserName, isLinux }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23390' });server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['cookie.0=foo', 'cookie.1=bar']);@@ -443,7 +443,7 @@ it('should preserve cookie order from Set-Cookie header', async ({ context, pageexpect(request.headers.cookie).toEqual('cookie.0=foo; cookie.1=bar');});-it('should support cookie with empty value', async ({ context, page, server }) => {+it('FE-112 should support cookie with empty value', async ({ context, page, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['first=']);res.end();@@ -460,7 +460,7 @@ it('should support cookie with empty value', async ({ context, page, server }) =]);});-it('should not lose body while handling Set-Cookie header', async ({ context, server }) => {+it('FE-113 should not lose body while handling Set-Cookie header', async ({ context, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['session=value', 'foo=bar; max-age=3600']);res.end('text content');@@ -469,7 +469,7 @@ it('should not lose body while handling Set-Cookie header', async ({ context, seexpect(await response.text()).toBe('text content');});-it('should remove cookie with negative max-age', async ({ page, server }) => {+it('FE-114 should remove cookie with negative max-age', async ({ page, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; max-age=100000', `b=v; max-age=100000`, 'c=v']);res.end();@@ -488,7 +488,7 @@ it('should remove cookie with negative max-age', async ({ page, server }) => {expect(serverRequest.headers.cookie).toBe('c=v');});-it('should remove cookie with expires far in the past', async ({ page, server }) => {+it('FE-115 should remove cookie with expires far in the past', async ({ page, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; max-age=1000000']);res.end();@@ -506,7 +506,7 @@ it('should remove cookie with expires far in the past', async ({ page, server })expect(serverRequest.headers.cookie).toBeFalsy();});-it('should handle cookies on redirects', async ({ context, server, browserName, isWindows, channel }) => {+it('FE-116 should handle cookies on redirects', async ({ context, server, browserName, isWindows, channel }) => {server.setRoute('/redirect1', (req, res) => {res.setHeader('Set-Cookie', 'r1=v1;SameSite=Lax');res.writeHead(301, { location: '/a/b/redirect2' });@@ -564,7 +564,7 @@ it('should handle cookies on redirects', async ({ context, server, browserName,]));});-it('should return raw headers', async ({ context, page, server }) => {+it('FE-117 should return raw headers', async ({ context, page, server }) => {server.setRoute('/headers', (req, res) => {// Headers array is only supported since Node v14.14.0 so we write directly to the socket.// res.writeHead(200, ['name-a', 'v1','name-b', 'v4','Name-a', 'v2', 'name-A', 'v3']);@@ -587,7 +587,7 @@ it('should return raw headers', async ({ context, page, server }) => {expect(response.headers()['name-b']).toBe('v4');});-it('should work with http credentials', async ({ context, server }) => {+it('FE-118 should work with http credentials', async ({ context, server }) => {server.setAuth('/empty.html', 'user', 'pass');const [request, response] = await Promise.all([@@ -602,7 +602,7 @@ it('should work with http credentials', async ({ context, server }) => {expect(request.url).toBe('/empty.html');});-it('should work with setHTTPCredentials', async ({ context, server }) => {+it('FE-119 should work with setHTTPCredentials', async ({ context, server }) => {server.setAuth('/empty.html', 'user', 'pass');const response1 = await context.request.get(server.EMPTY_PAGE);expect(response1.status()).toBe(401);@@ -612,14 +612,14 @@ it('should work with setHTTPCredentials', async ({ context, server }) => {expect(response2.status()).toBe(200);});-it('should return error with wrong credentials', async ({ context, server }) => {+it('FE-120 should return error with wrong credentials', async ({ context, server }) => {server.setAuth('/empty.html', 'user', 'pass');await context.setHTTPCredentials({ username: 'user', password: 'wrong' });const response2 = await context.request.get(server.EMPTY_PAGE);expect(response2.status()).toBe(401);});-it('should support multiple httpCredentials', async ({ contextFactory, server, browserName }) => {+it('FE-121 should support multiple httpCredentials', async ({ contextFactory, server, browserName }) => {server.setAuth('/empty.html', 'user1', 'pass1');const context = await contextFactory({httpCredentials: [@@ -634,7 +634,7 @@ it('should support multiple httpCredentials', async ({ contextFactory, server, bexpect(response2.status()).toBe(401);});-it('should support HTTPCredentials.send for newContext', async ({ contextFactory, server }) => {+it('FE-122 should support HTTPCredentials.send for newContext', async ({ contextFactory, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30534' });const context = await contextFactory({httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' }@@ -658,7 +658,7 @@ it('should support HTTPCredentials.send for newContext', async ({ contextFactory}});-it('should support HTTPCredentials.send for browser.newPage', async ({ contextFactory, server, browser }) => {+it('FE-123 should support HTTPCredentials.send for browser.newPage', async ({ contextFactory, server, browser }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30534' });const page = await browser.newPage({httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' }@@ -683,7 +683,7 @@ it('should support HTTPCredentials.send for browser.newPage', async ({ contextFaawait page.close();});-it('delete should support post data', async ({ context, server }) => {+it('FE-124 delete should support post data', async ({ context, server }) => {const [request, response] = await Promise.all([server.waitForRequest('/simple.json'),context.request.delete(`${server.PREFIX}/simple.json`, {@@ -696,7 +696,7 @@ it('delete should support post data', async ({ context, server }) => {expect(request.url).toBe('/simple.json');});-it('get should support post data', async ({ context, server }) => {+it('FE-125 get should support post data', async ({ context, server }) => {const [request, response] = await Promise.all([server.waitForRequest('/simple.json'),context.request.get(`${server.PREFIX}/simple.json`, {@@ -709,7 +709,7 @@ it('get should support post data', async ({ context, server }) => {expect(request.url).toBe('/simple.json');});-it('head should support post data', async ({ context, server }) => {+it('FE-126 head should support post data', async ({ context, server }) => {const [request, response] = await Promise.all([server.waitForRequest('/simple.json'),context.request.head(`${server.PREFIX}/simple.json`, {@@ -722,7 +722,7 @@ it('head should support post data', async ({ context, server }) => {expect(request.url).toBe('/simple.json');});-it('patch should support post data', async ({ context, server }) => {+it('FE-127 patch should support post data', async ({ context, server }) => {const [request, response] = await Promise.all([server.waitForRequest('/simple.json'),context.request.patch(`${server.PREFIX}/simple.json`, {@@ -735,7 +735,7 @@ it('patch should support post data', async ({ context, server }) => {expect(request.url).toBe('/simple.json');});-it('post should support post data', async ({ context, server }) => {+it('FE-128 post should support post data', async ({ context, server }) => {const [request, response] = await Promise.all([server.waitForRequest('/simple.json'),context.request.post(`${server.PREFIX}/simple.json`, {@@ -748,7 +748,7 @@ it('post should support post data', async ({ context, server }) => {expect(request.url).toBe('/simple.json');});-it('put should support post data', async ({ context, server }) => {+it('FE-129 put should support post data', async ({ context, server }) => {const [request, response] = await Promise.all([server.waitForRequest('/simple.json'),context.request.put(`${server.PREFIX}/simple.json`, {@@ -761,7 +761,7 @@ it('put should support post data', async ({ context, server }) => {expect(request.url).toBe('/simple.json');});-it('should add default headers', async ({ context, server, page }) => {+it('FE-130 should add default headers', async ({ context, server, page }) => {const [request] = await Promise.all([server.waitForRequest('/empty.html'),context.request.get(server.EMPTY_PAGE)@@ -772,7 +772,7 @@ it('should add default headers', async ({ context, server, page }) => {expect(request.headers['accept-encoding']).toBe('gzip,deflate,br');});-it('should send content-length', async function({ context, asset, server }) {+it('FE-131 should send content-length', async function({ context, asset, server }) {const bytes = [];for (let i = 0; i < 256; i++)bytes.push(i);@@ -786,7 +786,7 @@ it('should send content-length', async function({ context, asset, server }) {expect(request.headers['content-type']).toBe('application/octet-stream');});-it('should add default headers to redirects', async ({ context, server, page }) => {+it('FE-132 should add default headers to redirects', async ({ context, server, page }) => {server.setRedirect('/redirect', '/empty.html');const [request] = await Promise.all([server.waitForRequest('/empty.html'),@@ -798,7 +798,7 @@ it('should add default headers to redirects', async ({ context, server, page })expect(request.headers['accept-encoding']).toBe('gzip,deflate,br');});-it('should allow to override default headers', async ({ context, server, page }) => {+it('FE-133 should allow to override default headers', async ({ context, server, page }) => {const [request] = await Promise.all([server.waitForRequest('/empty.html'),context.request.get(server.EMPTY_PAGE, {@@ -814,7 +814,7 @@ it('should allow to override default headers', async ({ context, server, page })expect(request.headers['accept-encoding']).toBe('br');});-it('should propagate custom headers with redirects', async ({ context, server }) => {+it('FE-134 should propagate custom headers with redirects', async ({ context, server }) => {server.setRedirect('/a/redirect1', '/b/c/redirect2');server.setRedirect('/b/c/redirect2', '/simple.json');const [req1, req2, req3] = await Promise.all([@@ -828,7 +828,7 @@ it('should propagate custom headers with redirects', async ({ context, server })expect(req3.headers['foo']).toBe('bar');});-it('should propagate extra http headers with redirects', async ({ context, server }) => {+it('FE-135 should propagate extra http headers with redirects', async ({ context, server }) => {server.setRedirect('/a/redirect1', '/b/c/redirect2');server.setRedirect('/b/c/redirect2', '/simple.json');await context.setExtraHTTPHeaders({ 'My-Secret': 'Value' });@@ -843,7 +843,7 @@ it('should propagate extra http headers with redirects', async ({ context, serveexpect(req3.headers['my-secret']).toBe('Value');});-it('should throw on invalid header value', async ({ context, server }) => {+it('FE-136 should throw on invalid header value', async ({ context, server }) => {const error = await context.request.get(`${server.PREFIX}/a/redirect1`, {headers: {'foo': 'недопустимое значение',@@ -852,14 +852,14 @@ it('should throw on invalid header value', async ({ context, server }) => {expect(error.message).toContain('Invalid character in header content');});-it('should throw on non-http(s) protocol', async ({ context }) => {+it('FE-137 should throw on non-http(s) protocol', async ({ context }) => {const error1 = await context.request.get(`data:text/plain,test`).catch(e => e);expect(error1.message).toContain('Protocol "data:" not supported');const error2 = await context.request.get(`file:///tmp/foo`).catch(e => e);expect(error2.message).toContain('Protocol "file:" not supported');});-it('should support https', async ({ context, httpsServer }) => {+it('FE-138 should support https', async ({ context, httpsServer }) => {const oldValue = process.env['NODE_TLS_REJECT_UNAUTHORIZED'];// https://stackoverflow.com/a/21961005/552185process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0';@@ -872,13 +872,13 @@ it('should support https', async ({ context, httpsServer }) => {}});-it('should inherit ignoreHTTPSErrors from context', async ({ contextFactory, contextOptions, httpsServer }) => {+it('FE-139 should inherit ignoreHTTPSErrors from context', async ({ contextFactory, contextOptions, httpsServer }) => {const context = await contextFactory({ ...contextOptions, ignoreHTTPSErrors: true });const response = await context.request.get(httpsServer.EMPTY_PAGE);expect(response.status()).toBe(200);});-it('should resolve url relative to baseURL', async function({ server, contextFactory, contextOptions }) {+it('FE-140 should resolve url relative to baseURL', async function({ server, contextFactory, contextOptions }) {const context = await contextFactory({...contextOptions,baseURL: server.PREFIX,@@ -887,7 +887,7 @@ it('should resolve url relative to baseURL', async function({ server, contextFacexpect(response.url()).toBe(server.EMPTY_PAGE);});-it('should support gzip compression', async function({ context, server }) {+it('FE-141 should support gzip compression', async function({ context, server }) {server.setRoute('/compressed', (req, res) => {res.writeHead(200, {'Content-Encoding': 'gzip',@@ -907,7 +907,7 @@ it('should support gzip compression', async function({ context, server }) {expect(await response.text()).toBe('Hello, world!');});-it('should support case-insensitive content-encoding', async function({ context, server }) {+it('FE-142 should support case-insensitive content-encoding', async function({ context, server }) {server.setRoute('/compressed-uppercase', (req, res) => {res.writeHead(200, {'Content-Encoding': 'GZIP',@@ -927,7 +927,7 @@ it('should support case-insensitive content-encoding', async function({ context,expect(await response.text()).toBe('Hello, world!');});-it('should throw informative error on corrupted gzip body', async function({ context, server }) {+it('FE-143 should throw informative error on corrupted gzip body', async function({ context, server }) {server.setRoute('/corrupted', (req, res) => {res.writeHead(200, {'Content-Encoding': 'gzip',@@ -941,7 +941,7 @@ it('should throw informative error on corrupted gzip body', async function({ conexpect(error.message).toContain(`failed to decompress 'gzip' encoding`);});-it('should support brotli compression', async function({ context, server }) {+it('FE-144 should support brotli compression', async function({ context, server }) {server.setRoute('/compressed', (req, res) => {res.writeHead(200, {'Content-Encoding': 'br',@@ -961,7 +961,7 @@ it('should support brotli compression', async function({ context, server }) {expect(await response.text()).toBe('Hello, world!');});-it('should throw informative error on corrupted brotli body', async function({ context, server }) {+it('FE-145 should throw informative error on corrupted brotli body', async function({ context, server }) {server.setRoute('/corrupted', (req, res) => {res.writeHead(200, {'Content-Encoding': 'br',@@ -975,7 +975,7 @@ it('should throw informative error on corrupted brotli body', async function({ cexpect(error.message).toContain(`failed to decompress 'br' encoding`);});-it('should support deflate compression', async function({ context, server }) {+it('FE-146 should support deflate compression', async function({ context, server }) {server.setRoute('/compressed', (req, res) => {res.writeHead(200, {'Content-Encoding': 'deflate',@@ -995,7 +995,7 @@ it('should support deflate compression', async function({ context, server }) {expect(await response.text()).toBe('Hello, world!');});-it('should throw informative error on corrupted deflate body', async function({ context, server }) {+it('FE-147 should throw informative error on corrupted deflate body', async function({ context, server }) {server.setRoute('/corrupted', (req, res) => {res.writeHead(200, {'Content-Encoding': 'deflate',@@ -1009,7 +1009,7 @@ it('should throw informative error on corrupted deflate body', async function({expect(error.message).toContain(`failed to decompress 'deflate' encoding`);});-it('should support timeout option', async function({ context, server }) {+it('FE-148 should support timeout option', async function({ context, server }) {server.setRoute('/slow', (req, res) => {res.writeHead(200, {'content-length': 4096,@@ -1021,7 +1021,7 @@ it('should support timeout option', async function({ context, server }) {expect(error.message).toContain(`apiRequestContext.get: Timeout 10ms exceeded`);});-it('should support a timeout of 0', async function({ context, server }) {+it('FE-149 should support a timeout of 0', async function({ context, server }) {server.setRoute('/slow', (req, res) => {res.writeHead(200, {'content-length': 4,@@ -1038,7 +1038,7 @@ it('should support a timeout of 0', async function({ context, server }) {expect(await response.text()).toBe('done');});-it('should respect timeout after redirects', async function({ context, server }) {+it('FE-150 should respect timeout after redirects', async function({ context, server }) {server.setRedirect('/redirect', '/slow');server.setRoute('/slow', (req, res) => {res.writeHead(200, {@@ -1052,7 +1052,7 @@ it('should respect timeout after redirects', async function({ context, server })expect(error.message).toContain(`apiRequestContext.get: Timeout 100ms exceeded`);});-it('should not hang on a brotli encoded Range request', async ({ context, server, nodeVersion }) => {+it('FE-151 should not hang on a brotli encoded Range request', async ({ context, server, nodeVersion }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18190' });it.skip(nodeVersion.major < 18);@@ -1075,7 +1075,7 @@ it('should not hang on a brotli encoded Range request', async ({ context, server})).rejects.toThrow(/Parse Error: Expected HTTP/);});-it('should dispose', async function({ context, server }) {+it('FE-152 should dispose', async function({ context, server }) {const response = await context.request.get(server.PREFIX + '/simple.json');expect(await response.json()).toEqual({ foo: 'bar' });await response.dispose();@@ -1083,7 +1083,7 @@ it('should dispose', async function({ context, server }) {expect(error.message).toContain('Response has been disposed');});-it('should dispose when context closes', async function({ context, server }) {+it('FE-153 should dispose when context closes', async function({ context, server }) {const response = await context.request.get(server.PREFIX + '/simple.json');expect(await response.json()).toEqual({ foo: 'bar' });await context.close();@@ -1091,7 +1091,7 @@ it('should dispose when context closes', async function({ context, server }) {expect(error.message).toContain('Response has been disposed');});-it('should override request parameters', async function({ context, page, server }) {+it('FE-154 should override request parameters', async function({ context, page, server }) {const [pageReq] = await Promise.all([page.waitForRequest('**/*'),page.goto(server.EMPTY_PAGE)@@ -1111,7 +1111,7 @@ it('should override request parameters', async function({ context, page, serverexpect((await req.postBody).toString('utf8')).toBe('data');});-it('should support application/x-www-form-urlencoded', async function({ context, page, server }) {+it('FE-155 should support application/x-www-form-urlencoded', async function({ context, page, server }) {const [req] = await Promise.all([server.waitForRequest('/empty.html'),context.request.post(server.EMPTY_PAGE, {@@ -1132,7 +1132,7 @@ it('should support application/x-www-form-urlencoded', async function({ context,expect(params.get('file')).toBe('f.js');});-it('should support application/x-www-form-urlencoded with param lists', async function({ context, page, server }) {+it('FE-156 should support application/x-www-form-urlencoded with param lists', async function({ context, page, server }) {const form = new FormData();form.append('foo', '1');form.append('foo', '2');@@ -1148,7 +1148,7 @@ it('should support application/x-www-form-urlencoded with param lists', async fuexpect(params.getAll('foo')).toEqual(['1', '2']);});-it('should encode to application/json by default', async function({ context, page, server }) {+it('FE-157 should encode to application/json by default', async function({ context, page, server }) {const data = {firstName: 'John',lastName: 'Doe',@@ -1167,7 +1167,7 @@ it('should encode to application/json by default', async function({ context, pagexpect(json).toEqual(data);});-it('should support multipart/form-data', async function({ context, server }) {+it('FE-158 should support multipart/form-data', async function({ context, server }) {const formReceived = new Promise<{error: any, fields: formidable.Fields, files: Record<string, formidable.File>, serverRequest: IncomingMessage}>(resolve => {server.setRoute('/empty.html', async (serverRequest, res) => {const form = new formidable.IncomingForm();@@ -1206,7 +1206,7 @@ it('should support multipart/form-data', async function({ context, server }) {expect(response.status()).toBe(200);});-it('should escape quotes and newlines in multipart field and file names', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43422' } }, async function({ context, server }) {+it('FE-159 should escape quotes and newlines in multipart field and file names', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43422' } }, async function({ context, server }) {const bodyReceived = new Promise<{ contentType: string, body: Buffer }>(resolve => {server.setRoute('/empty.html', async (serverRequest, res) => {const chunks: Buffer[] = [];@@ -1236,7 +1236,7 @@ it('should escape quotes and newlines in multipart field and file names', { annoexpect(await (form.get('file') as File).text()).toBe('hello');});-it('should support multipart/form-data with ReadStream values', async function({ context, page, asset, server }) {+it('FE-160 should support multipart/form-data with ReadStream values', async function({ context, page, asset, server }) {const formReceived = new Promise<{error: any, fields: formidable.Fields, files: Record<string, formidable.File>, serverRequest: IncomingMessage}>(resolve => {server.setRoute('/empty.html', async (serverRequest, res) => {const form = new formidable.IncomingForm();@@ -1269,7 +1269,7 @@ it('should support multipart/form-data with ReadStream values', async function({expect(response.status()).toBe(200);});-it('should support multipart/form-data and keep the order', async function({ context, page, asset, server }) {+it('FE-161 should support multipart/form-data and keep the order', async function({ context, page, asset, server }) {const given = {firstName: 'John',lastName: 'Doe',@@ -1298,7 +1298,7 @@ it('should support multipart/form-data and keep the order', async function({ conexpect(response.status()).toBe(200);});-it('should support repeating names in multipart/form-data', async function({ context, server, nodeVersion }) {+it('FE-162 should support repeating names in multipart/form-data', async function({ context, server, nodeVersion }) {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28070' });it.skip(nodeVersion.major < 20, 'File is not available in Node.js < 20. FormData is not available in Node.js < 18');const postBodyPromise = new Promise<string>(resolve => {@@ -1330,7 +1330,7 @@ it('should support repeating names in multipart/form-data', async function({ conexpect(response.status()).toBe(200);});-it('should serialize data to json regardless of content-type', async function({ context, server }) {+it('FE-163 should serialize data to json regardless of content-type', async function({ context, server }) {const data = {firstName: 'John',lastName: 'Doe',@@ -1350,7 +1350,7 @@ it('should serialize data to json regardless of content-type', async function({expect(body).toEqual(JSON.stringify(data));});-it('should throw nice error on unsupported data type', async function({ context, server }) {+it('FE-164 should throw nice error on unsupported data type', async function({ context, server }) {const error = await context.request.post(server.EMPTY_PAGE, {headers: {'content-type': 'application/json'@@ -1360,7 +1360,7 @@ it('should throw nice error on unsupported data type', async function({ context,expect(error.message).toContain(`Unexpected 'data' type`);});-it('context request should export same storage state as context', async ({ context, page, server }) => {+it('FE-165 context request should export same storage state as context', async ({ context, page, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=b', 'c=d']);res.end();@@ -1374,7 +1374,7 @@ it('context request should export same storage state as context', async ({ conteexpect(pageState).toEqual(contextState);});-it('should send secure cookie over http for localhost', async ({ page, server, channel }) => {+it('FE-166 should send secure cookie over http for localhost', async ({ page, server, channel }) => {it.skip(channel === 'webkit-wsl');server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; secure']);@@ -1388,7 +1388,7 @@ it('should send secure cookie over http for localhost', async ({ page, server, cexpect(serverRequest.headers.cookie).toBe('a=v');});-it('should accept bool and numeric params and filter out undefined', async ({ page, server }) => {+it('FE-167 should accept bool and numeric params and filter out undefined', async ({ page, server }) => {let request;const url = new URL(server.EMPTY_PAGE);url.searchParams.set('str', 's');@@ -1416,7 +1416,7 @@ it('should accept bool and numeric params and filter out undefined', async ({ paexpect(params.has('none')).toBe(false);});-it('should abort requests when browser context closes', async ({ contextFactory, server }) => {+it('FE-168 should abort requests when browser context closes', async ({ contextFactory, server }) => {const connectionClosed = new Promise(resolve => {server.setRoute('/empty.html', (req, res) => {req.socket.on('close', resolve);@@ -1433,7 +1433,7 @@ it('should abort requests when browser context closes', async ({ contextFactory,await connectionClosed;});-it('should work with connectOverCDP', async ({ browserName, browserType, server }, testInfo) => {+it('FE-169 should work with connectOverCDP', async ({ browserName, browserType, server }, testInfo) => {it.skip(browserName !== 'chromium');const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({@@ -1451,7 +1451,7 @@ it('should work with connectOverCDP', async ({ browserName, browserType, server}});-it('should support SameSite cookie attribute over https', async ({ contextFactory, httpsServer, browserName, isWindows, channel }) => {+it('FE-170 should support SameSite cookie attribute over https', async ({ contextFactory, httpsServer, browserName, isWindows, channel }) => {// Cookies with SameSite=None must also specify the Secure attribute. WebKit navigation// to HTTP url will fail if the response contains a cookie with Secure attribute, so// we do HTTPS navigation.@@ -1473,7 +1473,7 @@ it('should support SameSite cookie attribute over https', async ({ contextFactor}});-it('should set domain=localhost cookie', async ({ context, server, browserName, isWindows }) => {+it('FE-171 should set domain=localhost cookie', async ({ context, server, browserName, isWindows }) => {server.setRoute('/empty.html', (req, res) => {res.setHeader('Set-Cookie', `name=val; Domain=${server.HOSTNAME}; Path=/;`);res.end();@@ -1485,7 +1485,7 @@ it('should set domain=localhost cookie', async ({ context, server, browserName,expect(cookie.value).toBe('val');});-it('fetch should not throw on long set-cookie value', async ({ context, server }) => {+it('FE-172 fetch should not throw on long set-cookie value', async ({ context, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27165' });server.setRoute('/empty.html', (req, res) => {res.setHeader('Set-Cookie', [`foo=${'a'.repeat(4100)}; path=/;`, `bar=val`]);@@ -1496,7 +1496,7 @@ it('fetch should not throw on long set-cookie value', async ({ context, server }expect(cookies.map(c => c.name)).toContain('bar');});-it('should support set-cookie with SameSite and without Secure attribute over HTTP', async ({ page, server, browserName, isWindows, isLinux, channel, isBidi }) => {+it('FE-173 should support set-cookie with SameSite and without Secure attribute over HTTP', async ({ page, server, browserName, isWindows, isLinux, channel, isBidi }) => {for (const value of ['None', 'Lax', 'Strict']) {await it.step(`SameSite=${value}`, async () => {server.setRoute('/empty.html', (req, res) => {@@ -1517,7 +1517,7 @@ it('should support set-cookie with SameSite and without Secure attribute over HT}});-it('should update host header on redirect', async ({ context, server }) => {+it('FE-174 should update host header on redirect', async ({ context, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/26743' });let redirectCount = 0;server.setRoute('/redirect', (req, res) => {@@ -1546,18 +1546,18 @@ it('should update host header on redirect', async ({ context, server }) => {expect((await reqPromise).headers.host).toBe(new URL(server.CROSS_PROCESS_PREFIX).host);});-it('should not work after dispose', async ({ context, server }) => {+it('FE-175 should not work after dispose', async ({ context, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27822' });await context.request.dispose();expect(await context.request.get(server.EMPTY_PAGE).catch(e => e.message)).toContain(kTargetClosedErrorMessage);});-it('should not work after context dispose', async ({ context, server }) => {+it('FE-176 should not work after context dispose', async ({ context, server }) => {await context.close({ reason: 'Test ended.' });expect(await context.request.get(server.EMPTY_PAGE).catch(e => e.message)).toContain('Test ended.');});-it('should retry on ECONNRESET', {+it('FE-177 should retry on ECONNRESET', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30978' }}, async ({ context, server }) => {let requestCount = 0;@@ -1575,7 +1575,7 @@ it('should retry on ECONNRESET', {expect(requestCount).toBe(4);});-it('should retry ECONNRESET on compressed response', async ({ context, server }) => {+it('FE-178 should retry ECONNRESET on compressed response', async ({ context, server }) => {let requestCount = 0;server.setRoute('/test-gzip', (req, res) => {if (requestCount++ < 2) {@@ -1600,7 +1600,7 @@ it('should retry ECONNRESET on compressed response', async ({ context, server })expect(requestCount).toBe(3);});-it('should retry ECONNRESET mid-stream during gzip decompression', async ({ context, server }) => {+it('FE-179 should retry ECONNRESET mid-stream during gzip decompression', async ({ context, server }) => {let requestCount = 0;server.setRoute('/test-gzip-midstream', (req, res) => {requestCount++;diff --git a/tests/library/browsercontext-har.spec.ts b/tests/library/browsercontext-har.spec.tsindex 98c3e1fe04..2b0c42e4f1 100644--- a/tests/library/browsercontext-har.spec.ts+++ b/tests/library/browsercontext-har.spec.ts@@ -19,7 +19,7 @@ import fs from 'fs';import path from 'path';import { extractZip } from '../../packages/utils/third_party/extractZip';-it('should context.routeFromHAR, matching the method and following redirects', async ({ context, asset }) => {+it('HA-068 should context.routeFromHAR, matching the method and following redirects', async ({ context, asset }) => {const path = asset('har-fulfill.har');await context.routeFromHAR(path);const page = await context.newPage();@@ -30,7 +30,7 @@ it('should context.routeFromHAR, matching the method and following redirects', aawait expect(page.locator('body')).toHaveCSS('background-color', 'rgb(255, 0, 0)');});-it('should page.routeFromHAR, matching the method and following redirects', async ({ context, asset }) => {+it('HA-069 should page.routeFromHAR, matching the method and following redirects', async ({ context, asset }) => {const path = asset('har-fulfill.har');const page = await context.newPage();await page.routeFromHAR(path);@@ -41,7 +41,7 @@ it('should page.routeFromHAR, matching the method and following redirects', asynawait expect(page.locator('body')).toHaveCSS('background-color', 'rgb(255, 0, 0)');});-it('fallback:continue should continue when not found in har', async ({ context, server, asset }) => {+it('HA-070 fallback:continue should continue when not found in har', async ({ context, server, asset }) => {const path = asset('har-fulfill.har');await context.routeFromHAR(path, { notFound: 'fallback' });const page = await context.newPage();@@ -49,7 +49,7 @@ it('fallback:continue should continue when not found in har', async ({ context,await expect(page.locator('body')).toHaveCSS('background-color', 'rgb(255, 192, 203)');});-it('by default should abort requests not found in har', async ({ context, server, asset }) => {+it('HA-071 by default should abort requests not found in har', async ({ context, server, asset }) => {const path = asset('har-fulfill.har');await context.routeFromHAR(path);const page = await context.newPage();@@ -57,7 +57,7 @@ it('by default should abort requests not found in har', async ({ context, serverexpect(error instanceof Error).toBe(true);});-it('fallback:continue should continue requests on bad har', async ({ context, server }, testInfo) => {+it('HA-072 fallback:continue should continue requests on bad har', async ({ context, server }, testInfo) => {const path = testInfo.outputPath('test.har');fs.writeFileSync(path, JSON.stringify({ log: {} }), 'utf-8');await context.routeFromHAR(path, { notFound: 'fallback' });@@ -66,7 +66,7 @@ it('fallback:continue should continue requests on bad har', async ({ context, seawait expect(page.locator('body')).toHaveCSS('background-color', 'rgb(255, 192, 203)');});-it('should only handle requests matching url filter', async ({ context, asset }) => {+it('HA-073 should only handle requests matching url filter', async ({ context, asset }) => {const path = asset('har-fulfill.har');await context.routeFromHAR(path, { notFound: 'fallback', url: '**/*.js' });const page = await context.newPage();@@ -84,7 +84,7 @@ it('should only handle requests matching url filter', async ({ context, asset })await expect(page.locator('body')).toHaveCSS('background-color', 'rgba(0, 0, 0, 0)');});-it('should only context.routeFromHAR requests matching url filter', async ({ context, asset }) => {+it('HA-074 should only context.routeFromHAR requests matching url filter', async ({ context, asset }) => {const path = asset('har-fulfill.har');await context.routeFromHAR(path, { url: '**/*.js' });const page = await context.newPage();@@ -102,7 +102,7 @@ it('should only context.routeFromHAR requests matching url filter', async ({ conawait expect(page.locator('body')).toHaveCSS('background-color', 'rgba(0, 0, 0, 0)');});-it('should only page.routeFromHAR requests matching url filter', async ({ context, asset }) => {+it('HA-075 should only page.routeFromHAR requests matching url filter', async ({ context, asset }) => {const path = asset('har-fulfill.har');const page = await context.newPage();await page.routeFromHAR(path, { url: '**/*.js' });@@ -120,7 +120,7 @@ it('should only page.routeFromHAR requests matching url filter', async ({ contexawait expect(page.locator('body')).toHaveCSS('background-color', 'rgba(0, 0, 0, 0)');});-it('should apply overrides before routing from har', async ({ context, asset }) => {+it('HA-076 should apply overrides before routing from har', async ({ context, asset }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29190' });const path = asset('har-fulfill.har');await context.routeFromHAR(path, { url: '**/*.js' });@@ -142,7 +142,7 @@ it('should apply overrides before routing from har', async ({ context, asset })expect(await page.evaluate('window.value')).toBe('foo');});-it('should support regex filter', async ({ context, asset }) => {+it('HA-077 should support regex filter', async ({ context, asset }) => {const path = asset('har-fulfill.har');await context.routeFromHAR(path, { url: /.*(\.js|.*\.css|no.playwright\/)$/ });const page = await context.newPage();@@ -151,7 +151,7 @@ it('should support regex filter', async ({ context, asset }) => {await expect(page.locator('body')).toHaveCSS('background-color', 'rgb(255, 0, 0)');});-it('newPage should fulfill from har, matching the method and following redirects', async ({ browser, asset }) => {+it('HA-078 newPage should fulfill from har, matching the method and following redirects', async ({ browser, asset }) => {const path = asset('har-fulfill.har');const page = await browser.newPage();await page.routeFromHAR(path);@@ -163,7 +163,7 @@ it('newPage should fulfill from har, matching the method and following redirectsawait page.close();});-it('should change document URL after redirected navigation', async ({ context, asset }) => {+it('HA-079 should change document URL after redirected navigation', async ({ context, asset }) => {const path = asset('har-redirect.har');await context.routeFromHAR(path);const page = await context.newPage();@@ -177,7 +177,7 @@ it('should change document URL after redirected navigation', async ({ context, aexpect(await page.evaluate(() => location.href)).toBe('https://www.theverge.com/');});-it('should change document URL after redirected navigation on click', async ({ server, context, asset }) => {+it('HA-080 should change document URL after redirected navigation on click', async ({ server, context, asset }) => {const path = asset('har-redirect.har');await context.routeFromHAR(path, { url: /.*theverge.*/ });const page = await context.newPage();@@ -192,7 +192,7 @@ it('should change document URL after redirected navigation on click', async ({ sexpect(await page.evaluate(() => location.href)).toBe('https://www.theverge.com/');});-it('should goBack to redirected navigation', async ({ context, asset, server }) => {+it('HA-081 should goBack to redirected navigation', async ({ context, asset, server }) => {const path = asset('har-redirect.har');await context.routeFromHAR(path, { url: /.*theverge.*/ });const page = await context.newPage();@@ -205,7 +205,7 @@ it('should goBack to redirected navigation', async ({ context, asset, server })expect(await page.evaluate(() => location.href)).toBe('https://www.theverge.com/');});-it('should goForward to redirected navigation', async ({ context, asset, server, browserName }) => {+it('HA-082 should goForward to redirected navigation', async ({ context, asset, server, browserName }) => {const path = asset('har-redirect.har');await context.routeFromHAR(path, { url: /.*theverge.*/ });const page = await context.newPage();@@ -221,7 +221,7 @@ it('should goForward to redirected navigation', async ({ context, asset, server,expect(await page.evaluate(() => location.href)).toBe('https://www.theverge.com/');});-it('should reload redirected navigation', async ({ context, asset, server }) => {+it('HA-083 should reload redirected navigation', async ({ context, asset, server }) => {const path = asset('har-redirect.har');await context.routeFromHAR(path, { url: /.*theverge.*/ });const page = await context.newPage();@@ -233,7 +233,7 @@ it('should reload redirected navigation', async ({ context, asset, server }) =>expect(await page.evaluate(() => location.href)).toBe('https://www.theverge.com/');});-it('should fulfill from har with content in a file', async ({ context, asset }) => {+it('HA-084 should fulfill from har with content in a file', async ({ context, asset }) => {const path = asset('har-sha1.har');await context.routeFromHAR(path);const page = await context.newPage();@@ -241,7 +241,7 @@ it('should fulfill from har with content in a file', async ({ context, asset })expect(await page.content()).toBe('<html><head></head><body>Hello, world</body></html>');});-it('should round-trip har.zip', async ({ contextFactory, server }, testInfo) => {+it('HA-085 should round-trip har.zip', async ({ contextFactory, server }, testInfo) => {const harPath = testInfo.outputPath('har.zip');const context1 = await contextFactory({ recordHar: { mode: 'minimal', path: harPath } });const page1 = await context1.newPage();@@ -256,7 +256,7 @@ it('should round-trip har.zip', async ({ contextFactory, server }, testInfo) =>await expect(page2.locator('body')).toHaveCSS('background-color', 'rgb(255, 192, 203)');});-it('should produce extracted zip', async ({ contextFactory, server }, testInfo) => {+it('HA-086 should produce extracted zip', async ({ contextFactory, server }, testInfo) => {const harPath = testInfo.outputPath('har.har');const context1 = await contextFactory({ recordHar: { mode: 'minimal', path: harPath, content: 'attach' } });const page1 = await context1.newPage();@@ -275,7 +275,7 @@ it('should produce extracted zip', async ({ contextFactory, server }, testInfo)await expect(page2.locator('body')).toHaveCSS('background-color', 'rgb(255, 192, 203)');});-it('should round-trip extracted har.zip', async ({ contextFactory, server }, testInfo) => {+it('HA-087 should round-trip extracted har.zip', async ({ contextFactory, server }, testInfo) => {const harPath = testInfo.outputPath('har.zip');const context1 = await contextFactory({ recordHar: { mode: 'minimal', path: harPath } });const page1 = await context1.newPage();@@ -293,7 +293,7 @@ it('should round-trip extracted har.zip', async ({ contextFactory, server }, tesawait expect(page2.locator('body')).toHaveCSS('background-color', 'rgb(255, 192, 203)');});-it('should round-trip har with postData', async ({ contextFactory, server }, testInfo) => {+it('HA-088 should round-trip har with postData', async ({ contextFactory, server }, testInfo) => {server.setRoute('/echo', async (req, res) => {const body = await req.postBody;res.end(body.toString());@@ -324,7 +324,7 @@ it('should round-trip har with postData', async ({ contextFactory, server }, tesexpect(await page2.evaluate(fetchFunction, '4').catch(e => e)).toBeTruthy();});-it('should record overridden requests to har', async ({ contextFactory, server }, testInfo) => {+it('HA-089 should record overridden requests to har', async ({ contextFactory, server }, testInfo) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29190' });server.setRoute('/echo', async (req, res) => {const body = await req.postBody;@@ -358,7 +358,7 @@ it('should record overridden requests to har', async ({ contextFactory, server }expect(await page2.evaluate(fetchFunction, { path: '/echo', body: '12' })).toBe('12');});-it('should disambiguate by header', async ({ contextFactory, server }, testInfo) => {+it('HA-090 should disambiguate by header', async ({ contextFactory, server }, testInfo) => {server.setRoute('/echo', async (req, res) => {res.end(req.headers['baz']);});@@ -396,7 +396,7 @@ it('should disambiguate by header', async ({ contextFactory, server }, testInfo)expect(await page2.evaluate(fetchFunction, 'baz4')).toBe('baz1');});-it('should update har.zip for context', async ({ contextFactory, server }, testInfo) => {+it('HA-091 should update har.zip for context', async ({ contextFactory, server }, testInfo) => {const harPath = testInfo.outputPath('har.zip');const context1 = await contextFactory();await context1.routeFromHAR(harPath, { update: true });@@ -412,7 +412,7 @@ it('should update har.zip for context', async ({ contextFactory, server }, testIawait expect(page2.locator('body')).toHaveCSS('background-color', 'rgb(255, 192, 203)');});-it('should ignore boundary when matching multipart/form-data body', {+it('HA-092 should ignore boundary when matching multipart/form-data body', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31495' }}, async ({ contextFactory, server }, testInfo) => {server.setRoute('/empty.html', (req, res) => {@@ -452,7 +452,7 @@ it('should ignore boundary when matching multipart/form-data body', {await expect(page2.locator('div')).toHaveText('done');});-it('should record single set-cookie headers', {+it('HA-093 should record single set-cookie headers', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31495' }}, async ({ contextFactory, server }, testInfo) => {server.setRoute('/empty.html', (req, res) => {@@ -478,7 +478,7 @@ it('should record single set-cookie headers', {expect(cookie2).toBe('first=foo');});-it('should record multiple set-cookie headers', {+it('HA-094 should record multiple set-cookie headers', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31495' }}, async ({ contextFactory, server }, testInfo) => {server.setRoute('/empty.html', (req, res) => {@@ -505,7 +505,7 @@ it('should record multiple set-cookie headers', {});-it('should update har.zip for page', async ({ contextFactory, server }, testInfo) => {+it('HA-095 should update har.zip for page', async ({ contextFactory, server }, testInfo) => {const harPath = testInfo.outputPath('har.zip');const context1 = await contextFactory();const page1 = await context1.newPage();@@ -521,7 +521,7 @@ it('should update har.zip for page', async ({ contextFactory, server }, testInfoawait expect(page2.locator('body')).toHaveCSS('background-color', 'rgb(255, 192, 203)');});-it('should update har.zip for page with different options', async ({ contextFactory, server }, testInfo) => {+it('HA-096 should update har.zip for page with different options', async ({ contextFactory, server }, testInfo) => {const harPath = testInfo.outputPath('har.zip');const context1 = await contextFactory();const page1 = await context1.newPage();@@ -537,7 +537,7 @@ it('should update har.zip for page with different options', async ({ contextFactawait expect(page2.locator('body')).toHaveCSS('background-color', 'rgb(255, 192, 203)');});-it('should update extracted har.zip for page', async ({ contextFactory, server }, testInfo) => {+it('HA-097 should update extracted har.zip for page', async ({ contextFactory, server }, testInfo) => {const harPath = testInfo.outputPath('har.har');const context1 = await contextFactory();const page1 = await context1.newPage();@@ -553,7 +553,7 @@ it('should update extracted har.zip for page', async ({ contextFactory, server }await expect(page2.locator('body')).toHaveCSS('background-color', 'rgb(255, 192, 203)');});-it('page.unrouteAll should stop page.routeFromHAR', async ({ contextFactory, server, asset }, testInfo) => {+it('HA-098 page.unrouteAll should stop page.routeFromHAR', async ({ contextFactory, server, asset }, testInfo) => {const harPath = asset('har-fulfill.har');const context1 = await contextFactory();const page1 = await context1.newPage();@@ -566,7 +566,7 @@ it('page.unrouteAll should stop page.routeFromHAR', async ({ contextFactory, serexpect(response.ok()).toBeTruthy();});-it('context.unrouteAll should stop context.routeFromHAR', async ({ contextFactory, server, asset }, testInfo) => {+it('HA-099 context.unrouteAll should stop context.routeFromHAR', async ({ contextFactory, server, asset }, testInfo) => {const harPath = asset('har-fulfill.har');const context1 = await contextFactory();const page1 = await context1.newPage();@@ -579,7 +579,7 @@ it('context.unrouteAll should stop context.routeFromHAR', async ({ contextFactorexpect(response.ok()).toBeTruthy();});-it('should ignore aborted requests', async ({ contextFactory, server }) => {+it('HA-100 should ignore aborted requests', async ({ contextFactory, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29311' });const path = it.info().outputPath('test.har');{diff --git a/tests/library/browsercontext-locale.spec.ts b/tests/library/browsercontext-locale.spec.tsindex 9846f2997b..e496a25b07 100644--- a/tests/library/browsercontext-locale.spec.ts+++ b/tests/library/browsercontext-locale.spec.ts@@ -17,7 +17,7 @@import { browserTest as it, expect } from '../config/browserTest';-it('should affect accept-language header @smoke', async ({ browser, server }) => {+it('LC-001 should affect accept-language header @smoke', async ({ browser, server }) => {const context = await browser.newContext({ locale: 'fr-CH' });const page = await context.newPage();const [request] = await Promise.all([@@ -28,14 +28,14 @@ it('should affect accept-language header @smoke', async ({ browser, server }) =>await context.close();});-it('should affect navigator.language', async ({ browser }) => {+it('LC-002 should affect navigator.language', async ({ browser }) => {const context = await browser.newContext({ locale: 'fr-FR' });const page = await context.newPage();expect(await page.evaluate(() => navigator.language)).toBe('fr-FR');await context.close();});-it('should format number', async ({ browser, server }) => {+it('LC-003 should format number', async ({ browser, server }) => {{const context = await browser.newContext({ locale: 'en-US' });const page = await context.newPage();@@ -52,7 +52,7 @@ it('should format number', async ({ browser, server }) => {}});-it('should format date', async ({ browser, server, browserName }) => {+it('LC-004 should format date', async ({ browser, server, browserName }) => {{const context = await browser.newContext({ locale: 'en-US', timezoneId: 'America/Los_Angeles' });const page = await context.newPage();@@ -71,7 +71,7 @@ it('should format date', async ({ browser, server, browserName }) => {}});-it('should format number in popups', async ({ browser, server }) => {+it('LC-005 should format number in popups', async ({ browser, server }) => {const context = await browser.newContext({ locale: 'fr-FR' });const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -86,7 +86,7 @@ it('should format number in popups', async ({ browser, server }) => {await context.close();});-it('should affect navigator.language in popups', async ({ browser, server }) => {+it('LC-006 should affect navigator.language in popups', async ({ browser, server }) => {const context = await browser.newContext({ locale: 'fr-FR' });const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -100,7 +100,7 @@ it('should affect navigator.language in popups', async ({ browser, server }) =>await context.close();});-it('should work for multiple pages sharing same process', async ({ browser, server }) => {+it('LC-007 should work for multiple pages sharing same process', async ({ browser, server }) => {const context = await browser.newContext({ locale: 'ru-RU' });const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -115,7 +115,7 @@ it('should work for multiple pages sharing same process', async ({ browser, servawait context.close();});-it('should be isolated between contexts', async ({ browser, server }) => {+it('LC-008 should be isolated between contexts', async ({ browser, server }) => {it.slow();const context1 = await browser.newContext({ locale: 'en-US' });@@ -140,7 +140,7 @@ it('should be isolated between contexts', async ({ browser, server }) => {]);});-it('should not change default locale in another context', async ({ browser }) => {+it('LC-009 should not change default locale in another context', async ({ browser }) => {async function getContextLocale(context) {const page = await context.newPage();return await page.evaluate(() => (new Intl.NumberFormat()).resolvedOptions().locale);@@ -165,7 +165,7 @@ it('should not change default locale in another context', async ({ browser }) =>}});-it('should propagate locale to workers', async ({ browser, browserName, server }) => {+it('LC-010 should propagate locale to workers', async ({ browser, browserName, server }) => {const context = await browser.newContext({ locale: 'ru-RU' });const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -180,7 +180,7 @@ it('should propagate locale to workers', async ({ browser, browserName, server }await context.close();});-it('should affect Intl.DateTimeFormat().resolvedOptions().locale', async ({ browser, server }) => {+it('LC-011 should affect Intl.DateTimeFormat().resolvedOptions().locale', async ({ browser, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27802' });const context = await browser.newContext({ locale: 'en-GB' });const page = await context.newPage();@@ -189,7 +189,7 @@ it('should affect Intl.DateTimeFormat().resolvedOptions().locale', async ({ browawait context.close();});-it('should send user Accept-Language header', {+it('LC-012 should send user Accept-Language header', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23732' }],}, async ({ browser, server }) => {const context = await browser.newContext({ locale: 'en-GB' });@@ -223,7 +223,7 @@ it('should send user Accept-Language header', {await context.close();});-it('should send Accept-Language header on WebSocket handshake', {+it('LC-013 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 === 'chromium' && browserMajorVersion < 151, 'Chromium before 151 sends the browser Accept-Language instead of the emulated locale on WebSocket handshake');@@ -238,7 +238,7 @@ it('should send Accept-Language header on WebSocket handshake', {await context.close();});-it('should send Accept-Language header on WebSocket handshake from a worker', {+it('LC-014 should send Accept-Language header on WebSocket handshake from a worker', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/13919' }],}, async ({ browser, server, browserName, browserMajorVersion }) => {it.fixme(browserName === 'chromium' && browserMajorVersion < 151, 'Chromium before 151 sends the browser Accept-Language instead of the emulated locale on WebSocket handshake');diff --git a/tests/library/browsercontext-network-event.spec.ts b/tests/library/browsercontext-network-event.spec.tsindex fff8476712..0fa3daffbb 100644--- a/tests/library/browsercontext-network-event.spec.ts+++ b/tests/library/browsercontext-network-event.spec.ts@@ -18,7 +18,7 @@import { browserTest as it, expect } from '../config/browserTest';import type { Request, Response } from '@playwright/test';-it('BrowserContext.Events.Request', async ({ context, server }) => {+it('NE-121 BrowserContext.Events.Request', async ({ context, server }) => {const page = await context.newPage();const requests: Request[] = [];context.on('request', request => requests.push(request));@@ -37,7 +37,7 @@ it('BrowserContext.Events.Request', async ({ context, server }) => {]);});-it('BrowserContext.Events.Response', async ({ context, server }) => {+it('NE-122 BrowserContext.Events.Response', async ({ context, server }) => {const page = await context.newPage();const responses: Response[] = [];context.on('response', response => responses.push(response));@@ -56,7 +56,7 @@ it('BrowserContext.Events.Response', async ({ context, server }) => {]);});-it('BrowserContext.Events.RequestFailed', async ({ context, server }) => {+it('NE-123 BrowserContext.Events.RequestFailed', async ({ context, server }) => {server.setRoute('/one-style.css', (_, res) => {res.setHeader('Content-Type', 'text/css');res.connection!.destroy();@@ -73,7 +73,7 @@ it('BrowserContext.Events.RequestFailed', async ({ context, server }) => {});-it('BrowserContext.Events.RequestFinished', async ({ context, server }) => {+it('NE-124 BrowserContext.Events.RequestFinished', async ({ context, server }) => {const page = await context.newPage();const [response] = await Promise.all([page.goto(server.EMPTY_PAGE),@@ -87,7 +87,7 @@ it('BrowserContext.Events.RequestFinished', async ({ context, server }) => {expect(request.failure()).toBe(null);});-it('should fire events in proper order', async ({ context, server }) => {+it('NE-125 should fire events in proper order', async ({ context, server }) => {const page = await context.newPage();const events: string[] = [];context.on('request', () => events.push('request'));@@ -104,7 +104,7 @@ it('should fire events in proper order', async ({ context, server }) => {]);});-it('should not fire events for favicon or favicon redirects', async ({ context, page, server, browserName, headless, channel }) => {+it('NE-126 should not fire events for favicon or favicon redirects', async ({ context, page, server, browserName, headless, channel }) => {it.skip(headless && browserName !== 'firefox', 'headless browsers, except firefox, do not request favicons');it.skip(!headless && browserName === 'webkit', 'headed webkit does not have a favicon feature');const favicon = `/no-cache/favicon.ico`;@@ -145,7 +145,7 @@ it('should not fire events for favicon or favicon redirects', async ({ context,expect(events).not.toEqual(expect.arrayContaining([expect.stringContaining(hashedFaviconUrl)]));});-it('should reject response.finished if context closes', async ({ page, server }) => {+it('NE-127 should reject response.finished if context closes', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);server.setRoute('/get', (req, res) => {// In Firefox, |fetch| will be hanging until it receives |Content-Type| headerdiff --git a/tests/library/browsercontext-page-event.spec.ts b/tests/library/browsercontext-page-event.spec.tsindex 15e2b66163..1900fc4aa7 100644--- a/tests/library/browsercontext-page-event.spec.ts+++ b/tests/library/browsercontext-page-event.spec.ts@@ -17,7 +17,7 @@import { browserTest as it, expect } from '../config/browserTest';-it('should have url', async ({ browser, server }) => {+it('BC-062 should have url', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();const [otherPage] = await Promise.all([@@ -28,7 +28,7 @@ it('should have url', async ({ browser, server }) => {await context.close();});-it('should have url after domcontentloaded', async ({ browser, server }) => {+it('BC-063 should have url after domcontentloaded', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();const [otherPage] = await Promise.all([@@ -40,7 +40,7 @@ it('should have url after domcontentloaded', async ({ browser, server }) => {await context.close();});-it('should have about:blank url with domcontentloaded', async ({ browser, server }) => {+it('BC-064 should have about:blank url with domcontentloaded', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();const [otherPage] = await Promise.all([@@ -52,7 +52,7 @@ it('should have about:blank url with domcontentloaded', async ({ browser, serverawait context.close();});-it('should have about:blank for empty url with domcontentloaded', async ({ browser, server }) => {+it('BC-065 should have about:blank for empty url with domcontentloaded', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();const [otherPage] = await Promise.all([@@ -64,7 +64,7 @@ it('should have about:blank for empty url with domcontentloaded', async ({ browsawait context.close();});-it('should report when a new page is created and closed', async ({ browser, server }) => {+it('BC-066 should report when a new page is created and closed', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();const [otherPage] = await Promise.all([@@ -91,7 +91,7 @@ it('should report when a new page is created and closed', async ({ browser, servawait context.close();});-it('should report initialized pages', async ({ browser, server }) => {+it('BC-067 should report initialized pages', async ({ browser, server }) => {const context = await browser.newContext();const pagePromise = context.waitForEvent('page');void context.newPage();@@ -106,7 +106,7 @@ it('should report initialized pages', async ({ browser, server }) => {await context.close();});-it('should not crash while redirecting of original request was missed', async ({ browser, server }) => {+it('BC-068 should not crash while redirecting of original request was missed', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();let serverResponse = null;@@ -126,7 +126,7 @@ it('should not crash while redirecting of original request was missed', async ({await context.close();});-it('should have an opener', async ({ browser, server }) => {+it('BC-069 should have an opener', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -140,7 +140,7 @@ it('should have an opener', async ({ browser, server }) => {await context.close();});-it('should fire page lifecycle events', async function({ browser, server }) {+it('BC-070 should fire page lifecycle events', async function({ browser, server }) {const context = await browser.newContext();const events = [];context.on('page', async page => {@@ -157,7 +157,7 @@ it('should fire page lifecycle events', async function({ browser, server }) {await context.close();});-it('should work with Shift-clicking', async ({ browser, server, browserName }) => {+it('BC-071 should work with Shift-clicking', async ({ browser, server, browserName }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -170,7 +170,7 @@ it('should work with Shift-clicking', async ({ browser, server, browserName }) =await context.close();});-it('should work with Ctrl-clicking', async ({ browser, server, browserName }) => {+it('BC-072 should work with Ctrl-clicking', async ({ browser, server, browserName }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);diff --git a/tests/library/browsercontext-pages.spec.ts b/tests/library/browsercontext-pages.spec.tsindex 2d849ecaa9..39b2dcb928 100644--- a/tests/library/browsercontext-pages.spec.ts+++ b/tests/library/browsercontext-pages.spec.ts@@ -18,7 +18,7 @@import { browserTest as it, expect } from '../config/browserTest';import { attachFrame } from '../config/utils';-it('should not be visible in context.pages', async ({ contextFactory }) => {+it('BC-051 should not be visible in context.pages', async ({ contextFactory }) => {const context = await contextFactory();const page = await context.newPage();expect(context.pages()).toContain(page);@@ -26,13 +26,13 @@ it('should not be visible in context.pages', async ({ contextFactory }) => {expect(context.pages()).not.toContain(page);});-it('page.context should return the correct instance', async function({ contextFactory }) {+it('BC-052 page.context should return the correct instance', async function({ contextFactory }) {const context = await contextFactory();const page = await context.newPage();expect(page.context()).toBe(context);});-it('frame.focus should work multiple times', async ({ contextFactory }) => {+it('BC-053 frame.focus should work multiple times', async ({ contextFactory }) => {const context = await contextFactory();const page1 = await context.newPage();const page2 = await context.newPage();@@ -43,7 +43,7 @@ it('frame.focus should work multiple times', async ({ contextFactory }) => {}});-it('should click with disabled javascript', async ({ browser, server }) => {+it('BC-054 should click with disabled javascript', async ({ browser, server }) => {const context = await browser.newContext({ javaScriptEnabled: false });const page = await context.newPage();await page.goto(server.PREFIX + '/wrappedlink.html');@@ -55,7 +55,7 @@ it('should click with disabled javascript', async ({ browser, server }) => {await context.close();});-it('should not hang with touch-enabled viewports', async ({ browser, playwright }) => {+it('BC-055 should not hang with touch-enabled viewports', async ({ browser, playwright }) => {// @see https://github.com/GoogleChrome/puppeteer/issues/161const { viewport, hasTouch } = playwright.devices['iPhone 6'];const context = await browser.newContext({ viewport, hasTouch });@@ -66,7 +66,7 @@ it('should not hang with touch-enabled viewports', async ({ browser, playwrightawait context.close();});-it('should click the button with deviceScaleFactor set', async ({ browser, server }) => {+it('BC-056 should click the button with deviceScaleFactor set', async ({ browser, server }) => {const context = await browser.newContext({ viewport: { width: 400, height: 400 }, deviceScaleFactor: 5 });const page = await context.newPage();expect(await page.evaluate(() => window.devicePixelRatio)).toBe(5);@@ -79,7 +79,7 @@ it('should click the button with deviceScaleFactor set', async ({ browser, serveawait context.close();});-it('should click the button with offset with page scale', async ({ browser, server, browserName, isBidi }) => {+it('BC-057 should click the button with offset with page scale', async ({ browser, server, browserName, isBidi }) => {it.skip(browserName === 'firefox' && !isBidi);const context = await browser.newContext({ viewport: { width: 400, height: 400 }, isMobile: true });@@ -102,7 +102,7 @@ it('should click the button with offset with page scale', async ({ browser, servawait context.close();});-it('should return bounding box with page scale', async ({ browser, server, browserName, isBidi }) => {+it('BC-058 should return bounding box with page scale', async ({ browser, server, browserName, isBidi }) => {it.skip(browserName === 'firefox' && !isBidi);const context = await browser.newContext({ viewport: { width: 400, height: 400 }, isMobile: true });@@ -125,7 +125,7 @@ it('should return bounding box with page scale', async ({ browser, server, browsawait context.close();});-it('should not leak listeners during navigation of 20 pages', async ({ contextFactory, server }) => {+it('BC-059 should not leak listeners during navigation of 20 pages', async ({ contextFactory, server }) => {it.slow(true, 'We open 20 pages here!');const context = await contextFactory();@@ -139,7 +139,7 @@ it('should not leak listeners during navigation of 20 pages', async ({ contextFaexpect(warning).toBe(null);});-it('should close page while a reload is committing', async ({ context, browserName }) => {+it('BC-060 should close page while a reload is committing', async ({ context, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42068' });it.info().annotations.push({ type: 'issue', description: 'https://issues.chromium.org/issues/536385539' });it.fixme(browserName === 'chromium', 'Chromium loses the close when the reload commits into a new RenderFrameHost; fix is not rolled yet');@@ -156,7 +156,7 @@ it('should close page while a reload is committing', async ({ context, browserNa}});-it('should keep selection in multiple pages', async ({ context }) => {+it('BC-061 should keep selection in multiple pages', async ({ context }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27475' });const page1 = await context.newPage();const page2 = await context.newPage();diff --git a/tests/library/browsercontext-proxy.spec.ts b/tests/library/browsercontext-proxy.spec.tsindex 358f8d9016..2c5cb27b26 100644--- a/tests/library/browsercontext-proxy.spec.ts+++ b/tests/library/browsercontext-proxy.spec.ts@@ -22,7 +22,7 @@ it.beforeEach(({ server }) => {});});-it('should work when passing the proxy only on the context level', async ({ browserName, platform, browserType, server, proxyServer }) => {+it('PR-018 should work when passing the proxy only on the context level', async ({ browserName, platform, browserType, server, proxyServer }) => {proxyServer.forwardTo(server.PORT);let browser;try {@@ -43,7 +43,7 @@ it('should work when passing the proxy only on the context level', async ({ brow});for (const launchProxy of ['per-context', 'http://per-context']) {- it(`should ignore legacy '${launchProxy}' launch proxy`, async ({ browserType, server, proxyServer }) => {+ it(`PR-019 should ignore legacy '${launchProxy}' launch proxy`, async ({ browserType, server, proxyServer }) => {proxyServer.forwardTo(server.PORT, { allowConnectRequests: true });const browser = await browserType.launch({ proxy: { server: launchProxy } });try {@@ -67,7 +67,7 @@ for (const launchProxy of ['per-context', 'http://per-context']) {});}-it('should throw for bad server value', async ({ contextFactory }) => {+it('PR-020 should throw for bad server value', async ({ contextFactory }) => {const error = await contextFactory({// @ts-expect-error server must be a stringproxy: { server: 123 }@@ -75,7 +75,7 @@ it('should throw for bad server value', async ({ contextFactory }) => {expect(error.message).toContain('proxy.server: expected string, got number');});-it('should use proxy', async ({ contextFactory, server, proxyServer }) => {+it('PR-021 should use proxy', async ({ contextFactory, server, proxyServer }) => {proxyServer.forwardTo(server.PORT);const context = await contextFactory({proxy: { server: proxyServer.HOST }@@ -87,7 +87,7 @@ it('should use proxy', async ({ contextFactory, server, proxyServer }) => {await context.close();});-it('should send secure cookies to subdomain.localhost', async ({ contextFactory, browserName, server, isWindows, proxyServer, channel }) => {+it('PR-022 should send secure cookies to subdomain.localhost', async ({ contextFactory, browserName, server, isWindows, proxyServer, channel }) => {proxyServer.forwardTo(server.PORT);const context = await contextFactory({proxy: { server: proxyServer.HOST },@@ -123,7 +123,7 @@ it('should send secure cookies to subdomain.localhost', async ({ contextFactory,await context.close();});-it('should set cookie for top-level domain', {+it('PR-023 should set cookie for top-level domain', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18362' }}, async ({ contextFactory, server, proxyServer, browserName, isLinux, channel }) => {it.fixme(browserName === 'webkit' && (isLinux || channel === 'webkit-wsl'));@@ -162,7 +162,7 @@ it.describe('should proxy local network requests', () => {description: 'link-local'}]) {- it(`${params.description}`, async ({ platform, browserName, contextFactory, server, proxyServer }) => {+ it(`PR-024 ${params.description}`, async ({ platform, browserName, contextFactory, server, proxyServer }) => {it.skip(browserName === 'webkit' && platform === 'darwin' && ['localhost', '127.0.0.1'].includes(params.target) && additionalBypass, 'Mac webkit does not proxy localhost when bypass rules are set');const path = `/target-${additionalBypass}-${params.target}.html`;@@ -195,7 +195,7 @@ it.describe('should proxy local network requests', () => {});-it('should use ipv6 proxy', async ({ contextFactory, server, proxyServer, browserName, channel, isBidi }) => {+it('PR-025 should use ipv6 proxy', async ({ contextFactory, server, proxyServer, browserName, channel, isBidi }) => {it.fail(browserName === 'firefox' && !isBidi, 'page.goto: NS_ERROR_UNKNOWN_HOST');it.fail(channel === 'webkit-wsl', 'WebKit on WSL does not support IPv6: https://github.com/microsoft/WSL/issues/10803');proxyServer.forwardTo(server.PORT);@@ -209,7 +209,7 @@ it('should use ipv6 proxy', async ({ contextFactory, server, proxyServer, browseawait context.close();});-it('should use proxy twice', async ({ contextFactory, server, proxyServer }) => {+it('PR-026 should use proxy twice', async ({ contextFactory, server, proxyServer }) => {proxyServer.forwardTo(server.PORT);const context = await contextFactory({proxy: { server: proxyServer.HOST }@@ -223,7 +223,7 @@ it('should use proxy twice', async ({ contextFactory, server, proxyServer }) =>await context.close();});-it('should use proxy for second page', async ({ contextFactory, server, proxyServer }) => {+it('PR-027 should use proxy for second page', async ({ contextFactory, server, proxyServer }) => {proxyServer.forwardTo(server.PORT);const context = await contextFactory({proxy: { server: proxyServer.HOST }@@ -243,7 +243,7 @@ it('should use proxy for second page', async ({ contextFactory, server, proxySerawait context.close();});-it('should use proxy for https urls', async ({ contextFactory, httpsServer, proxyServer }) => {+it('PR-028 should use proxy for https urls', async ({ contextFactory, httpsServer, proxyServer }) => {httpsServer.setRoute('/target.html', async (req, res) => {res.end('<html><title>Served by https server via proxy</title></html>');});@@ -259,7 +259,7 @@ it('should use proxy for https urls', async ({ contextFactory, httpsServer, proxawait context.close();});-it('should work with IP:PORT notion', async ({ contextFactory, server, proxyServer }) => {+it('PR-029 should work with IP:PORT notion', async ({ contextFactory, server, proxyServer }) => {proxyServer.forwardTo(server.PORT);const context = await contextFactory({proxy: { server: `127.0.0.1:${proxyServer.PORT}` }@@ -271,21 +271,21 @@ it('should work with IP:PORT notion', async ({ contextFactory, server, proxyServawait context.close();});-it('should throw for socks5 authentication', async ({ contextFactory }) => {+it('PR-030 should throw for socks5 authentication', async ({ contextFactory }) => {const error = await contextFactory({proxy: { server: `socks5://localhost:1234`, username: 'user', password: 'secret' }}).catch(e => e);expect(error.message).toContain('Browser does not support socks5 proxy authentication');});-it('should throw for socks4 authentication', async ({ contextFactory }) => {+it('PR-031 should throw for socks4 authentication', async ({ contextFactory }) => {const error = await contextFactory({proxy: { server: `socks4://localhost:1234`, username: 'user', password: 'secret' }}).catch(e => e);expect(error.message).toContain('Socks4 proxy protocol does not support authentication');});-it('should authenticate', async ({ contextFactory, server, proxyServer }) => {+it('PR-032 should authenticate', async ({ contextFactory, server, proxyServer }) => {proxyServer.forwardTo(server.PORT);let auth;proxyServer.setAuthHandler(req => {@@ -303,7 +303,7 @@ it('should authenticate', async ({ contextFactory, server, proxyServer }) => {await context.close();});-it('should authenticate with empty password', async ({ contextFactory, server, proxyServer }) => {+it('PR-033 should authenticate with empty password', async ({ contextFactory, server, proxyServer }) => {proxyServer.forwardTo(server.PORT);let auth;proxyServer.setAuthHandler(req => {@@ -320,7 +320,7 @@ it('should authenticate with empty password', async ({ contextFactory, server, pawait context.close();});-it('should isolate proxy credentials between contexts', async ({ contextFactory, server, browserName, proxyServer }) => {+it('PR-034 should isolate proxy credentials between contexts', async ({ contextFactory, server, browserName, proxyServer }) => {proxyServer.forwardTo(server.PORT);let auth;proxyServer.setAuthHandler(req => {@@ -350,7 +350,7 @@ it('should isolate proxy credentials between contexts', async ({ contextFactory,}});-it('should exclude patterns', async ({ contextFactory, server, proxyServer }) => {+it('PR-035 should exclude patterns', async ({ contextFactory, server, proxyServer }) => {proxyServer.forwardTo(server.PORT);// FYI: using long and weird domain names to avoid ATT DNS hijacking// that resolves everything to some weird search results page.@@ -412,7 +412,7 @@ it('should exclude patterns', async ({ contextFactory, server, proxyServer }) =>await context.close();});-it('should use socks proxy', async ({ contextFactory, socksPort }) => {+it('PR-036 should use socks proxy', async ({ contextFactory, socksPort }) => {const context = await contextFactory({proxy: { server: `socks5://localhost:${socksPort}` }});@@ -422,7 +422,7 @@ it('should use socks proxy', async ({ contextFactory, socksPort }) => {await context.close();});-it('should use socks proxy in second page', async ({ contextFactory, socksPort }) => {+it('PR-037 should use socks proxy in second page', async ({ contextFactory, socksPort }) => {const context = await contextFactory({proxy: { server: `socks5://localhost:${socksPort}` }});@@ -438,14 +438,14 @@ it('should use socks proxy in second page', async ({ contextFactory, socksPort }await context.close();});-it('does launch without a port', async ({ contextFactory }) => {+it('PR-038 does launch without a port', async ({ contextFactory }) => {const context = await contextFactory({proxy: { server: 'http://localhost' }});await context.close();});-it('should isolate proxy credentials between contexts on navigation', async ({ contextFactory, server }) => {+it('PR-039 should isolate proxy credentials between contexts on navigation', async ({ contextFactory, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31525' });server.setRoute('/target.html', async (req, res) => {diff --git a/tests/library/browsercontext-reuse.spec.ts b/tests/library/browsercontext-reuse.spec.tsindex 202b423000..f8191bc74b 100644--- a/tests/library/browsercontext-reuse.spec.ts+++ b/tests/library/browsercontext-reuse.spec.ts@@ -94,7 +94,7 @@ for (const scenario of ['launch', 'connect'] as const) {test.fixme(({ channel }) => channel?.startsWith('msedge'), 'Network.clearBrowserCache sometimes stalls');test.use({ scenario });- test('should re-add binding after reset', async ({ reusedContext }) => {+ test('BC-073 should re-add binding after reset', async ({ reusedContext }) => {let context = await reusedContext();await context.exposeFunction('add', function(a, b) {@@ -114,7 +114,7 @@ for (const scenario of ['launch', 'connect'] as const) {expect(await page.evaluate('add(5, 6)')).toBe(11);});- test('should reset serviceworker', async ({ reusedContext, server }) => {+ test('BC-074 should reset serviceworker', async ({ reusedContext, server }) => {server.setRoute('/page.html', (req, res) => {res.setHeader('Content-Type', 'text/html');res.end(`@@ -152,7 +152,7 @@ for (const scenario of ['launch', 'connect'] as const) {await expect(page).toHaveTitle('Page Title');});- test('should reset serviceworker that hangs in importScripts', async ({ reusedContext, server }) => {+ test('BC-075 should reset serviceworker that hangs in importScripts', async ({ reusedContext, server }) => {server.setRoute('/page.html', (req, res) => {res.setHeader('Content-Type', 'text/html');res.end(`@@ -197,7 +197,7 @@ for (const scenario of ['launch', 'connect'] as const) {await expect(page).toHaveTitle('Page Title');});- test('should not cache resources', async ({ reusedContext, server }) => {+ test('BC-076 should not cache resources', async ({ reusedContext, server }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/19926' });const requestCountMap = new Map<string, number>();server.setRoute('/page.html', (req, res) => {@@ -252,7 +252,7 @@ for (const scenario of ['launch', 'connect'] as const) {}});- test('should ignore binding from beforeunload', async ({ reusedContext }) => {+ test('BC-077 should ignore binding from beforeunload', async ({ reusedContext }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22803' });let context = await reusedContext();@@ -272,7 +272,7 @@ for (const scenario of ['launch', 'connect'] as const) {expect(called).toBe(false);});- test('should reset mouse position', {+ test('BC-078 should reset mouse position', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22432' },}, async ({ reusedContext, browserName, platform, headless }) => {// Note: this test only reproduces the issue locally when run with --repeat-each=20.@@ -306,7 +306,7 @@ for (const scenario of ['launch', 'connect'] as const) {await expect(page.locator('#two')).toHaveCSS('background-color', 'rgb(0, 0, 255)');});- test('should reset tracing', async ({ reusedContext, trace }, testInfo) => {+ test('BC-079 should reset tracing', async ({ reusedContext, trace }, testInfo) => {test.skip(trace === 'on');let context = await reusedContext();@@ -323,7 +323,7 @@ for (const scenario of ['launch', 'connect'] as const) {expect(error.message).toContain('Must start tracing before stopping');});- test('should work with clock emulation', async ({ reusedContext, trace }, testInfo) => {+ test('BC-080 should work with clock emulation', async ({ reusedContext, trace }, testInfo) => {let context = await reusedContext();let page = await context.newPage();@@ -336,7 +336,7 @@ for (const scenario of ['launch', 'connect'] as const) {expect(await page.evaluate('new Date().toISOString()')).toBe('2020-01-01T00:00:00.000Z');});- test('should continue issuing events after closing the reused page', async ({ reusedContext, server }) => {+ test('BC-081 should continue issuing events after closing the reused page', async ({ reusedContext, server }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/24574' });{@@ -358,7 +358,7 @@ for (const scenario of ['launch', 'connect'] as const) {}});- test('should work with routeWebSocket', {+ test('BC-082 should work with routeWebSocket', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36480' },}, async ({ reusedContext, server }, testInfo) => {async function setup(page: Page, suffix: string) {@@ -409,7 +409,7 @@ for (const scenario of ['launch', 'connect'] as const) {await expect.poll(() => page.evaluate(() => window.log)).toEqual([`ws1:page-mock-after`, `ws:context-mock-after`, `ws:hello`]);});- test('should update viewport and media', async ({ reusedContext }) => {+ test('BC-083 should update viewport and media', async ({ reusedContext }) => {let context = await reusedContext({ viewport: { width: 800, height: 600 }, colorScheme: 'dark' });let page = await context.newPage();expect(await page.evaluate(() => matchMedia('(prefers-color-scheme: dark)').matches)).toBe(true);diff --git a/tests/library/browsercontext-route.spec.ts b/tests/library/browsercontext-route.spec.tsindex 24ced54d01..6802cbfdb1 100644--- a/tests/library/browsercontext-route.spec.ts+++ b/tests/library/browsercontext-route.spec.ts@@ -18,7 +18,7 @@import { browserTest as it, expect } from '../config/browserTest';import type { Route } from '@playwright/test';-it('should intercept', async ({ browser, server }) => {+it('RO-165 should intercept', async ({ browser, server }) => {const context = await browser.newContext();let intercepted = false;await context.route('**/empty.html', route => {@@ -41,7 +41,7 @@ it('should intercept', async ({ browser, server }) => {await context.close();});-it('should unroute', async ({ browser, server }) => {+it('RO-166 should unroute', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();@@ -79,7 +79,7 @@ it('should unroute', async ({ browser, server }) => {await context.close();});-it('should yield to page.route', async ({ browser, server }) => {+it('RO-167 should yield to page.route', async ({ browser, server }) => {const context = await browser.newContext();await context.route('**/empty.html', route => {void route.fulfill({ status: 200, body: 'context' });@@ -94,7 +94,7 @@ it('should yield to page.route', async ({ browser, server }) => {await context.close();});-it('should fall back to context.route', async ({ browser, server }) => {+it('RO-168 should fall back to context.route', async ({ browser, server }) => {const context = await browser.newContext();await context.route('**/empty.html', route => {void route.fulfill({ status: 200, body: 'context' });@@ -109,7 +109,7 @@ it('should fall back to context.route', async ({ browser, server }) => {await context.close();});-it('should support Set-Cookie header', async ({ contextFactory, defaultSameSiteCookieValue }) => {+it('RO-169 should support Set-Cookie header', async ({ contextFactory, defaultSameSiteCookieValue }) => {const context = await contextFactory();const page = await context.newPage();await page.route('https://example.com/', (route, request) => {@@ -134,7 +134,7 @@ it('should support Set-Cookie header', async ({ contextFactory, defaultSameSiteC}]);});-it('should ignore secure Set-Cookie header for insecure requests', async ({ contextFactory, server, browserName, isMac }) => {+it('RO-170 should ignore secure Set-Cookie header for insecure requests', async ({ contextFactory, server, browserName, isMac }) => {it.fixme(browserName === 'webkit' && !isMac);const context = await contextFactory();@@ -152,7 +152,7 @@ it('should ignore secure Set-Cookie header for insecure requests', async ({ contexpect(await context.cookies()).toEqual([]);});-it('should use Set-Cookie header in future requests', async ({ contextFactory, server, defaultSameSiteCookieValue }) => {+it('RO-171 should use Set-Cookie header in future requests', async ({ contextFactory, server, defaultSameSiteCookieValue }) => {const context = await contextFactory();const page = await context.newPage();@@ -186,7 +186,7 @@ it('should use Set-Cookie header in future requests', async ({ contextFactory, sexpect(cookie).toBe('name=value');});-it('should work with ignoreHTTPSErrors', async ({ browser, httpsServer }) => {+it('RO-172 should work with ignoreHTTPSErrors', async ({ browser, httpsServer }) => {const context = await browser.newContext({ ignoreHTTPSErrors: true });const page = await context.newPage();@@ -196,7 +196,7 @@ it('should work with ignoreHTTPSErrors', async ({ browser, httpsServer }) => {await context.close();});-it('should support the times parameter with route matching', async ({ context, page, server }) => {+it('RO-173 should support the times parameter with route matching', async ({ context, page, server }) => {const intercepted: number[] = [];await context.route('**/empty.html', route => {intercepted.push(1);@@ -208,7 +208,7 @@ it('should support the times parameter with route matching', async ({ context, pexpect(intercepted).toHaveLength(1);});-it('should work if handler with times parameter was removed from another handler', async ({ context, page, server }) => {+it('RO-174 should work if handler with times parameter was removed from another handler', async ({ context, page, server }) => {const intercepted = [];const handler = async route => {intercepted.push('first');@@ -227,7 +227,7 @@ it('should work if handler with times parameter was removed from another handlerexpect(intercepted).toEqual(['second']);});-it('should support async handler w/ times', async ({ context, page, server }) => {+it('RO-175 should support async handler w/ times', async ({ context, page, server }) => {await context.route('**/empty.html', async route => {await new Promise(f => setTimeout(f, 100));void route.fulfill({@@ -241,7 +241,7 @@ it('should support async handler w/ times', async ({ context, page, server }) =>await expect(page.locator('body')).not.toHaveText('intercepted');});-it('should overwrite post body with empty string', async ({ context, server, page, browserName }) => {+it('RO-176 should overwrite post body with empty string', async ({ context, server, page, browserName }) => {await context.route('**/empty.html', route => {void route.continue({postData: '',@@ -266,7 +266,7 @@ it('should overwrite post body with empty string', async ({ context, server, pagexpect(body).toBe('');});-it('should chain fallback', async ({ context, page, server }) => {+it('RO-177 should chain fallback', async ({ context, page, server }) => {const intercepted: number[] = [];await context.route('**/empty.html', route => {intercepted.push(1);@@ -284,7 +284,7 @@ it('should chain fallback', async ({ context, page, server }) => {expect(intercepted).toEqual([3, 2, 1]);});-it('should chain fallback w/ dynamic URL', async ({ context, page, server }) => {+it('RO-178 should chain fallback w/ dynamic URL', async ({ context, page, server }) => {const intercepted: number[] = [];await context.route('**/bar', route => {intercepted.push(1);@@ -304,7 +304,7 @@ it('should chain fallback w/ dynamic URL', async ({ context, page, server }) =>expect(intercepted).toEqual([3, 2, 1]);});-it('should not chain fulfill', async ({ context, page, server }) => {+it('RO-179 should not chain fulfill', async ({ context, page, server }) => {let failed = false;await context.route('**/empty.html', route => {failed = true;@@ -321,7 +321,7 @@ it('should not chain fulfill', async ({ context, page, server }) => {expect(failed).toBeFalsy();});-it('should not chain abort', async ({ context, page, server }) => {+it('RO-180 should not chain abort', async ({ context, page, server }) => {let failed = false;await context.route('**/empty.html', route => {failed = true;@@ -337,7 +337,7 @@ it('should not chain abort', async ({ context, page, server }) => {expect(failed).toBeFalsy();});-it('should chain fallback into page', async ({ context, page, server }) => {+it('RO-181 should chain fallback into page', async ({ context, page, server }) => {const intercepted: number[] = [];await context.route('**/empty.html', route => {intercepted.push(1);@@ -367,7 +367,7 @@ it('should chain fallback into page', async ({ context, page, server }) => {expect(intercepted).toEqual([6, 5, 4, 3, 2, 1]);});-it('should fall back async', async ({ page, context, server }) => {+it('RO-182 should fall back async', async ({ page, context, server }) => {const intercepted: number[] = [];await context.route('**/empty.html', async route => {intercepted.push(1);@@ -388,7 +388,7 @@ it('should fall back async', async ({ page, context, server }) => {expect(intercepted).toEqual([3, 2, 1]);});-it('should bypass disk cache when context interception is enabled', async ({ page, server }) => {+it('RO-183 should bypass disk cache when context interception is enabled', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30000' });await page.context().route('**/api*', route => route.continue());await page.goto(server.PREFIX + '/frames/one-frame.html');@@ -416,7 +416,7 @@ it('should bypass disk cache when context interception is enabled', async ({ pag}});-it('should fulfill popup main request using alias', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {+it('RO-184 should fulfill popup main request using alias', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');@@ -432,7 +432,7 @@ it('should fulfill popup main request using alias', async ({ page, server, isEleawait expect(popup.locator('body')).toHaveText('hello');});-it('should respect URLPattern ignoreCase', async ({ context, page, server }) => {+it('RO-185 should respect URLPattern ignoreCase', async ({ context, page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42918' });it.skip(globalThis.URLPattern === undefined, 'URLPattern is not supported in this environment');diff --git a/tests/library/browsercontext-service-worker-policy.spec.ts b/tests/library/browsercontext-service-worker-policy.spec.tsindex 3db87f9469..0d061c29bd 100644--- a/tests/library/browsercontext-service-worker-policy.spec.ts+++ b/tests/library/browsercontext-service-worker-policy.spec.ts@@ -15,7 +15,7 @@*/import { browserTest as it, expect } from '../config/browserTest';-it('should allow service workers by default', async ({ page, server }) => {+it('WO-027 should allow service workers by default', async ({ page, server }) => {await page.goto(server.PREFIX + '/serviceworkers/empty/sw.html');await expect(page.evaluate(() => window['registrationPromise'])).resolves.toBeTruthy();});@@ -32,7 +32,7 @@ for (const [mode, workerResponse] of Object.entries({}})()`,})) {- it(`should allow ${mode} service worker navigation while offline`, {+ it(`WO-028 should allow ${mode} service worker navigation while offline`, {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42775' },}, async ({ context, page, server, browserName, isElectron, isFrozenWebkit }) => {it.skip(isElectron);@@ -100,14 +100,14 @@ for (const [mode, workerResponse] of Object.entries({it.describe('block', () => {it.use({ serviceWorkers: 'block' });- it('blocks service worker registration', async ({ page, server }) => {+ it('WO-029 blocks service worker registration', async ({ page, server }) => {await Promise.all([page.waitForEvent('console', evt => evt.text() === 'Service Worker registration blocked by Playwright'),page.goto(server.PREFIX + '/serviceworkers/empty/sw.html'),]);});- it('should not throw error on about:blank', async ({ page }) => {+ it('WO-030 should not throw error on about:blank', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32292' });const errors = [];page.on('pageerror', error => errors.push(error));@@ -115,7 +115,7 @@ it.describe('block', () => {expect(errors).toEqual([]);});- it('should not throw error in opaque sandboxed iframe', async ({ page, server }) => {+ it('WO-031 should not throw error in opaque sandboxed iframe', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43113' });const errors = [];page.on('pageerror', error => errors.push(error));diff --git a/tests/library/browsercontext-set-extra-http-headers.spec.ts b/tests/library/browsercontext-set-extra-http-headers.spec.tsindex 4281833112..c4d359c23b 100644--- a/tests/library/browsercontext-set-extra-http-headers.spec.ts+++ b/tests/library/browsercontext-set-extra-http-headers.spec.ts@@ -17,7 +17,7 @@import { browserTest as it, expect } from '../config/browserTest';-it('should override extra headers from browser context', async ({ browser, server }) => {+it('NE-119 should override extra headers from browser context', async ({ browser, server }) => {const context = await browser.newContext({extraHTTPHeaders: { 'fOo': 'bAr', 'baR': 'foO' },});@@ -34,7 +34,7 @@ it('should override extra headers from browser context', async ({ browser, serveexpect(request.headers['bar']).toBe('foO');});-it('should throw for non-string header values', async ({ browser }) => {+it('NE-120 should throw for non-string header values', async ({ browser }) => {const error3 = await browser.newContext({ extraHTTPHeaders: { 'foo': null } }).catch(e => e);expect(error3.message).toContain('Expected value of header "foo" to be String, but "object" is found.');});diff --git a/tests/library/browsercontext-storage-state.spec.ts b/tests/library/browsercontext-storage-state.spec.tsindex 9ee305ae64..9f909e4178 100644--- a/tests/library/browsercontext-storage-state.spec.ts+++ b/tests/library/browsercontext-storage-state.spec.ts@@ -21,7 +21,7 @@ import fs from 'fs';import type { BrowserContext } from 'playwright-core';-it('should capture local storage', async ({ contextFactory }) => {+it('ST-001 should capture local storage', async ({ contextFactory }) => {const context = await contextFactory();const page1 = await context.newPage();await page1.route('**/*', route => {@@ -51,7 +51,7 @@ it('should capture local storage', async ({ contextFactory }) => {}]);});-it('should set local storage', async ({ contextFactory, channel }) => {+it('ST-002 should set local storage', async ({ contextFactory, channel }) => {it.fixme(channel?.startsWith('msedge'), 'Network.clearBrowserCache sometimes stalls');const context = await contextFactory({@@ -97,7 +97,7 @@ it('should set local storage', async ({ contextFactory, channel }) => {await context.close();});-it('should report good error if the url is not valid', async ({ contextFactory }) => {+it('ST-003 should report good error if the url is not valid', async ({ contextFactory }) => {const error = await contextFactory({storageState: {cookies: [],@@ -116,7 +116,7 @@ it('should report good error if the url is not valid', async ({ contextFactory }expect(error.message).toContain('foo');});-it('should round-trip through the file', async ({ contextFactory, channel }, testInfo) => {+it('ST-004 should round-trip through the file', async ({ contextFactory, channel }, testInfo) => {it.fixme(channel?.startsWith('msedge'), 'Network.clearBrowserCache sometimes stalls');const context = await contextFactory();@@ -200,7 +200,7 @@ it('should round-trip through the file', async ({ contextFactory, channel }, tesawait context3.close();});-it('should round-trip OPFS', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41400' } }, async ({ browserName, contextFactory, page, server }, testInfo) => {+it('ST-005 should round-trip OPFS', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41400' } }, async ({ browserName, contextFactory, page, server }, testInfo) => {it.skip(browserName === 'webkit', 'OPFS is unavailable in non-persistent WebKit contexts');await page.goto(server.EMPTY_PAGE);@@ -278,7 +278,7 @@ it('should round-trip OPFS', { annotation: { type: 'issue', description: 'https:await context3.close();});-it('should capture cookies', async ({ server, context, page, contextFactory }) => {+it('ST-006 should capture cookies', async ({ server, context, page, contextFactory }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=b', 'empty=']);res.end();@@ -316,7 +316,7 @@ it('should capture cookies', async ({ server, context, page, contextFactory }) =]);});-it('should not emit events about internal page', async ({ contextFactory }) => {+it('ST-007 should not emit events about internal page', async ({ contextFactory }) => {const context = await contextFactory();const page = await context.newPage();await page.route('**/*', route => {@@ -337,7 +337,7 @@ it('should not emit events about internal page', async ({ contextFactory }) => {expect(events).toHaveLength(0);});-it('should not restore localStorage twice', async ({ contextFactory }) => {+it('ST-008 should not restore localStorage twice', async ({ contextFactory }) => {const context = await contextFactory({storageState: {cookies: [],@@ -369,7 +369,7 @@ it('should not restore localStorage twice', async ({ contextFactory }) => {await context.close();});-it('should handle missing file', async ({ contextFactory }, testInfo) => {+it('ST-009 should handle missing file', async ({ contextFactory }, testInfo) => {const file = testInfo.outputPath('does-not-exist.json');const error = await contextFactory({storageState: file,@@ -377,7 +377,7 @@ it('should handle missing file', async ({ contextFactory }, testInfo) => {expect(error.message).toContain(`Error reading storage state from ${file}:\nENOENT`);});-it('should handle malformed file', async ({ contextFactory, nodeVersion }, testInfo) => {+it('ST-010 should handle malformed file', async ({ contextFactory, nodeVersion }, testInfo) => {const file = testInfo.outputPath('state.json');fs.writeFileSync(file, 'not-json', 'utf-8');const error = await contextFactory({@@ -389,7 +389,7 @@ it('should handle malformed file', async ({ contextFactory, nodeVersion }, testIexpect(error.message).toContain(`Error reading storage state from ${file}:\nUnexpected token o in JSON at position 1`);});-it('should serialize storageState with lone surrogates', async ({ page, context, server }) => {+it('ST-011 should serialize storageState with lone surrogates', async ({ page, context, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright-dotnet/issues/2819' });await page.goto(server.EMPTY_PAGE);await page.evaluate(() => window.localStorage.setItem('foo', String.fromCharCode(55934)));@@ -397,7 +397,7 @@ it('should serialize storageState with lone surrogates', async ({ page, context,expect(storageState.origins[0].localStorage[0].value).toBe(String.fromCharCode(55934));});-it('should work when service worker is intefering', async ({ page, context, server, isAndroid, isElectron, electronMajorVersion }) => {+it('ST-012 should work when service worker is intefering', async ({ page, context, server, isAndroid, isElectron, electronMajorVersion }) => {it.skip(isAndroid);it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');@@ -450,7 +450,7 @@ it('should work when service worker is intefering', async ({ page, context, servexpect(storageState.origins[0].localStorage[0]).toEqual({ name: 'foo', value: 'bar' });});-it('should work when service worker is intefering and the origin is not open', async ({ page, context, server, isAndroid, isElectron, electronMajorVersion }) => {+it('ST-013 should work when service worker is intefering and the origin is not open', async ({ page, context, server, isAndroid, isElectron, electronMajorVersion }) => {it.skip(isAndroid);it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42656' });@@ -502,7 +502,7 @@ it('should work when service worker is intefering and the origin is not open', aexpect(storageState.origins[0].localStorage).toEqual([{ name: 'foo', value: 'bar' }]);});-it('should set local storage in third-party context', async ({ contextFactory, server }) => {+it('ST-014 should set local storage in third-party context', async ({ contextFactory, server }) => {const context = await contextFactory({storageState: {cookies: [],@@ -526,7 +526,7 @@ it('should set local storage in third-party context', async ({ contextFactory, sawait context.close();});-it('should roundtrip local storage in third-party context', async ({ page, contextFactory, server }) => {+it('ST-015 should roundtrip local storage in third-party context', async ({ page, contextFactory, server }) => {await page.goto(server.EMPTY_PAGE);const frame = await attachFrame(page, 'frame1', server.CROSS_PROCESS_PREFIX + '/empty.html');await frame.evaluate(() => window.localStorage.setItem('name1', 'value1'));@@ -542,7 +542,7 @@ it('should roundtrip local storage in third-party context', async ({ page, conteawait context2.close();});-it('should support IndexedDB', async ({ page, server, contextFactory }) => {+it('ST-016 should support IndexedDB', async ({ page, server, contextFactory }) => {await page.goto(server.PREFIX + '/to-do-notifications/index.html');await expect(page.locator('#notifications')).toMatchAriaSnapshot(`@@ -649,7 +649,7 @@ it('should support IndexedDB', async ({ page, server, contextFactory }) => {});for (const restore of ['newContext', 'setStorageState'] as const) {- it(`should roundtrip IndexedDB values and keys with ${restore}`, {+ it(`ST-017 should roundtrip IndexedDB values and keys with ${restore}`, {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42703' },{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43418' },@@ -726,7 +726,7 @@ for (const restore of ['newContext', 'setStorageState'] as const) {});}-it('should support empty indexedDB', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35760' } }, async ({ page, server, contextFactory }) => {+it('ST-018 should support empty indexedDB', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35760' } }, async ({ page, server, contextFactory }) => {await page.goto(server.EMPTY_PAGE);await page.evaluate(() => new Promise<void>(resolve => {const openRequest = indexedDB.open('unused-db');@@ -748,7 +748,7 @@ it('should support empty indexedDB', { annotation: { type: 'issue', description:expect(await context.storageState({ indexedDB: true })).toEqual(storageState);});-it('should not leave IndexedDB connections open', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42258' } }, async ({ contextFactory, server }) => {+it('ST-019 should not leave IndexedDB connections open', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42258' } }, async ({ contextFactory, server }) => {const context = await contextFactory();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -783,7 +783,7 @@ it('should not leave IndexedDB connections open', { annotation: { type: 'issue',expect(await context.storageState({ indexedDB: true })).toEqual(state);});-it('should round-trip WebAuthn credentials with storageState', async ({ contextFactory, server }) => {+it('ST-020 should round-trip WebAuthn credentials with storageState', async ({ contextFactory, server }) => {const context = await contextFactory();const credential = await context.credentials.create(server.HOSTNAME);@@ -799,7 +799,7 @@ it('should round-trip WebAuthn credentials with storageState', async ({ contextFexpect(await context2.storageState({ credentials: true })).toEqual(storageState);});-it('setStorageState should replace credentials', async ({ contextFactory }) => {+it('ST-021 setStorageState should replace credentials', async ({ contextFactory }) => {const ctxA = await contextFactory();const credA = await ctxA.credentials.create('a.example.com');const stateA = await ctxA.storageState({ credentials: true });@@ -824,7 +824,7 @@ it('setStorageState should replace credentials', async ({ contextFactory }) => {expect(await context.credentials.get()).toEqual([credA]);});-it('setStorageState should handle missing file', async ({ contextFactory }, testInfo) => {+it('ST-022 setStorageState should handle missing file', async ({ contextFactory }, testInfo) => {const context = await contextFactory();const file = testInfo.outputPath('does-not-exist.json');const error = await context.setStorageState(file).catch(e => e);diff --git a/tests/library/browsercontext-strict.spec.ts b/tests/library/browsercontext-strict.spec.tsindex 1c617a2085..63d5311b2c 100644--- a/tests/library/browsercontext-strict.spec.ts+++ b/tests/library/browsercontext-strict.spec.ts@@ -16,7 +16,7 @@import { browserTest as it, expect } from '../config/browserTest';-it('should not fail page.textContent in non-strict mode', async ({ page }) => {+it('SM-011 should not fail page.textContent in non-strict mode', async ({ page }) => {await page.setContent(`<span>span1</span><div><span>target</span></div>`);expect(await page.textContent('span', { strict: false })).toBe('span1');});@@ -29,19 +29,19 @@ it.describe('strict context mode', () => {}});- it('should fail page.textContent in strict mode', async ({ page }) => {+ it('SM-012 should fail page.textContent in strict mode', async ({ page }) => {await page.setContent(`<span>span1</span><div><span>target</span></div>`);const error = await page.textContent('span').catch(e => e);expect(error.message).toContain('strict mode violation');});- it('should fail page.click in strict mode', async ({ page }) => {+ it('SM-013 should fail page.click in strict mode', async ({ page }) => {await page.setContent(`<button>button1</button><button>target</button>`);const error = await page.click('button').catch(e => e);expect(error.message).toContain('strict mode violation');});- it('should opt out of strict mode', async ({ page }) => {+ it('SM-014 should opt out of strict mode', async ({ page }) => {await page.setContent(`<span>span1</span><div><span>target</span></div>`);expect(await page.textContent('span', { strict: false })).toBe('span1');});diff --git a/tests/library/browsercontext-timezone-id.spec.ts b/tests/library/browsercontext-timezone-id.spec.tsindex 6f3534357a..63959ab2e3 100644--- a/tests/library/browsercontext-timezone-id.spec.ts+++ b/tests/library/browsercontext-timezone-id.spec.ts@@ -17,7 +17,7 @@import { browserTest as it, expect } from '../config/browserTest';-it('should work @smoke', async ({ browser, browserName }) => {+it('TZ-001 should work @smoke', async ({ browser, browserName }) => {// Note: timezone names are rendered differently between browsers and platforms,// so we only check the GMT offset.const func = () => new Date(1479579154987).toString();@@ -47,7 +47,7 @@ it('should work @smoke', async ({ browser, browserName }) => {}});-it('should throw for invalid timezone IDs when creating pages', async ({ browser, channel, browserName, isBidi }) => {+it('TZ-002 should throw for invalid timezone IDs when creating pages', async ({ browser, channel, browserName, isBidi }) => {for (const timezoneId of ['Foo/Bar', 'Baz/Qux']) {if (isBidi) {const error = await browser.newContext({ timezoneId }).catch(e => e);@@ -70,7 +70,7 @@ it('should throw for invalid timezone IDs when creating pages', async ({ browser}});-it('should work for multiple pages sharing same process', async ({ browser, server }) => {+it('TZ-003 should work for multiple pages sharing same process', async ({ browser, server }) => {const context = await browser.newContext({ timezoneId: 'Europe/Moscow' });const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -85,7 +85,7 @@ it('should work for multiple pages sharing same process', async ({ browser, servawait context.close();});-it('should not change default timezone in another context', async ({ browser, server }) => {+it('TZ-004 should not change default timezone in another context', async ({ browser, server }) => {async function getContextTimezone(context) {const page = await context.newPage();return await page.evaluate(() => Intl.DateTimeFormat().resolvedOptions().timeZone);@@ -110,7 +110,7 @@ it('should not change default timezone in another context', async ({ browser, se}});-it('should affect Intl.DateTimeFormat().resolvedOptions().timeZone', async ({ browser, server }) => {+it('TZ-005 should affect Intl.DateTimeFormat().resolvedOptions().timeZone', async ({ browser, server }) => {const context = await browser.newContext({ timezoneId: 'America/Jamaica' });const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -118,7 +118,7 @@ it('should affect Intl.DateTimeFormat().resolvedOptions().timeZone', async ({ brawait context.close();});-it('should propagate timezone to workers', async ({ browser, server }) => {+it('TZ-006 should propagate timezone to workers', async ({ browser, server }) => {const context = await browser.newContext({ timezoneId: 'America/Jamaica' });const page = await context.newPage();await page.goto(server.EMPTY_PAGE);diff --git a/tests/library/browsercontext-user-agent.spec.ts b/tests/library/browsercontext-user-agent.spec.tsindex d71399067a..7a31227e43 100644--- a/tests/library/browsercontext-user-agent.spec.ts+++ b/tests/library/browsercontext-user-agent.spec.ts@@ -19,7 +19,7 @@ import { browserTest as it, expect } from '../config/browserTest';import { attachFrame } from '../config/utils';import { chromiumVersionLessThan } from '../config/utils';-it('should work', async ({ browser, server }) => {+it('UA-001 should work', async ({ browser, server }) => {{const context = await browser.newContext();const page = await context.newPage();@@ -38,7 +38,7 @@ it('should work', async ({ browser, server }) => {}});-it('should work for subframes', async ({ browser, server }) => {+it('UA-002 should work for subframes', async ({ browser, server }) => {{const context = await browser.newContext();const page = await context.newPage();@@ -57,7 +57,7 @@ it('should work for subframes', async ({ browser, server }) => {}});-it('should emulate device user-agent', async ({ browser, server, playwright }) => {+it('UA-003 should emulate device user-agent', async ({ browser, server, playwright }) => {{const context = await browser.newContext();const page = await context.newPage();@@ -74,7 +74,7 @@ it('should emulate device user-agent', async ({ browser, server, playwright }) =}});-it('should make a copy of default options', async ({ browser, server }) => {+it('UA-004 should make a copy of default options', async ({ browser, server }) => {const options = { userAgent: 'foobar' };const context = await browser.newContext(options);options.userAgent = 'wrong';@@ -87,7 +87,7 @@ it('should make a copy of default options', async ({ browser, server }) => {await context.close();});-it('custom user agent for download', async ({ server, contextFactory, browserVersion, browserName }) => {+it('UA-005 custom user agent for download', async ({ server, contextFactory, browserVersion, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22843' });it.skip(browserName === 'chromium' && chromiumVersionLessThan(browserVersion, '116.0.0.0'), 'https://chromium-review.googlesource.com/c/chromium/src/+/4554578');@@ -107,7 +107,7 @@ it('custom user agent for download', async ({ server, contextFactory, browserVerexpect(req.headers['user-agent']).toBe('MyCustomUA');});-it('should work for navigator.userAgentData and sec-ch-ua headers', async ({ playwright, browserName, browser, server }) => {+it('UA-006 should work for navigator.userAgentData and sec-ch-ua headers', async ({ playwright, browserName, browser, server }) => {it.skip(browserName !== 'chromium', 'This API is Chromium-only');{diff --git a/tests/library/browsercontext-viewport-mobile.spec.ts b/tests/library/browsercontext-viewport-mobile.spec.tsindex 2660ec2aa6..951292c69d 100644--- a/tests/library/browsercontext-viewport-mobile.spec.ts+++ b/tests/library/browsercontext-viewport-mobile.spec.ts@@ -20,7 +20,7 @@ import { browserTest as it, expect } from '../config/browserTest';it.describe('mobile viewport', () => {it.skip(({ browserName, isBidi }) => browserName === 'firefox' && !isBidi);- it('should support mobile emulation', async ({ playwright, browser, server }) => {+ it('DV-011 should support mobile emulation', async ({ playwright, browser, server }) => {const iPhone = playwright.devices['iPhone 6'];const context = await browser.newContext({ ...iPhone });const page = await context.newPage();@@ -31,7 +31,7 @@ it.describe('mobile viewport', () => {await context.close();});- it('should support touch emulation', async ({ playwright, browser, server }) => {+ it('DV-012 should support touch emulation', async ({ playwright, browser, server }) => {const iPhone = playwright.devices['iPhone 6'];const context = await browser.newContext({ ...iPhone });const page = await context.newPage();@@ -54,7 +54,7 @@ it.describe('mobile viewport', () => {}});- it('should be detectable', async ({ playwright, browser }) => {+ it('DV-013 should be detectable', async ({ playwright, browser }) => {const iPhone = playwright.devices['iPhone 6'];const context = await browser.newContext({ ...iPhone });const page = await context.newPage();@@ -62,7 +62,7 @@ it.describe('mobile viewport', () => {await context.close();});- it('should detect touch when applying viewport with touches', async ({ browser, server }) => {+ it('DV-014 should detect touch when applying viewport with touches', async ({ browser, server }) => {const context = await browser.newContext({ viewport: { width: 800, height: 600 }, hasTouch: true });const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -70,7 +70,7 @@ it.describe('mobile viewport', () => {await context.close();});- it('should support landscape emulation', async ({ playwright, browser, server }) => {+ it('DV-015 should support landscape emulation', async ({ playwright, browser, server }) => {const iPhone = playwright.devices['iPhone 6'];const iPhoneLandscape = playwright.devices['iPhone 6 landscape'];const context1 = await browser.newContext({ ...iPhone });@@ -84,7 +84,7 @@ it.describe('mobile viewport', () => {await context2.close();});- it('should support window.orientation emulation', async ({ browser, server }) => {+ it('DV-016 should support window.orientation emulation', async ({ browser, server }) => {const context = await browser.newContext({ viewport: { width: 300, height: 400 }, isMobile: true });const page = await context.newPage();await page.goto(server.PREFIX + '/mobile.html');@@ -94,7 +94,7 @@ it.describe('mobile viewport', () => {await context.close();});- it('should preserve window.orientation override after navigation', async ({ browser, server, isFrozenWebkit }) => {+ it('DV-017 should preserve window.orientation override after navigation', async ({ browser, server, isFrozenWebkit }) => {it.skip(isFrozenWebkit);const context = await browser.newContext({ viewport: { width: 400, height: 300 }, isMobile: true });@@ -106,7 +106,7 @@ it.describe('mobile viewport', () => {await context.close();});- it('should preserve screen.orientation.type override after navigation', async ({ browser, server, isFrozenWebkit }) => {+ it('DV-018 should preserve screen.orientation.type override after navigation', async ({ browser, server, isFrozenWebkit }) => {it.skip(isFrozenWebkit);const context = await browser.newContext({ viewport: { width: 300, height: 400 }, isMobile: true });@@ -118,7 +118,7 @@ it.describe('mobile viewport', () => {await context.close();});- it('should fire orientationchange event', async ({ browser, server }) => {+ it('DV-019 should fire orientationchange event', async ({ browser, server }) => {const context = await browser.newContext({ viewport: { width: 300, height: 400 }, isMobile: true });const page = await context.newPage();await page.goto(server.PREFIX + '/mobile.html');@@ -137,7 +137,7 @@ it.describe('mobile viewport', () => {await context.close();});- it('default mobile viewports to 980 width', async ({ browser, server }) => {+ it('DV-020 default mobile viewports to 980 width', async ({ browser, server }) => {const context = await browser.newContext({ viewport: { width: 320, height: 480 }, isMobile: true });const page = await context.newPage();await page.goto(server.PREFIX + '/empty.html');@@ -145,7 +145,7 @@ it.describe('mobile viewport', () => {await context.close();});- it('respect meta viewport tag', async ({ browser, server }) => {+ it('DV-021 respect meta viewport tag', async ({ browser, server }) => {const context = await browser.newContext({ viewport: { width: 320, height: 480 }, isMobile: true });const page = await context.newPage();await page.goto(server.PREFIX + '/mobile.html');@@ -153,7 +153,7 @@ it.describe('mobile viewport', () => {await context.close();});- it('should emulate the hover media feature', async ({ playwright, browser }) => {+ it('DV-022 should emulate the hover media feature', async ({ playwright, browser }) => {const iPhone = playwright.devices['iPhone 6'];const mobilepage = await browser.newPage({ ...iPhone });expect(await mobilepage.evaluate(() => matchMedia('(hover: hover)').matches)).toBe(false);@@ -178,7 +178,7 @@ it.describe('mobile viewport', () => {await desktopPage.close();});- it('mouse should work with mobile viewports and cross process navigations', async ({ browser, server }) => {+ it('DV-023 mouse should work with mobile viewports and cross process navigations', async ({ browser, server }) => {// @see https://crbug.com/929806const context = await browser.newContext({ viewport: { width: 360, height: 640 }, isMobile: true });const page = await context.newPage();@@ -196,7 +196,7 @@ it.describe('mobile viewport', () => {await context.close();});- it('should scroll when emulating a mobile viewport', async ({ browser, server, browserName }) => {+ it('DV-024 should scroll when emulating a mobile viewport', async ({ browser, server, browserName }) => {const context = await browser.newContext({viewport: { 'width': 1000, 'height': 600 },isMobile: true,@@ -212,7 +212,7 @@ it.describe('mobile viewport', () => {await context.close();});- it('should scroll mobile page with background-attachment: fixed', {+ it('DV-025 should scroll mobile page with background-attachment: fixed', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31551' },{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23573' },@@ -227,7 +227,7 @@ it.describe('mobile viewport', () => {await context.close();});- it('view scale should reset after navigation', async ({ browser }) => {+ it('DV-026 view scale should reset after navigation', async ({ browser }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/26876' });const context = await browser.newContext({viewport: { width: 390, height: 664 },diff --git a/tests/library/browsercontext-viewport.spec.ts b/tests/library/browsercontext-viewport.spec.tsindex f74f524eb2..1775e0d174 100644--- a/tests/library/browsercontext-viewport.spec.ts+++ b/tests/library/browsercontext-viewport.spec.ts@@ -22,17 +22,17 @@ import { verifyViewport } from '../config/utils';import { server as coreServer } from '../../packages/playwright-core/lib/coreBundle';const { deviceDescriptors } = coreServer;-it('should get the proper default viewport size', async ({ page, server }) => {+it('VP-001 should get the proper default viewport size', async ({ page, server }) => {await verifyViewport(page, 1280, 720);});-it('should set the proper viewport size', async ({ page, server }) => {+it('VP-002 should set the proper viewport size', async ({ page, server }) => {await verifyViewport(page, 1280, 720);await page.setViewportSize({ width: 345, height: 456 });await verifyViewport(page, 345, 456);});-it('should return correct outerWidth and outerHeight', async ({ page }) => {+it('VP-003 should return correct outerWidth and outerHeight', async ({ page }) => {await page.setViewportSize({ width: 410, height: 420 });const size = await page.evaluate(() => {return {@@ -48,7 +48,7 @@ it('should return correct outerWidth and outerHeight', async ({ page }) => {expect(size.outerHeight >= size.innerHeight).toBeTruthy();});-it('landscape viewport should have width larger than height', async () => {+it('VP-004 landscape viewport should have width larger than height', async () => {for (const device in deviceDescriptors) {const configuration = deviceDescriptors[device];if (device.includes('landscape') || device.includes('Landscape'))@@ -56,7 +56,7 @@ it('landscape viewport should have width larger than height', async () => {}});-it('should emulate device width', async ({ page, server }) => {+it('VP-005 should emulate device width', async ({ page, server }) => {expect(page.viewportSize()).toEqual({ width: 1280, height: 720 });await page.setViewportSize({ width: 300, height: 300 });expect(await page.evaluate(() => window.screen.width)).toBe(300);@@ -76,7 +76,7 @@ it('should emulate device width', async ({ page, server }) => {expect(await page.evaluate(() => matchMedia('(device-width: 500px)').matches)).toBe(true);});-it('should emulate device height', async ({ page, server }) => {+it('VP-006 should emulate device height', async ({ page, server }) => {expect(page.viewportSize()).toEqual({ width: 1280, height: 720 });await page.setViewportSize({ width: 300, height: 300 });expect(await page.evaluate(() => window.screen.height)).toBe(300);@@ -96,18 +96,18 @@ it('should emulate device height', async ({ page, server }) => {expect(await page.evaluate(() => matchMedia('(device-height: 500px)').matches)).toBe(true);});-it('should emulate availWidth and availHeight', async ({ page }) => {+it('VP-007 should emulate availWidth and availHeight', async ({ page }) => {await page.setViewportSize({ width: 500, height: 600 });expect(await page.evaluate(() => window.screen.availWidth)).toBe(500);expect(await page.evaluate(() => window.screen.availHeight)).toBe(600);});-it('should not have touch by default', async ({ page, server, browserName, platform }) => {+it('VP-008 should not have touch by default', async ({ page, server, browserName, platform }) => {await page.goto(server.PREFIX + '/mobile.html');expect(await page.evaluate(() => 'ontouchstart' in window)).toBe(false);});-it('should throw on tap if hasTouch is not enabled', async ({ page }) => {+it('VP-009 should throw on tap if hasTouch is not enabled', async ({ page }) => {await page.setContent(`<div>a</div>`);{const error = await page.tap('div').catch(e => e);@@ -121,7 +121,7 @@ it('should throw on tap if hasTouch is not enabled', async ({ page }) => {}});-browserTest('should support touch with null viewport', async ({ browser, server }) => {+browserTest('VP-010 should support touch with null viewport', async ({ browser, server }) => {const context = await browser.newContext({ viewport: null, hasTouch: true });const page = await context.newPage();await page.goto(server.PREFIX + '/mobile.html');@@ -129,7 +129,7 @@ browserTest('should support touch with null viewport', async ({ browser, serverawait context.close();});-browserTest('should keep touch emulation after screenshot beyond viewport', async ({ browser, server }) => {+browserTest('VP-011 should keep touch emulation after screenshot beyond viewport', async ({ browser, server }) => {browserTest.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42607' });const context = await browser.newContext({ viewport: { width: 393, height: 727 }, hasTouch: true });const page = await context.newPage();@@ -151,7 +151,7 @@ browserTest('should keep touch emulation after screenshot beyond viewport', asynawait context.close();});-it('should set both screen and viewport options', async ({ contextFactory, browserName, isBidi }) => {+it('VP-012 should set both screen and viewport options', async ({ contextFactory, browserName, isBidi }) => {const context = await contextFactory({screen: { 'width': 1280, 'height': 720 },viewport: { 'width': 1000, 'height': 600 },@@ -163,14 +163,14 @@ it('should set both screen and viewport options', async ({ contextFactory, browsexpect(inner).toEqual({ w: 1000, h: 600 });});-browserTest('should report null viewportSize when given null viewport', async ({ browser, server }) => {+browserTest('VP-013 should report null viewportSize when given null viewport', async ({ browser, server }) => {const context = await browser.newContext({ viewport: null });const page = await context.newPage();expect(page.viewportSize()).toBe(null);await context.close();});-browserTest('should drag with high dpi', async ({ browser, server, headless }) => {+browserTest('VP-014 should drag with high dpi', async ({ browser, server, headless }) => {browserTest.skip(!headless, 'Stray mouse events mess up the test');const page = await browser.newPage({ deviceScaleFactor: 2 });@@ -183,7 +183,7 @@ browserTest('should drag with high dpi', async ({ browser, server, headless }) =await page.close();});-it('WebKit Windows headed should have a minimal viewport', async ({ contextFactory, browserName, headless, isWindows }) => {+it('VP-015 WebKit Windows headed should have a minimal viewport', async ({ contextFactory, browserName, headless, isWindows }) => {it.skip(browserName !== 'webkit' || headless || !isWindows, 'Not relevant for this browser');await expect(contextFactory({@@ -196,7 +196,7 @@ it('WebKit Windows headed should have a minimal viewport', async ({ contextFactoawait context.close();});-browserTest('should be able to get correct orientation angle on non-mobile devices', async ({ browser, browserName, server }) => {+browserTest('VP-016 should be able to get correct orientation angle on non-mobile devices', async ({ browser, browserName, server }) => {browserTest.skip(browserName === 'webkit', 'Desktop webkit dont support orientation API');const context = await browser.newContext({ viewport: { width: 300, height: 400 }, isMobile: false });@@ -208,7 +208,7 @@ browserTest('should be able to get correct orientation angle on non-mobile devicawait context.close();});-it('should set window.screen.orientation.type for mobile devices', async ({ contextFactory, server }) => {+it('VP-017 should set window.screen.orientation.type for mobile devices', async ({ contextFactory, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31151' });const context = await contextFactory(devices['iPhone 14']);const page = await context.newPage();diff --git a/tests/library/browsercontext-webauthn.spec.ts b/tests/library/browsercontext-webauthn.spec.tsindex af47308341..4293629020 100644--- a/tests/library/browsercontext-webauthn.spec.ts+++ b/tests/library/browsercontext-webauthn.spec.ts@@ -30,7 +30,7 @@ async function assertAndGetSignCount(page: Page, rpId: string) {}, { rpId });}-it('should not intercept navigator.credentials without install()', async ({ contextFactory, server }) => {+it('AU-017 should not intercept navigator.credentials without install()', async ({ contextFactory, server }) => {const context = await contextFactory();// Seed a credential, but do not install the interceptor.await context.credentials.create(server.HOSTNAME);@@ -41,7 +41,7 @@ it('should not intercept navigator.credentials without install()', async ({ contexpect(intercepted).toBe(false);});-it('should seed a known credential and authenticate', async ({ contextFactory, server }) => {+it('AU-018 should seed a known credential and authenticate', async ({ contextFactory, server }) => {// This is the easiest way to create credentials. In practice, this// probably comes from environment.const source = await contextFactory();@@ -125,7 +125,7 @@ it('should seed a known credential and authenticate', async ({ contextFactory, sexpect(error).toBe('NotAllowedError');});-it('should capture a page-created credential and reuse it in another context', async ({ contextFactory, server }) => {+it('AU-019 should capture a page-created credential and reuse it in another context', async ({ contextFactory, server }) => {// Setup context: the app registers a passkey via navigator.credentials.create().const setupContext = await contextFactory();await setupContext.credentials.install();@@ -170,7 +170,7 @@ it('should capture a page-created credential and reuse it in another context', aexpect(gotId).toBe(createdId);});-it('should reuse a page-created credential via the storageState option', async ({ contextFactory, server }) => {+it('AU-020 should reuse a page-created credential via the storageState option', async ({ contextFactory, server }) => {// Setup context: the app registers a passkey via navigator.credentials.create().const setupContext = await contextFactory();await setupContext.credentials.install();@@ -212,7 +212,7 @@ it('should reuse a page-created credential via the storageState option', async (expect(gotId).toBe(createdId);});-it('should seed and report signCount', async ({ contextFactory, server }) => {+it('AU-021 should seed and report signCount', async ({ contextFactory, server }) => {const context = await contextFactory();const fresh = await context.credentials.create('fresh.example.com');expect(fresh.signCount).toBe(0);@@ -239,14 +239,14 @@ it('should seed and report signCount', async ({ contextFactory, server }) => {expect(await assertAndGetSignCount(page2, server.HOSTNAME)).toBe(44);});-it('should reject invalid signCount', async ({ contextFactory }) => {+it('AU-022 should reject invalid signCount', async ({ contextFactory }) => {const context = await contextFactory();const error = await context.credentials.create('example.com', { signCount: -1 }).catch(e => e);expect(error.message).toContain('signCount must be between 0 and 4294967295, got -1');expect(await context.credentials.get()).toEqual([]);});-it('should preserve signCount via the storageState option', async ({ contextFactory, server }) => {+it('AU-023 should preserve signCount via the storageState option', async ({ contextFactory, server }) => {const setupContext = await contextFactory();await setupContext.credentials.create(server.HOSTNAME);await setupContext.credentials.install();@@ -274,7 +274,7 @@ it('should preserve signCount via the storageState option', async ({ contextFactexpect(await assertAndGetSignCount(legacyPage, server.HOSTNAME)).toBe(1);});-it('should serialize credentials with toJSON', {+it('AU-024 should serialize credentials with toJSON', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43093' },}, async ({ contextFactory, server }) => {const context = await contextFactory();diff --git a/tests/library/browsers-path.spec.ts b/tests/library/browsers-path.spec.tsindex e2d055c35d..0c7913310a 100644--- a/tests/library/browsers-path.spec.ts+++ b/tests/library/browsers-path.spec.ts@@ -36,7 +36,7 @@ function requireCoreOnAndroid(browsersPath: string | undefined): { status: numbereturn { status: result.status, output: (result.stdout || '') + (result.stderr || '') };}-test('should import on an unsupported platform when PLAYWRIGHT_BROWSERS_PATH=0', {+test('BP-001 should import on an unsupported platform when PLAYWRIGHT_BROWSERS_PATH=0', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41852' },}, () => {const { status, output } = requireCoreOnAndroid('0');@@ -45,7 +45,7 @@ test('should import on an unsupported platform when PLAYWRIGHT_BROWSERS_PATH=0',expect(status).toBe(0);});-test('should import on an unsupported platform with an explicit PLAYWRIGHT_BROWSERS_PATH', {+test('BP-002 should import on an unsupported platform with an explicit PLAYWRIGHT_BROWSERS_PATH', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41852' },}, () => {const { status, output } = requireCoreOnAndroid(path.join(test.info().outputDir, 'pw-browsers'));diff --git a/tests/library/browsertype-basic.spec.ts b/tests/library/browsertype-basic.spec.tsindex dacd9969d8..dd830803a0 100644--- a/tests/library/browsertype-basic.spec.ts+++ b/tests/library/browsertype-basic.spec.ts@@ -18,7 +18,7 @@import fs from 'fs';import { playwrightTest as test, expect } from '../config/browserTest';-test('browserType.executablePath should work', async ({ browserType, channel, mode }) => {+test('BT-001 browserType.executablePath should work', async ({ browserType, channel, mode }) => {test.skip(!!channel, 'We skip browser download when testing a channel');test.skip(!!(browserType as any)._playwright._defaultLaunchOptions.executablePath, 'Skip with custom executable path');@@ -26,11 +26,11 @@ test('browserType.executablePath should work', async ({ browserType, channel, moexpect(fs.existsSync(executablePath)).toBe(true);});-test('browserType.name should work', async ({ browserType, browserName }) => {+test('BT-002 browserType.name should work', async ({ browserType, browserName }) => {expect(browserType.name()).toBe(browserName);});-test('should throw when trying to connect with not-chromium', async ({ browserType, browserName }) => {+test('BT-003 should throw when trying to connect with not-chromium', async ({ browserType, browserName }) => {test.skip(browserName === 'chromium' || browserName === 'webkit');const error = await browserType.connectOverCDP({ endpointURL: 'ws://foo' }).catch(e => e);diff --git a/tests/library/browsertype-connect.spec.ts b/tests/library/browsertype-connect.spec.tsindex 757d4da88e..6cb1499f1e 100644--- a/tests/library/browsertype-connect.spec.ts+++ b/tests/library/browsertype-connect.spec.ts@@ -83,7 +83,7 @@ test.slow(true, 'All connect tests are slow');for (const kind of ['launchServer', 'run-server'] as const) {test.describe(kind, () => {- test('should connect over wss', async ({ connect, startRemoteServer, httpsServer }) => {+ test('BT-034 should connect over wss', async ({ connect, startRemoteServer, httpsServer }) => {const remoteServer = await startRemoteServer(kind);const oldValue = process.env['NODE_TLS_REJECT_UNAUTHORIZED'];@@ -120,13 +120,13 @@ for (const kind of ['launchServer', 'run-server'] as const) {}});- test('should print HTTP error', async ({ connect, server }) => {+ test('BT-035 should print HTTP error', async ({ connect, server }) => {const error = await connect(`ws://localhost:${server.PORT}/ws-401`).catch(e => e);expect(error.message).toContain('401');expect(error.message).toContain('Unauthorized body');});- test('should print ws error', async ({ connect, server }) => {+ test('BT-036 should print ws error', async ({ connect, server }) => {const error = await connect(`ws://does-not-exist.problem-domain:10987?secret=MYSECRET`).catch(e => e);expect(error.message).toContain('<ws connecting> ws://does-not-exist.problem-domain:10987/');expect(error.message).toContain('<ws error>');@@ -134,7 +134,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(error.message).not.toContain('secret=MYSECRET');});- test('should print custom ws close error', async ({ connect, server }) => {+ test('BT-037 should print custom ws close error', async ({ connect, server }) => {server.onceWebSocketConnection((ws, request) => {ws.on('message', message => {ws.close(4123, 'Oh my!');@@ -144,7 +144,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(error.message).toContain('browserType.connect: Oh my!');});- test('should be able to reconnect to a browser', async ({ connect, startRemoteServer, server }) => {+ test('BT-038 should be able to reconnect to a browser', async ({ connect, startRemoteServer, server }) => {const remoteServer = await startRemoteServer(kind);{const browser = await connect(remoteServer.wsEndpoint());@@ -164,7 +164,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {}});- test('should not crash on malformed json frame', async ({ connect, startRemoteServer }) => {+ test('BT-039 should not crash on malformed json frame', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const ws = new WebSocket(remoteServer.wsEndpoint());await new Promise<void>((resolve, reject) => {@@ -180,7 +180,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await browser.close();});- test('should be able to visit ipv6', async ({ connect, startRemoteServer, ipV6ServerPort, channel }) => {+ test('BT-040 should be able to visit ipv6', async ({ connect, startRemoteServer, ipV6ServerPort, channel }) => {test.fail(!!process.env.INSIDE_DOCKER, 'docker does not support IPv6 by default');test.fail(channel === 'webkit-wsl', 'WebKit on WSL does not support IPv6: https://github.com/microsoft/WSL/issues/10803');const remoteServer = await startRemoteServer(kind);@@ -192,7 +192,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await browser.close();});- test('should ignore page.pause when headed', async ({ connect, startRemoteServer, browserType, channel }) => {+ test('BT-041 should ignore page.pause when headed', async ({ connect, startRemoteServer, browserType, channel }) => {test.skip(channel === 'chromium-headless-shell', 'shell is never headed');const headless = (browserType as any)._playwright._defaultLaunchOptions.headless;@@ -207,7 +207,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {(browserType as any)._playwright._defaultLaunchOptions.headless = headless;});- test('should be able to visit ipv6 through localhost', async ({ connect, startRemoteServer, ipV6ServerPort, channel }) => {+ test('BT-042 should be able to visit ipv6 through localhost', async ({ connect, startRemoteServer, ipV6ServerPort, channel }) => {test.fail(!!process.env.INSIDE_DOCKER, 'docker does not support IPv6 by default');test.skip(channel === 'webkit-wsl', 'WebKit on WSL does not support IPv6: https://github.com/microsoft/WSL/issues/10803');const remoteServer = await startRemoteServer(kind);@@ -219,7 +219,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await browser.close();});- test('should be able to connect two browsers at the same time', async ({ connect, startRemoteServer }) => {+ test('BT-043 should be able to connect two browsers at the same time', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const browser1 = await connect(remoteServer.wsEndpoint());@@ -241,21 +241,21 @@ for (const kind of ['launchServer', 'run-server'] as const) {await browser2.close();});- test('should timeout in socket while connecting', async ({ connect, server }) => {+ test('BT-044 should timeout in socket while connecting', async ({ connect, server }) => {const e = await connect(`ws://localhost:${server.PORT}/ws-slow`, {timeout: 1000,}).catch(e => e);expect(e.message).toContain('browserType.connect: Timeout 1000ms exceeded');});- test('should timeout in connect while connecting', async ({ connect, server }) => {+ test('BT-045 should timeout in connect while connecting', async ({ connect, server }) => {const e = await connect(`ws://localhost:${server.PORT}/ws`, {timeout: 100,}).catch(e => e);expect(e.message).toContain('browserType.connect: Timeout 100ms exceeded');});- test('should send extra headers with connect request', async ({ connect, server }) => {+ test('BT-046 should send extra headers with connect request', async ({ connect, server }) => {const [request] = await Promise.all([server.waitForWebSocketConnectionRequest(),connect(`ws://localhost:${server.PORT}/ws`, {@@ -270,7 +270,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(request.headers['foo']).toBe('bar');});- test('should send extra headers with connect request in object form', async ({ browserType, server }) => {+ test('BT-047 should send extra headers with connect request in object form', async ({ browserType, server }) => {const requestPromise = server.waitForWebSocketConnectionRequest();browserType.connect({wsEndpoint: `ws://localhost:${server.PORT}/ws`,@@ -285,7 +285,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(request.headers['foo']).toBe('bar');});- test('should send default User-Agent and X-Playwright-Browser headers with connect request', async ({ connect, browserName, server, isFrozenWebkit }) => {+ test('BT-048 should send default User-Agent and X-Playwright-Browser headers with connect request', async ({ connect, browserName, server, isFrozenWebkit }) => {test.skip(isFrozenWebkit);const [request] = await Promise.all([@@ -302,7 +302,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(request.headers['foo']).toBe('bar');});- test('should support slowmo option', async ({ connect, startRemoteServer }) => {+ test('BT-049 should support slowmo option', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const browser1 = await connect(remoteServer.wsEndpoint(), { slowMo: 200 });@@ -312,7 +312,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(Date.now() - start).toBeGreaterThan(199);});- test('disconnected event should be emitted when browser is closed or server is closed', async ({ connect, startRemoteServer }) => {+ test('BT-050 disconnected event should be emitted when browser is closed or server is closed', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const browser1 = await connect(remoteServer.wsEndpoint());@@ -341,7 +341,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(disconnected2).toBe(1);});- test('disconnected event should have browser as argument', async ({ connect, startRemoteServer }) => {+ test('BT-051 disconnected event should have browser as argument', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());const [disconnected] = await Promise.all([@@ -351,14 +351,14 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(disconnected).toBe(browser);});- test('should handle exceptions during connect', async ({ connect, startRemoteServer }) => {+ test('BT-052 should handle exceptions during connect', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const __testHookBeforeCreateBrowser = () => { throw new Error('Dummy'); };const error = await connect(remoteServer.wsEndpoint(), { __testHookBeforeCreateBrowser } as any).catch(e => e);expect(error.message).toContain('Dummy');});- test('should set the browser connected state', async ({ connect, startRemoteServer }) => {+ test('BT-053 should set the browser connected state', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const remote = await connect(remoteServer.wsEndpoint());expect(remote.isConnected()).toBe(true);@@ -366,7 +366,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(remote.isConnected()).toBe(false);});- test('should throw when used after isConnected returns false', async ({ connect, startRemoteServer }) => {+ test('BT-054 should throw when used after isConnected returns false', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());const page = await browser.newPage();@@ -379,7 +379,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(error.message).toContain('closed');});- test('should throw when calling waitForNavigation after disconnect', async ({ connect, startRemoteServer }) => {+ test('BT-055 should throw when calling waitForNavigation after disconnect', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());const page = await browser.newPage();@@ -392,7 +392,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(error.message).toContain(kTargetClosedErrorMessage);});- test('should reject navigation when browser closes', async ({ connect, startRemoteServer, server }) => {+ test('BT-056 should reject navigation when browser closes', async ({ connect, startRemoteServer, server }) => {const remoteServer = await startRemoteServer(kind);server.setRoute('/one-style.css', () => {});const browser = await connect(remoteServer.wsEndpoint());@@ -404,7 +404,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(error.message).toContain('has been closed');});- test('should reject waitForSelector when browser closes', async ({ connect, startRemoteServer, server }) => {+ test('BT-057 should reject waitForSelector when browser closes', async ({ connect, startRemoteServer, server }) => {const remoteServer = await startRemoteServer(kind);server.setRoute('/empty.html', () => {});const browser = await connect(remoteServer.wsEndpoint());@@ -419,7 +419,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(error.message).toContain('has been closed');});- test('should emit close events on pages and contexts', async ({ connect, startRemoteServer }) => {+ test('BT-058 should emit close events on pages and contexts', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());const context = await browser.newContext();@@ -433,7 +433,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(pageClosed).toBeTruthy();});- test('should terminate network waiters', async ({ connect, startRemoteServer, server }) => {+ test('BT-059 should terminate network waiters', async ({ connect, startRemoteServer, server }) => {const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());const newPage = await browser.newPage();@@ -449,7 +449,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {}});- test('should reject waitForEvent before browser.close finishes', async ({ connect, startRemoteServer, server }) => {+ test('BT-060 should reject waitForEvent before browser.close finishes', async ({ connect, startRemoteServer, server }) => {const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());const newPage = await browser.newPage();@@ -460,7 +460,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await promise;});- test('should reject waitForEvent before browser.onDisconnect fires', async ({ connect, startRemoteServer, server }) => {+ test('BT-061 should reject waitForEvent before browser.onDisconnect fires', async ({ connect, startRemoteServer, server }) => {const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());const newPage = await browser.newPage();@@ -472,7 +472,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await expect.poll(() => log).toEqual(['rejected', 'disconnected']);});- test('should respect selectors', async ({ playwright, connect, startRemoteServer }) => {+ test('BT-062 should respect selectors', async ({ playwright, connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const mycss1 = 'mycss1-' + kind;@@ -517,7 +517,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await browser1.close();});- test('should not throw on close after disconnect', async ({ connect, startRemoteServer }) => {+ test('BT-063 should not throw on close after disconnect', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());await browser.newPage();@@ -528,7 +528,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await browser.close();});- test('should saveAs videos from remote browser', async ({ connect, startRemoteServer }, testInfo) => {+ test('BT-064 should saveAs videos from remote browser', async ({ connect, startRemoteServer }, testInfo) => {const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());const videosPath = testInfo.outputPath();@@ -548,7 +548,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(fs.existsSync(savedAsPath)).toBeTruthy();});- test('should save videos to artifactsDir', async ({ connect, startRemoteServer }, testInfo) => {+ test('BT-065 should save videos to artifactsDir', async ({ connect, startRemoteServer }, testInfo) => {const artifactsDir = testInfo.outputPath('artifacts');const remoteServer = await startRemoteServer(kind, { artifactsDir });const browser = await connect(remoteServer.wsEndpoint());@@ -569,7 +569,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await browser.close();});- test('should name video file after page guid when connecting to remote browser with artifactsDir', async ({ connect, startRemoteServer }, testInfo) => {+ test('BT-066 should name video file after page guid when connecting to remote browser with artifactsDir', async ({ connect, startRemoteServer }, testInfo) => {const artifactsDir = testInfo.outputPath('artifacts');const remoteServer = await startRemoteServer(kind, { artifactsDir });const browser = await connect(remoteServer.wsEndpoint());@@ -586,7 +586,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await browser.close();});- test('should be able to connect 20 times to a single server without warnings', async ({ connect, startRemoteServer, platform }) => {+ test('BT-067 should be able to connect 20 times to a single server without warnings', async ({ connect, startRemoteServer, platform }) => {test.skip(platform !== 'linux', 'Testing non-platform specific code');const remoteServer = await startRemoteServer(kind);@@ -604,7 +604,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(warning).toBe(null);});- test('should save download', async ({ server, connect, startRemoteServer }, testInfo) => {+ test('BT-068 should save download', async ({ server, connect, startRemoteServer }, testInfo) => {server.setRoute('/download', (req, res) => {res.setHeader('Content-Type', 'application/octet-stream');res.setHeader('Content-Disposition', 'attachment');@@ -628,7 +628,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await browser.close();});- test('should error when saving download after deletion', async ({ server, connect, startRemoteServer }, testInfo) => {+ test('BT-069 should error when saving download after deletion', async ({ server, connect, startRemoteServer }, testInfo) => {server.setRoute('/download', (req, res) => {res.setHeader('Content-Type', 'application/octet-stream');res.setHeader('Content-Disposition', 'attachment');@@ -650,7 +650,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await browser.close();});- test('should properly disconnect when connection closes from the client side', async ({ connect, startRemoteServer, server }) => {+ test('BT-070 should properly disconnect when connection closes from the client side', async ({ connect, startRemoteServer, server }) => {server.setRoute('/one-style.css', () => {});const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());@@ -671,7 +671,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect((await page.waitForNavigation().catch(e => e)).message).toContain(kTargetClosedErrorMessage);});- test('should be able to connect when the wsEndpoint is passed as an option', async ({ browserType, startRemoteServer }) => {+ test('BT-071 should be able to connect when the wsEndpoint is passed as an option', async ({ browserType, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const browser = await browserType.connect(remoteServer.wsEndpoint(), {headers: {@@ -683,7 +683,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await browser.close();});- test('should save har', async ({ connect, startRemoteServer, server }, testInfo) => {+ test('BT-072 should save har', async ({ connect, startRemoteServer, server }, testInfo) => {const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());const harPath = testInfo.outputPath('test.har');@@ -704,7 +704,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(entry.request.url).toBe(server.EMPTY_PAGE);});- test('should filter launch options', async ({ connect, startRemoteServer, server, browserType }, testInfo) => {+ test('BT-073 should filter launch options', async ({ connect, startRemoteServer, server, browserType }, testInfo) => {const tracesDir = testInfo.outputPath('traces');const oldTracesDir = (browserType as any)._playwright._defaultTracesDir;(browserType as any)._playwright._defaultTracesDir = tracesDir;@@ -717,7 +717,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(fs.existsSync(tracesDir)).toBe(false);});- test('should record trace with sources', async ({ connect, startRemoteServer, server, trace }, testInfo) => {+ test('BT-074 should record trace with sources', async ({ connect, startRemoteServer, server, trace }, testInfo) => {test.skip(trace === 'on');const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());@@ -741,7 +741,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(sourceFile).toEqual(thisFile);});- test('should fulfill with global fetch result', async ({ connect, startRemoteServer, playwright, server }) => {+ test('BT-075 should fulfill with global fetch result', async ({ connect, startRemoteServer, playwright, server }) => {const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());const context = await browser.newContext();@@ -757,7 +757,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(await response.json()).toEqual({ 'foo': 'bar' });});- test('should upload large file', async ({ connect, startRemoteServer, server, isMac }, testInfo) => {+ test('BT-076 should upload large file', async ({ connect, startRemoteServer, server, isMac }, testInfo) => {if (isMac)test.setTimeout(test.info().timeout * 3); // Extra slow!@@ -810,7 +810,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {await Promise.all([uploadFile, file1.filepath].map(fs.promises.unlink));});- test('should upload a folder', async ({ connect, startRemoteServer, server }, testInfo) => {+ test('BT-077 should upload a folder', async ({ connect, startRemoteServer, server }, testInfo) => {test.slow();const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());@@ -848,7 +848,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {}});- test('setInputFiles should preserve lastModified timestamp', async ({ connect, startRemoteServer, asset }) => {+ test('BT-078 setInputFiles should preserve lastModified timestamp', async ({ connect, startRemoteServer, asset }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27452' });const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint());@@ -868,7 +868,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(Math.abs(timestamps[i] - expectedTimestamps[i]), `expected: ${expectedTimestamps}; actual: ${timestamps}`).toBeLessThanOrEqual(1000);});- test('should connect over http', async ({ connect, startRemoteServer }) => {+ test('BT-079 should connect over http', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer(kind);const url = new URL(remoteServer.wsEndpoint());@@ -880,7 +880,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {test.describe('socks proxy', () => {test.skip(kind === 'launchServer', 'not supported yet');- test('should forward non-forwarded requests', async ({ server, startRemoteServer, connect }) => {+ test('BT-080 should forward non-forwarded requests', async ({ server, startRemoteServer, connect }) => {let reachedOriginalTarget = false;server.setRoute('/foo.html', async (req, res) => {reachedOriginalTarget = true;@@ -894,7 +894,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(reachedOriginalTarget).toBe(true);});- test('should proxy localhost requests @smoke', async ({ startRemoteServer, server, browserName, connect, platform, dummyServerPort }, testInfo) => {+ test('BT-081 should proxy localhost requests @smoke', async ({ startRemoteServer, server, browserName, connect, platform, dummyServerPort }, testInfo) => {test.skip(browserName === 'webkit' && platform === 'darwin', 'no localhost proxying');let reachedOriginalTarget = false;@@ -925,7 +925,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {}});- test('should proxy ipv6 localhost requests @smoke', async ({ startRemoteServer, server, browserName, connect, platform, ipV6ServerPort }, testInfo) => {+ test('BT-082 should proxy ipv6 localhost requests @smoke', async ({ startRemoteServer, server, browserName, connect, platform, ipV6ServerPort }, testInfo) => {test.skip(browserName === 'webkit' && platform === 'darwin', 'no localhost proxying');let reachedOriginalTarget = false;@@ -956,7 +956,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {}});- test('should proxy requests from fetch api', async ({ startRemoteServer, server, browserName, connect, channel, platform, dummyServerPort }, workerInfo) => {+ test('BT-083 should proxy requests from fetch api', async ({ startRemoteServer, server, browserName, connect, channel, platform, dummyServerPort }, workerInfo) => {test.skip(browserName === 'webkit' && platform === 'darwin', 'no localhost proxying');let reachedOriginalTarget = false;@@ -987,7 +987,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {}});- test('should proxy requests from fetch api over ipv6', async ({ startRemoteServer, server, browserName, connect, channel, platform, ipV6ServerPort }, workerInfo) => {+ test('BT-084 should proxy requests from fetch api over ipv6', async ({ startRemoteServer, server, browserName, connect, channel, platform, ipV6ServerPort }, workerInfo) => {test.skip(browserName === 'webkit' && platform === 'darwin', 'no localhost proxying');let reachedOriginalTarget = false;@@ -1018,7 +1018,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {}});- test('should proxy local.playwright requests', async ({ connect, server, dummyServerPort, startRemoteServer }, workerInfo) => {+ test('BT-085 should proxy local.playwright requests', async ({ connect, server, dummyServerPort, startRemoteServer }, workerInfo) => {let reachedOriginalTarget = false;server.setRoute('/foo.html', async (req, res) => {reachedOriginalTarget = true;@@ -1033,7 +1033,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(reachedOriginalTarget).toBe(false);});- test('should lead to the error page for forwarded requests when the connection is refused', async ({ connect, startRemoteServer, browserName }, workerInfo) => {+ test('BT-086 should lead to the error page for forwarded requests when the connection is refused', async ({ connect, startRemoteServer, browserName }, workerInfo) => {const examplePort = 20_000 + workerInfo.workerIndex * 3;const remoteServer = await startRemoteServer(kind);const browser = await connect(remoteServer.wsEndpoint(), { exposeNetwork: '*' });@@ -1047,7 +1047,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(error.message.includes('NS_ERROR_NET_RESET') || error.message.includes('NS_ERROR_CONNECTION_REFUSED')).toBe(true);});- test('should proxy based on the pattern', async ({ connect, startRemoteServer, server, browserName, platform, dummyServerPort }, workerInfo) => {+ test('BT-087 should proxy based on the pattern', async ({ connect, startRemoteServer, server, browserName, platform, dummyServerPort }, workerInfo) => {test.skip(browserName === 'webkit' && platform === 'darwin', 'no localhost proxying');let reachedOriginalTarget = false;@@ -1078,7 +1078,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {expect(failed).toBe(true);});- test('should check proxy pattern on the client', async ({ connect, startRemoteServer, server, dummyServerPort }) => {+ test('BT-088 should check proxy pattern on the client', async ({ connect, startRemoteServer, server, dummyServerPort }) => {let reachedOriginalTarget = false;server.setRoute('/foo.html', async (req, res) => {reachedOriginalTarget = true;@@ -1106,14 +1106,14 @@ for (const kind of ['launchServer', 'run-server'] as const) {}test.describe('launchServer only', () => {- test('should work with cluster', async ({ connect, startRemoteServer }) => {+ test('BT-089 should work with cluster', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer('launchServer', { inCluster: true });const browser = await connect(remoteServer.wsEndpoint());const page = await browser.newPage();expect(await page.evaluate('1 + 2')).toBe(3);});- test('should properly disconnect when connection closes from the server side', async ({ connect, startRemoteServer, server, platform }) => {+ test('BT-090 should properly disconnect when connection closes from the server side', async ({ connect, startRemoteServer, server, platform }) => {test.skip(platform === 'win32', 'Cannot send signals');server.setRoute('/one-style.css', () => {});@@ -1135,7 +1135,7 @@ test.describe('launchServer only', () => {expect((await page.waitForNavigation().catch(e => e)).message).toContain(kTargetClosedErrorMessage);});- test('should be able to reconnect to a browser 12 times without warnings', async ({ connect, startRemoteServer, server }) => {+ test('BT-091 should be able to reconnect to a browser 12 times without warnings', async ({ connect, startRemoteServer, server }) => {test.slow();const remoteServer = await startRemoteServer('launchServer', { exitOnWarning: true });for (let i = 0; i < 12; i++) {@@ -1151,14 +1151,14 @@ test.describe('launchServer only', () => {}});- test('cannot launch another browser', async ({ connect, startRemoteServer }) => {+ test('BT-092 cannot launch another browser', async ({ connect, startRemoteServer }) => {const remoteServer = await startRemoteServer('launchServer');const browser = await connect(remoteServer.wsEndpoint()) as any;await expect(browser._parent.launch({ timeout: 0 })).rejects.toThrowError('Launching more browsers is not allowed.');});});-test('should refuse connecting when versions do not match', async ({ connect, childProcess }) => {+test('BT-093 should refuse connecting when versions do not match', async ({ connect, childProcess }) => {const server = new RunServer();await server.start(childProcess, { mode: 'default', env: { PW_VERSION_OVERRIDE: '1.2.3' } });const error = await connect(server.wsEndpoint()).catch(e => e);@@ -1168,7 +1168,7 @@ test('should refuse connecting when versions do not match', async ({ connect, chexpect(error.message).toContain('client version: v' + getPlaywrightVersion(true));});-test('should filter local paths from unsafe launch options', async ({ connect, startRemoteServer, server, trace }, testInfo) => {+test('BT-094 should filter local paths from unsafe launch options', async ({ connect, startRemoteServer, server, trace }, testInfo) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42394' });test.skip(trace === 'on', 'the test starts its own tracing');@@ -1201,7 +1201,7 @@ test('should filter local paths from unsafe launch options', async ({ connect, sexpect(actions).toContain('Set content');});-test('should timeout after redirect when connecting over http', async ({ connect, server }) => {+test('BT-095 should timeout after redirect when connecting over http', async ({ connect, server }) => {server.setRedirect('/connect/json', '/connect/slow');let aborted = false;server.setRoute('/connect/slow', (req, res) => {@@ -1212,7 +1212,7 @@ test('should timeout after redirect when connecting over http', async ({ connectawait expect.poll(() => aborted).toBe(true);});-test('should not retain closed browsers in launch mode', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43421' } }, async ({ connect }) => {+test('BT-096 should not retain closed browsers in launch mode', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43421' } }, async ({ connect }) => {const server = new remote.PlaywrightServer({ mode: 'default', path: '/' + utils.createGuid(), maxConnections: Number.MAX_VALUE });const wsEndpoint = await server.listen();try {diff --git a/tests/library/browsertype-launch-selenium.spec.ts b/tests/library/browsertype-launch-selenium.spec.tsindex c8b2198fd2..5bb48e5151 100644--- a/tests/library/browsertype-launch-selenium.spec.ts+++ b/tests/library/browsertype-launch-selenium.spec.ts@@ -42,7 +42,7 @@ test.beforeAll(() => {selenium_4_8_3 = path.join(process.env.PWTEST_SELENIUM!, 'selenium-server-4.8.3.jar');});-test('selenium grid 3.141.59 standalone chromium', async ({ browserName, childProcess, waitForPort, browserType }, testInfo) => {+test('BT-097 selenium grid 3.141.59 standalone chromium', async ({ browserName, childProcess, waitForPort, browserType }, testInfo) => {test.skip(browserName !== 'chromium');const port = (testInfo.workerIndex * 5) + 15123;@@ -65,7 +65,7 @@ test('selenium grid 3.141.59 standalone chromium', async ({ browserName, childPrawait grid.waitForOutput('Removing session');});-test('selenium grid 3.141.59 hub + node chromium', async ({ browserName, childProcess, waitForPort, browserType }, testInfo) => {+test('BT-098 selenium grid 3.141.59 hub + node chromium', async ({ browserName, childProcess, waitForPort, browserType }, testInfo) => {test.skip(browserName !== 'chromium');const port = (testInfo.workerIndex * 5) + 15123;@@ -98,7 +98,7 @@ test('selenium grid 3.141.59 hub + node chromium', async ({ browserName, childPrawait node.waitForOutput('Removing session');});-test('selenium grid 4.8.3 standalone chromium', async ({ browserName, childProcess, waitForPort, browserType }, testInfo) => {+test('BT-099 selenium grid 4.8.3 standalone chromium', async ({ browserName, childProcess, waitForPort, browserType }, testInfo) => {test.skip(browserName !== 'chromium');const port = (testInfo.workerIndex * 5) + 15123;@@ -121,7 +121,7 @@ test('selenium grid 4.8.3 standalone chromium', async ({ browserName, childProceawait grid.waitForOutput('Deleted session');});-test('selenium grid 4.8.3 hub + node chromium', async ({ browserName, childProcess, waitForPort, browserType }, testInfo) => {+test('BT-100 selenium grid 4.8.3 hub + node chromium', async ({ browserName, childProcess, waitForPort, browserType }, testInfo) => {test.skip(browserName !== 'chromium');const port = (testInfo.workerIndex * 5) + 15123;@@ -153,7 +153,7 @@ test('selenium grid 4.8.3 hub + node chromium', async ({ browserName, childProceawait hub.waitForOutput('Deleted session');});-test('selenium grid 4.8.3 standalone chromium broken driver', async ({ browserName, childProcess, waitForPort, browserType }, testInfo) => {+test('BT-101 selenium grid 4.8.3 standalone chromium broken driver', async ({ browserName, childProcess, waitForPort, browserType }, testInfo) => {test.skip(browserName !== 'chromium');const port = (testInfo.workerIndex * 5) + 15123;@@ -170,7 +170,7 @@ test('selenium grid 4.8.3 standalone chromium broken driver', async ({ browserNaexpect(grid.output).not.toContain('Starting ChromeDriver');});-test('selenium grid 3.141.59 standalone non-chromium', async ({ browserName, browserType }, testInfo) => {+test('BT-102 selenium grid 3.141.59 standalone non-chromium', async ({ browserName, browserType }, testInfo) => {test.skip(browserName === 'chromium');const __testHookSeleniumRemoteURL = `http://127.0.0.1:4444/wd/hub`;@@ -178,7 +178,7 @@ test('selenium grid 3.141.59 standalone non-chromium', async ({ browserName, broexpect(error.message).toContain('Connecting to SELENIUM_REMOTE_URL is only supported by Chromium');});-test('selenium grid 3.141.59 standalone chromium through run-driver', async ({ browserName, childProcess, waitForPort }, testInfo) => {+test('BT-103 selenium grid 3.141.59 standalone chromium through run-driver', async ({ browserName, childProcess, waitForPort }, testInfo) => {test.skip(browserName !== 'chromium');const port = (testInfo.workerIndex * 5) + 15123;diff --git a/tests/library/browsertype-launch-server.spec.ts b/tests/library/browsertype-launch-server.spec.tsindex cc6490fb27..a112e7f951 100644--- a/tests/library/browsertype-launch-server.spec.ts+++ b/tests/library/browsertype-launch-server.spec.ts@@ -20,58 +20,58 @@ import { playwrightTest as it, expect } from '../config/browserTest';it.describe('launch server', () => {it.skip(({ mode }) => mode !== 'default');- it('should work', async ({ browserType }) => {+ it('BT-022 should work', async ({ browserType }) => {const browserServer = await browserType.launchServer();expect(browserServer.wsEndpoint()).not.toBe(null);await browserServer.close();});- it('should validate options', async ({ browserType }) => {+ it('BT-023 should validate options', async ({ browserType }) => {await expect(browserType.launchServer({ channel: null })).rejects.toThrow(/channel: expected string, got object/);});- it('should work with host', async ({ browserType }) => {+ it('BT-024 should work with host', async ({ browserType }) => {const host = '0.0.0.0';const browserServer = await browserType.launchServer({ host });expect(browserServer.wsEndpoint()).toContain(String(host));await browserServer.close();});- it('should work with port', async ({ browserType }, testInfo) => {+ it('BT-025 should work with port', async ({ browserType }, testInfo) => {const port = 8800 + testInfo.workerIndex;const browserServer = await browserType.launchServer({ port });expect(browserServer.wsEndpoint()).toContain(String(port));await browserServer.close();});- it('should work with wsPath', async ({ browserType }) => {+ it('BT-026 should work with wsPath', async ({ browserType }) => {const wsPath = '/unguessable-token';const browserServer = await browserType.launchServer({ wsPath });expect(browserServer.wsEndpoint()).toMatch(/:\d+\/unguessable-token$/);await browserServer.close();});- it('should work when wsPath is missing leading slash', async ({ browserType }) => {+ it('BT-027 should work when wsPath is missing leading slash', async ({ browserType }) => {const wsPath = 'unguessable-token';const browserServer = await browserType.launchServer({ wsPath });expect(browserServer.wsEndpoint()).toMatch(/:\d+\/unguessable-token$/);await browserServer.close();});- it('should default to random wsPath', async ({ browserType }) => {+ it('BT-028 should default to random wsPath', async ({ browserType }) => {const browserServer = await browserType.launchServer();expect(browserServer.wsEndpoint()).toMatch(/:\d+\/[a-f\d]{32}$/);await browserServer.close();});- it('should provide an error when ws endpoint is incorrect', async ({ browserType }) => {+ it('BT-029 should provide an error when ws endpoint is incorrect', async ({ browserType }) => {const browserServer = await browserType.launchServer();const error = await browserType.connect(browserServer.wsEndpoint() + '-foo').catch(e => e);await browserServer.close();expect(error.message).toContain('400 Bad Request');});- it('should fire "close" event during kill', async ({ browserType }) => {+ it('BT-030 should fire "close" event during kill', async ({ browserType }) => {const order = [];const browserServer = await browserType.launchServer();const closedPromise = new Promise<void>(f => browserServer.on('close', () => {@@ -85,13 +85,13 @@ it.describe('launch server', () => {expect(order).toEqual(['closed', 'killed']);});- it('should return child_process instance', async ({ browserType }) => {+ it('BT-031 should return child_process instance', async ({ browserType }) => {const browserServer = await browserType.launchServer();expect(browserServer.process().pid).toBeGreaterThan(0);await browserServer.close();});- it('should fire close event', async ({ browserType }) => {+ it('BT-032 should fire close event', async ({ browserType }) => {const browserServer = await browserType.launchServer();const [result] = await Promise.all([// @ts-expect-error The signal parameter is not documented.@@ -102,7 +102,7 @@ it.describe('launch server', () => {expect(result['signal']).toBe(null);});- it('should log protocol', async ({ browserType }) => {+ it('BT-033 should log protocol', async ({ browserType }) => {const logs: string[] = [];const logger = {isEnabled(name: string) {diff --git a/tests/library/browsertype-launch.spec.ts b/tests/library/browsertype-launch.spec.tsindex 6b58d64e20..b6a59162dc 100644--- a/tests/library/browsertype-launch.spec.ts+++ b/tests/library/browsertype-launch.spec.ts@@ -19,7 +19,7 @@ import { playwrightTest as it, expect } from '../config/browserTest';import type { Browser, BrowserContext, Page } from '@playwright/test';import { kTargetClosedErrorMessage } from '../config/errors';-it('should reject all promises when browser is closed', async ({ browserType }) => {+it('BT-004 should reject all promises when browser is closed', async ({ browserType }) => {const browser = await browserType.launch();const page = await (await browser.newContext()).newPage();let error: Error | undefined;@@ -31,29 +31,29 @@ it('should reject all promises when browser is closed', async ({ browserType })expect(error!.message).toContain(' closed');});-it('should throw if userDataDir option is passed', async ({ browserType }) => {+it('BT-005 should throw if userDataDir option is passed', async ({ browserType }) => {let waitError: Error | undefined;await browserType.launch({ userDataDir: 'random-path' } as any).catch(e => waitError = e);expect(waitError!.message).toContain('userDataDir option is not supported in `browserType.launch`. Use `browserType.launchPersistentContext` instead');});-it('should throw if userDataDir is passed as an argument', async ({ browserType }) => {+it('BT-006 should throw if userDataDir is passed as an argument', async ({ browserType }) => {let waitError: Error | undefined;await browserType.launch({ args: ['--user-data-dir=random-path', '--profile=random-path'] } as any).catch(e => waitError = e);expect(waitError!.message).toContain(`Pass userDataDir parameter to 'browserType.launchPersistentContext`);});-it('should throw if port option is passed', async ({ browserType }) => {+it('BT-007 should throw if port option is passed', async ({ browserType }) => {const error = await browserType.launch({ port: 1234 } as any).catch(e => e);expect(error!.message).toContain('Cannot specify a port without launching as a server.');});-it('should throw if port option is passed for persistent context', async ({ browserType }) => {+it('BT-008 should throw if port option is passed for persistent context', async ({ browserType }) => {const error = await browserType.launchPersistentContext('foo', { port: 1234 } as any).catch(e => e);expect(error!.message).toContain('Cannot specify a port without launching as a server.');});-it('should throw if page argument is passed', async ({ browserType, browserName, isBidi }) => {+it('BT-009 should throw if page argument is passed', async ({ browserType, browserName, isBidi }) => {it.skip(browserName === 'firefox' && !isBidi);let waitError: Error | undefined;@@ -61,7 +61,7 @@ it('should throw if page argument is passed', async ({ browserType, browserName,expect(waitError!.message).toContain('can not specify page');});-it('should reject if launched browser fails immediately', async ({ mode, browserType, asset, channel }) => {+it('BT-010 should reject if launched browser fails immediately', async ({ mode, browserType, asset, channel }) => {const error = await browserType.launch({ executablePath: asset('dummy_bad_browser_executable.js') }).catch(e => e);if (channel === 'webkit-wsl')expect(error.message).toContain('Failed to launch');@@ -69,13 +69,13 @@ it('should reject if launched browser fails immediately', async ({ mode, browserexpect(error.message).toMatch(/browserType\.launch(.|\n)*(spawn UNKNOWN|spawn EFTYPE|Browser logs:)/gim);});-it('should reject if executable path is invalid', async ({ browserType, mode }) => {+it('BT-011 should reject if executable path is invalid', async ({ browserType, mode }) => {let waitError: Error | undefined;await browserType.launch({ executablePath: 'random-invalid-path' }).catch(e => waitError = e);expect(waitError!.message).toContain('Failed to launch');});-it('should handle timeout', async ({ browserType, mode }) => {+it('BT-012 should handle timeout', async ({ browserType, mode }) => {it.skip(mode !== 'default');const options: any = { timeout: 5000, __testHookBeforeCreateBrowser: () => new Promise(f => setTimeout(f, 6000)) };@@ -85,7 +85,7 @@ it('should handle timeout', async ({ browserType, mode }) => {expect(error!.message).toContain(`<launched> pid=`);});-it('should handle exception and report launch log', async ({ browserType, mode }) => {+it('BT-013 should handle exception and report launch log', async ({ browserType, mode }) => {it.skip(mode !== 'default');const e = new Error('Dummy');@@ -95,13 +95,13 @@ it('should handle exception and report launch log', async ({ browserType, mode }expect(error.message).toContain('<launching>');});-it('should accept objects as options', async ({ mode, browserType }) => {+it('BT-014 should accept objects as options', async ({ mode, browserType }) => {// @ts-expect-error process is not a real option.const browser = await browserType.launch({ process });await browser.close();});-it('should fire close event for all contexts', async ({ browserType }) => {+it('BT-015 should fire close event for all contexts', async ({ browserType }) => {const browser = await browserType.launch();const context = await browser.newContext();let closed = false;@@ -110,7 +110,7 @@ it('should fire close event for all contexts', async ({ browserType }) => {expect(closed).toBe(true);});-it('should be callable twice', async ({ browserType }) => {+it('BT-016 should be callable twice', async ({ browserType }) => {const browser = await browserType.launch();await Promise.all([browser.close(),@@ -119,7 +119,7 @@ it('should be callable twice', async ({ browserType }) => {await browser.close();});-it('should allow await using', async ({ browserType, nodeVersion }) => {+it('BT-017 should allow await using', async ({ browserType, nodeVersion }) => {it.skip(nodeVersion.major < 18);let b: Browser;diff --git a/tests/library/capabilities.spec.ts b/tests/library/capabilities.spec.tsindex 88fda9503d..81af09b0c2 100644--- a/tests/library/capabilities.spec.ts+++ b/tests/library/capabilities.spec.ts@@ -17,7 +17,7 @@import url from 'url';import { contextTest as it, expect } from '../config/browserTest';-it('SharedArrayBuffer should work @smoke', async function({ contextFactory, httpsServer }) {+it('CA-001 SharedArrayBuffer should work @smoke', async function({ contextFactory, httpsServer }) {const context = await contextFactory({ ignoreHTTPSErrors: true });const page = await context.newPage();httpsServer.setRoute('/sharedarraybuffer', (req, res) => {@@ -34,12 +34,12 @@ it('SharedArrayBuffer should work @smoke', async function({ contextFactory, httpexpect(await page.evaluate(() => typeof SharedArrayBuffer)).toBe('function');});-it('Web Assembly should work @smoke', async ({ page, server }) => {+it('CA-002 Web Assembly should work @smoke', async ({ page, server }) => {await page.goto(server.PREFIX + '/wasm/table2.html');expect(await page.evaluate('loadTable()')).toBe('42, 83');});-it('WebSocket should work @smoke', async ({ page, server }) => {+it('CA-003 WebSocket should work @smoke', async ({ page, server }) => {server.sendOnWebSocketConnection('incoming');const value = await page.evaluate(host => {let cb;@@ -52,7 +52,7 @@ it('WebSocket should work @smoke', async ({ page, server }) => {expect(value).toBe('incoming');});-it('should respect CSP @smoke', async ({ page, server }) => {+it('CA-004 should respect CSP @smoke', async ({ page, server }) => {server.setRoute('/empty.html', async (req, res) => {res.setHeader('Content-Security-Policy', `script-src 'unsafe-inline';`);res.end(`@@ -66,7 +66,7 @@ it('should respect CSP @smoke', async ({ page, server }) => {expect(await page.evaluate(() => window['testStatus'])).toBe('SUCCESS');});-it('should play video @smoke', async ({ page, asset, browserName, isWindows, isLinux, mode }) => {+it('CA-005 should play video @smoke', async ({ page, asset, browserName, isWindows, isLinux, mode }) => {it.skip(browserName === 'webkit' && isWindows, 'passes locally but fails on GitHub Action bot, apparently due to a Media Pack issue in the Windows Server');// Safari only plays mp4 so we test WebKit with an .mp4 clip.@@ -79,7 +79,7 @@ it('should play video @smoke', async ({ page, asset, browserName, isWindows, isLawait page.$eval('video', v => v.pause());});-it('should play webm video @smoke', async ({ page, asset, browserName, platform, macVersion, mode }) => {+it('CA-006 should play webm video @smoke', async ({ page, asset, browserName, platform, macVersion, mode }) => {it.skip(browserName === 'webkit' && platform === 'win32', 'not supported');const absolutePath = asset('video_webm.html');@@ -90,7 +90,7 @@ it('should play webm video @smoke', async ({ page, asset, browserName, platform,await page.$eval('video', v => v.pause());});-it('should play audio @smoke', async ({ page, server, browserName, platform, macVersion }) => {+it('CA-007 should play audio @smoke', async ({ page, server, browserName, platform, macVersion }) => {it.fixme(browserName === 'webkit' && platform === 'win32', 'https://github.com/microsoft/playwright/issues/10892');it.skip(browserName === 'webkit' && platform === 'darwin' && macVersion === 15, 'audio output is unreliable on hosted macOS 15 runners');@@ -102,7 +102,7 @@ it('should play audio @smoke', async ({ page, server, browserName, platform, macexpect(await page.$eval('audio', e => e.currentTime)).toBeGreaterThan(0.1);});-it('should support webgl @smoke', async ({ page }) => {+it('CA-008 should support webgl @smoke', async ({ page }) => {const hasWebGL = await page.evaluate(() => {const canvas = document.createElement('canvas');return !!canvas.getContext('webgl');@@ -110,7 +110,7 @@ it('should support webgl @smoke', async ({ page }) => {expect(hasWebGL).toBe(true);});-it('should support webgl 2 @smoke', async ({ page, browserName, isWindows }) => {+it('CA-009 should support webgl 2 @smoke', async ({ page, browserName, isWindows }) => {it.fixme(browserName === 'firefox' && isWindows);const hasWebGL2 = await page.evaluate(() => {@@ -120,13 +120,13 @@ it('should support webgl 2 @smoke', async ({ page, browserName, isWindows }) =>expect(hasWebGL2).toBe(true);});-it('should not crash on page with mp4 @smoke', async ({ page, server, platform, browserName }) => {+it('CA-010 should not crash on page with mp4 @smoke', async ({ page, server, platform, browserName }) => {it.fixme(browserName === 'webkit' && platform === 'win32', 'https://github.com/microsoft/playwright/issues/11009, times out in setContent');await page.setContent(`<video><source src="${server.PREFIX}/movie.mp4"/></video>`);await page.waitForTimeout(1000);});-it('should not crash on showDirectoryPicker', async ({ page, server, browserName, browserMajorVersion }) => {+it('CA-011 should not crash on showDirectoryPicker', async ({ page, server, browserName, browserMajorVersion }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/7339' });it.skip(browserName !== 'chromium', 'showDirectoryPicker is only available in Chromium');await page.goto(server.EMPTY_PAGE);@@ -142,7 +142,7 @@ it('should not crash on showDirectoryPicker', async ({ page, server, browserNameawait page.waitForTimeout(3_000);});-it('should not crash on storage.getDirectory()', {+it('CA-012 should not crash on storage.getDirectory()', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18235' }}, async ({ page, server, browserName }) => {await page.goto(server.EMPTY_PAGE);@@ -156,13 +156,13 @@ it('should not crash on storage.getDirectory()', {expect(error).toBeFalsy();});-it('navigator.clipboard should be present', async ({ page, server }) => {+it('CA-013 navigator.clipboard should be present', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18901' });await page.goto(server.EMPTY_PAGE);expect(await page.evaluate(() => navigator.clipboard)).toBeTruthy();});-it('should set CloseEvent.wasClean to false when the server terminates a WebSocket connection', async ({ page, server }) => {+it('CA-014 should set CloseEvent.wasClean to false when the server terminates a WebSocket connection', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/12353' });server.onceWebSocketConnection(socket => {socket.terminate();@@ -174,7 +174,7 @@ it('should set CloseEvent.wasClean to false when the server terminates a WebSockexpect(wasClean).toBe(false);});-it('serviceWorker should intercept document request', async ({ page, server }) => {+it('CA-015 serviceWorker should intercept document request', async ({ page, server }) => {server.setRoute('/sw.js', (req, res) => {res.setHeader('Content-Type', 'application/javascript');res.end(`@@ -195,7 +195,7 @@ it('serviceWorker should intercept document request', async ({ page, server }) =expect(await page.textContent('body')).toBe('intercepted');});-it('webkit should define window.safari', async ({ page, server, browserName }) => {+it('CA-016 webkit should define window.safari', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21037' });it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29032' });it.skip(browserName !== 'webkit');@@ -206,7 +206,7 @@ it('webkit should define window.safari', async ({ page, server, browserName }) =expect(await page.evaluate(() => (window as any).safari.pushNotification.toString())).toBe('[object SafariRemoteNotification]');});-it('make sure that XMLHttpRequest upload events are emitted correctly', async ({ page, server }) => {+it('CA-017 make sure that XMLHttpRequest upload events are emitted correctly', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21489' });await page.goto(server.EMPTY_PAGE);@@ -225,14 +225,14 @@ it('make sure that XMLHttpRequest upload events are emitted correctly', async ({expect(events).toEqual(['loadstart', 'progress', 'load', 'loadend']);});-it('loading in HTMLImageElement.prototype', async ({ page, server }) => {+it('CA-018 loading in HTMLImageElement.prototype', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22738' });await page.goto(server.EMPTY_PAGE);const defined = await page.evaluate(() => 'loading' in HTMLImageElement.prototype);expect(defined).toBeTruthy();});-it('window.GestureEvent in WebKit', async ({ page, server, browserName }) => {+it('CA-019 window.GestureEvent in WebKit', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22735' });await page.goto(server.EMPTY_PAGE);const defined = await page.evaluate(() => 'GestureEvent' in window);@@ -241,7 +241,7 @@ it('window.GestureEvent in WebKit', async ({ page, server, browserName }) => {expect(type).toBe(browserName === 'webkit' ? 'function' : 'undefined');});-it('requestFullscreen', async ({ page, server, browserName, headless }) => {+it('CA-020 requestFullscreen', async ({ page, server, browserName, headless }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22832' });it.fixme(browserName === 'firefox' && !headless, 'Error: Request for fullscreen was denied because requesting element is not in the currently focused tab');await page.goto(server.EMPTY_PAGE);@@ -259,7 +259,7 @@ it('requestFullscreen', async ({ page, server, browserName, headless }) => {expect(await page.evaluate(() => !!document.fullscreenElement)).toBeFalsy();});-it('should send no Content-Length header for GET requests with a Content-Type', async ({ page, server }) => {+it('CA-021 should send no Content-Length header for GET requests with a Content-Type', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22569' });await page.goto(server.EMPTY_PAGE);const [request] = await Promise.all([@@ -272,7 +272,7 @@ 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, browserName }) => {+it('CA-022 Intl.ListFormat should work', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23978' });await page.goto(server.EMPTY_PAGE);const formatted = await page.evaluate(() => {@@ -286,7 +286,7 @@ it('Intl.ListFormat should work', async ({ page, server, browserName }) => {expect(formatted).toBe('first, second, or third');});-it('service worker should cover the iframe', async ({ page, server }) => {+it('CA-023 service worker should cover the iframe', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29267' });server.setRoute('/sw.html', (req, res) => {@@ -334,7 +334,7 @@ it('service worker should cover the iframe', async ({ page, server }) => {await expect(page.frameLocator('iframe').locator('div')).toHaveText('from the service worker');});-it('service worker should register in an iframe', async ({ page, server }) => {+it('CA-024 service worker should register in an iframe', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29267' });server.setRoute('/main.html', (req, res) => {@@ -383,7 +383,7 @@ it('service worker should register in an iframe', async ({ page, server }) => {expect(response).toBe('responseFromServiceWorker');});-it('should be able to render avif images', {+it('CA-025 should be able to render avif images', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/32673',@@ -400,7 +400,7 @@ it('should be able to render avif images', {expect(await page.evaluate(() => (window as any).error)).toBe(undefined);});-it('should not crash when clicking a label with a <input type="file"/>', {+it('CA-026 should not crash when clicking a label with a <input type="file"/>', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/33257'@@ -420,7 +420,7 @@ it('should not crash when clicking a label with a <input type="file"/>', {expect(fileChooser.page()).toBe(page);});-it('should not crash when clicking a color input', {+it('CA-027 should not crash when clicking a color input', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/33864'@@ -435,7 +435,7 @@ it('should not crash when clicking a color input', {await expect(input).toBeVisible();});-it('should not auto play audio', {+it('CA-028 should not auto play audio', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/33590'@@ -474,7 +474,7 @@ it('should not auto play audio', {await expect(page.locator('#log')).toHaveText('State: suspended');});-it('should not crash on feature detection for PublicKeyCredential', {+it('CA-029 should not crash on feature detection for PublicKeyCredential', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/35433'diff --git a/tests/library/channels.spec.ts b/tests/library/channels.spec.tsindex 0276d1bd88..563c7b2cd6 100644--- a/tests/library/channels.spec.ts+++ b/tests/library/channels.spec.ts@@ -37,7 +37,7 @@ const it = playwrightTest.extend<{}, { expectScopeState: (object: any, golden: ait.skip(({ mode }) => mode !== 'default');it.skip(({ video }) => video === 'on', 'Extra video artifacts in the objects list');-it('should scope context handles', async ({ browserType, server, expectScopeState }) => {+it('CN-001 should scope context handles', async ({ browserType, server, expectScopeState }) => {const browser = await browserType.launch();const GOLDEN_PRECONDITION = {_guid: '',@@ -94,7 +94,7 @@ it('should scope context handles', async ({ browserType, server, expectScopeStatawait browser.close();});-it('should scope CDPSession handles', async ({ browserType, browserName, expectScopeState }) => {+it('CN-002 should scope CDPSession handles', async ({ browserType, browserName, expectScopeState }) => {it.skip(browserName !== 'chromium');const browser = await browserType.launch();@@ -138,7 +138,7 @@ it('should scope CDPSession handles', async ({ browserType, browserName, expectSawait browser.close();});-it('should scope browser handles', async ({ browserType, expectScopeState }) => {+it('CN-003 should scope browser handles', async ({ browserType, expectScopeState }) => {const GOLDEN_PRECONDITION = {_guid: '',objects: [@@ -185,7 +185,7 @@ it('should scope browser handles', async ({ browserType, expectScopeState }) =>expectScopeState(browserType, GOLDEN_PRECONDITION);});-it('should not generate dispatchers for subresources w/o listeners', async ({ page, server, browserType, expectScopeState }) => {+it('CN-004 should not generate dispatchers for subresources w/o listeners', async ({ page, server, browserType, expectScopeState }) => {server.setRedirect('/one-style.css', '/two-style.css');server.setRedirect('/two-style.css', '/three-style.css');server.setRedirect('/three-style.css', '/four-style.css');@@ -227,7 +227,7 @@ it('should not generate dispatchers for subresources w/o listeners', async ({ pa});});-it('should work with the domain module', async ({ browserType, server, channel }) => {+it('CN-005 should work with the domain module', async ({ browserType, server, channel }) => {const local = domain.create();local.run(() => { });let err;@@ -255,7 +255,7 @@ it('should work with the domain module', async ({ browserType, server, channel }throw err;});-it('exposeFunction should not leak', async ({ page, expectScopeState, server }) => {+it('CN-006 exposeFunction should not leak', async ({ page, expectScopeState, server }) => {await page.goto(server.EMPTY_PAGE);let called = 0;await page.exposeFunction('myFunction', () => ++called);diff --git a/tests/library/chromium/bfcache.spec.ts b/tests/library/chromium/bfcache.spec.tsindex c60f4befaf..7c41a678d6 100644--- a/tests/library/chromium/bfcache.spec.ts+++ b/tests/library/chromium/bfcache.spec.ts@@ -22,7 +22,7 @@ test.use({}});-test('bindings should work after restoring from bfcache', async ({ page, server }) => {+test('CR-042 bindings should work after restoring from bfcache', async ({ page, server }) => {await page.exposeFunction('add', (a, b) => a + b);await page.goto(server.PREFIX + '/cached/bfcached.html');diff --git a/tests/library/chromium/chromium.spec.ts b/tests/library/chromium/chromium.spec.tsindex 1217592825..f107e14415 100644--- a/tests/library/chromium/chromium.spec.ts+++ b/tests/library/chromium/chromium.spec.ts@@ -20,7 +20,7 @@ import { browserTest, playwrightTest } from '../../config/browserTest';import type { Page } from 'playwright-core';-test('should create a worker from a service worker', async ({ page, server }) => {+test('CR-001 should create a worker from a service worker', async ({ page, server }) => {const [worker] = await Promise.all([page.context().waitForEvent('serviceworker'),page.goto(server.PREFIX + '/serviceworkers/empty/sw.html')@@ -28,7 +28,7 @@ test('should create a worker from a service worker', async ({ page, server }) =>expect(await worker.evaluate(() => self.toString())).toBe('[object ServiceWorkerGlobalScope]');});-test('should create a worker from service worker with noop routing', async ({ context, page, server }) => {+test('CR-002 should create a worker from service worker with noop routing', async ({ context, page, server }) => {await context.route('**', route => route.continue());const [worker] = await Promise.all([page.context().waitForEvent('serviceworker'),@@ -37,7 +37,7 @@ test('should create a worker from service worker with noop routing', async ({ coexpect(await worker.evaluate(() => self.toString())).toBe('[object ServiceWorkerGlobalScope]');});-test('should emit new service worker on update', async ({ context, page, server }) => {+test('CR-003 should emit new service worker on update', async ({ context, page, server }) => {let version = 0;server.setRoute('/worker.js', (req, res) => {res.writeHead(200, 'OK', { 'Content-Type': 'text/javascript' });@@ -88,7 +88,7 @@ test('should emit new service worker on update', async ({ context, page, servertest.describe('http credentials', () => {test.use({ httpCredentials: { username: 'user', password: 'pass' } });- test('httpCredentials', async ({ context, page, server }) => {+ test('CR-004 httpCredentials', async ({ context, page, server }) => {server.setAuth('/serviceworkers/fetch/sw.html', 'user', 'pass');server.setAuth('/empty.html', 'user', 'pass');const [worker] = await Promise.all([@@ -101,7 +101,7 @@ test.describe('http credentials', () => {});});-test('serviceWorkers() should return current workers', async ({ page, server }) => {+test('CR-005 serviceWorkers() should return current workers', async ({ page, server }) => {const context = page.context();const [worker1] = await Promise.all([context.waitForEvent('serviceworker'),@@ -120,7 +120,7 @@ test('serviceWorkers() should return current workers', async ({ page, server })expect(workers).toContain(worker2);});-test('should not create a worker from a shared worker', async ({ page, server }) => {+test('CR-006 should not create a worker from a shared worker', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let serviceWorkerCreated;page.context().once('serviceworker', () => serviceWorkerCreated = true);@@ -130,7 +130,7 @@ test('should not create a worker from a shared worker', async ({ page, server })expect(serviceWorkerCreated).not.toBeTruthy();});-playwrightTest('should close service worker together with the context', async ({ browserType, server }) => {+playwrightTest('CR-008 should close service worker together with the context', async ({ browserType, server }) => {const browser = await browserType.launch();const context = await browser.newContext();const page = await context.newPage();@@ -146,7 +146,7 @@ playwrightTest('should close service worker together with the context', async ({await browser.close();});-playwrightTest('should pass args with spaces', async ({ browserType, createUserDataDir }, testInfo) => {+playwrightTest('CR-009 should pass args with spaces', async ({ browserType, createUserDataDir }, testInfo) => {const browser = await browserType.launchPersistentContext(await createUserDataDir(), {args: ['--user-agent=I am Foo']});@@ -156,7 +156,7 @@ playwrightTest('should pass args with spaces', async ({ browserType, createUserDexpect(userAgent).toBe('I am Foo');});-test('serviceWorker(), and fromServiceWorker() work', async ({ context, page, server }) => {+test('CR-010 serviceWorker(), and fromServiceWorker() work', async ({ context, page, server }) => {const [worker, html, main, inWorker] = await Promise.all([context.waitForEvent('serviceworker'),context.waitForEvent('request', r => r.url().endsWith('/sw.html')),@@ -190,7 +190,7 @@ test('serviceWorker(), and fromServiceWorker() work', async ({ context, page, seexpect((await innerSW.response()).fromServiceWorker()).toBe(false);});-test('should intercept service worker requests (main and within)', async ({ context, page, server }) => {+test('CR-011 should intercept service worker requests (main and within)', async ({ context, page, server }) => {await context.route('**/request-from-within-worker', route =>route.fulfill({contentType: 'application/json',@@ -220,7 +220,7 @@ test('should intercept service worker requests (main and within)', async ({ contawait expect(sw.evaluate(() => self['contentPromise'])).resolves.toBe('intercepted!');});-test('should report failure (due to content-type) of main service worker request', async ({ server, page, context, browserMajorVersion }) => {+test('CR-012 should report failure (due to content-type) of main service worker request', async ({ server, page, context, browserMajorVersion }) => {test.skip(browserMajorVersion < 104, 'Requires http://crrev.com/1012503 or later.');server.setRoute('/serviceworkers/fetch/sw.js', (req, res) => {res.writeHead(200, 'OK', { 'Content-Type': 'text/html' });@@ -236,7 +236,7 @@ test('should report failure (due to content-type) of main service worker requestawait main.response();});-test('should report failure (due to redirect) of main service worker request', async ({ server, page, context, browserMajorVersion }) => {+test('CR-013 should report failure (due to redirect) of main service worker request', async ({ server, page, context, browserMajorVersion }) => {test.skip(browserMajorVersion < 104, 'Requires http://crrev.com/1012503 or later.');server.setRedirect('/serviceworkers/empty/sw.js', '/dev/null');const [, main] = await Promise.all([@@ -249,7 +249,7 @@ test('should report failure (due to redirect) of main service worker request', aexpect(resp.status()).toBe(302);});-test('should intercept service worker importScripts', async ({ context, page, server }) => {+test('CR-014 should intercept service worker importScripts', async ({ context, page, server }) => {await context.route('**/import.js', route =>route.fulfill({contentType: 'text/javascript',@@ -278,7 +278,7 @@ test('should intercept service worker importScripts', async ({ context, page, seawait expect(sw.evaluate(() => self['importedValue'])).resolves.toBe(47);});-test('should report intercepted service worker requests in HAR', async ({ pageWithHar, server }) => {+test('CR-015 should report intercepted service worker requests in HAR', async ({ pageWithHar, server }) => {const { context, page, getLog } = await pageWithHar();await context.route('**/request-from-within-worker', route =>route.fulfill({@@ -326,7 +326,7 @@ test('should report intercepted service worker requests in HAR', async ({ pageWi}});-test('should intercept only serviceworker request, not page', async ({ context, page, server }) => {+test('CR-016 should intercept only serviceworker request, not page', async ({ context, page, server }) => {await context.route('**/data.json', async route => {if (route.request().serviceWorker()) {return route.fulfill({@@ -350,7 +350,7 @@ test('should intercept only serviceworker request, not page', async ({ context,expect(response).toBe('from sw');});-test('should produce network events, routing, and annotations for Service Worker', async ({ page, context, server }) => {+test('CR-017 should produce network events, routing, and annotations for Service Worker', async ({ page, context, server }) => {server.setRoute('/index.html', (req, res) => {res.write(`<script>@@ -413,7 +413,7 @@ test('should produce network events, routing, and annotations for Service Worker]);});-test('should produce network events, routing, and annotations for Service Worker (advanced)', async ({ page, context, server }) => {+test('CR-018 should produce network events, routing, and annotations for Service Worker (advanced)', async ({ page, context, server }) => {server.setRoute('/index.html', (req, res) => {res.write(`<script>@@ -516,7 +516,7 @@ test('should produce network events, routing, and annotations for Service Worker'| [`event: Page.request`] | [Frame] | fallthrough.txt | | Yes |']);});-test('should intercept service worker update requests', async ({ context, page, server }) => {+test('CR-019 should intercept service worker update requests', async ({ context, page, server }) => {test.fixme();test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/14711' });@@ -578,7 +578,7 @@ test('should intercept service worker update requests', async ({ context, page,await expect.poll(() => updatedSW.evaluate(() => self['PW_VERSION'])).toBe('intercepted');});-test('setOffline', async ({ context, page, server }) => {+test('CR-020 setOffline', async ({ context, page, server }) => {const [worker] = await Promise.all([context.waitForEvent('serviceworker'),page.goto(server.PREFIX + '/serviceworkers/fetch/sw.html')@@ -593,7 +593,7 @@ test('setOffline', async ({ context, page, server }) => {expect(error).toMatch(/REJECTED.*Failed to fetch/);});-test('setExtraHTTPHeaders', async ({ context, page, server }) => {+test('CR-021 setExtraHTTPHeaders', async ({ context, page, server }) => {const [worker] = await Promise.all([context.waitForEvent('serviceworker'),page.goto(server.PREFIX + '/serviceworkers/fetch/sw.html')@@ -607,7 +607,7 @@ test('setExtraHTTPHeaders', async ({ context, page, server }) => {expect(req.headers['x-custom-header']).toBe('custom!');});-test('should throw when connecting twice to an already running persistent context (--remote-debugging-port)', async ({ browserType, createUserDataDir, platform, isHeadlessShell, channel }) => {+test('CR-022 should throw when connecting twice to an already running persistent context (--remote-debugging-port)', async ({ browserType, createUserDataDir, platform, isHeadlessShell, channel }) => {test.skip(isHeadlessShell, 'Headless shell does not create a ProcessSingleton');test.fixme(platform === 'win32', 'Windows does not print something to the console when the profile is already in use by another instance of Chromium.');test.skip(!!channel?.startsWith('msedge'), 'Edge does not print the ProcessSingleton line');@@ -625,7 +625,7 @@ test('should throw when connecting twice to an already running persistent contex}});-test('should throw when connecting twice to an already running persistent context (--remote-debugging-pipe)', async ({ browserType, createUserDataDir, platform, isHeadlessShell, channel }) => {+test('CR-023 should throw when connecting twice to an already running persistent context (--remote-debugging-pipe)', async ({ browserType, createUserDataDir, platform, isHeadlessShell, channel }) => {test.skip(isHeadlessShell, 'Headless shell does not create a ProcessSingleton');test.fixme(platform === 'win32', 'Windows does not print something to the console when the profile is already in use by another instance of Chromium.');test.skip(!!channel?.startsWith('msedge'), 'Edge does not print the ProcessSingleton line');@@ -639,7 +639,7 @@ test('should throw when connecting twice to an already running persistent contex}});-test('PLAYWRIGHT_DISABLE_SERVICE_WORKER_NETWORK', async ({ mode, context, page, server }) => {+test('CR-024 PLAYWRIGHT_DISABLE_SERVICE_WORKER_NETWORK', async ({ mode, context, page, server }) => {test.skip(mode !== 'default', 'no env in non-default mode');process.env.PLAYWRIGHT_DISABLE_SERVICE_WORKER_NETWORK = '1';@@ -669,7 +669,7 @@ test('PLAYWRIGHT_DISABLE_SERVICE_WORKER_NETWORK', async ({ mode, context, page,delete process.env.PLAYWRIGHT_DISABLE_SERVICE_WORKER_NETWORK;});-test('should emit console messages from service worker', async ({ page, context, server }) => {+test('CR-025 should emit console messages from service worker', async ({ page, context, server }) => {const emptyPage = await context.newPage();await emptyPage.goto(server.EMPTY_PAGE);const emptyPageMessages = [];@@ -712,7 +712,7 @@ test('should emit console messages from service worker', async ({ page, context,});});-test('should capture console.log from ServiceWorker start', async ({ context, page, server }) => {+test('CR-026 should capture console.log from ServiceWorker start', async ({ context, page, server }) => {server.setRoute('/serviceworkers/empty/sw.js', (req, res) => {res.writeHead(200, 'OK', { 'Content-Type': 'text/javascript' });res.write(`console.log('Hello from the first line of sw.js');`);@@ -733,7 +733,7 @@ test.describe('WebUI navigation', () => {const isEdge = (channel: string | undefined) => !!channel?.startsWith('msedge');const gotoError = (page: Page, url: string) => page.goto(url).then(() => '', e => e.message);- test('should refuse WebUI pages that crash the browser in an isolated context', async ({ browser, page, channel }) => {+ test('CR-027 should refuse WebUI pages that crash the browser in an isolated context', async ({ browser, page, channel }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41935' });test.skip(isEdge(channel), 'Edge only disallows chrome://history');@@ -745,7 +745,7 @@ test.describe('WebUI navigation', () => {expect(await page.evaluate(() => 1 + 1)).toBe(2);});- test('should refuse WebUI pages that crash Edge in an isolated context', async ({ browser, page, channel }) => {+ test('CR-028 should refuse WebUI pages that crash Edge in an isolated context', async ({ browser, page, channel }) => {test.skip(!isEdge(channel), 'Edge has its own list of pages disallowed in InPrivate');for (const url of ['edge://history', 'chrome://history', 'view-source:edge://history'])@@ -756,14 +756,14 @@ test.describe('WebUI navigation', () => {expect(browser.isConnected()).toBe(true);});- test('should navigate to WebUI pages that work in an isolated context', async ({ page, headless }) => {+ test('CR-029 should navigate to WebUI pages that work in an isolated context', async ({ page, headless }) => {test.skip(headless, 'WebUI pages are not available in headless');const response = await page.goto('chrome://version');expect(response.status()).toBe(200);});- test('should navigate to any WebUI page in a persistent context', async ({ browserType, createUserDataDir, headless }) => {+ test('CR-030 should navigate to any WebUI page in a persistent context', async ({ browserType, createUserDataDir, headless }) => {test.skip(headless, 'WebUI pages are not available in headless');const context = await browserType.launchPersistentContext(await createUserDataDir());@@ -778,7 +778,7 @@ test.describe('WebUI navigation', () => {});});-test('should fire dialogclosed event when dialog is closed out of band', async ({ page }) => {+test('CR-031 should fire dialogclosed event when dialog is closed out of band', async ({ page }) => {// Establish the CDP session up front: creating one while a dialog is blocking the page hangs.const client = await page.context().newCDPSession(page);await client.send('Page.enable');@@ -792,7 +792,7 @@ test('should fire dialogclosed event when dialog is closed out of band', async (await evaluatePromise;});-browserTest('should not leak service worker session after context close', async ({ browser, server, toImpl }) => {+browserTest('CR-032 should not leak service worker session after context close', async ({ browser, server, toImpl }) => {browserTest.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43009' });const sessions: Map<string, unknown> = toImpl(browser)._connection._sessions;const sessionCount = sessions.size;diff --git a/tests/library/chromium/connect-over-cdp.spec.ts b/tests/library/chromium/connect-over-cdp.spec.tsindex b68051e596..a798879a8d 100644--- a/tests/library/chromium/connect-over-cdp.spec.ts+++ b/tests/library/chromium/connect-over-cdp.spec.ts@@ -25,7 +25,7 @@ import { suppressCertificateWarning } from '../../config/utils';const { WebSocketTransport, nullProgress } = coreServer;type Frame = coreServer.Frame;-test('should connect to an existing cdp session', async ({ browserType, mode }, testInfo) => {+test('CD-001 should connect to an existing cdp session', async ({ browserType, mode }, testInfo) => {const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -42,7 +42,7 @@ test('should connect to an existing cdp session', async ({ browserType, mode },}});-test('should connect when an existing page has no renderer', {+test('CD-002 should connect when an existing page has no renderer', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41714' },}, async ({ browserType, server }, testInfo) => {const port = 9339 + testInfo.workerIndex;@@ -77,7 +77,7 @@ test('should connect when an existing page has no renderer', {}});-test('should connect when the opener of an existing page has no renderer', {+test('CD-003 should connect when the opener of an existing page has no renderer', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41714' },}, async ({ browserType, server }, testInfo) => {const port = 9339 + testInfo.workerIndex;@@ -114,7 +114,7 @@ test('should connect when the opener of an existing page has no renderer', {}});-test('should connect when an existing page has been discarded', {+test('CD-004 should connect when an existing page has been discarded', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41714' },}, async ({ browserType, createUserDataDir, server }, testInfo) => {const port = 9339 + testInfo.workerIndex;@@ -160,7 +160,7 @@ test('should connect when an existing page has been discarded', {}});-test('should cleanup artifacts dir after connectOverCDP disconnects due to ws close', async ({ browserType, toImpl, mode }, testInfo) => {+test('CD-005 should cleanup artifacts dir after connectOverCDP disconnects due to ws close', async ({ browserType, toImpl, mode }, testInfo) => {const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -179,7 +179,7 @@ test('should cleanup artifacts dir after connectOverCDP disconnects due to ws clexpect(exists2).toBe(false);});-test('should reject pending CDPSession calls when the browser is killed', {+test('CD-006 should reject pending CDPSession calls when the browser is killed', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43200' },}, async ({ browserType, mode }, testInfo) => {test.skip(mode !== 'default', 'launchServer is only available in-process');@@ -199,7 +199,7 @@ test('should reject pending CDPSession calls when the browser is killed', {expect(error.message).toContain('Target page, context or browser has been closed');});-test('should write traces to provided artifactsDir on connectOverCDP', async ({ browserType, toImpl, trace }, testInfo) => {+test('CD-007 should write traces to provided artifactsDir on connectOverCDP', async ({ browserType, toImpl, trace }, testInfo) => {test.skip(trace === 'on');const port = 9339 + testInfo.workerIndex;@@ -236,7 +236,7 @@ test('should write traces to provided artifactsDir on connectOverCDP', async ({}});-test('should connectOverCDP and manage downloads in default context', async ({ browserType, mode, server }, testInfo) => {+test('CD-008 should connectOverCDP and manage downloads in default context', async ({ browserType, mode, server }, testInfo) => {server.setRoute('/downloadWithFilename', (req, res) => {res.setHeader('Content-Type', 'application/octet-stream');res.setHeader('Content-Disposition', 'attachment; filename=file.txt');@@ -272,7 +272,7 @@ test('should connectOverCDP and manage downloads in default context', async ({ b}});-test('should connect to an existing cdp session twice', async ({ browserType, mode, server }, testInfo) => {+test('CD-009 should connect to an existing cdp session twice', async ({ browserType, mode, server }, testInfo) => {const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -309,7 +309,7 @@ test('should connect to an existing cdp session twice', async ({ browserType, mo}});-test('should connect to existing page with iframe and navigate', async ({ browserType, mode, server }, testInfo) => {+test('CD-010 should connect to existing page with iframe and navigate', async ({ browserType, mode, server }, testInfo) => {const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -330,7 +330,7 @@ test('should connect to existing page with iframe and navigate', async ({ browse}});-test('should connect to existing service workers', async ({ browserType, mode, server }, testInfo) => {+test('CD-011 should connect to existing service workers', async ({ browserType, mode, server }, testInfo) => {const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -359,7 +359,7 @@ test('should connect to existing service workers', async ({ browserType, mode, s}});-test('should connect over a ws endpoint', async ({ browserType, server }, testInfo) => {+test('CD-012 should connect over a ws endpoint', async ({ browserType, server }, testInfo) => {const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -391,7 +391,7 @@ test('should connect over a ws endpoint', async ({ browserType, server }, testIn}});-test('should send extra headers with connect request', async ({ browserType, server }, testInfo) => {+test('CD-013 should send extra headers with connect request', async ({ browserType, server }, testInfo) => {{const [request] = await Promise.all([server.waitForWebSocketConnectionRequest(),@@ -424,7 +424,7 @@ test('should send extra headers with connect request', async ({ browserType, ser}});-test('should keep URL parameters when adding json/version', {+test('CD-014 should keep URL parameters when adding json/version', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/36097'@@ -436,7 +436,7 @@ test('should keep URL parameters when adding json/version', {]);});-test('should append /json/version with a slash if there isnt one', {+test('CD-015 should append /json/version with a slash if there isnt one', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/36378'@@ -448,7 +448,7 @@ test('should append /json/version with a slash if there isnt one', {]);});-test('should send default User-Agent header with connect request', async ({ browserType, server }, testInfo) => {+test('CD-016 should send default User-Agent header with connect request', async ({ browserType, server }, testInfo) => {{const [request] = await Promise.all([server.waitForWebSocketConnectionRequest(),@@ -465,7 +465,7 @@ test('should send default User-Agent header with connect request', async ({ brow}});-test('should report all pages in an existing browser', async ({ browserType }, testInfo) => {+test('CD-017 should report all pages in an existing browser', async ({ browserType }, testInfo) => {const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -491,7 +491,7 @@ test('should report all pages in an existing browser', async ({ browserType }, t}});-test('should connect via https', async ({ browserType, httpsServer, mode }, testInfo) => {+test('CD-018 should connect via https', async ({ browserType, httpsServer, mode }, testInfo) => {test.skip(mode !== 'default'); // Out of process transport does not allow us to set env vars dynamically.const port = 9339 + testInfo.workerIndex;@@ -526,7 +526,7 @@ test('should connect via https', async ({ browserType, httpsServer, mode }, test}});-test('should return valid browser from context.browser()', async ({ browserType }, testInfo) => {+test('CD-019 should return valid browser from context.browser()', async ({ browserType }, testInfo) => {const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -548,7 +548,7 @@ test('should return valid browser from context.browser()', async ({ browserType}});-test('should report an expected error when the endpointURL returns a non-expected status code', async ({ browserType, server }) => {+test('CD-020 should report an expected error when the endpointURL returns a non-expected status code', async ({ browserType, server }) => {server.setRoute('/json/version/', (req, resp) => {resp.statusCode = 404;resp.end(JSON.stringify({@@ -560,7 +560,7 @@ test('should report an expected error when the endpointURL returns a non-expecte})).rejects.toThrowError(`browserType.connectOverCDP: Unexpected status 404 when connecting to ${server.PREFIX}/json/version/`);});-test('should report an expected error when the endpoint URL JSON webSocketDebuggerUrl is undefined', async ({ browserType, server }) => {+test('CD-021 should report an expected error when the endpoint URL JSON webSocketDebuggerUrl is undefined', async ({ browserType, server }) => {server.setRoute('/json/version/', (req, resp) => {resp.end(JSON.stringify({webSocketDebuggerUrl: undefined,@@ -571,7 +571,7 @@ test('should report an expected error when the endpoint URL JSON webSocketDebugg})).rejects.toThrowError('browserType.connectOverCDP: Invalid URL');});-test('should connect to an existing cdp session when passed as a first argument', async ({ browserType }, testInfo) => {+test('CD-022 should connect to an existing cdp session when passed as a first argument', async ({ browserType }, testInfo) => {const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -586,7 +586,7 @@ test('should connect to an existing cdp session when passed as a first argument'}});-test('should use proxy with connectOverCDP', async ({ browserType, server }, testInfo) => {+test('CD-023 should use proxy with connectOverCDP', async ({ browserType, server }, testInfo) => {server.setRoute('/target.html', async (req, res) => {res.end('<html><title>Served by the proxy</title></html>');});@@ -608,7 +608,7 @@ test('should use proxy with connectOverCDP', async ({ browserType, server }, tes}});-test('should use env proxy with connectOverCDP discovery request', async ({ browserType, server, proxyServer, mode }) => {+test('CD-024 should use env proxy with connectOverCDP discovery request', async ({ browserType, server, proxyServer, mode }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40394' });test.skip(mode !== 'default'); // Out of process transport does not allow us to set env vars dynamically.proxyServer.forwardTo(server.PORT);@@ -627,7 +627,7 @@ test('should use env proxy with connectOverCDP discovery request', async ({ brow}});-test('should send target Host header when using env HTTP proxy with connectOverCDP', async ({ browserType, server, proxyServer, mode }) => {+test('CD-025 should send target Host header when using env HTTP proxy with connectOverCDP', async ({ browserType, server, proxyServer, mode }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40811' });test.skip(mode !== 'default'); // Out of process transport does not allow us to set env vars dynamically.proxyServer.forwardTo(server.PORT);@@ -646,7 +646,7 @@ test('should send target Host header when using env HTTP proxy with connectOverC}});-test('should be able to connect via localhost', async ({ browserType }, testInfo) => {+test('CD-026 should be able to connect via localhost', async ({ browserType }, testInfo) => {const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -661,7 +661,7 @@ test('should be able to connect via localhost', async ({ browserType }, testInfo}});-test('emulate media should not be affected by second connectOverCDP with noDefaults', async ({ browserType }, testInfo) => {+test('CD-027 emulate media should not be affected by second connectOverCDP with noDefaults', async ({ browserType }, testInfo) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/24109' });const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({@@ -688,7 +688,7 @@ test('emulate media should not be affected by second connectOverCDP with noDefau}});-test('should allow tracing over cdp session', async ({ browserType, trace }, testInfo) => {+test('CD-028 should allow tracing over cdp session', async ({ browserType, trace }, testInfo) => {test.skip(trace === 'on');const port = 9339 + testInfo.workerIndex;@@ -712,7 +712,7 @@ test('should allow tracing over cdp session', async ({ browserType, trace }, tes}});-test('setInputFiles should preserve lastModified timestamp', async ({ browserType, asset }) => {+test('CD-029 setInputFiles should preserve lastModified timestamp', async ({ browserType, asset }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27452' });const port = 9339 + test.info().workerIndex;@@ -742,7 +742,7 @@ test('setInputFiles should preserve lastModified timestamp', async ({ browserTyp}});-test('setInputFiles should use local path when isLocal is set', async ({ browserType, toImpl }) => {+test('CD-030 setInputFiles should use local path when isLocal is set', async ({ browserType, toImpl }) => {const port = 9339 + test.info().workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -758,7 +758,7 @@ test('setInputFiles should use local path when isLocal is set', async ({ browser}});-test('should print custom ws close error', async ({ browserType, server }) => {+test('CD-031 should print custom ws close error', async ({ browserType, server }) => {server.onceWebSocketConnection((ws, request) => {ws.on('message', message => {ws.close(4123, 'Oh my!');@@ -768,7 +768,7 @@ test('should print custom ws close error', async ({ browserType, server }) => {expect(error.message).toContain(`Browser logs:\n\nOh my!\n`);});-test('should not reuse utility worlds between two clients', async ({ browserType, toImpl }, testInfo) => {+test('CD-032 should not reuse utility worlds between two clients', async ({ browserType, toImpl }, testInfo) => {const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -796,7 +796,7 @@ test('should not reuse utility worlds between two clients', async ({ browserType}});-test('should get title and URL of existing page', async ({ browserType, mode, server }, testInfo) => {+test('CD-033 should get title and URL of existing page', async ({ browserType, mode, server }, testInfo) => {const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({args: ['--remote-debugging-port=' + port]@@ -833,7 +833,7 @@ test('should get title and URL of existing page', async ({ browserType, mode, se}});-test('should skip default overrides with noDefaults', async ({ browserType, mode, server }, testInfo) => {+test('CD-034 should skip default overrides with noDefaults', async ({ browserType, mode, server }, testInfo) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40158' });const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({@@ -866,7 +866,7 @@ test('should skip default overrides with noDefaults', async ({ browserType, mode}});-test('noDefaults should not affect new contexts', async ({ browserType, mode, server }, testInfo) => {+test('CD-035 noDefaults should not affect new contexts', async ({ browserType, mode, server }, testInfo) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40158' });const port = 9339 + testInfo.workerIndex;const browserServer = await browserType.launch({@@ -891,7 +891,7 @@ test('noDefaults should not affect new contexts', async ({ browserType, mode, se}});-test('should connect over CDP using a ConnectionTransport', async ({ browserType, mode, server }, testInfo) => {+test('CD-036 should connect over CDP using a ConnectionTransport', async ({ browserType, mode, server }, testInfo) => {test.skip(mode !== 'default', 'Passing a transport to connectOverCDP is only available in-process');const port = 9339 + testInfo.workerIndex;diff --git a/tests/library/chromium/connect-to-worker.spec.ts b/tests/library/chromium/connect-to-worker.spec.tsindex 11acb2a5d5..1969f5db80 100644--- a/tests/library/chromium/connect-to-worker.spec.ts+++ b/tests/library/chromium/connect-to-worker.spec.ts@@ -16,7 +16,7 @@import { playwrightTest as test, expect } from '../../config/browserTest';-test('should connect, evaluate, receive console and disconnect', async ({ browserType, childProcess }) => {+test('CR-043 should connect, evaluate, receive console and disconnect', async ({ browserType, childProcess }) => {const child = childProcess({ command: [process.execPath, '--inspect-brk=0', '-e', 'console.log("hello from node"); setTimeout(() => {}, 1e9)'] });await child.waitForOutput('Debugger listening on ws://');const endpoint = child.output.match(/Debugger listening on (ws:\/\/\S+)/)![1];@@ -34,7 +34,7 @@ test('should connect, evaluate, receive console and disconnect', async ({ browseawait closePromise;});-test('should receive close when node process exits', async ({ browserType, childProcess }) => {+test('CR-044 should receive close when node process exits', async ({ browserType, childProcess }) => {const child = childProcess({ command: [process.execPath, '--inspect-brk=0', '-e', 'setTimeout(() => {}, 1e9)'] });await child.waitForOutput('Debugger listening on ws://');const endpoint = child.output.match(/Debugger listening on (ws:\/\/\S+)/)![1];diff --git a/tests/library/chromium/css-coverage.spec.ts b/tests/library/chromium/css-coverage.spec.tsindex 105558754e..e188f641c4 100644--- a/tests/library/chromium/css-coverage.spec.ts+++ b/tests/library/chromium/css-coverage.spec.ts@@ -17,7 +17,7 @@import { chromiumVersionLessThan } from '../../config/utils';import { contextTest as it, expect } from '../../config/browserTest';-it('should work', async function({ page, server }) {+it('CV-008 should work', async function({ page, server }) {await page.coverage.startCSSCoverage();await page.goto(server.PREFIX + '/csscoverage/simple.html');const coverage = await page.coverage.stopCSSCoverage();@@ -30,7 +30,7 @@ it('should work', async function({ page, server }) {expect(coverage[0].text.substring(range.start, range.end)).toBe('div { color: green; }');});-it('should report sourceURLs', async function({ page, server }) {+it('CV-009 should report sourceURLs', async function({ page, server }) {await page.coverage.startCSSCoverage();await page.goto(server.PREFIX + '/csscoverage/sourceurl.html');const coverage = await page.coverage.stopCSSCoverage();@@ -38,7 +38,7 @@ it('should report sourceURLs', async function({ page, server }) {expect(coverage[0].url).toBe('nicename.css');});-it('should report multiple stylesheets', async function({ page, server }) {+it('CV-010 should report multiple stylesheets', async function({ page, server }) {await page.coverage.startCSSCoverage();await page.goto(server.PREFIX + '/csscoverage/multiple.html');const coverage = await page.coverage.stopCSSCoverage();@@ -48,7 +48,7 @@ it('should report multiple stylesheets', async function({ page, server }) {expect(coverage[1].url).toContain('/csscoverage/stylesheet2.css');});-it('should report stylesheets that have no coverage', async function({ page, server }) {+it('CV-011 should report stylesheets that have no coverage', async function({ page, server }) {await page.coverage.startCSSCoverage();await page.goto(server.PREFIX + '/csscoverage/unused.html');const coverage = await page.coverage.stopCSSCoverage();@@ -57,7 +57,7 @@ it('should report stylesheets that have no coverage', async function({ page, serexpect(coverage[0].ranges.length).toBe(0);});-it('should work with media queries', async function({ page, server, browserVersion }) {+it('CV-012 should work with media queries', async function({ page, server, browserVersion }) {it.skip(chromiumVersionLessThan(browserVersion, '115.0.5762.0'), 'https://chromium-review.googlesource.com/c/chromium/src/+/4508957');await page.coverage.startCSSCoverage();await page.goto(server.PREFIX + '/csscoverage/media.html');@@ -70,7 +70,7 @@ it('should work with media queries', async function({ page, server, browserVersi]);});-it('should work with complicated usecases', async function({ page, server, browserVersion }) {+it('CV-013 should work with complicated usecases', async function({ page, server, browserVersion }) {it.skip(chromiumVersionLessThan(browserVersion, '115.0.5762.0'), 'https://chromium-review.googlesource.com/c/chromium/src/+/4508957');await page.coverage.startCSSCoverage();await page.goto(server.PREFIX + '/csscoverage/involved.html');@@ -99,7 +99,7 @@ it('should work with complicated usecases', async function({ page, server, brows);});-it('should ignore injected stylesheets', async function({ page, server }) {+it('CV-014 should ignore injected stylesheets', async function({ page, server }) {await page.coverage.startCSSCoverage();await page.addStyleTag({ content: 'body { margin: 10px;}' });// trigger style recalc@@ -109,7 +109,7 @@ it('should ignore injected stylesheets', async function({ page, server }) {expect(coverage.length).toBe(0);});-it('should report stylesheets across navigations', async function({ page, server }) {+it('CV-015 should report stylesheets across navigations', async function({ page, server }) {await page.coverage.startCSSCoverage({ resetOnNavigation: false });await page.goto(server.PREFIX + '/csscoverage/multiple.html');await page.goto(server.EMPTY_PAGE);@@ -117,7 +117,7 @@ it('should report stylesheets across navigations', async function({ page, serverexpect(coverage.length).toBe(2);});-it('should NOT report scripts across navigations', async function({ page, server }) {+it('CV-016 should NOT report scripts across navigations', async function({ page, server }) {await page.coverage.startCSSCoverage(); // Enabled by default.await page.goto(server.PREFIX + '/csscoverage/multiple.html');await page.goto(server.EMPTY_PAGE);@@ -125,7 +125,7 @@ it('should NOT report scripts across navigations', async function({ page, serverexpect(coverage.length).toBe(0);});-it('should work with a recently loaded stylesheet', async function({ page, server }) {+it('CV-017 should work with a recently loaded stylesheet', async function({ page, server }) {await page.coverage.startCSSCoverage();await page.evaluate(async url => {document.body.textContent = 'hello, world';diff --git a/tests/library/chromium/disable-web-security.spec.ts b/tests/library/chromium/disable-web-security.spec.tsindex fab5599a76..44054d7e5f 100644--- a/tests/library/chromium/disable-web-security.spec.ts+++ b/tests/library/chromium/disable-web-security.spec.ts@@ -23,7 +23,7 @@ it.use({}});-it('test utility world in popup w/ --disable-web-security', async ({ page, server }) => {+it('CR-045 test utility world in popup w/ --disable-web-security', async ({ page, server }) => {server.setRoute('/main.html', (req, res) => {res.writeHead(200, {'Content-Type': 'text/html'@@ -44,7 +44,7 @@ it('test utility world in popup w/ --disable-web-security', async ({ page, serveawait expect(page1).toHaveURL(/target/);});-it('test init script w/ --disable-web-security', async ({ page, server }) => {+it('CR-046 test init script w/ --disable-web-security', async ({ page, server }) => {server.setRoute('/main.html', (req, res) => {res.writeHead(200, {'Content-Type': 'text/html'diff --git a/tests/library/chromium/extensions.spec.ts b/tests/library/chromium/extensions.spec.tsindex 3194d5554c..b0d85c02ed 100644--- a/tests/library/chromium/extensions.spec.ts+++ b/tests/library/chromium/extensions.spec.ts@@ -42,7 +42,7 @@ it.skip(({ isHeadlessShell }) => isHeadlessShell, 'Headless Shell has no supportit.describe('MV3', () => {it.skip(({ channel }) => channel?.startsWith('chrome'), '--load-extension is not supported in Chrome anymore. https://groups.google.com/a/chromium.org/g/chromium-extensions/c/1-g8EFx2BBY/m/S0ET5wPjCAAJ');- it('should support service worker stop and restart lifecycle', {+ it('CR-036 should support service worker stop and restart lifecycle', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39475' }}, async ({ launchPersistentContext, asset }) => {const extensionPath = asset('extension-mv3-sw-lifecycle');@@ -90,7 +90,7 @@ it.describe('MV3', () => {await context.close();});- it('should give access to the service worker', async ({ launchPersistentContext, asset }) => {+ it('CR-037 should give access to the service worker', async ({ launchPersistentContext, asset }) => {const extensionPath = asset('extension-mv3-simple');const context = await launchPersistentContext(extensionPath);const serviceWorkers = context.serviceWorkers();@@ -102,7 +102,7 @@ it.describe('MV3', () => {expect(context.backgroundPages().length).toBe(0);});- it('should give access to the service worker when recording video', async ({ launchPersistentContext, asset }, testInfo) => {+ it('CR-038 should give access to the service worker when recording video', async ({ launchPersistentContext, asset }, testInfo) => {const extensionPath = asset('extension-mv3-simple');const context = await launchPersistentContext(extensionPath, {recordVideo: {@@ -117,7 +117,7 @@ it.describe('MV3', () => {await context.close();});- it('should support request/response events in the service worker', async ({ launchPersistentContext, asset, server, browserMajorVersion }) => {+ it('CR-039 should support request/response events in the service worker', async ({ launchPersistentContext, asset, server, browserMajorVersion }) => {it.skip(browserMajorVersion < 143, 'needs workerScriptLoaded event');server.setRoute('/empty.html', (req, res) => {@@ -152,7 +152,7 @@ it.describe('MV3', () => {await context.close();});- it('should report console messages from content script', {+ it('CR-040 should report console messages from content script', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32762' }}, async ({ launchPersistentContext, asset, server }) => {const extensionPath = asset('extension-mv3-with-logging');@@ -165,7 +165,7 @@ it.describe('MV3', () => {await context.close();});- it('should use custom userAgent in service worker fetch requests', async ({ launchPersistentContext, asset, server }) => {+ it('CR-041 should use custom userAgent in service worker fetch requests', async ({ launchPersistentContext, asset, server }) => {server.setRoute('/ua-echo', (req, res) => {res.writeHead(200, { 'Content-Type': 'text/plain' });res.end(req.headers['user-agent']);diff --git a/tests/library/chromium/js-coverage.spec.ts b/tests/library/chromium/js-coverage.spec.tsindex 7acc69386f..beb3f8278a 100644--- a/tests/library/chromium/js-coverage.spec.ts+++ b/tests/library/chromium/js-coverage.spec.ts@@ -18,7 +18,7 @@ import { contextTest as it, expect } from '../../config/browserTest';it.skip(({ trace }) => trace === 'on');-it('should work', async function({ page, server }) {+it('CV-001 should work', async function({ page, server }) {await page.coverage.startJSCoverage();await page.goto(server.PREFIX + '/jscoverage/simple.html', { waitUntil: 'load' });const coverage = await page.coverage.stopJSCoverage();@@ -27,7 +27,7 @@ it('should work', async function({ page, server }) {expect(coverage[0].functions.find(f => f.functionName === 'foo').ranges[0].count).toEqual(1);});-it('should report sourceURLs', async function({ page, server }) {+it('CV-002 should report sourceURLs', async function({ page, server }) {await page.coverage.startJSCoverage();await page.goto(server.PREFIX + '/jscoverage/sourceurl.html');const coverage = await page.coverage.stopJSCoverage();@@ -35,14 +35,14 @@ it('should report sourceURLs', async function({ page, server }) {expect(coverage[0].url).toBe('nicename.js');});-it('should ignore eval() scripts by default', async function({ page, server }) {+it('CV-003 should ignore eval() scripts by default', async function({ page, server }) {await page.coverage.startJSCoverage();await page.goto(server.PREFIX + '/jscoverage/eval.html');const coverage = await page.coverage.stopJSCoverage();expect(coverage.length).toBe(1);});-it('shouldn\'t ignore eval() scripts if reportAnonymousScripts is true', async function({ page, server }) {+it('CV-004 shouldn\'t ignore eval() scripts if reportAnonymousScripts is true', async function({ page, server }) {it.skip(!!process.env.PW_CLOCK);await page.coverage.startJSCoverage({ reportAnonymousScripts: true });await page.goto(server.PREFIX + '/jscoverage/eval.html');@@ -53,7 +53,7 @@ it('shouldn\'t ignore eval() scripts if reportAnonymousScripts is true', async f}));});-it('should report multiple scripts', async function({ page, server }) {+it('CV-005 should report multiple scripts', async function({ page, server }) {await page.coverage.startJSCoverage();await page.goto(server.PREFIX + '/jscoverage/multiple.html');const coverage = await page.coverage.stopJSCoverage();@@ -63,7 +63,7 @@ it('should report multiple scripts', async function({ page, server }) {expect(coverage[1].url).toContain('/jscoverage/script2.js');});-it('should NOT report scripts across navigations when enabled', async function({ page, server }) {+it('CV-006 should NOT report scripts across navigations when enabled', async function({ page, server }) {await page.coverage.startJSCoverage(); // Enabled by default.await page.goto(server.PREFIX + '/jscoverage/multiple.html');await page.goto(server.EMPTY_PAGE);@@ -71,7 +71,7 @@ it('should NOT report scripts across navigations when enabled', async function({expect(coverage.length).toBe(0);});-it('should not hang when there is a debugger statement', async function({ page, server }) {+it('CV-007 should not hang when there is a debugger statement', async function({ page, server }) {await page.coverage.startJSCoverage();await page.goto(server.EMPTY_PAGE);await page.evaluate(() => {diff --git a/tests/library/chromium/launcher.spec.ts b/tests/library/chromium/launcher.spec.tsindex 6c63b03c7a..53a49ae699 100644--- a/tests/library/chromium/launcher.spec.ts+++ b/tests/library/chromium/launcher.spec.ts@@ -16,7 +16,7 @@import { playwrightTest as it, expect } from '../../config/browserTest';-it('should throw with remote-debugging-pipe argument', async ({ browserType, mode }) => {+it('CR-033 should throw with remote-debugging-pipe argument', async ({ browserType, mode }) => {it.skip(mode !== 'default');const options: any = {};@@ -25,7 +25,7 @@ it('should throw with remote-debugging-pipe argument', async ({ browserType, modexpect(error.message).toContain('Playwright manages remote debugging connection itself');});-it('should not throw with remote-debugging-port argument', async ({ browserType, mode }) => {+it('CR-034 should not throw with remote-debugging-port argument', async ({ browserType, mode }) => {it.skip(mode !== 'default');const options: any = {};@@ -34,7 +34,7 @@ it('should not throw with remote-debugging-port argument', async ({ browserType,await browser.close();});-it('should not create pages automatically', async ({ browserType }) => {+it('CR-035 should not create pages automatically', async ({ browserType }) => {const browser = await browserType.launch();const browserSession = await browser.newBrowserCDPSession();const targets = [];diff --git a/tests/library/chromium/oopif.spec.ts b/tests/library/chromium/oopif.spec.tsindex cb37a8576a..db7656f8c4 100644--- a/tests/library/chromium/oopif.spec.ts+++ b/tests/library/chromium/oopif.spec.ts@@ -24,14 +24,14 @@ it.use({}});-it('should report oopif frames', async function({ page, browser, server }) {+it('OO-001 should report oopif frames', async function({ page, browser, server }) {await page.goto(server.PREFIX + '/dynamic-oopif.html');await assertOOPIFCount(browser, 1);expect(page.frames().length).toBe(2);expect(await page.frames()[1].evaluate(() => '' + location.href)).toBe(server.CROSS_PROCESS_PREFIX + '/grid.html');});-it('should handle oopif detach', async function({ page, browser, server }) {+it('OO-002 should handle oopif detach', async function({ page, browser, server }) {await page.goto(server.PREFIX + '/dynamic-oopif.html');await assertOOPIFCount(browser, 1);expect(page.frames().length).toBe(2);@@ -44,7 +44,7 @@ it('should handle oopif detach', async function({ page, browser, server }) {expect(detachedFrame).toBe(frame);});-it('should remove workers of a detached oopif', async function({ page, browser, server }) {+it('OO-003 should remove workers of a detached oopif', async function({ page, browser, server }) {await page.goto(server.EMPTY_PAGE);const [worker] = await Promise.all([page.waitForEvent('worker'),@@ -59,7 +59,7 @@ it('should remove workers of a detached oopif', async function({ page, browser,expect(page.workers().length).toBe(0);});-it('should not hang in unrouteAll when oopif worker is gone', async function({ page, context, browser, server }) {+it('OO-004 should not hang in unrouteAll when oopif worker is gone', async function({ page, context, browser, server }) {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42278' });await context.route('**/*', route => route.continue());await page.goto(server.EMPTY_PAGE);@@ -72,7 +72,7 @@ it('should not hang in unrouteAll when oopif worker is gone', async function({ pawait context.unrouteAll();});-it('should handle remote -> local -> remote transitions', async function({ page, browser, server }) {+it('OO-005 should handle remote -> local -> remote transitions', async function({ page, browser, server }) {await page.goto(server.PREFIX + '/dynamic-oopif.html');expect(page.frames().length).toBe(2);await assertOOPIFCount(browser, 1);@@ -91,7 +91,7 @@ it('should handle remote -> local -> remote transitions', async function({ page,await assertOOPIFCount(browser, 1);});-it.fixme('should get the proper viewport', async ({ page, browser, server }) => {+it.fixme('OO-006 should get the proper viewport', async ({ page, browser, server }) => {expect(page.viewportSize()).toEqual({ width: 1280, height: 720 });await page.goto(server.PREFIX + '/dynamic-oopif.html');expect(page.frames().length).toBe(2);@@ -110,7 +110,7 @@ it.fixme('should get the proper viewport', async ({ page, browser, server }) =>expect(await oopif.evaluate(() => 'ontouchstart' in window)).toBe(false);});-it('should expose function', async ({ page, browser, server }) => {+it('OO-007 should expose function', async ({ page, browser, server }) => {await page.goto(server.PREFIX + '/dynamic-oopif.html');expect(page.frames().length).toBe(2);await assertOOPIFCount(browser, 1);@@ -122,7 +122,7 @@ it('should expose function', async ({ page, browser, server }) => {expect(result).toBe(36);});-it('should emulate media', async ({ page, browser, server }) => {+it('OO-008 should emulate media', async ({ page, browser, server }) => {await page.goto(server.PREFIX + '/dynamic-oopif.html');expect(page.frames().length).toBe(2);await assertOOPIFCount(browser, 1);@@ -132,7 +132,7 @@ it('should emulate media', async ({ page, browser, server }) => {expect(await oopif.evaluate(() => matchMedia('(prefers-color-scheme: dark)').matches)).toBe(true);});-it('should emulate offline', async ({ page, browser, server }) => {+it('OO-009 should emulate offline', async ({ page, browser, server }) => {await page.goto(server.PREFIX + '/dynamic-oopif.html');expect(page.frames().length).toBe(2);await assertOOPIFCount(browser, 1);@@ -142,7 +142,7 @@ it('should emulate offline', async ({ page, browser, server }) => {expect(await oopif.evaluate(() => navigator.onLine)).toBe(false);});-it('should support context options', async ({ browser, server, playwright }) => {+it('OO-010 should support context options', async ({ browser, server, playwright }) => {const iPhone = playwright.devices['iPhone 6'];const context = await browser.newContext({ ...iPhone, timezoneId: 'America/Jamaica', locale: 'fr-CH', userAgent: 'UA' });const page = await context.newPage();@@ -164,7 +164,7 @@ it('should support context options', async ({ browser, server, playwright }) =>await context.close();});-it('should respect route', async ({ page, browser, server }) => {+it('OO-011 should respect route', async ({ page, browser, server }) => {let intercepted = false;await page.route('**/digits/0.png', route => {intercepted = true;@@ -176,7 +176,7 @@ it('should respect route', async ({ page, browser, server }) => {expect(intercepted).toBe(true);});-it('should take screenshot', async ({ page, browser, server }) => {+it('OO-012 should take screenshot', async ({ page, browser, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/dynamic-oopif.html');expect(page.frames().length).toBe(2);@@ -184,13 +184,13 @@ it('should take screenshot', async ({ page, browser, server }) => {expect(await page.screenshot()).toMatchSnapshot('screenshot-oopif.png');});-it('should load oopif iframes with subresources and route', async function({ page, browser, server }) {+it('OO-013 should load oopif iframes with subresources and route', async function({ page, browser, server }) {await page.route('**/*', route => route.continue());await page.goto(server.PREFIX + '/dynamic-oopif.html');await assertOOPIFCount(browser, 1);});-it('should report main requests', async function({ page, browser, server }) {+it('OO-014 should report main requests', async function({ page, browser, server }) {const requestFrames: Frame[] = [];page.on('request', r => requestFrames.push(r.frame()));const finishedFrames: Frame[] = [];@@ -228,7 +228,7 @@ it('should report main requests', async function({ page, browser, server }) {expect(finishedFrames[2]).toBe(grandChild);});-it('should support exposeFunction', async function({ page, browser, server }) {+it('OO-015 should support exposeFunction', async function({ page, browser, server }) {await page.context().exposeFunction('dec', (a: number) => a - 1);await page.exposeFunction('inc', (a: number) => a + 1);await page.goto(server.PREFIX + '/dynamic-oopif.html');@@ -240,7 +240,7 @@ it('should support exposeFunction', async function({ page, browser, server }) {expect(await page.frames()[1].evaluate(() => (window as any)['dec'](4))).toBe(3);});-it('should support addInitScript', async function({ page, browser, server }) {+it('OO-016 should support addInitScript', async function({ page, browser, server }) {await page.context().addInitScript(() => (window as any)['bar'] = 17);await page.addInitScript(() => (window as any)['foo'] = 42);await page.goto(server.PREFIX + '/dynamic-oopif.html');@@ -252,14 +252,14 @@ it('should support addInitScript', async function({ page, browser, server }) {expect(await page.frames()[1].evaluate(() => (window as any)['bar'])).toBe(17);});// @see https://github.com/microsoft/playwright/issues/1240-it('should click a button when it overlays oopif', async function({ page, browser, server }) {+it('OO-017 should click a button when it overlays oopif', async function({ page, browser, server }) {await page.goto(server.PREFIX + '/button-overlay-oopif.html');await assertOOPIFCount(browser, 1);await page.click('button');expect(await page.evaluate(() => (window as any)['BUTTON_CLICKED'])).toBe(true);});-it('should report google.com frame with headed', async ({ browserType, server, channel }) => {+it('OO-018 should report google.com frame with headed', async ({ browserType, server, channel }) => {it.skip(channel === 'chromium-headless-shell', 'Headless Shell does not support headed mode');// @see https://github.com/GoogleChrome/puppeteer/issues/2548// https://google.com is isolated by default in Chromium embedder.@@ -285,7 +285,7 @@ it('should report google.com frame with headed', async ({ browserType, server, cawait browser.close();});-it('ElementHandle.boundingBox() should work', async function({ page, browser, server }) {+it('OO-019 ElementHandle.boundingBox() should work', async function({ page, browser, server }) {await page.goto(server.PREFIX + '/dynamic-oopif.html');await page.$eval('iframe', iframe => {iframe.style.width = '520px';@@ -308,7 +308,7 @@ it('ElementHandle.boundingBox() should work', async function({ page, browser, seawait expect.poll(() => handle2!.boundingBox()).toEqual({ x: 100 + 42, y: 50 + 17, width: 50, height: 50 });});-it('should click', async function({ page, browser, server }) {+it('OO-020 should click', async function({ page, browser, server }) {await page.goto(server.PREFIX + '/dynamic-oopif.html');await page.$eval('iframe', iframe => {iframe.style.width = '500px';@@ -325,7 +325,7 @@ it('should click', async function({ page, browser, server }) {expect(await handle1.evaluate(() => (window as any)['_clicked'])).toBe(true);});-it('contentFrame should work', async ({ page, browser, server }) => {+it('OO-021 contentFrame should work', async ({ page, browser, server }) => {await page.goto(server.PREFIX + '/dynamic-oopif.html');expect(page.frames().length).toBe(2);await assertOOPIFCount(browser, 1);@@ -335,7 +335,7 @@ it('contentFrame should work', async ({ page, browser, server }) => {expect(await content.locator('div').count()).toBe(200);});-it('should allow cdp sessions on oopifs', async function({ page, browser, server }) {+it('OO-022 should allow cdp sessions on oopifs', async function({ page, browser, server }) {await page.goto(server.PREFIX + '/dynamic-oopif.html');await assertOOPIFCount(browser, 1);expect(page.frames().length).toBe(2);@@ -350,7 +350,7 @@ it('should allow cdp sessions on oopifs', async function({ page, browser, serverexpect(JSON.stringify(oopif)).toContain('./digits/1.png');});-it('should emit filechooser event for iframe', async ({ page, server, browser }) => {+it('OO-023 should emit filechooser event for iframe', async ({ page, server, browser }) => {// Add listener before OOPIF is created.const chooserPromise = page.waitForEvent('filechooser');await page.goto(server.PREFIX + '/dynamic-oopif.html');@@ -365,7 +365,7 @@ it('should emit filechooser event for iframe', async ({ page, server, browser })expect(chooser).toBeTruthy();});-it('should be able to click in iframe', async ({ page, server, browser }) => {+it('OO-024 should be able to click in iframe', async ({ page, server, browser }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28023' });await page.goto(server.PREFIX + '/dynamic-oopif.html');await assertOOPIFCount(browser, 1);@@ -379,7 +379,7 @@ it('should be able to click in iframe', async ({ page, server, browser }) => {expect(message.text()).toBe('clicked');});-it('should not throw on exposeFunction when oopif detaches', async ({ page, browser, server }) => {+it('OO-025 should not throw on exposeFunction when oopif detaches', async ({ page, browser, server }) => {await page.goto(server.PREFIX + '/dynamic-oopif.html');await assertOOPIFCount(browser, 1);await Promise.all([@@ -389,7 +389,7 @@ it('should not throw on exposeFunction when oopif detaches', async ({ page, browexpect(await page.evaluate(() => (window as any).myFunc())).toBe(2022);});-it('should intercept response body from oopif', async function({ page, browser, server }) {+it('OO-026 should intercept response body from oopif', async function({ page, browser, server }) {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/20809' });const [response] = await Promise.all([page.waitForResponse('**/grid.html'),@@ -398,7 +398,7 @@ it('should intercept response body from oopif', async function({ page, browser,expect(await response.text()).toBeTruthy();});-it('should navigate a local frame to oopif with frame.goto', async ({ page, browser, server }) => {+it('OO-027 should navigate a local frame to oopif with frame.goto', async ({ page, browser, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');await assertOOPIFCount(browser, 0);const frame = page.frames()[1];@@ -417,7 +417,7 @@ it('should navigate a local frame to oopif with frame.goto', async ({ page, browexpect(page.frames().length).toBe(2);});-it('should allow to re-connect to OOPIFs with CDP when iframes were there already', async ({ browserType, server }) => {+it('OO-028 should allow to re-connect to OOPIFs with CDP when iframes were there already', async ({ browserType, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36095' });it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/17656' });it.skip(!!process.env.PWTEST_CHANNEL, 'Test default channel only');@@ -436,7 +436,7 @@ it('should allow to re-connect to OOPIFs with CDP when iframes were there alreadawait hostBrowser.close();});-it('should report the whole frame tree when connecting over CDP to nested OOPIFs', async ({ browserType, server }) => {+it('OO-029 should report the whole frame tree when connecting over CDP to nested OOPIFs', async ({ browserType, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42955' });it.skip(!!process.env.PWTEST_CHANNEL, 'Test default channel only');diff --git a/tests/library/chromium/session.spec.ts b/tests/library/chromium/session.spec.tsindex c2c1726ea5..47d85940ec 100644--- a/tests/library/chromium/session.spec.ts+++ b/tests/library/chromium/session.spec.ts@@ -18,7 +18,7 @@ import { kTargetClosedErrorMessage } from '../../config/errors';import { contextTest as it, expect } from '../../config/browserTest';import { browserTest } from '../../config/browserTest';-it('should work', async function({ page }) {+it('CD-037 should work', async function({ page }) {const client = await page.context().newCDPSession(page);await Promise.all([@@ -29,7 +29,7 @@ it('should work', async function({ page }) {expect(foo).toBe('bar');});-it('should respect timeout and signal options', async function({ page, playwright }) {+it('CD-038 should respect timeout and signal options', async function({ page, playwright }) {const client = await page.context().newCDPSession(page);const evalResponse = await client.send('Runtime.evaluate', { expression: '1 + 2', returnByValue: true }, { timeout: 5000 });expect(evalResponse.result.value).toBe(3);@@ -46,7 +46,7 @@ it('should respect timeout and signal options', async function({ page, playwrighexpect(abortError.cause).toBe(reason);});-it('should send events', async function({ page, server }) {+it('CD-039 should send events', async function({ page, server }) {const client = await page.context().newCDPSession(page);await client.send('Network.enable');const events = [];@@ -55,7 +55,7 @@ it('should send events', async function({ page, server }) {expect(events.length).toBe(1);});-it('should only accept a page or frame', async function({ page }) {+it('CD-040 should only accept a page or frame', async function({ page }) {// @ts-expect-error newCDPSession expects a Page or Frameconst error = await page.context().newCDPSession(page.context()).catch(e => e);expect(error.message).toContain('page: expected Page or Frame');@@ -66,7 +66,7 @@ it('should only accept a page or frame', async function({ page }) {expect(errorAlt.message).toContain('page: expected Page or Frame');});-it('should enable and disable domains independently', async function({ page }) {+it('CD-041 should enable and disable domains independently', async function({ page }) {const client = await page.context().newCDPSession(page);await client.send('Runtime.enable');await client.send('Debugger.enable');@@ -83,7 +83,7 @@ it('should enable and disable domains independently', async function({ page }) {]);});-it('should be able to detach session', async function({ page }) {+it('CD-042 should be able to detach session', async function({ page }) {const client = await page.context().newCDPSession(page);await client.send('Runtime.enable');const evalResponse = await client.send('Runtime.evaluate', { expression: '1 + 2', returnByValue: true });@@ -98,7 +98,7 @@ it('should be able to detach session', async function({ page }) {expect(error.message).toContain('Target page, context or browser has been closed');});-it('should throw nice errors', async function({ page }) {+it('CD-043 should throw nice errors', async function({ page }) {const client = await page.context().newCDPSession(page);const error = await theSourceOfTheProblems().catch(error => error);expect(error.stack).toContain('theSourceOfTheProblems');@@ -110,7 +110,7 @@ it('should throw nice errors', async function({ page }) {}});-it('should work with main frame', async function({ page }) {+it('CD-044 should work with main frame', async function({ page }) {const client = await page.context().newCDPSession(page.mainFrame());await Promise.all([@@ -121,7 +121,7 @@ it('should work with main frame', async function({ page }) {expect(foo).toBe('bar');});-it('should throw if target is part of main', async function({ server, page }){+it('CD-045 should throw if target is part of main', async function({ server, page }){await page.goto(server.PREFIX + '/frames/one-frame.html');expect(page.frames()[0].url()).toContain('/frames/one-frame.html');expect(page.frames()[1].url()).toContain('/frames/frame.html');@@ -130,7 +130,7 @@ it('should throw if target is part of main', async function({ server, page }){expect(error.message).toContain(`This frame does not have a separate CDP session, it is a part of the parent frame's session`);});-browserTest('should not break page.close()', async function({ browser }) {+browserTest('CD-046 should not break page.close()', async function({ browser }) {const context = await browser.newContext();const page = await context.newPage();const session = await page.context().newCDPSession(page);@@ -139,7 +139,7 @@ browserTest('should not break page.close()', async function({ browser }) {await context.close();});-browserTest('should detach when page closes', async function({ browser }) {+browserTest('CD-047 should detach when page closes', async function({ browser }) {const context = await browser.newContext();const page = await context.newPage();const session = await context.newCDPSession(page);@@ -150,7 +150,7 @@ browserTest('should detach when page closes', async function({ browser }) {await context.close();});-browserTest('should reject protocol calls when page closes', async function({ browser }) {+browserTest('CD-048 should reject protocol calls when page closes', async function({ browser }) {const context = await browser.newContext();const page = await context.newPage();const session = await context.newCDPSession(page);@@ -163,7 +163,7 @@ browserTest('should reject protocol calls when page closes', async function({ brawait context.close();});-it('should emit event for each CDP event', async function({ page, server }) {+it('CD-049 should emit event for each CDP event', async function({ page, server }) {const client = await page.context().newCDPSession(page);await client.send('Network.enable');const events = [];@@ -175,7 +175,7 @@ it('should emit event for each CDP event', async function({ page, server }) {expect(requestEvent.params.request.url).toBe(server.EMPTY_PAGE);});-it('should emit close event when session is detached', async function({ page }) {+it('CD-050 should emit close event when session is detached', async function({ page }) {const client = await page.context().newCDPSession(page);let closedSession: any = null;client.on('close', session => closedSession = session);@@ -183,7 +183,7 @@ it('should emit close event when session is detached', async function({ page })expect(closedSession).toBe(client);});-browserTest('should emit close event when page closes', async function({ browser }) {+browserTest('CD-051 should emit close event when page closes', async function({ browser }) {const context = await browser.newContext();const page = await context.newPage();const session = await context.newCDPSession(page);@@ -194,7 +194,7 @@ browserTest('should emit close event when page closes', async function({ browserawait context.close();});-browserTest('should work with newBrowserCDPSession', async function({ browser }) {+browserTest('CD-052 should work with newBrowserCDPSession', async function({ browser }) {const session = await browser.newBrowserCDPSession();const version = await session.send('Browser.getVersion');diff --git a/tests/library/chromium/tracing.spec.ts b/tests/library/chromium/tracing.spec.tsindex 7ab8ca1ea3..b85a1c2513 100644--- a/tests/library/chromium/tracing.spec.ts+++ b/tests/library/chromium/tracing.spec.ts@@ -19,7 +19,7 @@ import fs from 'fs';import path from 'path';import { rafraf } from '../../page/pageTest';-it('should output a trace', async ({ browser, server }, testInfo) => {+it('TR-043 should output a trace', async ({ browser, server }, testInfo) => {let warning = null;const warningHandler = w => warning = w;process.on('warning', warningHandler);@@ -37,7 +37,7 @@ it('should output a trace', async ({ browser, server }, testInfo) => {expect(warning).toBe(null);});-it('should create directories as needed', async ({ browser, server }, testInfo) => {+it('TR-044 should create directories as needed', async ({ browser, server }, testInfo) => {const page = await browser.newPage();const filePath = testInfo.outputPath(path.join('these', 'are', 'directories', 'trace.json'));await browser.startTracing(page, { screenshots: true, path: filePath });@@ -47,7 +47,7 @@ it('should create directories as needed', async ({ browser, server }, testInfo)await page.close();});-it('should run with custom categories if provided', async ({ browser }, testInfo) => {+it('TR-045 should run with custom categories if provided', async ({ browser }, testInfo) => {const page = await browser.newPage();const outputTraceFile = testInfo.outputPath(path.join(`trace.json`));await browser.startTracing(page, { path: outputTraceFile, categories: ['disabled-by-default-cc.debug'] });@@ -63,7 +63,7 @@ it('should run with custom categories if provided', async ({ browser }, testInfoawait page.close();});-it('should throw if tracing on two pages', async ({ browser }, testInfo) => {+it('TR-046 should throw if tracing on two pages', async ({ browser }, testInfo) => {const page = await browser.newPage();const outputTraceFile = testInfo.outputPath(path.join(`trace.json`));await browser.startTracing(page, { path: outputTraceFile });@@ -76,7 +76,7 @@ it('should throw if tracing on two pages', async ({ browser }, testInfo) => {await page.close();});-it('should return a buffer', async ({ browser, server }, testInfo) => {+it('TR-047 should return a buffer', async ({ browser, server }, testInfo) => {const page = await browser.newPage();const outputTraceFile = testInfo.outputPath(path.join(`trace.json`));await browser.startTracing(page, { screenshots: true, path: outputTraceFile });@@ -87,7 +87,7 @@ it('should return a buffer', async ({ browser, server }, testInfo) => {await page.close();});-it('should work without options', async ({ browser, server }) => {+it('TR-048 should work without options', async ({ browser, server }) => {const page = await browser.newPage();await browser.startTracing(page);await page.goto(server.PREFIX + '/grid.html');@@ -96,7 +96,7 @@ it('should work without options', async ({ browser, server }) => {await page.close();});-it('should support a buffer without a path', async ({ browser, server }) => {+it('TR-049 should support a buffer without a path', async ({ browser, server }) => {const page = await browser.newPage();await browser.startTracing(page, { screenshots: true });await page.goto(server.PREFIX + '/grid.html');diff --git a/tests/library/client-certificates.spec.ts b/tests/library/client-certificates.spec.tsindex 251512a023..9c93b5c6af 100644--- a/tests/library/client-certificates.spec.ts+++ b/tests/library/client-certificates.spec.ts@@ -92,12 +92,12 @@ const kValidationSubTests: [BrowserContextOptions, string][] = [];test.describe('fetch', () => {- test('validate input', async ({ playwright }) => {+ test('CC-001 validate input', async ({ playwright }) => {for (const [contextOptions, expected] of kValidationSubTests)await expect(playwright.request.newContext(contextOptions)).rejects.toThrow(expected);});- test('should fail with no client certificates provided', async ({ playwright, startCCServer }) => {+ test('CC-002 should fail with no client certificates provided', async ({ playwright, startCCServer }) => {const serverURL = await startCCServer();const request = await playwright.request.newContext({ ignoreHTTPSErrors: true });const response = await request.get(serverURL);@@ -106,7 +106,7 @@ test.describe('fetch', () => {await request.dispose();});- test('should keep supporting http', async ({ playwright, server, asset }) => {+ test('CC-003 should keep supporting http', async ({ playwright, server, asset }) => {const request = await playwright.request.newContext({ignoreHTTPSErrors: true,clientCertificates: [{@@ -122,7 +122,7 @@ test.describe('fetch', () => {await request.dispose();});- test('should throw with untrusted client certs', async ({ playwright, startCCServer, asset }) => {+ test('CC-004 should throw with untrusted client certs', async ({ playwright, startCCServer, asset }) => {const serverURL = await startCCServer();const request = await playwright.request.newContext({ignoreHTTPSErrors: true,@@ -139,7 +139,7 @@ test.describe('fetch', () => {await request.dispose();});- test('pass with trusted client certificates', async ({ playwright, startCCServer, asset }) => {+ test('CC-005 pass with trusted client certificates', async ({ playwright, startCCServer, asset }) => {const serverURL = await startCCServer();const request = await playwright.request.newContext({ignoreHTTPSErrors: true,@@ -156,7 +156,7 @@ test.describe('fetch', () => {await request.dispose();});- test('should not leak client certificate to cross-origin redirect target', async ({ playwright, startCCServer, asset }) => {+ test('CC-006 should not leak client certificate to cross-origin redirect target', async ({ playwright, startCCServer, asset }) => {const targetURL = await startCCServer();// Standalone HTTPS server (not cert-required) that 302-redirects to the cert-required server.@@ -190,7 +190,7 @@ test.describe('fetch', () => {await new Promise<void>(f => redirectServer.close(() => f()));});- test('pass with trusted client certificates in pfx format', async ({ playwright, startCCServer, asset }) => {+ test('CC-007 pass with trusted client certificates in pfx format', async ({ playwright, startCCServer, asset }) => {const serverURL = await startCCServer();const request = await playwright.request.newContext({ignoreHTTPSErrors: true,@@ -207,7 +207,7 @@ test.describe('fetch', () => {await request.dispose();});- test('pass with trusted client certificates and when a http proxy is used', async ({ playwright, startCCServer, proxyServer, asset }) => {+ test('CC-008 pass with trusted client certificates and when a http proxy is used', async ({ playwright, startCCServer, proxyServer, asset }) => {const serverURL = await startCCServer();proxyServer.forwardTo(parseInt(new URL(serverURL).port, 10), { allowConnectRequests: true });const request = await playwright.request.newContext({@@ -228,7 +228,7 @@ test.describe('fetch', () => {await request.dispose();});- test('pass with trusted client certificates and when a socks proxy is used', async ({ playwright, startCCServer, asset }) => {+ test('CC-009 pass with trusted client certificates and when a socks proxy is used', async ({ playwright, startCCServer, asset }) => {const serverURL = await startCCServer();const serverPort = parseInt(new URL(serverURL).port, 10);const { proxyServerAddr, closeProxyServer, connectHosts } = await setupSocksForwardingServer({@@ -255,7 +255,7 @@ test.describe('fetch', () => {await closeProxyServer();});- test('should throw a http error if the pfx passphrase is incorect', async ({ playwright, startCCServer, asset, browserName }) => {+ test('CC-010 should throw a http error if the pfx passphrase is incorect', async ({ playwright, startCCServer, asset, browserName }) => {const serverURL = await startCCServer();const request = await playwright.request.newContext({ignoreHTTPSErrors: true,@@ -269,7 +269,7 @@ test.describe('fetch', () => {await request.dispose();});- test('should fail with matching certificates in legacy pfx format', async ({ playwright, startCCServer, asset, browserName }) => {+ test('CC-011 should fail with matching certificates in legacy pfx format', async ({ playwright, startCCServer, asset, browserName }) => {const serverURL = await startCCServer();const request = await playwright.request.newContext({ignoreHTTPSErrors: true,@@ -283,7 +283,7 @@ test.describe('fetch', () => {await request.dispose();});- test('should work in the browser with request interception', async ({ browser, playwright, startCCServer, asset }) => {+ test('CC-012 should work in the browser with request interception', async ({ browser, playwright, startCCServer, asset }) => {const serverURL = await startCCServer();const request = await playwright.request.newContext({ignoreHTTPSErrors: true,@@ -307,12 +307,12 @@ test.describe('fetch', () => {test.describe('browser', () => {- test('validate input', async ({ browser }) => {+ test('CC-013 validate input', async ({ browser }) => {for (const [contextOptions, expected] of kValidationSubTests)await expect(browser.newContext(contextOptions)).rejects.toThrow(expected);});- test('should keep supporting http', async ({ browser, server, asset }) => {+ test('CC-014 should keep supporting http', async ({ browser, server, asset }) => {const page = await browser.newPage({clientCertificates: [{origin: new URL(server.PREFIX).origin,@@ -326,7 +326,7 @@ test.describe('browser', () => {await page.close();});- test('should pass through to non-matching origin with self-signed cert', async ({ browser, asset, httpsServer }) => {+ test('CC-015 should pass through to non-matching origin with self-signed cert', async ({ browser, asset, httpsServer }) => {httpsServer.setRoute('/hello.html', (req, res) => {res.writeHead(200, { 'Content-Type': 'text/html' });res.end('<html><body><div data-testid="message">hello</div></body></html>');@@ -343,7 +343,7 @@ test.describe('browser', () => {await page.close();});- test('should not intercept TLS for origins without a client certificate', {+ test('CC-016 should not intercept TLS for origins without a client certificate', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41106' },}, async ({ browser, asset, httpsServer }) => {// If the proxy intercepted this origin, the browser would see its self-signed cert (CN=localhost)@@ -362,7 +362,7 @@ test.describe('browser', () => {await page.close();});- test('should fail with no client certificates', async ({ browser, startCCServer, asset, browserName, isMac }) => {+ test('CC-017 should fail with no client certificates', async ({ browser, startCCServer, asset, browserName, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });const page = await browser.newPage({ignoreHTTPSErrors: true,@@ -377,7 +377,7 @@ test.describe('browser', () => {await page.close();});- test('should fail with self-signed client certificates', async ({ browser, startCCServer, asset, browserName, isMac }) => {+ test('CC-018 should fail with self-signed client certificates', async ({ browser, startCCServer, asset, browserName, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });const page = await browser.newPage({ignoreHTTPSErrors: true,@@ -392,7 +392,7 @@ test.describe('browser', () => {await page.close();});- test('should complete browser TLS handshake when server rejects client certificate after it', {+ test('CC-019 should complete browser TLS handshake when server rejects client certificate after it', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43092' },}, async ({ browser, startCCServer, asset, browserName, isMac }) => {const serverURL = await startCCServer({ rejectUnauthorized: true, useFakeLocalhost: browserName === 'webkit' && isMac });@@ -416,7 +416,7 @@ test.describe('browser', () => {await page.close();});- test('should pass with matching certificates', async ({ browser, startCCServer, asset, browserName, isMac }) => {+ test('CC-020 should pass with matching certificates', async ({ browser, startCCServer, asset, browserName, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });const page = await browser.newPage({ignoreHTTPSErrors: true,@@ -431,7 +431,7 @@ test.describe('browser', () => {await page.close();});- test('should pass with matching certificates when passing as content', async ({ browser, startCCServer, asset, browserName, isMac }) => {+ test('CC-021 should pass with matching certificates when passing as content', async ({ browser, startCCServer, asset, browserName, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });const page = await browser.newPage({ignoreHTTPSErrors: true,@@ -446,7 +446,7 @@ test.describe('browser', () => {await page.close();});- test('should pass with matching certificates and when a http proxy is used', async ({ browser, startCCServer, asset, browserName, proxyServer, isMac }) => {+ test('CC-022 should pass with matching certificates and when a http proxy is used', async ({ browser, startCCServer, asset, browserName, proxyServer, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });proxyServer.forwardTo(parseInt(new URL(serverURL).port, 10), { allowConnectRequests: true });const page = await browser.newPage({@@ -466,7 +466,7 @@ test.describe('browser', () => {await page.close();});- test('should pass with matching certificates and when a http proxy is used from env', async ({ mode, browser, startCCServer, asset, browserName, proxyServer, isMac }) => {+ test('CC-023 should pass with matching certificates and when a http proxy is used from env', async ({ mode, browser, startCCServer, asset, browserName, proxyServer, isMac }) => {test.skip(mode !== 'default', 'Out of process transport does not allow us to set env vars dynamically');process.env.HTTPS_PROXY = `http://localhost:${proxyServer.PORT}`;const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });@@ -488,7 +488,7 @@ test.describe('browser', () => {delete process.env.HTTPS_PROXY;});- test('should pass with matching certificates and when a http proxy is used from config but env is there', async ({ browser, startCCServer, asset, browserName, proxyServer, isMac }) => {+ test('CC-024 should pass with matching certificates and when a http proxy is used from config but env is there', async ({ browser, startCCServer, asset, browserName, proxyServer, isMac }) => {process.env.HTTPS_PROXY = `http://this-should-not-taken-into-account:4242`;const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });proxyServer.forwardTo(parseInt(new URL(serverURL).port, 10), { allowConnectRequests: true });@@ -510,7 +510,7 @@ test.describe('browser', () => {delete process.env.HTTPS_PROXY;});- test('should respect launch proxy and proxy bypass', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42806' } }, async ({ browserType, startCCServer, asset, browserName, proxyServer, isMac }) => {+ test('CC-025 should respect launch proxy and proxy bypass', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42806' } }, async ({ browserType, startCCServer, asset, browserName, proxyServer, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });const { origin, hostname, port } = new URL(serverURL);proxyServer.forwardTo(parseInt(port, 10), { allowConnectRequests: true });@@ -541,7 +541,7 @@ test.describe('browser', () => {await browser.close();});- test('should pass with matching certificates and when a socks proxy is used', async ({ browser, startCCServer, asset, browserName, isMac }) => {+ test('CC-026 should pass with matching certificates and when a socks proxy is used', async ({ browser, startCCServer, asset, browserName, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });const serverPort = parseInt(new URL(serverURL).port, 10);const { proxyServerAddr, closeProxyServer, connectHosts } = await setupSocksForwardingServer({@@ -567,7 +567,7 @@ test.describe('browser', () => {await closeProxyServer();});- test('should not hang on tls errors during TLS 1.2 handshake', async ({ browser, asset, platform, browserName }) => {+ test('CC-027 should not hang on tls errors during TLS 1.2 handshake', async ({ browser, asset, platform, browserName }) => {for (const tlsVersion of ['TLSv1.3', 'TLSv1.2'] as const) {await test.step(`TLS version: ${tlsVersion}`, async () => {const server = tls.createServer({@@ -609,7 +609,7 @@ test.describe('browser', () => {}});- test('should pass with matching certificates in pfx format', async ({ browser, startCCServer, asset, browserName, isMac }) => {+ test('CC-028 should pass with matching certificates in pfx format', async ({ browser, startCCServer, asset, browserName, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });const page = await browser.newPage({ignoreHTTPSErrors: true,@@ -624,7 +624,7 @@ test.describe('browser', () => {await page.close();});- test('should handle TLS renegotiation with client certificates', async ({ browser, asset, browserName, platform }) => {+ test('CC-029 should handle TLS renegotiation with client certificates', async ({ browser, asset, browserName, platform }) => {const server: https.Server = createHttpsServer({key: fs.readFileSync(asset('client-certificates/server/server_key.pem')),cert: fs.readFileSync(asset('client-certificates/server/server_cert.pem')),@@ -761,7 +761,7 @@ test.describe('browser', () => {await new Promise<void>(resolve => server.close(() => resolve()));});- test('should pass with matching certificates in pfx format when passing as content', async ({ browser, startCCServer, asset, browserName, isMac }) => {+ test('CC-030 should pass with matching certificates in pfx format when passing as content', async ({ browser, startCCServer, asset, browserName, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });const page = await browser.newPage({ignoreHTTPSErrors: true,@@ -776,7 +776,7 @@ test.describe('browser', () => {await page.close();});- test('should fail with matching certificates in legacy pfx format', async ({ browser, startCCServer, asset, browserName, isMac }) => {+ test('CC-031 should fail with matching certificates in legacy pfx format', async ({ browser, startCCServer, asset, browserName, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });await expect(browser.newPage({ignoreHTTPSErrors: true,@@ -788,7 +788,7 @@ test.describe('browser', () => {})).rejects.toThrow('Unsupported TLS certificate');});- test('should throw a http error if the pfx passphrase is incorect', async ({ browser, startCCServer, asset, browserName, isMac }) => {+ test('CC-032 should throw a http error if the pfx passphrase is incorect', async ({ browser, startCCServer, asset, browserName, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });await expect(browser.newPage({ignoreHTTPSErrors: true,@@ -800,7 +800,7 @@ test.describe('browser', () => {})).rejects.toThrow('Failed to load client certificate: mac verify failure');});- test('should pass with matching certificates on context APIRequestContext instance', async ({ browser, startCCServer, asset, browserName }) => {+ test('CC-033 should pass with matching certificates on context APIRequestContext instance', async ({ browser, startCCServer, asset, browserName }) => {const serverURL = await startCCServer();const baseOptions = {certPath: asset('client-certificates/client/trusted/cert.pem'),@@ -824,7 +824,7 @@ test.describe('browser', () => {await page.close();});- test('should pass with matching certificates and trailing slash', async ({ browser, startCCServer, asset, browserName, isMac }) => {+ test('CC-034 should pass with matching certificates and trailing slash', async ({ browser, startCCServer, asset, browserName, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });const page = await browser.newPage({ignoreHTTPSErrors: true,@@ -839,7 +839,7 @@ test.describe('browser', () => {await page.close();});- test('should have ignoreHTTPSErrors=false by default', async ({ browser, httpsServer, asset, browserName, platform }) => {+ test('CC-035 should have ignoreHTTPSErrors=false by default', async ({ browser, httpsServer, asset, browserName, platform }) => {const targetURL = browserName === 'webkit' && platform === 'darwin' ? httpsServer.EMPTY_PAGE.replace('localhost', 'local.playwright') : httpsServer.EMPTY_PAGE;const page = await browser.newPage({clientCertificates: [{@@ -853,7 +853,7 @@ test.describe('browser', () => {await page.close();});- test('support http2', async ({ browser, startCCServer, asset, browserName, isMac }) => {+ test('CC-036 support http2', async ({ browser, startCCServer, asset, browserName, isMac }) => {test.skip(browserName === 'webkit' && isMac, 'WebKit on macOS doesn\n proxy localhost');const serverURL = await startCCServer({ http2: true });const page = await browser.newPage({@@ -878,7 +878,7 @@ test.describe('browser', () => {await page.close();});- test('support http2 if the browser only supports http1.1', async ({ browserType, browserName, startCCServer, asset }) => {+ test('CC-037 support http2 if the browser only supports http1.1', async ({ browserType, browserName, startCCServer, asset }) => {test.skip(browserName !== 'chromium');const serverURL = await startCCServer({ http2: true, enableHTTP1FallbackWhenUsingHttp2: true });const browser = await browserType.launch({ args: ['--disable-http2'] });@@ -903,7 +903,7 @@ test.describe('browser', () => {await browser.close();});- test('should return target connection errors when using http2', async ({ browser, startCCServer, asset, browserName, isMac, nodeVersion }) => {+ test('CC-038 should return target connection errors when using http2', async ({ browser, startCCServer, asset, browserName, isMac, nodeVersion }) => {test.skip(browserName === 'webkit' && isMac, 'WebKit on macOS does not proxy localhost');test.skip(nodeVersion.major < 20, 'http2.performServerHandshake is not supported in older Node.js versions');@@ -920,7 +920,7 @@ test.describe('browser', () => {await page.close();});- test('should handle rejected certificate in handshake with HTTP/2', async ({ browser, asset, browserName, platform }) => {+ test('CC-039 should handle rejected certificate in handshake with HTTP/2', async ({ browser, asset, browserName, platform }) => {const server: http2.Http2SecureServer = createHttp2Server({key: fs.readFileSync(asset('client-certificates/server/server_key.pem')),cert: fs.readFileSync(asset('client-certificates/server/server_cert.pem')),@@ -954,13 +954,13 @@ test.describe('browser', () => {});test.describe('persistentContext', () => {- test('validate input', async ({ launchPersistent }) => {+ test('CC-040 validate input', async ({ launchPersistent }) => {test.slow();for (const [contextOptions, expected] of kValidationSubTests)await expect(launchPersistent(contextOptions)).rejects.toThrow(expected);});- test('should pass with matching certificates', async ({ launchPersistent, startCCServer, asset, browserName, isMac }) => {+ test('CC-041 should pass with matching certificates', async ({ launchPersistent, startCCServer, asset, browserName, isMac }) => {const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });const { page } = await launchPersistent({ignoreHTTPSErrors: true,diff --git a/tests/library/component-parser.spec.ts b/tests/library/component-parser.spec.tsindex 6411609c29..119eca266c 100644--- a/tests/library/component-parser.spec.ts+++ b/tests/library/component-parser.spec.ts@@ -42,7 +42,7 @@ function expectError(selector: string) {expect(error.message).toContain(`while parsing selector \`${selector}\``);}-it('should parse', async () => {+it('PS-038 should parse', async () => {expect(serialize(parse('[foo="]"]'))).toBe('[foo = "]"]');expect(serialize(parse('[foo="10"s]'))).toBe('[foo = "10"]');expect(serialize(parse('[foo="10" s]'))).toBe('[foo = "10"]');@@ -51,13 +51,13 @@ it('should parse', async () => {expect(serialize(parse('[foo="=="]'))).toBe('[foo = "=="]');});-it('should parse short attributes', async () => {+it('PS-039 should parse short attributes', async () => {expect(serialize(parse(`BookItem [ name ]`))).toBe('BookItem[name]');expect(serialize(parse(`BookItem ['name' ] [ foo."bar".baz ]`))).toBe('BookItem[name][foo.bar.baz]');expect(serialize(parse(`BookItem ['na me' ]`))).toBe('BookItem["na me"]');});-it('should parse all operators', async () => {+it('PS-040 should parse all operators', async () => {expect(serialize(parse(`BookItem[name = 10]`))).toBe('BookItem[name = 10]');expect(serialize(parse(`BookItem[name = 'foo']`))).toBe(`BookItem[name = "foo"]`);expect(serialize(parse(`BookItem[name *= 'foo']`))).toBe(`BookItem[name *= "foo"]`);@@ -67,7 +67,7 @@ it('should parse all operators', async () => {expect(serialize(parse(`BookItem[name |= 'foo']`))).toBe(`BookItem[name |= "foo"]`);});-it('should tolerate spacing', async () => {+it('PS-041 should tolerate spacing', async () => {expect(serialize(parse(` BookItem[ name = "Foo " ]`))).toBe('BookItem[name = "Foo "]');expect(serialize(parse(` BookItem [ name = "Foo" ] `))).toBe('BookItem[name = "Foo"]');expect(serialize(parse(` [ name = "Foo"]`))).toBe('[name = "Foo"]');@@ -75,7 +75,7 @@ it('should tolerate spacing', async () => {expect(serialize(parse(`BookItem [ 'name' = 'Foo'i ] `))).toBe('BookItem[name = "Foo" i]');});-it('should escape', async () => {+it('PS-042 should escape', async () => {expect(serialize(parse(`BookItem['jake\\'s' = 10]`))).toBe(`BookItem["jake's" = 10]`);expect(serialize(parse(`BookItem['jake"s' = 10]`))).toBe(`BookItem["jake\\"s" = 10]`);expect(serialize(parse(`BookItem["jake\\"s" = 10]`))).toBe(`BookItem["jake\\"s" = 10]`);@@ -84,46 +84,46 @@ it('should escape', async () => {expect(serialize(parse(`BookItem[name = "foo\\"bar"]`))).toBe(`BookItem[name = "foo\\"bar"]`);});-it('should parse int values', async () => {+it('PS-043 should parse int values', async () => {expect(serialize(parse(`ColorButton[value = 10]`))).toBe('ColorButton[value = 10]');expect(serialize(parse(`ColorButton[value = +10]`))).toBe('ColorButton[value = 10]');expect(serialize(parse(`ColorButton[value = -10]`))).toBe('ColorButton[value = -10]');expect(serialize(parse(`ColorButton [ "nested". "index" = 0 ] `))).toBe('ColorButton[nested.index = 0]');});-it('should parse float values', async () => {+it('PS-044 should parse float values', async () => {expect(serialize(parse(`ColorButton[value = -12.3]`))).toBe('ColorButton[value = -12.3]');expect(serialize(parse(`ColorButton ['nested'.value = 4.1]`))).toBe('ColorButton[nested.value = 4.1]');expect(serialize(parse(`ColorButton [ 'nested' .value =4.1]`))).toBe('ColorButton[nested.value = 4.1]');});-it('should parse bool', async () => {+it('PS-045 should parse bool', async () => {expect(serialize(parse(`ColorButton[enabled= false] `))).toBe('ColorButton[enabled = false]');expect(serialize(parse(`ColorButton[enabled =true] `))).toBe('ColorButton[enabled = true]');expect(serialize(parse(`ColorButton[enabled =true][ color = "red"]`))).toBe('ColorButton[enabled = true][color = "red"]');expect(serialize(parse(`ColorButton[ enabled =true][ color = "red"i][nested.index = 6]`))).toBe('ColorButton[enabled = true][color = "red" i][nested.index = 6]');});-it('should parse regex', async () => {+it('PS-046 should parse regex', async () => {expect(serialize(parse(`ColorButton[color = /red$/]`))).toBe('ColorButton[color = /red$/]');expect(serialize(parse(`ColorButton[color=/red/ig]`))).toBe('ColorButton[color = /red/gi]');expect(serialize(parse(`ColorButton[color= / \\/ [/]/ ]`))).toBe('ColorButton[color = / \\/ [/]/]');expect(serialize(parse(`ColorButton[color=/[\\]/][[/]/]`))).toBe('ColorButton[color = /[\\]/][[/]/]');});-it('should parse identifiers', async () => {+it('PS-047 should parse identifiers', async () => {expect(serialize(parse('[привет=true]'))).toBe('["привет" = true]');expect(serialize(parse('[__-__=true]'))).toBe('["__-__" = true]');expect(serialize(parse('[😀=true]'))).toBe('["😀" = true]');});-it('should parse unquoted string', async () => {+it('PS-048 should parse unquoted string', async () => {expect(serialize(parseAttributeSelector('[hey=foo]', true))).toBe('[hey = "foo"]');expect(serialize(parseAttributeSelector('[yay=and😀more]', true))).toBe('[yay = "and😀more"]');expect(serialize(parseAttributeSelector('[yay= trims ]', true))).toBe('[yay = "trims"]');});-it('should throw on malformed selector', async () => {+it('PS-049 should throw on malformed selector', async () => {expectError('foo[');expectError('foo[');expectError('foo["asd');diff --git a/tests/library/coverage.spec.ts b/tests/library/coverage.spec.tsindex 540aa3927f..751ebf2974 100644--- a/tests/library/coverage.spec.ts+++ b/tests/library/coverage.spec.ts@@ -33,7 +33,7 @@ const fileCoverage = (file: string, s0: number) => ({const coverageScript = (file: string, s0: number) => `<script>window.__coverage__ = ${JSON.stringify(fileCoverage(file, s0))}</script>`;-it('should collect istanbul coverage into the trace', async ({ browser }, testInfo) => {+it('CV-018 should collect istanbul coverage into the trace', async ({ browser }, testInfo) => {const context = await browser.newContext();await context.tracing.start({ _coverage: true } as any);@@ -54,7 +54,7 @@ it('should collect istanbul coverage into the trace', async ({ browser }, testInexpect(data['b.js'].s['0']).toBe(2);});-it('should collect coverage per trace chunk', async ({ browser }, testInfo) => {+it('CV-019 should collect coverage per trace chunk', async ({ browser }, testInfo) => {const context = await browser.newContext();await context.tracing.start({ _coverage: true } as any);const page = await context.newPage();@@ -80,7 +80,7 @@ it('should collect coverage per trace chunk', async ({ browser }, testInfo) => {expect(data2['a.js']).toBe(undefined);});-it('should report maps once and counters incrementally', async ({ browser, server }) => {+it('CV-020 should report maps once and counters incrementally', async ({ browser, server }) => {const context = await browser.newContext();await context.tracing.start({ _coverage: true } as any);const page = await context.newPage();@@ -108,7 +108,7 @@ it('should report maps once and counters incrementally', async ({ browser, serveawait context.close();});-it('should accumulate counters across pulls and keep never hit files', async ({ browser }, testInfo) => {+it('CV-021 should accumulate counters across pulls and keep never hit files', async ({ browser }, testInfo) => {const context = await browser.newContext();await context.tracing.start({ _coverage: true } as any);const page = await context.newPage();@@ -134,7 +134,7 @@ async function openPopup(page: any, server: any, file: string, s0: number) {return popup;}-it('should collect coverage of a page closed by in-page script', async ({ browser, server }, testInfo) => {+it('CV-022 should collect coverage of a page closed by in-page script', async ({ browser, server }, testInfo) => {const context = await browser.newContext();await context.tracing.start({ _coverage: true } as any);const page = await context.newPage();@@ -156,7 +156,7 @@ it('should collect coverage of a page closed by in-page script', async ({ browseexpect(data['popup.js'].s['0']).toBe(5);});-it('should not double count a stash picked up twice', async ({ browser, server }, testInfo) => {+it('CV-023 should not double count a stash picked up twice', async ({ browser, server }, testInfo) => {const context = await browser.newContext();await context.tracing.start({ _coverage: true } as any);const page = await context.newPage();@@ -178,7 +178,7 @@ it('should not double count a stash picked up twice', async ({ browser, server }expect(data['stashed.js'].s['0']).toBe(4);});-it('should discard stashes of other sessions', async ({ browser, server }, testInfo) => {+it('CV-024 should discard stashes of other sessions', async ({ browser, server }, testInfo) => {const context = await browser.newContext();await context.tracing.start({ _coverage: true } as any);const page = await context.newPage();@@ -198,7 +198,7 @@ it('should discard stashes of other sessions', async ({ browser, server }, testIexpect(await parseTraceCoverage(traceFile)).toBe(undefined);});-it('should collect coverage of an origin left without a page', async ({ browser, server }, testInfo) => {+it('CV-025 should collect coverage of an origin left without a page', async ({ browser, server }, testInfo) => {const context = await browser.newContext();await context.tracing.start({ _coverage: true } as any);const page = await context.newPage();@@ -228,7 +228,7 @@ it('should collect coverage of an origin left without a page', async ({ browser,expect(data['popup.js'].s['0']).toBe(5);});-it('should pull counters as the actions go', async ({ browser, server }, testInfo) => {+it('CV-026 should pull counters as the actions go', async ({ browser, server }, testInfo) => {const context = await browser.newContext();await context.tracing.start({ _coverage: true } as any);const page = await context.newPage();@@ -245,7 +245,7 @@ it('should pull counters as the actions go', async ({ browser, server }, testInfexpect(data['a.js'].s['0']).toBe(3);});-it('should not collect coverage without the option', async ({ browser }, testInfo) => {+it('CV-027 should not collect coverage without the option', async ({ browser }, testInfo) => {const context = await browser.newContext();await context.tracing.start();const page = await context.newPage();@@ -258,7 +258,7 @@ it('should not collect coverage without the option', async ({ browser }, testInfexpect(await parseTraceCoverage(traceFile)).toBe(undefined);});-it('should count only the hits after start', async ({ browser, server }, testInfo) => {+it('CV-028 should count only the hits after start', async ({ browser, server }, testInfo) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -275,7 +275,7 @@ it('should count only the hits after start', async ({ browser, server }, testInfexpect(Object.keys(data['a.js'].statementMap)).toEqual(['0']);});-it('should stop collecting when tracing stops', async ({ browser, server }, testInfo) => {+it('CV-029 should stop collecting when tracing stops', async ({ browser, server }, testInfo) => {const context = await browser.newContext();await context.tracing.start({ _coverage: true } as any);const page = await context.newPage();@@ -292,7 +292,7 @@ it('should stop collecting when tracing stops', async ({ browser, server }, testawait context.close();});-it('should surface a failure to stash the coverage', async ({ browser, server }, testInfo) => {+it('CV-030 should surface a failure to stash the coverage', async ({ browser, server }, testInfo) => {const context = await browser.newContext();await context.tracing.start({ _coverage: true } as any);const page = await context.newPage();diff --git a/tests/library/css-parser.spec.ts b/tests/library/css-parser.spec.tsindex 45cc6df389..b10ae535bc 100644--- a/tests/library/css-parser.spec.ts+++ b/tests/library/css-parser.spec.ts@@ -23,7 +23,7 @@ const parse = (selector: string) => {return parseCSS(selector, new Set(['text', 'not', 'has', 'react', 'scope', 'right-of', 'is'])).selector;};-it('should parse css', async () => {+it('PS-050 should parse css', async () => {expect(serialize(parse('div'))).toBe('div');expect(serialize(parse('div.class'))).toBe('div.class');expect(serialize(parse('.class'))).toBe('.class');@@ -71,7 +71,7 @@ it('should parse css', async () => {expect(serialize(parse(':is(foo, bar>baz.cls+:not(qux))'))).toBe(':is(foo, bar > baz.cls + :not(qux))');});-it('should throw on malformed css', async () => {+it('PS-051 should throw on malformed css', async () => {function expectError(selector: string) {let error = { message: '' };try {diff --git a/tests/library/debug-controller.spec.ts b/tests/library/debug-controller.spec.tsindex 0d70812b58..1516cc7d92 100644--- a/tests/library/debug-controller.spec.ts+++ b/tests/library/debug-controller.spec.ts@@ -82,7 +82,7 @@ test.skip(({ mode }) => mode === 'driver');// See https://github.com/microsoft/playwright/pull/37103.test.use({ launchOptions: [async ({ launchOptions }, use) => use(launchOptions), { scope: 'worker' }] });-test('should pick element', async ({ backend, connectedBrowser }) => {+test('DB-011 should pick element', async ({ backend, connectedBrowser }) => {const events = [];backend.on('inspectRequested', event => events.push(event));@@ -113,7 +113,7 @@ test('should pick element', async ({ backend, connectedBrowser }) => {expect(events).toHaveLength(2);});-test('should report pages', async ({ backend, connectedBrowser }) => {+test('DB-012 should report pages', async ({ backend, connectedBrowser }) => {const events = [];backend.on('stateChanged', event => events.push(event));await backend.setReportStateChanged({ enabled: true }, undefined);@@ -141,7 +141,7 @@ test('should report pages', async ({ backend, connectedBrowser }) => {]);});-test('should reset for reuse', async ({ backend, connectedBrowser }) => {+test('DB-013 should reset for reuse', async ({ backend, connectedBrowser }) => {const context = await connectedBrowser.newContextForReuse();const page1 = await context.newPage();const page2 = await context.newPage();@@ -159,7 +159,7 @@ test('should reset for reuse', async ({ backend, connectedBrowser }) => {expect(await page2.evaluate(() => window.location.href).catch(e => e.message)).toContain('Target page, context or browser has been closed');});-test('should highlight all', async ({ backend, connectedBrowser }) => {+test('DB-014 should highlight all', async ({ backend, connectedBrowser }) => {const context = await connectedBrowser.newContextForReuse();const page1 = await context.newPage();const page2 = await context.newPage();@@ -173,7 +173,7 @@ test('should highlight all', async ({ backend, connectedBrowser }) => {await expect(page2.getByText('locator(\'button\')')).toBeHidden();});-test('should record', async ({ backend, connectedBrowser }) => {+test('DB-015 should record', async ({ backend, connectedBrowser }) => {const events = [];backend.on('sourceChanged', event => events.push(event));@@ -208,7 +208,7 @@ test('test', async ({ page }) => {expect(events).toHaveLength(length);});-test('should record expect signal', async ({ backend, connectedBrowser }) => {+test('DB-016 should record expect signal', async ({ backend, connectedBrowser }) => {const events = [];backend.on('sourceChanged', event => events.push(event));@@ -237,7 +237,7 @@ test('should record expect signal', async ({ backend, connectedBrowser }) => {]);});-test('should record custom data-testid', async ({ backend, connectedBrowser }) => {+test('DB-017 should record custom data-testid', async ({ backend, connectedBrowser }) => {// This test emulates "record at cursor" functionality// with custom test id attribute in the config.@@ -272,7 +272,7 @@ test('test', async ({ page }) => {});});-test('should not leak actions from the previous recording session', async ({ backend, connectedBrowser }, testInfo) => {+test('DB-018 should not leak actions from the previous recording session', async ({ backend, connectedBrowser }, testInfo) => {testInfo.annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42218' });const events: any[] = [];@@ -323,7 +323,7 @@ test('should not leak actions from the previous recording session', async ({ bac]);});-test('should reset routes before reuse', async ({ server, connectedBrowserFactory }) => {+test('DB-019 should reset routes before reuse', async ({ server, connectedBrowserFactory }) => {const browser1 = await connectedBrowserFactory();const context1 = await browser1.newContextForReuse();await context1.route(server.PREFIX + '/title.html', route => route.fulfill({ body: '<title>Hello</title>', contentType: 'text/html' }));@@ -347,7 +347,7 @@ test('should reset routes before reuse', async ({ server, connectedBrowserFactorawait browser2.close();});-test('should highlight inside iframe', async ({ backend, connectedBrowser }, testInfo) => {+test('DB-020 should highlight inside iframe', async ({ backend, connectedBrowser }, testInfo) => {testInfo.annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/33146' });const context = await connectedBrowser.newContextForReuse();@@ -373,7 +373,7 @@ test('should highlight inside iframe', async ({ backend, connectedBrowser }, tesawait expect(page.locator('x-pw-highlight')).toHaveCount(1);});-test('should highlight aria template', async ({ backend, connectedBrowser }, testInfo) => {+test('DB-021 should highlight aria template', async ({ backend, connectedBrowser }, testInfo) => {const context = await connectedBrowser.newContextForReuse();const page = await context.newPage();await page.goto(`data:text/html,<button>Submit</button>`);@@ -390,7 +390,7 @@ test('should highlight aria template', async ({ backend, connectedBrowser }, tesexpect(box1).toEqual(box2);});-test('should report error in aria template', async ({ backend }) => {+test('DB-022 should report error in aria template', async ({ backend }) => {const error = await backend.highlight({ ariaTemplate: `- button "Submit` }, undefined).catch(e => e);expect(error.message).toContain('Unterminated string:');});diff --git a/tests/library/debugger.spec.ts b/tests/library/debugger.spec.tsindex 36df139bc6..55b9602d15 100644--- a/tests/library/debugger.spec.ts+++ b/tests/library/debugger.spec.ts@@ -19,7 +19,7 @@ import type * as channels from '../../packages/playwright-core/src/client/channetype ApiCall = channels.DebuggerApiCallsUpdatedEvent['apiCalls'][number];-it('should pause at next and resume', async ({ context, server }) => {+it('DB-001 should pause at next and resume', async ({ context, server }) => {const page = await context.newPage();await page.setContent('<div>click me</div>');const dbg = context.debugger;@@ -48,7 +48,7 @@ it('should pause at next and resume', async ({ context, server }) => {expect(dbg.pausedDetails()).toBeNull();});-it('should pause at pause call', async ({ context, server }) => {+it('DB-002 should pause at pause call', async ({ context, server }) => {const page = await context.newPage();await page.setContent('<div>click me</div>');const dbg = context.debugger;@@ -68,7 +68,7 @@ it('should pause at pause call', async ({ context, server }) => {await pausePromise;});-it('should run to location', async ({ context, server }) => {+it('DB-003 should run to location', async ({ context, server }) => {const page = await context.newPage();await page.setContent('<div>click me</div>');const dbg = context.debugger;@@ -97,7 +97,7 @@ it('should run to location', async ({ context, server }) => {await clickPromise;});-it('should stream api calls via _enable', async ({ context, server }) => {+it('DB-004 should stream api calls via _enable', async ({ context, server }) => {const page = await context.newPage();await page.setContent('<button>click me</button>');const dbg = context.debugger as any;@@ -137,7 +137,7 @@ it('should stream api calls via _enable', async ({ context, server }) => {expect(history[history.length - 1]).toBe('success');});-it('should report error status for failed api calls', async ({ context, server }) => {+it('DB-005 should report error status for failed api calls', async ({ context, server }) => {const page = await context.newPage();await page.setContent('<div>no button here</div>');const dbg = context.debugger as any;@@ -156,7 +156,7 @@ it('should report error status for failed api calls', async ({ context, server }expect(call.error).toBeTruthy();});-it('should not stream internal api calls', async ({ context, server }) => {+it('DB-006 should not stream internal api calls', async ({ context, server }) => {const page = await context.newPage();await page.setContent('<button>click me</button>');const dbg = context.debugger as any;@@ -174,7 +174,7 @@ it('should not stream internal api calls', async ({ context, server }) => {expect(clickIds.size).toBe(1);});-it('should not pause at internal api calls', async ({ context, server }) => {+it('DB-007 should not pause at internal api calls', async ({ context, server }) => {const page = await context.newPage();await page.setContent('<button>click me</button>');const dbg = context.debugger as any;@@ -195,7 +195,7 @@ it('should not pause at internal api calls', async ({ context, server }) => {]);});-it('should expose the action point while paused on an input action', async ({ context, server }) => {+it('DB-008 should expose the action point while paused on an input action', async ({ context, server }) => {const page = await context.newPage();await page.setContent('<button style="position:absolute; left:40px; top:60px">click me</button>');const dbg = context.debugger as any;@@ -226,7 +226,7 @@ it('should expose the action point while paused on an input action', async ({ co]);});-it('should replay ongoing calls when enabled late', async ({ context, server }) => {+it('DB-009 should replay ongoing calls when enabled late', async ({ context, server }) => {const page = await context.newPage();await page.setContent('<button>click me</button>');const dbg = context.debugger as any;@@ -252,7 +252,7 @@ it('should replay ongoing calls when enabled late', async ({ context, server })]);});-it('should keep pause working when api calls are enabled', async ({ context, server }) => {+it('DB-010 should keep pause working when api calls are enabled', async ({ context, server }) => {const page = await context.newPage();await page.setContent('<div>click me</div>');const dbg = context.debugger as any;diff --git a/tests/library/defaultbrowsercontext-1.spec.ts b/tests/library/defaultbrowsercontext-1.spec.tsindex 23dfe84ba1..1367998bc7 100644--- a/tests/library/defaultbrowsercontext-1.spec.ts+++ b/tests/library/defaultbrowsercontext-1.spec.ts@@ -25,7 +25,7 @@ function maybeFilterCookies(channel: string | undefined, cookies: any[]) {return cookies;}-it('context.cookies() should work @smoke', async ({ server, launchPersistent, defaultSameSiteCookieValue, channel }) => {+it('DC-001 context.cookies() should work @smoke', async ({ server, launchPersistent, defaultSameSiteCookieValue, channel }) => {const { page } = await launchPersistent();await page.goto(server.EMPTY_PAGE);const documentCookie = await page.evaluate(() => {@@ -45,7 +45,7 @@ it('context.cookies() should work @smoke', async ({ server, launchPersistent, de}]);});-it('context.addCookies() should work', async ({ server, launchPersistent, browserName, isWindows, channel }) => {+it('DC-002 context.addCookies() should work', async ({ server, launchPersistent, browserName, isWindows, channel }) => {const { page } = await launchPersistent();await page.goto(server.EMPTY_PAGE);await page.context().addCookies([{@@ -67,7 +67,7 @@ it('context.addCookies() should work', async ({ server, launchPersistent, browse}]);});-it('context.clearCookies() should work', async ({ server, launchPersistent, channel }) => {+it('DC-003 context.clearCookies() should work', async ({ server, launchPersistent, channel }) => {const { page } = await launchPersistent();await page.goto(server.EMPTY_PAGE);await page.context().addCookies([{@@ -86,19 +86,19 @@ it('context.clearCookies() should work', async ({ server, launchPersistent, chanexpect(await page.evaluate('document.cookie')).toBe('');});-it('should support viewport option', async ({ launchPersistent }) => {+it('DC-004 should support viewport option', async ({ launchPersistent }) => {const { page, context } = await launchPersistent({ viewport: { width: 456, height: 789 } });await verifyViewport(page, 456, 789);const page2 = await context.newPage();await verifyViewport(page2, 456, 789);});-it('should support deviceScaleFactor option', async ({ launchPersistent }) => {+it('DC-005 should support deviceScaleFactor option', async ({ launchPersistent }) => {const { page } = await launchPersistent({ deviceScaleFactor: 3 });expect(await page.evaluate('window.devicePixelRatio')).toBe(3);});-it('should support userAgent option', async ({ server, launchPersistent }) => {+it('DC-006 should support userAgent option', async ({ server, launchPersistent }) => {const { page } = await launchPersistent({ userAgent: 'foobar' });expect(await page.evaluate(() => navigator.userAgent)).toBe('foobar');const [request] = await Promise.all([@@ -108,7 +108,7 @@ it('should support userAgent option', async ({ server, launchPersistent }) => {expect(request.headers['user-agent']).toBe('foobar');});-it('should support bypassCSP option', async ({ server, launchPersistent }) => {+it('DC-007 should support bypassCSP option', async ({ server, launchPersistent }) => {const { page } = await launchPersistent({ bypassCSP: true });await page.goto(server.PREFIX + '/csp.html');await page.addScriptTag({ content: 'window["__injected"] = 42;' });@@ -116,7 +116,7 @@ it('should support bypassCSP option', async ({ server, launchPersistent }) => {expect(await page.evaluate('window["__inlineScriptValue"]')).toBe(42);});-it('should support javascriptEnabled option', async ({ launchPersistent, browserName }) => {+it('DC-008 should support javascriptEnabled option', async ({ launchPersistent, browserName }) => {const { page } = await launchPersistent({ javaScriptEnabled: false });await page.goto('data:text/html, <script>var something = "forbidden"</script>');let error = null;@@ -127,20 +127,20 @@ it('should support javascriptEnabled option', async ({ launchPersistent, browserexpect(error.message).toContain('something is not defined');});-it('should support httpCredentials option', async ({ server, launchPersistent }) => {+it('DC-009 should support httpCredentials option', async ({ server, launchPersistent }) => {const { page } = await launchPersistent({ httpCredentials: { username: 'user', password: 'pass' } });server.setAuth('/playground.html', 'user', 'pass');const response = await page.goto(server.PREFIX + '/playground.html');expect(response.status()).toBe(200);});-it('should support offline option', async ({ server, launchPersistent }) => {+it('DC-010 should support offline option', async ({ server, launchPersistent }) => {const { page } = await launchPersistent({ offline: true });const error = await page.goto(server.EMPTY_PAGE).catch(e => e);expect(error).toBeTruthy();});-it('should support acceptDownloads option', async ({ server, launchPersistent, mode }) => {+it('DC-011 should support acceptDownloads option', async ({ server, launchPersistent, mode }) => {it.skip(mode !== 'default', 'download.path() is not available in remote mode');const { page } = await launchPersistent();diff --git a/tests/library/defaultbrowsercontext-2.spec.ts b/tests/library/defaultbrowsercontext-2.spec.tsindex cecdb46c7b..a10135b398 100644--- a/tests/library/defaultbrowsercontext-2.spec.ts+++ b/tests/library/defaultbrowsercontext-2.spec.ts@@ -21,53 +21,53 @@ import path from 'path';it.skip(({ mode }) => mode !== 'default', 'Remote persistent contexts are not supported');-it('should support hasTouch option', async ({ server, launchPersistent }) => {+it('DC-012 should support hasTouch option', async ({ server, launchPersistent }) => {const { page } = await launchPersistent({ hasTouch: true });await page.goto(server.PREFIX + '/mobile.html');expect(await page.evaluate(() => 'ontouchstart' in window)).toBe(true);});-it('should work in persistent context', async ({ server, launchPersistent, browserName }) => {+it('DC-013 should work in persistent context', async ({ server, launchPersistent, browserName }) => {const { page } = await launchPersistent({ viewport: { width: 320, height: 480 }, isMobile: true });await page.goto(server.PREFIX + '/empty.html');expect(await page.evaluate(() => window.innerWidth)).toBe(980);});-it('should support colorScheme option', async ({ launchPersistent }) => {+it('DC-014 should support colorScheme option', async ({ launchPersistent }) => {const { page } = await launchPersistent({ colorScheme: 'dark' });expect(await page.evaluate(() => matchMedia('(prefers-color-scheme: light)').matches)).toBe(false);expect(await page.evaluate(() => matchMedia('(prefers-color-scheme: dark)').matches)).toBe(true);});-it('should support reducedMotion option', async ({ launchPersistent }) => {+it('DC-015 should support reducedMotion option', async ({ launchPersistent }) => {const { page } = await launchPersistent({ reducedMotion: 'reduce' });expect(await page.evaluate(() => matchMedia('(prefers-reduced-motion: reduce)').matches)).toBe(true);expect(await page.evaluate(() => matchMedia('(prefers-reduced-motion: no-preference)').matches)).toBe(false);});-it('should support forcedColors option', async ({ launchPersistent, browserName }) => {+it('DC-016 should support forcedColors option', async ({ launchPersistent, browserName }) => {const { page } = await launchPersistent({ forcedColors: 'active' });expect(await page.evaluate(() => matchMedia('(forced-colors: active)').matches)).toBe(true);expect(await page.evaluate(() => matchMedia('(forced-colors: none)').matches)).toBe(false);});-it('should support contrast option', async ({ launchPersistent }) => {+it('DC-017 should support contrast option', async ({ launchPersistent }) => {const { page } = await launchPersistent({ contrast: 'more' });expect.soft(await page.evaluate(() => matchMedia('(prefers-contrast: more)').matches)).toBe(true);expect.soft(await page.evaluate(() => matchMedia('(prefers-contrast: no-preference)').matches)).toBe(false);});-it('should support timezoneId option', async ({ launchPersistent, browserName }) => {+it('DC-018 should support timezoneId option', async ({ launchPersistent, browserName }) => {const { page } = await launchPersistent({ locale: 'en-US', timezoneId: 'America/Jamaica' });expect(await page.evaluate(() => new Date(1479579154987).toString())).toBe('Sat Nov 19 2016 13:12:34 GMT-0500 (Eastern Standard Time)');});-it('should support locale option', async ({ launchPersistent }) => {+it('DC-019 should support locale option', async ({ launchPersistent }) => {const { page } = await launchPersistent({ locale: 'fr-FR' });expect(await page.evaluate(() => navigator.language)).toBe('fr-FR');});-it('should support geolocation and permissions options', async ({ server, launchPersistent }) => {+it('DC-020 should support geolocation and permissions options', async ({ server, launchPersistent }) => {const { page } = await launchPersistent({ geolocation: { longitude: 10, latitude: 10 }, permissions: ['geolocation'] });await page.goto(server.EMPTY_PAGE);const geolocation = await page.evaluate(() => new Promise(resolve => navigator.geolocation.getCurrentPosition(position => {@@ -76,7 +76,7 @@ it('should support geolocation and permissions options', async ({ server, launchexpect(geolocation).toEqual({ latitude: 10, longitude: 10 });});-it('should support ignoreHTTPSErrors option', async ({ httpsServer, launchPersistent }) => {+it('DC-021 should support ignoreHTTPSErrors option', async ({ httpsServer, launchPersistent }) => {const { page } = await launchPersistent({ ignoreHTTPSErrors: true });let error = null;const response = await page.goto(httpsServer.EMPTY_PAGE).catch(e => error = e);@@ -84,7 +84,7 @@ it('should support ignoreHTTPSErrors option', async ({ httpsServer, launchPersisexpect(response.ok()).toBe(true);});-it('should support extraHTTPHeaders option', async ({ server, launchPersistent }) => {+it('DC-022 should support extraHTTPHeaders option', async ({ server, launchPersistent }) => {const { page } = await launchPersistent({ extraHTTPHeaders: { foo: 'bar' } });const [request] = await Promise.all([server.waitForRequest('/empty.html'),@@ -93,7 +93,7 @@ it('should support extraHTTPHeaders option', async ({ server, launchPersistent }expect(request.headers['foo']).toBe('bar');});-it('should accept userDataDir', async ({ createUserDataDir, browserType }) => {+it('DC-023 should accept userDataDir', async ({ createUserDataDir, browserType }) => {const userDataDir = await createUserDataDir();const context = await browserType.launchPersistentContext(userDataDir);expect(fs.readdirSync(userDataDir).length).toBeGreaterThan(0);@@ -101,14 +101,14 @@ it('should accept userDataDir', async ({ createUserDataDir, browserType }) => {expect(fs.readdirSync(userDataDir).length).toBeGreaterThan(0);});-it('should accept relative userDataDir', async ({ createUserDataDir, browserType }) => {+it('DC-024 should accept relative userDataDir', async ({ createUserDataDir, browserType }) => {const userDataDir = await createUserDataDir();const context = await browserType.launchPersistentContext(path.relative(process.cwd(), path.join(userDataDir, 'foobar')));expect(fs.readdirSync(path.join(userDataDir, 'foobar')).length).toBeGreaterThan(0);await context.close();});-it('should restore state from userDataDir', async ({ browserType, server, createUserDataDir, channel }) => {+it('DC-025 should restore state from userDataDir', async ({ browserType, server, createUserDataDir, channel }) => {it.slow();it.fixme(channel === 'webkit-wsl', 'Pending local storage writes are lost on close, see https://github.com/microsoft/playwright-browsers/issues/2275');@@ -136,14 +136,14 @@ it('should restore state from userDataDir', async ({ browserType, server, createawait browserContext3.close();});-it('should create userDataDir if it does not exist', async ({ createUserDataDir, browserType }) => {+it('DC-026 should create userDataDir if it does not exist', async ({ createUserDataDir, browserType }) => {const userDataDir = path.join(await createUserDataDir(), 'nonexisting');const context = await browserType.launchPersistentContext(userDataDir);await context.close();expect(fs.readdirSync(userDataDir).length).toBeGreaterThan(0);});-it('should goto about:blank on relaunched persistent context', {+it('DC-027 should goto about:blank on relaunched persistent context', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41216' },}, async ({ browserType, createUserDataDir, browserName, isBidi }) => {it.fixme(browserName === 'firefox' && !isBidi);@@ -162,13 +162,13 @@ it('should goto about:blank on relaunched persistent context', {await context2.close();});-it('should have default URL when launching browser', async ({ launchPersistent }) => {+it('DC-028 should have default URL when launching browser', async ({ launchPersistent }) => {const { context } = await launchPersistent();const urls = context.pages().map(page => page.url());expect(urls).toEqual(['about:blank']);});-it('should throw if page argument is passed', async ({ browserType, server, createUserDataDir, browserName, isBidi }) => {+it('DC-029 should throw if page argument is passed', async ({ browserType, server, createUserDataDir, browserName, isBidi }) => {it.skip(browserName === 'firefox' && !isBidi);const options = { args: [server.EMPTY_PAGE] };@@ -176,7 +176,7 @@ it('should throw if page argument is passed', async ({ browserType, server, creaexpect(error.message).toContain('can not specify page');});-it('should have passed URL when launching with ignoreDefaultArgs: true', async ({ browserType, server, createUserDataDir, toImpl, browserName }) => {+it('DC-030 should have passed URL when launching with ignoreDefaultArgs: true', async ({ browserType, server, createUserDataDir, toImpl, browserName }) => {const userDataDir = await createUserDataDir();const args = (await toImpl(browserType).defaultArgs((browserType as any)._playwright._defaultLaunchOptions, 'persistent', userDataDir, 0)).filter(a => a !== 'about:blank');const options = {@@ -192,20 +192,20 @@ it('should have passed URL when launching with ignoreDefaultArgs: true', async (await browserContext.close();});-it('should handle timeout', async ({ browserType, createUserDataDir }) => {+it('DC-031 should handle timeout', async ({ browserType, createUserDataDir }) => {const options: any = { timeout: 5000, __testHookBeforeCreateBrowser: () => new Promise(f => setTimeout(f, 6000)) };const error = await browserType.launchPersistentContext(await createUserDataDir(), options).catch(e => e);expect(error.message).toContain(`browserType.launchPersistentContext: Timeout 5000ms exceeded.`);});-it('should handle exception', async ({ browserType, createUserDataDir }) => {+it('DC-032 should handle exception', async ({ browserType, createUserDataDir }) => {const e = new Error('Dummy');const options: any = { __testHookBeforeCreateBrowser: () => { throw e; } };const error = await browserType.launchPersistentContext(await createUserDataDir(), options).catch(e => e);expect(error.message).toContain('Dummy');});-it('should fire close event for a persistent context', async ({ launchPersistent }) => {+it('DC-033 should fire close event for a persistent context', async ({ launchPersistent }) => {const { context } = await launchPersistent();let closed = false;context.on('close', () => closed = true);@@ -213,7 +213,7 @@ it('should fire close event for a persistent context', async ({ launchPersistentexpect(closed).toBe(true);});-it('coverage should work', async ({ server, launchPersistent, browserName }) => {+it('DC-034 coverage should work', async ({ server, launchPersistent, browserName }) => {it.skip(browserName !== 'chromium');const { page } = await launchPersistent();@@ -225,7 +225,7 @@ it('coverage should work', async ({ server, launchPersistent, browserName }) =>expect(coverage[0].functions.find(f => f.functionName === 'foo').ranges[0].count).toEqual(1);});-it('should respect selectors', async ({ playwright, launchPersistent }) => {+it('DC-035 should respect selectors', async ({ playwright, launchPersistent }) => {const defaultContextCSS = () => ({query(root, selector) {return root.querySelector(selector);@@ -242,14 +242,14 @@ it('should respect selectors', async ({ playwright, launchPersistent }) => {expect(await page.innerHTML('defaultContextCSS=div')).toBe('hello');});-it('should connect to a browser with the default page', async ({ browserType, createUserDataDir }) => {+it('DC-036 should connect to a browser with the default page', async ({ browserType, createUserDataDir }) => {const options: any = { __testHookOnConnectToBrowser: () => new Promise(f => setTimeout(f, 3000)) };const context = await browserType.launchPersistentContext(await createUserDataDir(), options);expect(context.pages().length).toBe(1);await context.close();});-it('should support har option', async ({ launchPersistent, asset }) => {+it('DC-037 should support har option', async ({ launchPersistent, asset }) => {const path = asset('har-fulfill.har');const { page } = await launchPersistent();await page.routeFromHAR(path);@@ -260,14 +260,14 @@ it('should support har option', async ({ launchPersistent, asset }) => {await expect(page.locator('body')).toHaveCSS('background-color', 'rgb(255, 0, 0)');});-it('user agent is up to date', async ({ launchPersistent, browser }) => {+it('DC-038 user agent is up to date', async ({ launchPersistent, browser }) => {const { userAgent } = await (browser as any)._channel.defaultUserAgentForTest();const { context, page } = await launchPersistent();expect(await page.evaluate(() => navigator.userAgent)).toBe(userAgent);await context.close();});-it('dialog.accept should work', {+it('DC-039 dialog.accept should work', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35663' }}, async ({ launchPersistent }) => {const { context, page } = await launchPersistent();@@ -282,7 +282,7 @@ it('dialog.accept should work', {await context.close();});-it('CacheStorage entry should survive page.reload()', {+it('DC-040 CacheStorage entry should survive page.reload()', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41618' }}, async ({ launchPersistent, server }) => {const { context, page } = await launchPersistent();@@ -303,7 +303,7 @@ it('CacheStorage entry should survive page.reload()', {await context.close();});-it('exposes browser', async ({ launchPersistent }) => {+it('DC-041 exposes browser', async ({ launchPersistent }) => {const { context } = await launchPersistent();const browser = context.browser();expect(browser.version()).toBeTruthy();@@ -316,7 +316,7 @@ it('exposes browser', async ({ launchPersistent }) => {await context.close();});-it('should support storage.getDirectory()', {+it('DC-042 should support storage.getDirectory()', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18235' }}, async ({ launchPersistent, server }) => {const { context } = await launchPersistent();diff --git a/tests/library/download.spec.ts b/tests/library/download.spec.tsindex f9898769a3..3ba2688346 100644--- a/tests/library/download.spec.ts+++ b/tests/library/download.spec.ts@@ -51,7 +51,7 @@ it.describe('download event', () => {});});- it('should report download when navigation turns into download @smoke', async ({ browser, server, browserName, browserMajorVersion, isBidi }) => {+ it('DO-001 should report download when navigation turns into download @smoke', async ({ browser, server, browserName, browserMajorVersion, isBidi }) => {it.skip(browserName === 'chromium' && browserMajorVersion < 140, 'old chromium throws net::ERR_ABORTED, depends on https://chromium-review.googlesource.com/c/chromium/src/+/6696011');const page = await browser.newPage();const [download, responseOrError] = await Promise.all([@@ -72,7 +72,7 @@ it.describe('download event', () => {await page.close();});- it('should work with Cross-Origin-Opener-Policy', async ({ browser, server, browserName, browserMajorVersion, isBidi }) => {+ it('DO-002 should work with Cross-Origin-Opener-Policy', async ({ browser, server, browserName, browserMajorVersion, isBidi }) => {it.skip(browserName === 'chromium' && browserMajorVersion < 140, 'old chromium throws net::ERR_ABORTED, depends on https://chromium-review.googlesource.com/c/chromium/src/+/6696011');const page = await browser.newPage();const [download, responseOrError] = await Promise.all([@@ -91,7 +91,7 @@ it.describe('download event', () => {await page.close();});- it('should report downloads with acceptDownloads: false', async ({ browser, server }) => {+ it('DO-003 should report downloads with acceptDownloads: false', async ({ browser, server }) => {const page = await browser.newPage({ acceptDownloads: false });await page.setContent(`<a href="${server.PREFIX}/downloadWithFilename">download</a>`);const [download] = await Promise.all([@@ -108,7 +108,7 @@ it.describe('download event', () => {await page.close();});- it('should report downloads with acceptDownloads: true', async ({ browser, server }) => {+ it('DO-004 should report downloads with acceptDownloads: true', async ({ browser, server }) => {const page = await browser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([@@ -121,7 +121,7 @@ it.describe('download event', () => {await page.close();});- it('should report proper download url when download is from download attribute', async ({ browser, server, browserName }) => {+ it('DO-005 should report proper download url when download is from download attribute', async ({ browser, server, browserName }) => {const page = await browser.newPage();await page.goto(server.PREFIX + '/empty.html');await page.setContent(`<a href="${server.PREFIX}/chromium-linux.zip" download="foo.zip">download</a>`);@@ -133,7 +133,7 @@ it.describe('download event', () => {await page.close();});- it('should report downloads for download attribute', async ({ browser, server }) => {+ it('DO-006 should report downloads for download attribute', async ({ browser, server }) => {const page = await browser.newPage();await page.goto(server.PREFIX + '/empty.html');await page.setContent(`<a href="${server.PREFIX}/chromium-linux.zip" download="foo.zip">download</a>`);@@ -147,7 +147,7 @@ it.describe('download event', () => {await page.close();});- it('should save to user-specified path without updating original path', async ({ browser, server }, testInfo) => {+ it('DO-007 should save to user-specified path without updating original path', async ({ browser, server }, testInfo) => {const page = await browser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([@@ -165,7 +165,7 @@ it.describe('download event', () => {await page.close();});- it('should save to two different paths with multiple saveAs calls', async ({ browser, server }, testInfo) => {+ it('DO-008 should save to two different paths with multiple saveAs calls', async ({ browser, server }, testInfo) => {const page = await browser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([@@ -184,7 +184,7 @@ it.describe('download event', () => {await page.close();});- it('should save to overwritten filepath', async ({ browser, server }, testInfo) => {+ it('DO-009 should save to overwritten filepath', async ({ browser, server }, testInfo) => {const page = await browser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([@@ -202,7 +202,7 @@ it.describe('download event', () => {await page.close();});- it('should create subdirectories when saving to non-existent user-specified path', async ({ browser, server }, testInfo) => {+ it('DO-010 should create subdirectories when saving to non-existent user-specified path', async ({ browser, server }, testInfo) => {const page = await browser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([@@ -216,7 +216,7 @@ it.describe('download event', () => {await page.close();});- it('should error when saving with downloads disabled', async ({ browser, server }, testInfo) => {+ it('DO-011 should error when saving with downloads disabled', async ({ browser, server }, testInfo) => {const page = await browser.newPage({ acceptDownloads: false });await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([@@ -229,7 +229,7 @@ it.describe('download event', () => {await page.close();});- it('should error when saving after deletion', async ({ browser, server }, testInfo) => {+ it('DO-012 should error when saving after deletion', async ({ browser, server }, testInfo) => {const page = await browser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([@@ -243,7 +243,7 @@ it.describe('download event', () => {await page.close();});- it('should report non-navigation downloads', async ({ browser, server }) => {+ it('DO-013 should report non-navigation downloads', async ({ browser, server }) => {// Mac WebKit embedder does not download in this case, although Safari does.server.setRoute('/download', (req, res) => {res.setHeader('Content-Type', 'application/octet-stream');@@ -264,7 +264,7 @@ it.describe('download event', () => {await page.close();});- it(`should report download path within page.on('download', …) handler for Files`, async ({ browser, server }) => {+ it(`DO-014 should report download path within page.on('download', …) handler for Files`, async ({ browser, server }) => {const page = await browser.newPage();const onDownloadPath = new Promise<string>(res => {page.on('download', dl => {@@ -278,7 +278,7 @@ it.describe('download event', () => {await page.close();});- it(`should report download path within page.on('download', …) handler for Blobs`, async ({ browser, server }) => {+ it(`DO-015 should report download path within page.on('download', …) handler for Blobs`, async ({ browser, server }) => {const page = await browser.newPage();const onDownloadPath = new Promise<string>(res => {page.on('download', dl => {@@ -292,7 +292,7 @@ it.describe('download event', () => {await page.close();});- it('should report alt-click downloads', async ({ browser, server, browserName }) => {+ it('DO-016 should report alt-click downloads', async ({ browser, server, browserName }) => {it.skip(browserName === 'firefox', 'Firefox does not download on alt-click.');server.setRoute('/download', (req, res) => {@@ -313,7 +313,7 @@ it.describe('download event', () => {await page.close();});- it('should report new window downloads', async ({ browser, server }) => {+ it('DO-017 should report new window downloads', async ({ browser, server }) => {const page = await browser.newPage();await page.setContent(`<a target=_blank href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([@@ -325,7 +325,7 @@ it.describe('download event', () => {await page.close();});- it('should delete file', async ({ browser, server }) => {+ it('DO-018 should delete file', async ({ browser, server }) => {const page = await browser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([@@ -339,7 +339,7 @@ it.describe('download event', () => {await page.close();});- it('should expose stream', async ({ browser, server }) => {+ it('DO-019 should expose stream', async ({ browser, server }) => {const page = await browser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([@@ -354,7 +354,7 @@ it.describe('download event', () => {await page.close();});- it('should delete downloads on context destruction', async ({ browser, server }) => {+ it('DO-020 should delete downloads on context destruction', async ({ browser, server }) => {const page = await browser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download1] = await Promise.all([@@ -374,7 +374,7 @@ it.describe('download event', () => {expect(fs.existsSync(path2)).toBeFalsy();});- it('should delete downloads on browser gone', async ({ server, browserType }) => {+ it('DO-021 should delete downloads on browser gone', async ({ server, browserType }) => {const browser = await browserType.launch({ artifactsDir: undefined });const page = await browser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);@@ -396,7 +396,7 @@ it.describe('download event', () => {expect(fs.existsSync(path.join(path1, '..'))).toBeFalsy();});- it('should save downloads to artifactsDir', async ({ server, browserType, isFrozenWebkit }, testInfo) => {+ it('DO-022 should save downloads to artifactsDir', async ({ server, browserType, isFrozenWebkit }, testInfo) => {it.skip(isFrozenWebkit, 'needs recent webkit');const artifactsDir = testInfo.outputPath('artifacts');const browser = await browserType.launch({ artifactsDir });@@ -414,7 +414,7 @@ it.describe('download event', () => {expect(fs.existsSync(artifactsDir)).toBeTruthy();});- it('should close the context without awaiting the failed download', async ({ browser, server, httpsServer, browserName, headless }, testInfo) => {+ it('DO-023 should close the context without awaiting the failed download', async ({ browser, server, httpsServer, browserName, headless }, testInfo) => {it.skip(browserName !== 'chromium', 'Only Chromium downloads on alt-click');const page = await browser.newPage();@@ -438,7 +438,7 @@ it.describe('download event', () => {]).toContain(saveError.message);});- it('should close the context without awaiting the download', async ({ browser, server, browserName, platform, channel }, testInfo) => {+ it('DO-024 should close the context without awaiting the download', async ({ browser, server, browserName, platform, channel }, testInfo) => {it.skip(browserName === 'webkit' && (platform === 'linux' || channel === 'webkit-wsl'), 'WebKit on linux does not convert to the download immediately upon receiving headers');server.setRoute('/downloadStall', (req, res) => {@@ -473,7 +473,7 @@ it.describe('download event', () => {]).toContain(saveError.message);});- it('should throw if browser dies', async ({ server, browserType, browserName, platform, channel }, testInfo) => {+ it('DO-025 should throw if browser dies', async ({ server, browserType, browserName, platform, channel }, testInfo) => {it.skip(browserName === 'webkit' && (platform === 'linux' || channel === 'webkit-wsl'), 'WebKit on linux does not convert to the download immediately upon receiving headers');server.setRoute('/downloadStall', (req, res) => {res.setHeader('Content-Type', 'application/octet-stream');@@ -500,7 +500,7 @@ it.describe('download event', () => {await browser.close();});- it('should download large binary.zip', async ({ browser, server, browserName }, testInfo) => {+ it('DO-026 should download large binary.zip', async ({ browser, server, browserName }, testInfo) => {const zipFile = testInfo.outputPath('binary.zip');const content = crypto.randomBytes(1 << 20);fs.writeFileSync(zipFile, content);@@ -530,7 +530,7 @@ it.describe('download event', () => {await page.close();});- it('should be able to cancel pending downloads', async ({ browser, server, browserName, browserVersion }) => {+ it('DO-027 should be able to cancel pending downloads', async ({ browser, server, browserName, browserVersion }) => {const page = await browser.newPage();await page.setContent(`<a href="${server.PREFIX}/downloadWithDelay">download</a>`);const [download] = await Promise.all([@@ -543,7 +543,7 @@ it.describe('download event', () => {await page.close();});- it('should not fail explicitly to cancel a download even if that is already finished', async ({ browser, server, browserName, browserVersion }) => {+ it('DO-028 should not fail explicitly to cancel a download even if that is already finished', async ({ browser, server, browserName, browserVersion }) => {const page = await browser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([@@ -559,7 +559,7 @@ it.describe('download event', () => {await page.close();});- it('should report downloads with interception', async ({ browser, server }) => {+ it('DO-029 should report downloads with interception', async ({ browser, server }) => {const page = await browser.newPage();await page.route(/.*/, r => r.continue());await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);@@ -573,7 +573,7 @@ it.describe('download event', () => {await page.close();});- it('should emit download event from nested iframes', async ({ server, browser, browserName }, testInfo) => {+ it('DO-030 should emit download event from nested iframes', async ({ server, browser, browserName }, testInfo) => {const page = await browser.newPage();server.setRoute('/1', (req, res) => {res.setHeader('Content-Type', 'text/html');@@ -603,7 +603,7 @@ it.describe('download event', () => {});});-it('should be able to download a PDF file', async ({ browser, server, asset }) => {+it('DO-031 should be able to download a PDF file', async ({ browser, server, asset }) => {const page = await browser.newPage();await page.goto(server.EMPTY_PAGE);await page.setContent(`@@ -617,7 +617,7 @@ it('should be able to download a PDF file', async ({ browser, server, asset }) =await page.close();});-it('should be able to download a inline PDF file via response interception', async ({ browser, server, asset, browserName }) => {+it('DO-032 should be able to download a inline PDF file via response interception', async ({ browser, server, asset, browserName }) => {it.fixme(browserName === 'webkit');const page = await browser.newPage();await page.goto(server.EMPTY_PAGE);@@ -642,7 +642,7 @@ it('should be able to download a inline PDF file via response interception', asyawait page.close();});-it('should be able to download a inline PDF file via navigation', async ({ browser, server, asset, browserName, isHeadlessShell, isBidi }) => {+it('DO-033 should be able to download a inline PDF file via navigation', async ({ browser, server, asset, browserName, isHeadlessShell, isBidi }) => {it.skip(browserName === 'chromium' && !isHeadlessShell, 'We expect PDF Viewer to open up in headed Chromium');it.skip(browserName === 'firefox' && isBidi, 'We expect PDF Viewer to open up in Firefox with Bidi');@@ -659,7 +659,7 @@ it('should be able to download a inline PDF file via navigation', async ({ browsawait page.close();});-it('should save to user-specified path', async ({ browser, server, mode }, testInfo) => {+it('DO-034 should save to user-specified path', async ({ browser, server, mode }, testInfo) => {server.setRoute('/download', (req, res) => {res.setHeader('Content-Type', 'application/octet-stream');res.setHeader('Content-Disposition', 'attachment');@@ -679,7 +679,7 @@ it('should save to user-specified path', async ({ browser, server, mode }, testIawait page.close();});-it('should download even if there is no "attachment" value', async ({ browser, server }) => {+it('DO-035 should download even if there is no "attachment" value', async ({ browser, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/19939' });server.setRoute('/download', (req, res) => {res.setHeader('Content-Type', 'application/octet-stream');@@ -697,7 +697,7 @@ it('should download even if there is no "attachment" value', async ({ browser, sawait page.close();});-it('should convert navigation to a resource with unsupported mime type into download', async ({ browser, server }) => {+it('DO-036 should convert navigation to a resource with unsupported mime type into download', async ({ browser, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/19939' });server.setRoute('/download', (req, res) => {res.setHeader('Content-Type', 'application/octet-stream');@@ -711,7 +711,7 @@ it('should convert navigation to a resource with unsupported mime type into downawait page.close();});-it('should download links with data url', async ({ page }) => {+it('DO-037 should download links with data url', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21892' });await page.setContent('<a download="SomeFile.txt" href="data:text/plain;charset=utf8;,hello world">Download!</a>');const downloadPromise = page.waitForEvent('download');@@ -720,7 +720,7 @@ it('should download links with data url', async ({ page }) => {expect(download.suggestedFilename()).toBe('SomeFile.txt');});-it('should download successfully when routing', async ({ browser, server }) => {+it('DO-038 should download successfully when routing', async ({ browser, server }) => {const page = await browser.newPage();await page.context().route('**/*', route => route.continue());await page.goto(server.PREFIX + '/empty.html');diff --git a/tests/library/downloads-path.spec.ts b/tests/library/downloads-path.spec.tsindex c8484f903c..0327d83ee9 100644--- a/tests/library/downloads-path.spec.ts+++ b/tests/library/downloads-path.spec.ts@@ -29,7 +29,7 @@ it.describe('downloads path', () => {});});- it('should keep downloadsPath folder', async ({ browserType, server }, testInfo) => {+ it('DO-039 should keep downloadsPath folder', async ({ browserType, server }, testInfo) => {const downloadsBrowser = await browserType.launch({ downloadsPath: testInfo.outputPath('') });const page = await downloadsBrowser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);@@ -45,7 +45,7 @@ it.describe('downloads path', () => {expect(fs.existsSync(testInfo.outputPath(''))).toBeTruthy();});- it('should delete downloads when context closes', async ({ browserType, server }, testInfo) => {+ it('DO-040 should delete downloads when context closes', async ({ browserType, server }, testInfo) => {const downloadsBrowser = await browserType.launch({ downloadsPath: testInfo.outputPath('') });const page = await downloadsBrowser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);@@ -60,7 +60,7 @@ it.describe('downloads path', () => {await downloadsBrowser.close();});- it('should report downloads in downloadsPath folder', async ({ browserType, server }, testInfo) => {+ it('DO-041 should report downloads in downloadsPath folder', async ({ browserType, server }, testInfo) => {const downloadsBrowser = await browserType.launch({ downloadsPath: testInfo.outputPath('') });const page = await downloadsBrowser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);@@ -74,7 +74,7 @@ it.describe('downloads path', () => {await downloadsBrowser.close();});- it('should report downloads in downloadsPath folder with a relative path', async ({ browserType, server }, testInfo) => {+ it('DO-042 should report downloads in downloadsPath folder with a relative path', async ({ browserType, server }, testInfo) => {const downloadsBrowser = await browserType.launch({ downloadsPath: path.relative(process.cwd(), testInfo.outputPath('')) });const page = await downloadsBrowser.newPage();await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);@@ -88,7 +88,7 @@ it.describe('downloads path', () => {await downloadsBrowser.close();});- it('should accept downloads in persistent context', async ({ launchPersistent, server }, testInfo) => {+ it('DO-043 should accept downloads in persistent context', async ({ launchPersistent, server }, testInfo) => {const { context, page } = await launchPersistent({ downloadsPath: testInfo.outputPath('') });await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([@@ -102,7 +102,7 @@ it.describe('downloads path', () => {await context.close();});- it('should delete downloads when persistent context closes', async ({ launchPersistent, server }, testInfo) => {+ it('DO-044 should delete downloads when persistent context closes', async ({ launchPersistent, server }, testInfo) => {const { context, page } = await launchPersistent({ downloadsPath: testInfo.outputPath('') });await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);const [download] = await Promise.all([diff --git a/tests/library/emulation-coop.spec.ts b/tests/library/emulation-coop.spec.tsindex 40390941df..4a07554d2d 100644--- a/tests/library/emulation-coop.spec.ts+++ b/tests/library/emulation-coop.spec.ts@@ -56,7 +56,7 @@ async function probe(browser: Browser, server: TestServer, options: BrowserConte}it.describe('emulation with COOP', () => {- it('should preserve context options', async ({ browser, server }) => {+ it('EM-025 should preserve context options', async ({ browser, server }) => {setupRoutes(server);const options: BrowserContextOptions = {colorScheme: 'dark',@@ -85,7 +85,7 @@ it.describe('emulation with COOP', () => {expect(coop).toEqual(plain);});- it('should preserve page.emulateMedia', async ({ browser, server }) => {+ it('EM-026 should preserve page.emulateMedia', async ({ browser, server }) => {setupRoutes(server);const media = { media: 'print', colorScheme: 'dark', reducedMotion: 'reduce', contrast: 'more', forcedColors: 'active' } as const;const plain = await probe(browser, server, {}, '/plain.html', media);@@ -99,7 +99,7 @@ it.describe('emulation with COOP', () => {expect(coop).toEqual(plain);});- it('should preserve mobile emulation', async ({ browser, server }) => {+ it('EM-027 should preserve mobile emulation', async ({ browser, server }) => {setupRoutes(server);const options: BrowserContextOptions = {isMobile: true,diff --git a/tests/library/emulation-focus.spec.ts b/tests/library/emulation-focus.spec.tsindex 653fa0e925..a51ee12bd4 100644--- a/tests/library/emulation-focus.spec.ts+++ b/tests/library/emulation-focus.spec.ts@@ -18,18 +18,18 @@import { contextTest as it, browserTest, expect } from '../config/browserTest';import { attachFrame } from '../config/utils';-it('should think that it is focused by default', async ({ page }) => {+it('EM-013 should think that it is focused by default', async ({ page }) => {expect(await page.evaluate('document.hasFocus()')).toBe(true);});-it('should think that all pages are focused @smoke', async ({ page }) => {+it('EM-014 should think that all pages are focused @smoke', async ({ page }) => {const page2 = await page.context().newPage();expect(await page.evaluate('document.hasFocus()')).toBe(true);expect(await page2.evaluate('document.hasFocus()')).toBe(true);await page2.close();});-it('should focus popups by default', async ({ page, server }) => {+it('EM-015 should focus popups by default', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [popup] = await Promise.all([page.waitForEvent('popup'),@@ -39,7 +39,7 @@ it('should focus popups by default', async ({ page, server }) => {expect(await page.evaluate('document.hasFocus()')).toBe(true);});-it('should provide target for keyboard events', async ({ page, server }) => {+it('EM-016 should provide target for keyboard events', async ({ page, server }) => {const page2 = await page.context().newPage();await Promise.all([page.goto(server.PREFIX + '/input/textarea.html'),@@ -62,7 +62,7 @@ it('should provide target for keyboard events', async ({ page, server }) => {expect(results).toEqual([text, text2]);});-it('should not affect mouse event target page', async ({ page, server }) => {+it('EM-017 should not affect mouse event target page', async ({ page, server }) => {const page2 = await page.context().newPage();function clickCounter() {document.onclick = () => window['clickCount'] = (window['clickCount'] || 0) + 1;@@ -84,7 +84,7 @@ it('should not affect mouse event target page', async ({ page, server }) => {expect(counters).toEqual([1, 1]);});-it('should change document.activeElement', async ({ page, server }) => {+it('EM-018 should change document.activeElement', async ({ page, server }) => {const page2 = await page.context().newPage();await Promise.all([page.goto(server.PREFIX + '/input/textarea.html'),@@ -101,7 +101,7 @@ it('should change document.activeElement', async ({ page, server }) => {expect(active).toEqual(['INPUT', 'TEXTAREA']);});-it('should not affect screenshots', async ({ page, server, browserName, headless, isWindows, isLinux, isHeadlessShell, channel }) => {+it('EM-019 should not affect screenshots', async ({ page, server, browserName, headless, isWindows, isLinux, isHeadlessShell, channel }) => {it.skip(browserName === 'webkit' && isWindows && !headless, 'WebKit/Windows/headed has a larger minimal viewport. See https://github.com/microsoft/playwright/issues/22616');it.skip(browserName === 'webkit' && isLinux && !headless, 'WebKit headed has a larger minimal viewport on gtk4.');it.skip(browserName === 'firefox' && !headless, 'Firefox headed produces a different image');@@ -125,7 +125,7 @@ it('should not affect screenshots', async ({ page, server, browserName, headlessexpect(screenshots[1]).toMatchSnapshot('grid-cell-0.png');});-it('should change focused iframe', async ({ page, server, browserName, headless }) => {+it('EM-020 should change focused iframe', async ({ page, server, browserName, headless }) => {it.skip(browserName === 'firefox' && !headless, 'Headed FF might lose focus');await page.goto(server.EMPTY_PAGE);const [frame1, frame2] = await Promise.all([@@ -175,7 +175,7 @@ it('should change focused iframe', async ({ page, server, browserName, headless});// @see https://github.com/microsoft/playwright/issues/3476-browserTest('should focus with more than one page/context', async ({ contextFactory }) => {+browserTest('EM-021 should focus with more than one page/context', async ({ contextFactory }) => {const page1 = await (await contextFactory()).newPage();const page2 = await (await contextFactory()).newPage();await page1.setContent(`<button id="foo" onfocus="window.gotFocus=true">foo</button>`);@@ -186,7 +186,7 @@ browserTest('should focus with more than one page/context', async ({ contextFactexpect(await page2.evaluate(() => !!window['gotFocus'])).toBe(true);});-browserTest('should not fire blur events when interacting with more than one page/context', async ({ contextFactory, browserName }) => {+browserTest('EM-022 should not fire blur events when interacting with more than one page/context', async ({ contextFactory, browserName }) => {browserTest.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30399' });const page1 = await (await contextFactory()).newPage();const page2 = await (await contextFactory()).newPage();@@ -198,7 +198,7 @@ browserTest('should not fire blur events when interacting with more than one pagexpect(await page2.evaluate(() => !!window['gotBlur'])).toBe(false);});-browserTest('should not blur iframe when interacting with another page/context', async ({ contextFactory, browserName }) => {+browserTest('EM-023 should not blur iframe when interacting with another page/context', async ({ contextFactory, browserName }) => {browserTest.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42933' });browserTest.fixme(browserName === 'firefox', 'https://github.com/microsoft/playwright/issues/43280');@@ -215,7 +215,7 @@ browserTest('should not blur iframe when interacting with another page/context',expect(await frame2.evaluate(() => document.hasFocus())).toBe(false);});-browserTest('should trigger hover state concurrently', async ({ browserType, headless }) => {+browserTest('EM-024 should trigger hover state concurrently', async ({ browserType, headless }) => {browserTest.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27969' });browserTest.skip(!headless, 'headed messes up with hover');diff --git a/tests/library/events/add-listeners.spec.ts b/tests/library/events/add-listeners.spec.tsindex 7f339ca039..022259cb4d 100644--- a/tests/library/events/add-listeners.spec.ts+++ b/tests/library/events/add-listeners.spec.ts@@ -24,7 +24,7 @@ import { EventEmitter } from './utils';import { test, expect } from '@playwright/test';test.describe('EventEmitter tests', () => {- test('should work', () => {+ test('EE-004 should work', () => {const events_new_listener_emitted = [];const listeners_new_listener_emitted = [];@@ -67,12 +67,12 @@ test.describe('EventEmitter tests', () => {ee.emit('hello', 'a', 'b');});- test('set max listeners test', () => {+ test('EE-005 set max listeners test', () => {const f = new EventEmitter();f.setMaxListeners(0);});- test('Listener order', () => {+ test('EE-006 Listener order', () => {const listen1 = function() {};const listen2 = function() {};const ee = new EventEmitter();@@ -96,7 +96,7 @@ test.describe('EventEmitter tests', () => {expect(listeners[1]).toEqual(listen1);});- test('listener type check', () => {+ test('EE-007 listener type check', () => {const ee = new EventEmitter();expect(() => ee.on('foo', null)).toThrow('The "listener" argument must be of type Function. Received type object');});diff --git a/tests/library/events/check-listener-leaks.spec.ts b/tests/library/events/check-listener-leaks.spec.tsindex e309b4080f..9942bce4da 100644--- a/tests/library/events/check-listener-leaks.spec.ts+++ b/tests/library/events/check-listener-leaks.spec.ts@@ -25,7 +25,7 @@ import { EventEmitter } from './utils';import { test, expect } from '@playwright/test';import * as common from './utils';-test('defaultMaxListeners', () => {+test('EE-008 defaultMaxListeners', () => {const e = new EventEmitter();for (let i = 0; i < 10; i++)@@ -59,7 +59,7 @@ test('defaultMaxListeners', () => {expect(e._events['unlimited']).not.toHaveProperty('warned');});-test('process-wide', () => {+test('EE-009 process-wide', () => {events.EventEmitter.defaultMaxListeners = 42;const e = new EventEmitter();@@ -78,7 +78,7 @@ test('process-wide', () => {expect(e._events['fortytwo'].hasOwnProperty('warned')).toBeTruthy();});-test('_maxListeners still has precedence over defaultMaxListeners', () => {+test('EE-010 _maxListeners still has precedence over defaultMaxListeners', () => {events.EventEmitter.defaultMaxListeners = 42;const e = new EventEmitter();e.setMaxListeners(1);diff --git a/tests/library/events/events-list.spec.ts b/tests/library/events/events-list.spec.tsindex 27f3badb70..4b09a4949a 100644--- a/tests/library/events/events-list.spec.ts+++ b/tests/library/events/events-list.spec.ts@@ -24,7 +24,7 @@ import { EventEmitter } from './utils';import { test, expect } from '@playwright/test';test.describe('EventEmitter', () => {- test('should maintain event names correctly', () => {+ test('EE-011 should maintain event names correctly', () => {const e = new EventEmitter();const m = () => {};e.on('foo', function() {});diff --git a/tests/library/events/listener-count.spec.ts b/tests/library/events/listener-count.spec.tsindex 4161fea2f1..801b34e812 100644--- a/tests/library/events/listener-count.spec.ts+++ b/tests/library/events/listener-count.spec.ts@@ -23,7 +23,7 @@import { EventEmitter } from './utils';import { test, expect } from '@playwright/test';-test('Listener count test', () => {+test('EE-012 Listener count test', () => {const emitter = new EventEmitter();emitter.on('foo', () => {});emitter.on('foo', () => {});diff --git a/tests/library/events/listeners-side-effects.spec.ts b/tests/library/events/listeners-side-effects.spec.tsindex bdf1a0f997..b8a9a7bcc6 100644--- a/tests/library/events/listeners-side-effects.spec.ts+++ b/tests/library/events/listeners-side-effects.spec.ts@@ -23,7 +23,7 @@import { test, expect } from '@playwright/test';import { EventEmitter } from './utils';-test('listeners empty check', () => {+test('EE-013 listeners empty check', () => {const e = new EventEmitter();let fl; // foo listenersdiff --git a/tests/library/events/listeners.spec.ts b/tests/library/events/listeners.spec.tsindex dbc7566fa1..e096d2aa3b 100644--- a/tests/library/events/listeners.spec.ts+++ b/tests/library/events/listeners.spec.ts@@ -30,7 +30,7 @@ const listener4 = () => { return 1; };class TestStream extends EventEmitter {}-test('EventEmitter listeners with one listener', () => {+test('EE-014 EventEmitter listeners with one listener', () => {const ee = new EventEmitter();ee.on('foo', listener);const fooListeners = ee.listeners('foo');@@ -48,7 +48,7 @@ test('EventEmitter listeners with one listener', () => {expect(fooListeners[0]).toEqual(listener);});-test('Array copy modification does not modify orig', () => {+test('EE-015 Array copy modification does not modify orig', () => {const ee = new EventEmitter();ee.on('foo', listener);@@ -69,7 +69,7 @@ test('Array copy modification does not modify orig', () => {expect(eeListenersCopy[1]).toEqual(listener2);});-test('Modify array copy after multiple adds', () => {+test('EE-016 Modify array copy after multiple adds', () => {const ee = new EventEmitter();ee.on('foo', listener);const eeListenersCopy = ee.listeners('foo');@@ -86,7 +86,7 @@ test('Modify array copy after multiple adds', () => {expect(eeListenersCopy[0]).toEqual(listener);});-test('listeners and once', () => {+test('EE-017 listeners and once', () => {const ee = new EventEmitter();ee.once('foo', listener);const listeners = ee.listeners('foo');@@ -95,7 +95,7 @@ test('listeners and once', () => {expect(listeners[0]).toEqual(listener);});-test('listeners with conflicting types', () => {+test('EE-018 listeners with conflicting types', () => {const ee = new EventEmitter();ee.on('foo', listener);ee.once('foo', listener2);@@ -107,7 +107,7 @@ test('listeners with conflicting types', () => {expect(listeners[1]).toEqual(listener2);});-test('EventEmitter with no members', () => {+test('EE-019 EventEmitter with no members', () => {const ee = new EventEmitter();ee._events = undefined;const listeners = ee.listeners('foo');@@ -115,14 +115,14 @@ test('EventEmitter with no members', () => {expect(listeners).toHaveLength(0);});-test('listeners on prototype', () => {+test('EE-020 listeners on prototype', () => {const s = new TestStream();const listeners = s.listeners('foo');expect(Array.isArray(listeners)).toBeTruthy();expect(listeners).toHaveLength(0);});-test('raw listeners', () => {+test('EE-021 raw listeners', () => {const ee = new EventEmitter();ee.on('foo', listener);const wrappedListener = ee.rawListeners('foo');@@ -140,7 +140,7 @@ test('raw listeners', () => {expect(wrappedListeners[1].listener).toEqual(listener);});-test('raw listeners order', () => {+test('EE-022 raw listeners order', () => {const ee = new EventEmitter();ee.once('foo', listener3);ee.on('foo', listener4);diff --git a/tests/library/events/max-listeners.spec.ts b/tests/library/events/max-listeners.spec.tsindex 424120978f..a1a00fccb4 100644--- a/tests/library/events/max-listeners.spec.ts+++ b/tests/library/events/max-listeners.spec.ts@@ -23,7 +23,7 @@import { EventEmitter } from './utils';import { test, expect } from '@playwright/test';-test('emit maxListeners on e', () => {+test('EE-023 emit maxListeners on e', () => {const e = new EventEmitter();e.on('maxListeners', () => {});diff --git a/tests/library/events/method-names.spec.ts b/tests/library/events/method-names.spec.tsindex 72b512baf8..dc5b9f36db 100644--- a/tests/library/events/method-names.spec.ts+++ b/tests/library/events/method-names.spec.ts@@ -23,7 +23,7 @@import { EventEmitter } from './utils';import { test, expect } from '@playwright/test';-test('EventEmitter prototype test', () => {+test('EE-024 EventEmitter prototype test', () => {const ee = new EventEmitter();// eslint-disable-next-line no-protoexpect((ee as any).__proto__.constructor.name).toEqual('EventEmitter');diff --git a/tests/library/events/modify-in-emit.spec.ts b/tests/library/events/modify-in-emit.spec.tsindex a364bdbde1..fe63ee9cee 100644--- a/tests/library/events/modify-in-emit.spec.ts+++ b/tests/library/events/modify-in-emit.spec.ts@@ -43,7 +43,7 @@ const callback3 = () => {e.removeListener('foo', callback3);};-test('add and remove listeners', () => {+test('EE-025 add and remove listeners', () => {e.on('foo', callback1);expect(e.listeners('foo')).toHaveLength(1);@@ -76,7 +76,7 @@ test('add and remove listeners', () => {expect(e.listeners('foo')).toHaveLength(0);});-test('removing callbacks in emit', () => {+test('EE-026 removing callbacks in emit', () => {// Verify that removing callbacks while in emit allows emits to propagate to// all listenerscallbacks_called = [];diff --git a/tests/library/events/num-args.spec.ts b/tests/library/events/num-args.spec.tsindex 4125cc6ecf..651988d661 100644--- a/tests/library/events/num-args.spec.ts+++ b/tests/library/events/num-args.spec.ts@@ -23,7 +23,7 @@import { EventEmitter } from './utils';import { test, expect } from '@playwright/test';-test('should work', () => {+test('EE-027 should work', () => {const e = new EventEmitter();const num_args_emitted = [];diff --git a/tests/library/events/once.spec.ts b/tests/library/events/once.spec.tsindex 0e7f5aebfc..fc35bc8961 100644--- a/tests/library/events/once.spec.ts+++ b/tests/library/events/once.spec.ts@@ -24,7 +24,7 @@ import { test, expect } from '@playwright/test';import { EventEmitter } from './utils';import * as common from './utils';-test('should work', () => {+test('EE-028 should work', () => {const e = new EventEmitter();e.once('hello', common.mustCall());@@ -58,7 +58,7 @@ test('should work', () => {}).toThrow(TypeError);});-test('once() has different code paths based on the number of arguments being emitted', () => {+test('EE-029 once() has different code paths based on the number of arguments being emitted', () => {// Verify that all of the cases are covered.const maxArgs = 4;diff --git a/tests/library/events/prepend.spec.ts b/tests/library/events/prepend.spec.tsindex 2e2de78999..969edb468b 100644--- a/tests/library/events/prepend.spec.ts+++ b/tests/library/events/prepend.spec.ts@@ -23,7 +23,7 @@import { EventEmitter } from './utils';import { test, expect } from '@playwright/test';-test('EventEmitter functionality', () => {+test('EE-030 EventEmitter functionality', () => {const myEE = new EventEmitter();let m = 0;// This one comes last.@@ -44,7 +44,7 @@ test('EventEmitter functionality', () => {myEE.emit('foo');});-test('Verify that the listener must be a function', () => {+test('EE-031 Verify that the listener must be a function', () => {expect(() => {const ee = new EventEmitter();ee.prependOnceListener('foo', null);diff --git a/tests/library/events/remove-all-listeners-wait.spec.ts b/tests/library/events/remove-all-listeners-wait.spec.tsindex d66d34e0cd..4fa3c5f9e1 100644--- a/tests/library/events/remove-all-listeners-wait.spec.ts+++ b/tests/library/events/remove-all-listeners-wait.spec.ts@@ -21,7 +21,7 @@ import { test, expect } from '@playwright/test';const { ManualPromise } = iso;-test('should not throw with ignoreErrors', async () => {+test('EE-032 should not throw with ignoreErrors', async () => {const ee = new EventEmitter();const releaseHandler = new ManualPromise();ee.on('console', async () => {@@ -33,7 +33,7 @@ test('should not throw with ignoreErrors', async () => {releaseHandler.resolve();});-test('should wait', async () => {+test('EE-033 should wait', async () => {const ee = new EventEmitter();const releaseHandler = new ManualPromise();let value = 0;@@ -48,7 +48,7 @@ test('should wait', async () => {expect(value).toBe(42);});-test('should wait all', async () => {+test('EE-034 should wait all', async () => {const ee = new EventEmitter();const releaseHandler = new ManualPromise();const values = [];@@ -68,7 +68,7 @@ test('should wait all', async () => {expect(values).toEqual([42, 43]);});-test('wait should throw', async () => {+test('EE-035 wait should throw', async () => {const ee = new EventEmitter();const releaseHandler = new ManualPromise();ee.on('console', async () => {diff --git a/tests/library/events/remove-all-listeners.spec.ts b/tests/library/events/remove-all-listeners.spec.tsindex b00f747628..16f1d688bd 100644--- a/tests/library/events/remove-all-listeners.spec.ts+++ b/tests/library/events/remove-all-listeners.spec.ts@@ -47,7 +47,7 @@ test.afterEach(() => {}});-test('listeners', () => {+test('EE-036 listeners', () => {const ee = new EventEmitter();const noop = () => { };ee.on('foo', noop);@@ -85,7 +85,7 @@ test('listeners', () => {expect(ee.listeners('baz')).not.toEqual(bazListeners);});-test('removeAllListeners removes all listeners', () => {+test('EE-037 removeAllListeners removes all listeners', () => {const ee = new EventEmitter();ee.on('foo', () => { });ee.on('bar', () => { });@@ -101,7 +101,7 @@ test('removeAllListeners removes all listeners', () => {expect(listeners).toHaveLength(0);});-test('removeAllListeners with no event type', () => {+test('EE-038 removeAllListeners with no event type', () => {const ee = new EventEmitter();ee.on('removeListener', common.mustNotCall());// Check for regression where removeAllListeners() throws when@@ -110,7 +110,7 @@ test('removeAllListeners with no event type', () => {(ee as any).removeAllListeners(ee, 'foo');});-test('listener count after removeAllListeners', () => {+test('EE-039 listener count after removeAllListeners', () => {const ee = new EventEmitter();let expectLength = 2;ee.on('removeListener', () => {@@ -124,12 +124,12 @@ test('listener count after removeAllListeners', () => {expect(ee.listeners('baz').length).toEqual(0);});-test('removeAllListeners returns EventEmitter', () => {+test('EE-040 removeAllListeners returns EventEmitter', () => {const ee = new EventEmitter();expect(ee).toEqual(ee.removeAllListeners());});-test('removeAllListeners on undefined _events', () => {+test('EE-041 removeAllListeners on undefined _events', () => {const ee = new EventEmitter();ee._events = undefined;expect(ee).toEqual(ee.removeAllListeners());diff --git a/tests/library/events/remove-listeners.spec.ts b/tests/library/events/remove-listeners.spec.tsindex 012128c519..670966e944 100644--- a/tests/library/events/remove-listeners.spec.ts+++ b/tests/library/events/remove-listeners.spec.ts@@ -30,7 +30,7 @@ const listener2 = () => {};test.beforeEach(() => common.beforeEach());test.afterEach(() => common.afterEach());-test('First test', () => {+test('EE-042 First test', () => {const ee = new EventEmitter();ee.on('hello', listener1);ee.on('removeListener', common.mustCall((name, cb) => {@@ -43,7 +43,7 @@ test('First test', () => {expect(listeners).toHaveLength(0);});-test('Second test', () => {+test('EE-043 Second test', () => {const ee = new EventEmitter();ee.on('hello', listener1);ee.on('removeListener', common.mustNotCall());@@ -55,7 +55,7 @@ test('Second test', () => {expect(listeners[0]).toEqual(listener1);});-test('Third test', () => {+test('EE-044 Third test', () => {const ee = new EventEmitter();ee.on('hello', listener1);ee.on('hello', listener2);@@ -87,7 +87,7 @@ test('Third test', () => {expect(listeners.length).toEqual(0);});-test('Fourth test', () => {+test('EE-045 Fourth test', () => {const ee = new EventEmitter();const remove1 = () => {@@ -109,7 +109,7 @@ test('Fourth test', () => {ee.removeListener('quux', remove1);});-test('Fifth test', () => {+test('EE-046 Fifth test', () => {const ee = new EventEmitter();const listener3 = common.mustCall(() => {ee.removeListener('hello', listener4);@@ -128,7 +128,7 @@ test('Fifth test', () => {ee.emit('hello');});-test('Sixth test', () => {+test('EE-047 Sixth test', () => {const ee = new EventEmitter();ee.once('hello', listener1);@@ -139,14 +139,14 @@ test('Sixth test', () => {ee.emit('hello');});-test('Seventh test', () => {+test('EE-048 Seventh test', () => {const ee = new EventEmitter();expect(ee).toEqual(ee.removeListener('foo', () => {}));});// Verify that the removed listener must be a function-test('Eighth test', () => {+test('EE-049 Eighth test', () => {expect(() => {const ee = new EventEmitter();@@ -154,7 +154,7 @@ test('Eighth test', () => {}).toThrow(/^The "listener" argument must be of type Function\. Received type object$/);});-test('Ninth test', () => {+test('EE-050 Ninth test', () => {const ee = new EventEmitter();const listener = () => {};ee._events = undefined;@@ -162,7 +162,7 @@ test('Ninth test', () => {expect(e).toEqual(ee);});-test('Tenth test', () => {+test('EE-051 Tenth test', () => {const ee = new EventEmitter();ee.on('foo', listener1);diff --git a/tests/library/events/set-max-listeners-side-effects.spec.ts b/tests/library/events/set-max-listeners-side-effects.spec.tsindex 17e3ce0ce3..42182be40d 100644--- a/tests/library/events/set-max-listeners-side-effects.spec.ts+++ b/tests/library/events/set-max-listeners-side-effects.spec.ts@@ -23,7 +23,7 @@import { EventEmitter } from './utils';import { test, expect } from '@playwright/test';-test('set max listeners test', () => {+test('EE-052 set max listeners test', () => {const e = new EventEmitter();expect(!(e._events instanceof Object)).toBeTruthy();diff --git a/tests/library/events/special-event-names.spec.ts b/tests/library/events/special-event-names.spec.tsindex 3199ee2811..03039bf0f2 100644--- a/tests/library/events/special-event-names.spec.ts+++ b/tests/library/events/special-event-names.spec.ts@@ -24,7 +24,7 @@ import { test, expect } from '@playwright/test';import { EventEmitter } from './utils';-test('should support special event names', () => {+test('EE-053 should support special event names', () => {const ee = new EventEmitter();const handler = () => {};diff --git a/tests/library/events/subclass.spec.ts b/tests/library/events/subclass.spec.tsindex 68d6e073f4..66b1fb6112 100644--- a/tests/library/events/subclass.spec.ts+++ b/tests/library/events/subclass.spec.ts@@ -32,7 +32,7 @@ class MyEE extends EventEmitter {}}-test('myee instance', () => {+test('EE-054 myee instance', () => {const myee = new MyEE(() => {});expect(myee._events).not.toBeInstanceOf(Object);expect(Object.keys(myee._events).length).toBe(0);@@ -45,7 +45,7 @@ class MyEE2 {}}-test('MyEE2 instance', () => {+test('EE-055 MyEE2 instance', () => {const ee1 = new MyEE2();const ee2 = new MyEE2();diff --git a/tests/library/events/symbols.spec.ts b/tests/library/events/symbols.spec.tsindex c78d61476d..dfd68d53dd 100644--- a/tests/library/events/symbols.spec.ts+++ b/tests/library/events/symbols.spec.ts@@ -23,7 +23,7 @@import { EventEmitter } from './utils';import { test, expect } from '@playwright/test';-test('should support symbols', () => {+test('EE-056 should support symbols', () => {const ee = new EventEmitter();const foo = Symbol('foo');const listener = () => {};diff --git a/tests/library/favicon.spec.ts b/tests/library/favicon.spec.tsindex e12a9897cf..0c09af54ec 100644--- a/tests/library/favicon.spec.ts+++ b/tests/library/favicon.spec.ts@@ -17,7 +17,7 @@import { contextTest as it } from '../config/browserTest';-it('should load svg favicon with prefer-color-scheme', async ({ page, server, browserName, headless, asset, channel }) => {+it('FA-001 should load svg favicon with prefer-color-scheme', async ({ page, server, browserName, headless, asset, channel }) => {it.skip(headless && browserName !== 'firefox', 'headless browsers, except firefox, do not request favicons');it.skip(!headless && browserName === 'webkit', 'headed webkit does not have a favicon feature');diff --git a/tests/library/fetch-proxy.spec.ts b/tests/library/fetch-proxy.spec.tsindex a8ec03a7f6..a580ce587e 100644--- a/tests/library/fetch-proxy.spec.ts+++ b/tests/library/fetch-proxy.spec.ts@@ -20,7 +20,7 @@ import { TestServer } from '../config/testserver';it.skip(({ mode }) => mode !== 'default');-it('context request should pick up proxy credentials', async ({ browserType, server, proxyServer }) => {+it('PR-041 context request should pick up proxy credentials', async ({ browserType, server, proxyServer }) => {proxyServer.forwardTo(server.PORT, { allowConnectRequests: true });const authPromise = new Promise<string>(resolve => {proxyServer.setAuthHandler(req => {@@ -44,7 +44,7 @@ it('context request should pick up proxy credentials', async ({ browserType, serawait browser.close();});-it('global request should pick up proxy credentials', async ({ playwright, server, proxyServer }) => {+it('PR-042 global request should pick up proxy credentials', async ({ playwright, server, proxyServer }) => {proxyServer.forwardTo(server.PORT, { allowConnectRequests: true });let auth;proxyServer.setAuthHandler(req => {@@ -61,7 +61,7 @@ it('global request should pick up proxy credentials', async ({ playwright, serveawait request.dispose();});-it('should work with context level proxy', async ({ contextFactory, contextOptions, server, proxyServer }) => {+it('PR-043 should work with context level proxy', async ({ contextFactory, contextOptions, server, proxyServer }) => {server.setRoute('/target.html', async (req, res) => {res.end('<title>Served by the proxy</title>');});@@ -79,7 +79,7 @@ it('should work with context level proxy', async ({ contextFactory, contextOptioexpect(request.url).toBe('/target.html');});-it(`should support proxy.bypass`, async ({ contextFactory, contextOptions, server, proxyServer }) => {+it(`PR-044 should support proxy.bypass`, async ({ contextFactory, contextOptions, server, proxyServer }) => {server.setRoute('/target.html', async (req, res) => {res.end('Served by the proxy');});@@ -130,7 +130,7 @@ it(`should support proxy.bypass`, async ({ contextFactory, contextOptions, serve}});-it('should use socks proxy', async ({ playwright, server, socksPort }) => {+it('PR-045 should use socks proxy', async ({ playwright, server, socksPort }) => {it.skip(!!process.env.INSIDE_DOCKER, 'connect ECONNREFUSED 127.0.0.1:<port>');const request = await playwright.request.newContext({ proxy: {@@ -140,7 +140,7 @@ it('should use socks proxy', async ({ playwright, server, socksPort }) => {expect(await response.text()).toContain('Served by the SOCKS proxy');});-it('should send correct ALPN protocol to HTTPS proxy', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37676' } }, async ({ playwright, server, nodeVersion }) => {+it('PR-046 should send correct ALPN protocol to HTTPS proxy', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37676' } }, async ({ playwright, server, nodeVersion }) => {it.skip(nodeVersion.major < 22, 'ALPNCallback is supported starting from Node 22');let offeredProtocols: string[];@@ -172,7 +172,7 @@ it('should send correct ALPN protocol to HTTPS proxy', { annotation: { type: 'isawait request.dispose();});-it('should apply proxy.bypass to redirect targets', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42815' } }, async ({ contextFactory, server, proxyServer }) => {+it('PR-047 should apply proxy.bypass to redirect targets', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42815' } }, async ({ contextFactory, server, proxyServer }) => {const crossProcessHost = new URL(server.CROSS_PROCESS_PREFIX).host;it.skip(crossProcessHost === server.HOST, 'Needs two different host names for the same server');diff --git a/tests/library/firefox/launcher.spec.ts b/tests/library/firefox/launcher.spec.tsindex 6c03d2a3e2..99a52ad430 100644--- a/tests/library/firefox/launcher.spec.ts+++ b/tests/library/firefox/launcher.spec.ts@@ -19,7 +19,7 @@ import { playwrightTest as it, expect } from '../../config/browserTest';import { TestServer } from '../../config/testserver';import { inheritAndCleanEnv } from '../../config/utils';-it('should pass firefox user preferences', async ({ browserType, mode }) => {+it('FF-001 should pass firefox user preferences', async ({ browserType, mode }) => {const browser = await browserType.launch({firefoxUserPrefs: {'network.proxy.type': 1,@@ -33,7 +33,7 @@ it('should pass firefox user preferences', async ({ browserType, mode }) => {await browser.close();});-it('should pass firefox user preferences in persistent', async ({ mode, launchPersistent }) => {+it('FF-002 should pass firefox user preferences in persistent', async ({ mode, launchPersistent }) => {const { page } = await launchPersistent({firefoxUserPrefs: {'network.proxy.type': 1,@@ -45,7 +45,7 @@ it('should pass firefox user preferences in persistent', async ({ mode, launchPeexpect(error.message).toContain('NS_ERROR_PROXY_CONNECTION_REFUSED');});-it('should support custom firefox policies', async ({ browserType, mode, asset, loopback }, testInfo) => {+it('FF-003 should support custom firefox policies', async ({ browserType, mode, asset, loopback }, testInfo) => {const policies = {'policies': {'Certificates': {@@ -74,7 +74,7 @@ it('should support custom firefox policies', async ({ browserType, mode, asset,await server.stop();});-it('should resize viewport with fractional device scale factor', async ({ browserType }) => {+it('FF-004 should resize viewport with fractional device scale factor', async ({ browserType }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43028' });// A fractional device scale factor makes the viewport size fractional in CSS pixels,// e.g. 400.27x799.9 instead of 400x800. Web content still sees rounded values.diff --git a/tests/library/geolocation.spec.ts b/tests/library/geolocation.spec.tsindex 525e5cd309..2d4576819b 100644--- a/tests/library/geolocation.spec.ts+++ b/tests/library/geolocation.spec.ts@@ -17,7 +17,7 @@import { browserTest as it, expect } from '../config/browserTest';-it('should work @smoke', async ({ server, contextFactory }) => {+it('GE-001 should work @smoke', async ({ server, contextFactory }) => {const context = await contextFactory();const page = await context.newPage();await context.grantPermissions(['geolocation']);@@ -32,7 +32,7 @@ it('should work @smoke', async ({ server, contextFactory }) => {});});-it('should throw when invalid longitude', async ({ contextFactory }) => {+it('GE-002 should throw when invalid longitude', async ({ contextFactory }) => {const context = await contextFactory();let error = null;try {@@ -43,7 +43,7 @@ it('should throw when invalid longitude', async ({ contextFactory }) => {expect(error.message).toContain('geolocation.longitude: precondition -180 <= LONGITUDE <= 180 failed.');});-it('should isolate contexts', async ({ server, contextFactory, browser }) => {+it('GE-003 should isolate contexts', async ({ server, contextFactory, browser }) => {const context = await contextFactory();const page = await context.newPage();await context.grantPermissions(['geolocation']);@@ -76,7 +76,7 @@ it('should isolate contexts', async ({ server, contextFactory, browser }) => {await context2.close();});-it('should throw with missing latitude', async ({ contextFactory }) => {+it('GE-004 should throw with missing latitude', async ({ contextFactory }) => {const context = await contextFactory();let error = null;try {@@ -88,7 +88,7 @@ it('should throw with missing latitude', async ({ contextFactory }) => {expect(error.message).toContain('geolocation.latitude: expected float, got undefined');});-it('should not modify passed default options object', async ({ browser }) => {+it('GE-005 should not modify passed default options object', async ({ browser }) => {const geolocation = { longitude: 10, latitude: 10 };const options = { geolocation };const context = await browser.newContext(options);@@ -97,7 +97,7 @@ it('should not modify passed default options object', async ({ browser }) => {await context.close();});-it('should throw with missing longitude in default options', async ({ browser }) => {+it('GE-006 should throw with missing longitude in default options', async ({ browser }) => {let error = null;try {// @ts-expect-error geolocation must have longitude@@ -109,7 +109,7 @@ it('should throw with missing longitude in default options', async ({ browser })expect(error.message).toContain('geolocation.longitude: expected float, got undefined');});-it('should use context options', async ({ browser, server }) => {+it('GE-007 should use context options', async ({ browser, server }) => {const options = { geolocation: { longitude: 10, latitude: 10 }, permissions: ['geolocation'] };const context = await browser.newContext(options);const page = await context.newPage();@@ -125,7 +125,7 @@ it('should use context options', async ({ browser, server }) => {await context.close();});-it('watchPosition should be notified', async ({ server, contextFactory }) => {+it('GE-008 watchPosition should be notified', async ({ server, contextFactory }) => {const context = await contextFactory();const page = await context.newPage();await context.grantPermissions(['geolocation']);@@ -159,7 +159,7 @@ it('watchPosition should be notified', async ({ server, contextFactory }) => {expect(allMessages).toContain('lat=40 lng=50');});-it('should use context options for popup', async ({ contextFactory, server }) => {+it('GE-009 should use context options for popup', async ({ contextFactory, server }) => {const context = await contextFactory();const page = await context.newPage();await context.grantPermissions(['geolocation']);diff --git a/tests/library/global-fetch-cookie.spec.ts b/tests/library/global-fetch-cookie.spec.tsindex 423e250dd1..4e12fdc347 100644--- a/tests/library/global-fetch-cookie.spec.ts+++ b/tests/library/global-fetch-cookie.spec.ts@@ -43,7 +43,7 @@ const __testHookLookup = (hostname: string): LookupAddress[] => {throw new Error(`Failed to resolve hostname: ${hostname}`);};-it('should store cookie from Set-Cookie header', async ({ request, server }) => {+it('FE-054 should store cookie from Set-Cookie header', async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=b', 'c=d; max-age=3600; domain=b.one.com; path=/input', 'e=f; domain=b.one.com; path=/input/subfolder']);res.end();@@ -56,7 +56,7 @@ it('should store cookie from Set-Cookie header', async ({ request, server }) =>expect(serverRequest.headers.cookie).toBe('c=d');});-it('addCookies should add cookies to the cookie jar', async ({ request, server }) => {+it('FE-055 addCookies should add cookies to the cookie jar', async ({ request, server }) => {await request.addCookies([{ name: 'a', value: 'b', url: server.EMPTY_PAGE },{ name: 'c', value: 'd', domain: 'localhost', path: '/input', httpOnly: true, sameSite: 'Strict' },@@ -75,12 +75,12 @@ it('addCookies should add cookies to the cookie jar', async ({ request, server }]);});-it('addCookies should validate cookies', async ({ request }) => {+it('FE-056 addCookies should validate cookies', async ({ request }) => {const error = await request.addCookies([{ name: 'a', value: 'b' }]).catch(e => e);expect(error.message).toContain('Cookie should have a url or a domain/path pair');});-it('cookies should return cookies filtered by urls', async ({ request, server }) => {+it('FE-057 cookies should return cookies filtered by urls', async ({ request, server }) => {await request.addCookies([{ name: 'a', value: 'b', domain: 'localhost', path: '/' },{ name: 'c', value: 'd', domain: 'localhost', path: '/input' },@@ -95,7 +95,7 @@ it('cookies should return cookies filtered by urls', async ({ request, server })expect(await request.cookies('http://other.com/')).toEqual([]);});-it('cookies should only return cookies that apply to the url', {+it('FE-058 cookies should only return cookies that apply to the url', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43078' },}, async ({ request }) => {await request.addCookies([@@ -114,7 +114,7 @@ it('cookies should only return cookies that apply to the url', {expect(await names('http://one.com/foo/bar')).toEqual(['slash']);});-it('should only send cookies that apply to the url', {+it('FE-059 should only send cookies that apply to the url', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43078' },}, async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {@@ -138,7 +138,7 @@ it('should only send cookies that apply to the url', {expect(await sent('one.com', '/foo/bar')).toBe('slash=v');});-it('cookies should include cookies from Set-Cookie header', async ({ request, server }) => {+it('FE-060 cookies should include cookies from Set-Cookie header', async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=b; HttpOnly; SameSite=Strict', 'c=d; path=/input']);res.end();@@ -150,7 +150,7 @@ it('cookies should include cookies from Set-Cookie header', async ({ request, se]);});-it('clearCookies should remove all cookies', async ({ request, server }) => {+it('FE-061 clearCookies should remove all cookies', async ({ request, server }) => {await request.addCookies([{ name: 'a', value: 'b', url: server.EMPTY_PAGE },{ name: 'c', value: 'd', domain: 'one.com', path: '/' },@@ -164,7 +164,7 @@ it('clearCookies should remove all cookies', async ({ request, server }) => {expect(serverRequest.headers.cookie).toBeUndefined();});-it('clearCookies should filter by name, domain and path', async ({ request }) => {+it('FE-062 clearCookies should filter by name, domain and path', async ({ request }) => {await request.addCookies([{ name: 'session', value: '1', domain: 'one.com', path: '/' },{ name: 'session', value: '2', domain: 'two.com', path: '/' },@@ -183,7 +183,7 @@ it('clearCookies should filter by name, domain and path', async ({ request }) =>expect(await values()).toEqual([]);});-it('clearCookies should remove nameless cookies by empty name', {+it('FE-063 clearCookies should remove nameless cookies by empty name', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43112' },}, async ({ request }) => {await request.addCookies([@@ -194,7 +194,7 @@ it('clearCookies should remove nameless cookies by empty name', {expect((await request.cookies()).map(c => c.name)).toEqual(['session']);});-it('should send nameless cookies as value only', {+it('FE-064 should send nameless cookies as value only', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43155' },}, async ({ request, server }) => {await request.addCookies([@@ -208,7 +208,7 @@ it('should send nameless cookies as value only', {expect(serverRequest.headers.cookie).toBe('nameless; a=b');});-it('should store Set-Cookie without equals sign as nameless cookie', {+it('FE-065 should store Set-Cookie without equals sign as nameless cookie', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43155' },}, async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {@@ -227,7 +227,7 @@ it('should store Set-Cookie without equals sign as nameless cookie', {expect(serverRequest.headers.cookie).toBe('token; a=');});-it('should filter outgoing cookies by path', async ({ request, server }) => {+it('FE-066 should filter outgoing cookies by path', async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; path=/input/subfolder', 'b=v; path=/input', 'c=v;']);res.end();@@ -240,7 +240,7 @@ it('should filter outgoing cookies by path', async ({ request, server }) => {expect(serverRequest.headers.cookie).toBe('b=v; c=v');});-it('should filter outgoing cookies by domain', async ({ request, server }) => {+it('FE-067 should filter outgoing cookies by domain', async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; domain=one.com', 'b=v; domain=.b.one.com', 'c=v; domain=other.com']);res.end();@@ -259,7 +259,7 @@ it('should filter outgoing cookies by domain', async ({ request, server }) => {expect(serverRequest2.headers.cookie).toBeFalsy();});-it('should do case-insensitive match of cookie domain', async ({ request, server }) => {+it('FE-068 should do case-insensitive match of cookie domain', async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; domain=One.com', 'b=v; domain=.B.oNe.com']);res.end();@@ -272,7 +272,7 @@ it('should do case-insensitive match of cookie domain', async ({ request, serverexpect(serverRequest.headers.cookie).toBe('a=v; b=v');});-it('should do case-insensitive match of request domain', async ({ request, server }) => {+it('FE-069 should do case-insensitive match of request domain', async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; domain=one.com', 'b=v; domain=.b.one.com']);res.end();@@ -285,7 +285,7 @@ it('should do case-insensitive match of request domain', async ({ request, serveexpect(serverRequest.headers.cookie).toBe('a=v; b=v');});-it('should send secure cookie over https', async ({ request, server, httpsServer }) => {+it('FE-070 should send secure cookie over https', async ({ request, server, httpsServer }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; secure', 'b=v']);res.end();@@ -298,7 +298,7 @@ it('should send secure cookie over https', async ({ request, server, httpsServerexpect(serverRequest.headers.cookie).toBe('a=v; b=v');});-it('should send secure cookie over http for localhost', async ({ request, server }) => {+it('FE-071 should send secure cookie over http for localhost', async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; secure', 'b=v']);res.end();@@ -311,7 +311,7 @@ it('should send secure cookie over http for localhost', async ({ request, serverexpect(serverRequest.headers.cookie).toBe('a=v; b=v');});-it('should send secure cookie over http for subdomains of localhost', async ({ request, server }) => {+it('FE-072 should send secure cookie over http for subdomains of localhost', async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; secure', 'b=v']);res.end();@@ -326,7 +326,7 @@ it('should send secure cookie over http for subdomains of localhost', async ({ r});for (const host of ['127.0.0.1', '[::1]']) {- it(`should send secure cookie over http for ${host}`, { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43115' } }, async ({ request, server }) => {+ it(`FE-073 should send secure cookie over http for ${host}`, { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43115' } }, async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; secure', 'b=v']);res.end();@@ -342,7 +342,7 @@ for (const host of ['127.0.0.1', '[::1]']) {});}-it('should send not expired cookies', async ({ request, server }) => {+it('FE-074 should send not expired cookies', async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {const tomorrow = new Date();tomorrow.setDate(tomorrow.getDate() + 1);@@ -357,7 +357,7 @@ it('should send not expired cookies', async ({ request, server }) => {expect(serverRequest.headers.cookie).toBe('a=v; b=v');});-it('should remove expired cookies', async ({ request, server }) => {+it('FE-075 should remove expired cookies', async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v', `b=v; expires=${new Date().toUTCString()}`]);res.end();@@ -370,7 +370,7 @@ it('should remove expired cookies', async ({ request, server }) => {expect(serverRequest.headers.cookie).toBe('a=v');});-it('should remove cookie with negative max-age', async ({ request, server }) => {+it('FE-076 should remove cookie with negative max-age', async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; max-age=100000', `b=v; max-age=100000`, 'c=v']);res.end();@@ -389,7 +389,7 @@ it('should remove cookie with negative max-age', async ({ request, server }) =>expect(serverRequest.headers.cookie).toBe('c=v');});-it('should prefer max-age over expires regardless of the order', async ({ request, server }) => {+it('FE-077 should prefer max-age over expires regardless of the order', async ({ request, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43077' });const past = 'Thu, 01 Jan 1970 00:00:00 GMT';@@ -411,7 +411,7 @@ it('should prefer max-age over expires regardless of the order', async ({ requesexpect(serverRequest.headers.cookie).toBe('a=v; b=v');});-it('should ignore max-age that is not a number', async ({ request, server }) => {+it('FE-078 should ignore max-age that is not a number', async ({ request, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43077' });server.setRoute('/setcookie.html', (req, res) => {@@ -428,7 +428,7 @@ it('should ignore max-age that is not a number', async ({ request, server }) =>expect(cookies.map(c => c.expires)).toEqual([-1, -1, -1]);});-it('should remove cookie with expires far in the past', async ({ request, server }) => {+it('FE-079 should remove cookie with expires far in the past', async ({ request, server }) => {server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=v; max-age=1000000']);res.end();@@ -446,7 +446,7 @@ it('should remove cookie with expires far in the past', async ({ request, serverexpect(serverRequest.headers.cookie).toBeFalsy();});-it('should store cookie from Set-Cookie header even if it contains equal signs', async ({ request, server }) => {+it('FE-080 should store cookie from Set-Cookie header even if it contains equal signs', async ({ request, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/11612' });server.setRoute('/setcookie.html', (req, res) => {@@ -473,7 +473,7 @@ it('should store cookie from Set-Cookie header even if it contains equal signs',});});-it('should override cookie from Set-Cookie header', async ({ request, server }) => {+it('FE-081 should override cookie from Set-Cookie header', async ({ request, server }) => {const tomorrow = new Date();tomorrow.setDate(tomorrow.getDate() + 1);@@ -501,7 +501,7 @@ it('should override cookie from Set-Cookie header', async ({ request, server })expect(state.cookies[0].expires).toBe(dayAfterTomorrowInSeconds);});-it('should override cookie from Set-Cookie header even if it expired', async ({ request, server }) => {+it('FE-082 should override cookie from Set-Cookie header even if it expired', async ({ request, server }) => {const tomorrow = new Date();tomorrow.setDate(tomorrow.getDate() + 1);@@ -527,7 +527,7 @@ it('should override cookie from Set-Cookie header even if it expired', async ({expect(serverRequest.headers.cookie).toBeFalsy();});-it('should export cookies to storage state', async ({ request, server }) => {+it('FE-083 should export cookies to storage state', async ({ request, server }) => {const expires = new Date('12/31/2100 PST');server.setRoute('/setcookie.html', (req, res) => {res.setHeader('Set-Cookie', ['a=b', `c=d; expires=${expires.toUTCString()}; domain=b.one.com; path=/input`, 'e=f; domain=b.one.com; path=/input/subfolder']);@@ -572,7 +572,7 @@ it('should export cookies to storage state', async ({ request, server }) => {});});-it('should preserve origin storage on import/export of storage state', async ({ playwright, server }) => {+it('FE-084 should preserve origin storage on import/export of storage state', async ({ playwright, server }) => {const storageState: StorageStateType = {cookies: [{@@ -635,7 +635,7 @@ it('should preserve origin storage on import/export of storage state', async ({await request.dispose();});-it('should send cookies from storage state', async ({ playwright, server }) => {+it('FE-085 should send cookies from storage state', async ({ playwright, server }) => {const expires = new Date('12/31/2099 PST');const storageState: StorageStateType = {'cookies': [@@ -680,7 +680,7 @@ it('should send cookies from storage state', async ({ playwright, server }) => {expect(serverRequest.headers.cookie).toBe('c=d; e=f');});-it('storage state should round-trip through file', async ({ playwright, server }, testInfo) => {+it('FE-086 storage state should round-trip through file', async ({ playwright, server }, testInfo) => {const storageState: StorageStateType = {'cookies': [{@@ -710,7 +710,7 @@ it('storage state should round-trip through file', async ({ playwright, server }expect(state2).toEqual(storageState);});-it('should work with empty storage state', async ({ playwright, server }, testInfo) => {+it('FE-087 should work with empty storage state', async ({ playwright, server }, testInfo) => {const storageState = testInfo.outputPath('storage-state.json');await fs.promises.writeFile(storageState, '{}');const request1 = await playwright.request.newContext({ storageState });diff --git a/tests/library/global-fetch.spec.ts b/tests/library/global-fetch.spec.tsindex bfe1dfd507..ea71ee334e 100644--- a/tests/library/global-fetch.spec.ts+++ b/tests/library/global-fetch.spec.ts@@ -29,7 +29,7 @@ const it = base.extend({it.skip(({ mode }) => mode !== 'default');for (const method of ['fetch', 'delete', 'get', 'head', 'patch', 'post', 'put'] as const) {- it(`${method} should work @smoke`, async ({ playwright, server }) => {+ it(`FE-001 ${method} should work @smoke`, async ({ playwright, server }) => {const request = await playwright.request.newContext();const response = await request[method](server.PREFIX + '/simple.json');expect(response.url()).toBe(server.PREFIX + '/simple.json');@@ -44,7 +44,7 @@ for (const method of ['fetch', 'delete', 'get', 'head', 'patch', 'post', 'put']}-it(`should dispose global request`, async function({ playwright, server }) {+it(`FE-002 should dispose global request`, async function({ playwright, server }) {const request = await playwright.request.newContext();const response = await request.get(server.PREFIX + '/simple.json');expect(await response.json()).toEqual({ foo: 'bar' });@@ -54,7 +54,7 @@ it(`should dispose global request`, async function({ playwright, server }) {await request.dispose();});-it('should support global userAgent option', async ({ playwright, server }) => {+it('FE-003 should support global userAgent option', async ({ playwright, server }) => {const request = await playwright.request.newContext({ userAgent: 'My Agent' });const [serverRequest, response] = await Promise.all([server.waitForRequest('/empty.html'),@@ -66,7 +66,7 @@ it('should support global userAgent option', async ({ playwright, server }) => {await request.dispose();});-it('should support global timeout option', async ({ playwright, server }) => {+it('FE-004 should support global timeout option', async ({ playwright, server }) => {const request = await playwright.request.newContext({ timeout: 100 });server.setRoute('/empty.html', (req, res) => {});const error = await request.get(server.EMPTY_PAGE).catch(e => e);@@ -74,7 +74,7 @@ it('should support global timeout option', async ({ playwright, server }) => {await request.dispose();});-it('should propagate extra http headers with redirects', async ({ playwright, server }) => {+it('FE-005 should propagate extra http headers with redirects', async ({ playwright, server }) => {server.setRedirect('/a/redirect1', '/b/c/redirect2');server.setRedirect('/b/c/redirect2', '/simple.json');const request = await playwright.request.newContext({ extraHTTPHeaders: { 'My-Secret': 'Value' } });@@ -90,7 +90,7 @@ it('should propagate extra http headers with redirects', async ({ playwright, seawait request.dispose();});-it('should preserve authorization on same-origin redirect but strip on cross-origin', async ({ playwright, server }) => {+it('FE-006 should preserve authorization on same-origin redirect but strip on cross-origin', async ({ playwright, server }) => {server.setRedirect('/same/redirect', '/same/dest');server.setRedirect('/cross/redirect', server.CROSS_PROCESS_PREFIX + '/cross/dest');const request = await playwright.request.newContext({@@ -112,7 +112,7 @@ it('should preserve authorization on same-origin redirect but strip on cross-oriawait request.dispose();});-it('should support global httpCredentials option', async ({ playwright, server }) => {+it('FE-007 should support global httpCredentials option', async ({ playwright, server }) => {server.setAuth('/empty.html', 'user', 'pass');const request1 = await playwright.request.newContext();const response1 = await request1.get(server.EMPTY_PAGE);@@ -125,7 +125,7 @@ it('should support global httpCredentials option', async ({ playwright, server }await request2.dispose();});-it('should return error with wrong credentials', async ({ playwright, server }) => {+it('FE-008 should return error with wrong credentials', async ({ playwright, server }) => {server.setAuth('/empty.html', 'user', 'pass');const request = await playwright.request.newContext({ httpCredentials: { username: 'user', password: 'wrong' } });const response = await request.get(server.EMPTY_PAGE);@@ -133,7 +133,7 @@ it('should return error with wrong credentials', async ({ playwright, server })await request.dispose();});-it('should work with correct credentials and matching origin', async ({ playwright, server }) => {+it('FE-009 should work with correct credentials and matching origin', async ({ playwright, server }) => {server.setAuth('/empty.html', 'user', 'pass');const request = await playwright.request.newContext({ httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX } });const response = await request.get(server.EMPTY_PAGE);@@ -141,7 +141,7 @@ it('should work with correct credentials and matching origin', async ({ playwrigawait request.dispose();});-it('should work with correct credentials and matching origin case insensitive', async ({ playwright, server }) => {+it('FE-010 should work with correct credentials and matching origin case insensitive', async ({ playwright, server }) => {server.setAuth('/empty.html', 'user', 'pass');const request = await playwright.request.newContext({ httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase() } });const response = await request.get(server.EMPTY_PAGE);@@ -149,7 +149,7 @@ it('should work with correct credentials and matching origin case insensitive',await request.dispose();});-it('should return error with correct credentials and mismatching scheme', async ({ playwright, server }) => {+it('FE-011 should return error with correct credentials and mismatching scheme', async ({ playwright, server }) => {server.setAuth('/empty.html', 'user', 'pass');const request = await playwright.request.newContext({ httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.replace('http://', 'https://') } });const response = await request.get(server.EMPTY_PAGE);@@ -157,7 +157,7 @@ it('should return error with correct credentials and mismatching scheme', asyncawait request.dispose();});-it('should return error with correct credentials and mismatching hostname', async ({ playwright, server }) => {+it('FE-012 should return error with correct credentials and mismatching hostname', async ({ playwright, server }) => {server.setAuth('/empty.html', 'user', 'pass');const hostname = new URL(server.PREFIX).hostname;const origin = server.PREFIX.replace(hostname, 'mismatching-hostname');@@ -167,7 +167,7 @@ it('should return error with correct credentials and mismatching hostname', asynawait request.dispose();});-it('should return error with correct credentials and mismatching port', async ({ playwright, server }) => {+it('FE-013 should return error with correct credentials and mismatching port', async ({ playwright, server }) => {server.setAuth('/empty.html', 'user', 'pass');const origin = server.PREFIX.replace(server.PORT.toString(), (server.PORT + 1).toString());const request = await playwright.request.newContext({ httpCredentials: { username: 'user', password: 'pass', origin: origin } });@@ -176,7 +176,7 @@ it('should return error with correct credentials and mismatching port', async ({await request.dispose();});-it('should support WWW-Authenticate: Basic', async ({ playwright, server }) => {+it('FE-014 should support WWW-Authenticate: Basic', async ({ playwright, server }) => {let credentials;server.setRoute('/empty.html', (req, res) => {if (!req.headers.authorization) {@@ -195,7 +195,7 @@ it('should support WWW-Authenticate: Basic', async ({ playwright, server }) => {await request.dispose();});-it('should support HTTPCredentials.send', async ({ playwright, server }) => {+it('FE-015 should support HTTPCredentials.send', async ({ playwright, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30534' });const request = await playwright.request.newContext({httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' }@@ -220,7 +220,7 @@ it('should support HTTPCredentials.send', async ({ playwright, server }) => {await request.dispose();});-it('should support multiple httpCredentials', async ({ playwright, server }) => {+it('FE-016 should support multiple httpCredentials', async ({ playwright, server }) => {server.setAuth('/empty.html', 'user1', 'pass1');const request = await playwright.request.newContext({httpCredentials: [@@ -236,7 +236,7 @@ it('should support multiple httpCredentials', async ({ playwright, server }) =>await request.dispose();});-it('should support HTTPCredentials.send with multiple httpCredentials', async ({ playwright, server }) => {+it('FE-017 should support HTTPCredentials.send with multiple httpCredentials', async ({ playwright, server }) => {const request = await playwright.request.newContext({httpCredentials: [{ username: 'user1', password: 'pass1', origin: server.PREFIX, send: 'always' },@@ -263,14 +263,14 @@ it('should support HTTPCredentials.send with multiple httpCredentials', async ({await request.dispose();});-it('should support global ignoreHTTPSErrors option', async ({ playwright, httpsServer }) => {+it('FE-018 should support global ignoreHTTPSErrors option', async ({ playwright, httpsServer }) => {const request = await playwright.request.newContext({ ignoreHTTPSErrors: true });const response = await request.get(httpsServer.EMPTY_PAGE);expect(response.status()).toBe(200);await request.dispose();});-it('should propagate ignoreHTTPSErrors on redirects', async ({ playwright, httpsServer }) => {+it('FE-019 should propagate ignoreHTTPSErrors on redirects', async ({ playwright, httpsServer }) => {httpsServer.setRedirect('/redir', '/empty.html');const request = await playwright.request.newContext();const response = await request.get(httpsServer.PREFIX + '/redir', { ignoreHTTPSErrors: true });@@ -278,7 +278,7 @@ it('should propagate ignoreHTTPSErrors on redirects', async ({ playwright, httpsawait request.dispose();});-it('should return server address from response', async ({ playwright, server }) => {+it('FE-020 should return server address from response', async ({ playwright, server }) => {const request = await playwright.request.newContext();// The second request reuses the keep-alive socket and should report the address as well.for (let i = 0; i < 2; i++) {@@ -290,7 +290,7 @@ it('should return server address from response', async ({ playwright, server })await request.dispose();});-it('should return security details from response', async ({ playwright, httpsServer }) => {+it('FE-021 should return security details from response', async ({ playwright, httpsServer }) => {const request = await playwright.request.newContext({ ignoreHTTPSErrors: true });// The second request reuses the keep-alive socket and should report the details as well.for (let i = 0; i < 2; i++) {@@ -300,7 +300,7 @@ it('should return security details from response', async ({ playwright, httpsSerawait request.dispose();});-it('should return security details for a resumed TLS session', async ({ playwright, httpsServer }) => {+it('FE-022 should return security details for a resumed TLS session', async ({ playwright, httpsServer }) => {const expected = { issuer: 'playwright-test', protocol: 'TLSv1.3', subjectName: 'playwright-test', validFrom: 1691708270, validTo: 2007068270 };const request = await playwright.request.newContext({ ignoreHTTPSErrors: true });// 'Connection: close' drops the socket, so the next request opens a new one and resumes@@ -312,14 +312,14 @@ it('should return security details for a resumed TLS session', async ({ playwrigawait request.dispose();});-it('should return null security details for http response', async ({ playwright, server }) => {+it('FE-023 should return null security details for http response', async ({ playwright, server }) => {const request = await playwright.request.newContext();const response = await request.get(server.EMPTY_PAGE);expect(await response.securityDetails()).toBeNull();await request.dispose();});-it('should return security details for certificate with multiple CN attributes', {+it('FE-024 should return security details for certificate with multiple CN attributes', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41815' },}, async ({ playwright, asset }) => {const server = utils.createHttpsServer({@@ -343,21 +343,21 @@ it('should return security details for certificate with multiple CN attributes',}});-it('should resolve url relative to global baseURL option', async ({ playwright, server }) => {+it('FE-025 should resolve url relative to global baseURL option', async ({ playwright, server }) => {const request = await playwright.request.newContext({ baseURL: server.PREFIX });const response = await request.get('/empty.html');expect(response.url()).toBe(server.EMPTY_PAGE);await request.dispose();});-it('should fallback to given URL if baseURL is bogus', async ({ playwright, server }) => {+it('FE-026 should fallback to given URL if baseURL is bogus', async ({ playwright, server }) => {const request = await playwright.request.newContext({ baseURL: 'bogus' });const response = await request.get(server.PREFIX + '/empty.html');expect(response.url()).toBe(server.EMPTY_PAGE);await request.dispose();});-it('should set playwright as user-agent', async ({ playwright, server, isWindows, isLinux, isMac }) => {+it('FE-027 should set playwright as user-agent', async ({ playwright, server, isWindows, isLinux, isMac }) => {const request = await playwright.request.newContext();const [serverRequest] = await Promise.all([server.waitForRequest('/empty.html'),@@ -384,7 +384,7 @@ it('should set playwright as user-agent', async ({ playwright, server, isWindowsawait request.dispose();});-it('should be able to construct with context options', async ({ playwright, browserType, server }) => {+it('FE-028 should be able to construct with context options', async ({ playwright, browserType, server }) => {const defaultContextOptions = {};await (playwright as any)._instrumentation.runBeforeCreateRequestContext(defaultContextOptions);const request = await playwright.request.newContext(defaultContextOptions);@@ -393,7 +393,7 @@ it('should be able to construct with context options', async ({ playwright, browawait request.dispose();});-it('should return empty body', async ({ playwright, server }) => {+it('FE-029 should return empty body', async ({ playwright, server }) => {const request = await playwright.request.newContext();const response = await request.get(server.EMPTY_PAGE);const body = await response.body();@@ -402,7 +402,7 @@ it('should return empty body', async ({ playwright, server }) => {await request.dispose();});-it('should abort requests when context is disposed', async ({ playwright, server }) => {+it('FE-030 should abort requests when context is disposed', async ({ playwright, server }) => {const connectionClosed = new Promise(resolve => {server.setRoute('/empty.html', req => req.socket.on('close', resolve));});@@ -421,7 +421,7 @@ it('should abort requests when context is disposed', async ({ playwright, serverawait request.dispose();});-it('should abort redirected requests when context is disposed', async ({ playwright, server }) => {+it('FE-031 should abort redirected requests when context is disposed', async ({ playwright, server }) => {server.setRedirect('/redirect', '/test');const connectionClosed = new Promise(resolve => {server.setRoute('/test', req => req.socket.on('close', resolve));@@ -437,7 +437,7 @@ it('should abort redirected requests when context is disposed', async ({ playwriawait request.dispose();});-it('should remove content-length from redirected post requests', async ({ playwright, server }) => {+it('FE-032 should remove content-length from redirected post requests', async ({ playwright, server }) => {server.setRedirect('/redirect', '/empty.html');const request = await playwright.request.newContext();const [result, req1, req2] = await Promise.all([@@ -470,7 +470,7 @@ const serialization: [string, any][] = [];for (const [type, value] of serialization) {const stringifiedValue = JSON.stringify(value);- it(`should json stringify ${type} body when content-type is application/json`, {+ it(`FE-033 should json stringify ${type} body when content-type is application/json`, {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43388' },}, async ({ playwright, server }) => {const request = await playwright.request.newContext();@@ -490,7 +490,7 @@ for (const [type, value] of serialization) {await request.dispose();});- it(`should not double stringify ${type} body when content-type is application/json`, async ({ playwright, server }) => {+ it(`FE-034 should not double stringify ${type} body when content-type is application/json`, async ({ playwright, server }) => {const request = await playwright.request.newContext();const [req] = await Promise.all([server.waitForRequest('/empty.html'),@@ -507,7 +507,7 @@ for (const [type, value] of serialization) {});}-it(`should accept already serialized data as Buffer when content-type is application/json`, async ({ playwright, server }) => {+it(`FE-035 should accept already serialized data as Buffer when content-type is application/json`, async ({ playwright, server }) => {const request = await playwright.request.newContext();const value = JSON.stringify(JSON.stringify({ 'foo': 'bar' }));const [req] = await Promise.all([@@ -524,7 +524,7 @@ it(`should accept already serialized data as Buffer when content-type is applicaawait request.dispose();});-it(`should have nice toString`, async ({ playwright, server }) => {+it(`FE-036 should have nice toString`, async ({ playwright, server }) => {const request = await playwright.request.newContext();const response = await request.post(server.EMPTY_PAGE, {headers: {@@ -539,7 +539,7 @@ it(`should have nice toString`, async ({ playwright, server }) => {await request.dispose();});-it('should not fail on empty body with encoding', async ({ playwright, server }) => {+it('FE-037 should not fail on empty body with encoding', async ({ playwright, server }) => {const request = await playwright.request.newContext();for (const method of ['head', 'put']) {for (const encoding of ['br', 'gzip', 'deflate']) {@@ -558,7 +558,7 @@ it('should not fail on empty body with encoding', async ({ playwright, server })await request.dispose();});-it('should return body for failing requests', async ({ playwright, server }) => {+it('FE-038 should return body for failing requests', async ({ playwright, server }) => {const request = await playwright.request.newContext();for (const method of ['head', 'put', 'trace']) {server.setRoute('/empty.html', (req, res) => {@@ -575,7 +575,7 @@ it('should return body for failing requests', async ({ playwright, server }) =>const HTTP_METHODS = ['GET', 'PUT', 'POST', 'OPTIONS', 'HEAD', 'PATCH'] as const;-it('should throw an error when maxRedirects is exceeded', async ({ playwright, server }) => {+it('FE-039 should throw an error when maxRedirects is exceeded', async ({ playwright, server }) => {server.setRedirect('/a/redirect1', '/b/c/redirect2');server.setRedirect('/b/c/redirect2', '/b/c/redirect3');server.setRedirect('/b/c/redirect3', '/b/c/redirect4');@@ -589,7 +589,7 @@ it('should throw an error when maxRedirects is exceeded', async ({ playwright, sawait request.dispose();});-it('should not follow redirects when maxRedirects is set to 0', async ({ playwright, server }) => {+it('FE-040 should not follow redirects when maxRedirects is set to 0', async ({ playwright, server }) => {server.setRedirect('/a/redirect1', '/b/c/redirect2');server.setRedirect('/b/c/redirect2', '/simple.json');@@ -602,7 +602,7 @@ it('should not follow redirects when maxRedirects is set to 0', async ({ playwriawait request.dispose();});-it('should throw an error when maxRedirects is less than 0', async ({ playwright, server }) => {+it('FE-041 should throw an error when maxRedirects is less than 0', async ({ playwright, server }) => {server.setRedirect('/a/redirect1', '/b/c/redirect2');server.setRedirect('/b/c/redirect2', '/simple.json');@@ -612,7 +612,7 @@ it('should throw an error when maxRedirects is less than 0', async ({ playwrightawait request.dispose();});-it('should not follow redirects when maxRedirects is set to 0 in newContext', async ({ playwright, server }) => {+it('FE-042 should not follow redirects when maxRedirects is set to 0 in newContext', async ({ playwright, server }) => {server.setRedirect('/a/redirect1', '/b/c/redirect2');server.setRedirect('/b/c/redirect2', '/simple.json');@@ -625,7 +625,7 @@ it('should not follow redirects when maxRedirects is set to 0 in newContext', asawait request.dispose();});-it('should follow redirects up to maxRedirects limit set in newContext', async ({ playwright, server }) => {+it('FE-043 should follow redirects up to maxRedirects limit set in newContext', async ({ playwright, server }) => {server.setRedirect('/a/redirect1', '/b/c/redirect2');server.setRedirect('/b/c/redirect2', '/b/c/redirect3');server.setRedirect('/b/c/redirect3', '/b/c/redirect4');@@ -646,7 +646,7 @@ it('should follow redirects up to maxRedirects limit set in newContext', async (}});-it('should use maxRedirects from fetch when provided, overriding newContext', async ({ playwright, server }) => {+it('FE-044 should use maxRedirects from fetch when provided, overriding newContext', async ({ playwright, server }) => {server.setRedirect('/a/redirect1', '/b/c/redirect2');server.setRedirect('/b/c/redirect2', '/b/c/redirect3');server.setRedirect('/b/c/redirect3', '/b/c/redirect4');@@ -660,7 +660,7 @@ it('should use maxRedirects from fetch when provided, overriding newContext', asawait request.dispose();});-it('should keep headers capitalization', async ({ playwright, server }) => {+it('FE-045 should keep headers capitalization', async ({ playwright, server }) => {const request = await playwright.request.newContext();const [serverRequest, response] = await Promise.all([server.waitForRequest('/empty.html'),@@ -676,7 +676,7 @@ it('should keep headers capitalization', async ({ playwright, server }) => {await request.dispose();});-it('should serialize post data on the client', async ({ playwright, server }) => {+it('FE-046 should serialize post data on the client', async ({ playwright, server }) => {const request = await playwright.request.newContext();const serverReq = server.waitForRequest('/empty.html');let onStack: boolean = true;@@ -696,14 +696,14 @@ it('should serialize post data on the client', async ({ playwright, server }) =>await request.dispose();});-it('should throw after dispose', async ({ playwright, server }) => {+it('FE-047 should throw after dispose', async ({ playwright, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27822' });const request = await playwright.request.newContext();await request.dispose();await expect(request.get(server.EMPTY_PAGE)).rejects.toThrow('Target page, context or browser has been closed');});-it('should retry ECONNRESET', {+it('FE-048 should retry ECONNRESET', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30978' }}, async ({ playwright, server }) => {const request = await playwright.request.newContext();@@ -723,7 +723,7 @@ it('should retry ECONNRESET', {await request.dispose();});-it('should expose node error code on network errors', {+it('FE-049 should expose node error code on network errors', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42532' }}, async ({ playwright, server }) => {// Reset the connection so that node reports a system error instead of a plain 'socket hang up'.@@ -737,7 +737,7 @@ it('should expose node error code on network errors', {await request.dispose();});-it('should append node error code to the message', {+it('FE-050 should append node error code to the message', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42532' }}, async ({ playwright, server }) => {// Node reports this one as a plain 'socket hang up' that does not mention the code.@@ -749,7 +749,7 @@ it('should append node error code to the message', {await request.dispose();});-it('should not crash when server refuses body before reading it', {+it('FE-051 should not crash when server refuses body before reading it', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42074' }}, async ({ playwright, server }) => {// Respond without reading the body, then reset. Node emits a late write@@ -781,7 +781,7 @@ it('should not crash when server refuses body before reading it', {await request.dispose();});-it('should throw when failOnStatusCode is set to true inside APIRequest context options', async ({ playwright, server }) => {+it('FE-052 should throw when failOnStatusCode is set to true inside APIRequest context options', async ({ playwright, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/34204' });const request = await playwright.request.newContext({ failOnStatusCode: true });server.setRoute('/empty.html', (req, res) => {@@ -793,7 +793,7 @@ it('should throw when failOnStatusCode is set to true inside APIRequest contextawait request.dispose();});-it('should not throw when failOnStatusCode is set to false inside APIRequest context options', async ({ playwright, server }) => {+it('FE-053 should not throw when failOnStatusCode is set to false inside APIRequest context options', async ({ playwright, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/34204' });const request = await playwright.request.newContext({ failOnStatusCode: false });server.setRoute('/empty.html', (req, res) => {diff --git a/tests/library/har-websocket.spec.ts b/tests/library/har-websocket.spec.tsindex c1355ffbba..47dd4e1b8b 100644--- a/tests/library/har-websocket.spec.ts+++ b/tests/library/har-websocket.spec.ts@@ -76,7 +76,7 @@ function messageSize(message: string | number[]): number {return 6 + 8 + message.length;}-it('should only have one websocket entry', async ({ contextFactory, server }, testInfo) => {+it('HA-101 should only have one websocket entry', async ({ contextFactory, server }, testInfo) => {server.onceWebSocketConnection(ws => {ws.on('message', () => ws.close());});@@ -97,7 +97,7 @@ it('should only have one websocket entry', async ({ contextFactory, server }, teexpect(wsEntry._resourceType).toBe('websocket');});-it('should include websocket handshake headers and status', async ({ contextFactory, server, browserName, isMac, macVersion }, testInfo) => {+it('HA-102 should include websocket handshake headers and status', async ({ contextFactory, server, browserName, isMac, macVersion }, testInfo) => {server.onceWebSocketConnection(ws => {ws.on('message', () => ws.close());});@@ -231,15 +231,15 @@ async function testWebSocketMessages(contextFactory, server, testInfo, content,expect(wsEntry.time).toBeGreaterThanOrEqual(messages[messages.length - 1].time - messages[0].time);}-it('should embed websocket messages', async ({ contextFactory, server, channel }, testInfo) => {+it('HA-103 should embed websocket messages', async ({ contextFactory, server, channel }, testInfo) => {await testWebSocketMessages(contextFactory, server, testInfo, 'embed', channel);});-it('should attach websocket messages', async ({ contextFactory, server, channel }, testInfo) => {+it('HA-104 should attach websocket messages', async ({ contextFactory, server, channel }, testInfo) => {await testWebSocketMessages(contextFactory, server, testInfo, 'attach', channel);});-it('should attach websocket messages for a still open websocket after stopping', async ({ contextFactory, server, channel }, testInfo) => {+it('HA-105 should attach websocket messages for a still open websocket after stopping', async ({ contextFactory, server, channel }, testInfo) => {const incomingText = 'incoming';const incomingBinary = [0x01, 0x02, 0x03, 0x04];const outgoingText = 'outgoing';@@ -308,11 +308,11 @@ it('should attach websocket messages for a still open websocket after stopping',expect(wsEntry.time).toBeGreaterThanOrEqual(messages[messages.length - 1].time - messages[0].time);});-it('should omit websocket messages', async ({ contextFactory, server }, testInfo) => {+it('HA-106 should omit websocket messages', async ({ contextFactory, server }, testInfo) => {await testWebSocketMessages(contextFactory, server, testInfo, 'omit');});-it('should record websocket connection failure', async ({ contextFactory, server, channel }, testInfo) => {+it('HA-107 should record websocket connection failure', async ({ contextFactory, server, channel }, testInfo) => {it.skip(channel === 'webkit-wsl', 'Connection to an unbound localhost port from WSL is not refused in mirrored networking mode');// Reserve a port and immediately release it so the WebSocket connect attempt is refused.const portReservation = net.createServer();@@ -338,7 +338,7 @@ it('should record websocket connection failure', async ({ contextFactory, serverexpect(wsEntry.response._failureText).toBeTruthy();});-it('should record websocket handshake failure', async ({ contextFactory, server, browserName }, testInfo) => {+it('HA-108 should record websocket handshake failure', async ({ contextFactory, server, browserName }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);@@ -365,7 +365,7 @@ it('should record websocket handshake failure', async ({ contextFactory, server,expect(wsEntry.response._failureText).toBeTruthy();});-it('should still capture websocket when route passes messages through', async ({ contextFactory, server }, testInfo) => {+it('HA-109 should still capture websocket when route passes messages through', async ({ contextFactory, server }, testInfo) => {server.onceWebSocketConnection(ws => {ws.on('message', () => ws.send('incoming'));});@@ -405,7 +405,7 @@ it('should still capture websocket when route passes messages through', async ({]);});-it('should still allow routeWebSocket to fully mock the connection when capturing HAR', async ({ contextFactory, server }, testInfo) => {+it('HA-110 should still allow routeWebSocket to fully mock the connection when capturing HAR', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);let routeHandlerCalled = 0;await page.routeWebSocket(/\/ws$/, ws => {@@ -437,7 +437,7 @@ it('should still allow routeWebSocket to fully mock the connection when capturinexpect(wsEntries).toEqual([]);});-it('should still allow routeWebSocket to modify messages when capturing HAR', async ({ contextFactory, server }, testInfo) => {+it('HA-111 should still allow routeWebSocket to modify messages when capturing HAR', async ({ contextFactory, server }, testInfo) => {server.onceWebSocketConnection(ws => {ws.on('message', message => ws.send(`server-saw-${message.toString()}`));});@@ -479,7 +479,7 @@ it('should still allow routeWebSocket to modify messages when capturing HAR', as]);});-it('should respect PLAYWRIGHT_HAR_NO_WEBSOCKET_FRAMES', async ({ contextFactory, server, mode }, testInfo) => {+it('HA-112 should respect PLAYWRIGHT_HAR_NO_WEBSOCKET_FRAMES', async ({ contextFactory, server, mode }, testInfo) => {it.skip(mode !== 'default', 'no env vars in non-default mode');process.env.PLAYWRIGHT_HAR_NO_WEBSOCKET_FRAMES = '1';diff --git a/tests/library/har.spec.ts b/tests/library/har.spec.tsindex f9d247316d..3db50af282 100644--- a/tests/library/har.spec.ts+++ b/tests/library/har.spec.ts@@ -44,7 +44,7 @@ async function pageWithHar(contextFactory: (options?: BrowserContextOptions) =>};}-it('should have version and creator', async ({ contextFactory, server }, testInfo) => {+it('HA-001 should have version and creator', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);const log = await getLog();@@ -53,7 +53,7 @@ it('should have version and creator', async ({ contextFactory, server }, testInfexpect(log.creator.version).toContain(process.env.PW_VERSION_OVERRIDE || require('../../package.json')['version']);});-it('should have browser', async ({ browserName, browser, contextFactory, server }, testInfo) => {+it('HA-002 should have browser', async ({ browserName, browser, contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);const log = await getLog();@@ -62,7 +62,7 @@ it('should have browser', async ({ browserName, browser, contextFactory, serverexpect(log.browser!.version).toBe(browser.version());});-it('should have pages', async ({ contextFactory, server }, testInfo) => {+it('HA-003 should have pages', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto('data:text/html,<title>Hello</title>');// For data: load comes before domcontentloaded...@@ -77,7 +77,7 @@ it('should have pages', async ({ contextFactory, server }, testInfo) => {expect(pageEntry.pageTimings.onLoad).toBeGreaterThan(0);});-it('should have pages in persistent context', async ({ launchPersistent, browserName }, testInfo) => {+it('HA-004 should have pages in persistent context', async ({ launchPersistent, browserName }, testInfo) => {const harPath = testInfo.outputPath('test.har');const { context, page } = await launchPersistent({ recordHar: { path: harPath } });await page.goto('data:text/html,<title>Hello</title>');@@ -91,7 +91,7 @@ it('should have pages in persistent context', async ({ launchPersistent, browserexpect(pageEntry.title).toBe('Hello');});-it('should include request', async ({ contextFactory, server }, testInfo) => {+it('HA-005 should include request', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);const log = await getLog();@@ -106,7 +106,7 @@ it('should include request', async ({ contextFactory, server }, testInfo) => {expect(entry.request.bodySize).toBe(0);});-it('should populate entry startedDateTime from the browser', async ({ contextFactory, server }, testInfo) => {+it('HA-006 should populate entry startedDateTime from the browser', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);@@ -139,7 +139,7 @@ it('should populate entry startedDateTime from the browser', async ({ contextFacexpect(startedAt).toBeLessThan(unblockedAt - 100);});-it('should include response', async ({ contextFactory, server }, testInfo) => {+it('HA-007 should include response', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);const log = await getLog();@@ -151,7 +151,7 @@ it('should include response', async ({ contextFactory, server }, testInfo) => {expect(entry.response.headers.find(h => h.name.toLowerCase() === 'content-type')!.value).toContain('text/html');});-it('should include redirectURL', async ({ contextFactory, server }, testInfo) => {+it('HA-008 should include redirectURL', async ({ contextFactory, server }, testInfo) => {server.setRedirect('/foo.html', '/empty.html');const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.PREFIX + '/foo.html');@@ -162,14 +162,14 @@ it('should include redirectURL', async ({ contextFactory, server }, testInfo) =>expect(entry.response.redirectURL).toBe(server.EMPTY_PAGE);});-it('should include query params', async ({ contextFactory, server }, testInfo) => {+it('HA-009 should include query params', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.PREFIX + '/har.html?name=value');const log = await getLog();expect(log.entries[0].request.queryString).toEqual([{ name: 'name', value: 'value' }]);});-it('should include postData', async ({ contextFactory, server }, testInfo) => {+it('HA-010 should include postData', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);await page.evaluate(() => fetch('./post', { method: 'POST', body: 'Hello' }));@@ -181,7 +181,7 @@ it('should include postData', async ({ contextFactory, server }, testInfo) => {});});-it('should include binary postData', async ({ contextFactory, server }, testInfo) => {+it('HA-011 should include binary postData', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);await page.evaluate(async () => {@@ -195,7 +195,7 @@ it('should include binary postData', async ({ contextFactory, server }, testInfo});});-it('should include form params', async ({ contextFactory, server }, testInfo) => {+it('HA-012 should include form params', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);await page.setContent(`<form method='POST' action='/post'><input type='text' name='foo' value='bar'><input type='number' name='baz' value='123'><input type='submit'></form>`);@@ -211,7 +211,7 @@ it('should include form params', async ({ contextFactory, server }, testInfo) =>});});-it('should include cookies', async ({ contextFactory, server }, testInfo) => {+it('HA-013 should include cookies', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);const context = page.context();await context.addCookies([@@ -230,7 +230,7 @@ it('should include cookies', async ({ contextFactory, server }, testInfo) => {]);});-it('should include set-cookies', async ({ contextFactory, server }, testInfo) => {+it('HA-014 should include set-cookies', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);server.setRoute('/empty.html', (req, res) => {res.setHeader('Set-Cookie', [@@ -248,7 +248,7 @@ it('should include set-cookies', async ({ contextFactory, server }, testInfo) =>expect(new Date(cookies[2].expires!).valueOf()).toBeGreaterThan(Date.now());});-it('should include set-cookies without equals sign as nameless', {+it('HA-015 should include set-cookies without equals sign as nameless', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43155' },}, async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);@@ -261,7 +261,7 @@ it('should include set-cookies without equals sign as nameless', {expect(log.entries[0].response.cookies).toEqual([{ name: '', value: 'token', httpOnly: true }]);});-it('should include set-cookies with lowercase attributes', async ({ contextFactory, server }, testInfo) => {+it('HA-016 should include set-cookies with lowercase attributes', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);server.setRoute('/empty.html', (req, res) => {res.setHeader('Set-Cookie', ['name=value; path=/; httponly; secure; samesite=Lax']);@@ -273,7 +273,7 @@ it('should include set-cookies with lowercase attributes', async ({ contextFactoexpect(cookies[0]).toEqual({ name: 'name', value: 'value', path: '/', httpOnly: true, secure: true, sameSite: 'Lax' });});-it('should skip invalid Expires', async ({ contextFactory, server }, testInfo) => {+it('HA-017 should skip invalid Expires', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);server.setRoute('/empty.html', (req, res) => {res.setHeader('Set-Cookie', [@@ -287,7 +287,7 @@ it('should skip invalid Expires', async ({ contextFactory, server }, testInfo) =expect(cookies[0]).toEqual({ name: 'name', value: 'value' });});-it('should include set-cookies with comma', async ({ contextFactory, server, browserName }, testInfo) => {+it('HA-018 should include set-cookies with comma', async ({ contextFactory, server, browserName }, testInfo) => {it.fixme(browserName === 'webkit', 'We get "name1=val, ue1, name2=val, ue2" as a header value');const { page, getLog } = await pageWithHar(contextFactory, testInfo);server.setRoute('/empty.html', (req, res) => {@@ -303,7 +303,7 @@ it('should include set-cookies with comma', async ({ contextFactory, server, broexpect(cookies[1]).toEqual({ name: 'name2', value: 'val, ue2' });});-it('should include secure set-cookies', async ({ contextFactory, httpsServer }, testInfo) => {+it('HA-019 should include secure set-cookies', async ({ contextFactory, httpsServer }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);httpsServer.setRoute('/empty.html', (req, res) => {res.setHeader('Set-Cookie', [@@ -317,7 +317,7 @@ it('should include secure set-cookies', async ({ contextFactory, httpsServer },expect(cookies[0]).toEqual({ name: 'name1', value: 'value1', secure: true });});-it('should record request overrides', async ({ contextFactory, server }, testInfo) => {+it('HA-020 should record request overrides', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.route('**/foo', route => {void route.fallback({@@ -343,7 +343,7 @@ it('should record request overrides', async ({ contextFactory, server }, testInfexpect(request.postData).toEqual({ 'mimeType': 'text/plain', 'params': [], 'text': 'Hi!' });});-it('should include content @smoke', async ({ contextFactory, server }, testInfo) => {+it('HA-021 should include content @smoke', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.PREFIX + '/har.html');await page.evaluate(() => fetch('/pptr.png').then(r => r.arrayBuffer()));@@ -368,7 +368,7 @@ it('should include content @smoke', async ({ contextFactory, server }, testInfo)expect(log.entries[2].response.content.compression).toBe(0);});-it('should use attach mode for zip extension', async ({ contextFactory, server }, testInfo) => {+it('HA-022 should use attach mode for zip extension', async ({ contextFactory, server }, testInfo) => {const { page, getZip } = await pageWithHar(contextFactory, testInfo, { outputPath: 'test.har.zip' });await page.goto(server.PREFIX + '/har.html');await page.evaluate(() => fetch('/pptr.png').then(r => r.arrayBuffer()));@@ -378,7 +378,7 @@ it('should use attach mode for zip extension', async ({ contextFactory, server }expect(zip.get('75841480e2606c03389077304342fac2c58ccb1b.html')!.toString()).toContain('HAR Page');});-it('should omit content', async ({ contextFactory, server }, testInfo) => {+it('HA-023 should omit content', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo, { content: 'omit', outputPath: 'test.har' });await page.goto(server.PREFIX + '/har.html');await page.evaluate(() => fetch('/pptr.png').then(r => r.arrayBuffer()));@@ -387,7 +387,7 @@ it('should omit content', async ({ contextFactory, server }, testInfo) => {expect(log.entries[0].response.content._file).toBe(undefined);});-it('should omit content legacy', async ({ contextFactory, server }, testInfo) => {+it('HA-024 should omit content legacy', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo, { omitContent: true, outputPath: 'test.har' });await page.goto(server.PREFIX + '/har.html');await page.evaluate(() => fetch('/pptr.png').then(r => r.arrayBuffer()));@@ -396,7 +396,7 @@ it('should omit content legacy', async ({ contextFactory, server }, testInfo) =>expect(log.entries[0].response.content._file).toBe(undefined);});-it('should attach content', async ({ contextFactory, server }, testInfo) => {+it('HA-025 should attach content', async ({ contextFactory, server }, testInfo) => {const { page, getZip } = await pageWithHar(contextFactory, testInfo, { content: 'attach', outputPath: 'test.har.zip' });await page.goto(server.PREFIX + '/har.html');await page.evaluate(() => fetch('/pptr.png').then(r => r.arrayBuffer()));@@ -426,7 +426,7 @@ it('should attach content', async ({ contextFactory, server }, testInfo) => {expect(zip.get('a4c3a18f0bb83f5d9fe7ce561e065c36205762fa.png')!.byteLength).toBe(log.entries[2].response.content.size);});-it('should filter by glob', async ({ contextFactory, server }, testInfo) => {+it('HA-026 should filter by glob', async ({ contextFactory, server }, testInfo) => {const harPath = testInfo.outputPath('test.har');const context = await contextFactory({ baseURL: server.PREFIX, recordHar: { path: harPath, urlFilter: '/*.css' }, ignoreHTTPSErrors: true });const page = await context.newPage();@@ -437,7 +437,7 @@ it('should filter by glob', async ({ contextFactory, server }, testInfo) => {expect(log.entries[0].request.url.endsWith('one-style.css')).toBe(true);});-it('should filter by regexp', async ({ contextFactory, server }, testInfo) => {+it('HA-027 should filter by regexp', async ({ contextFactory, server }, testInfo) => {const harPath = testInfo.outputPath('test.har');const context = await contextFactory({ recordHar: { path: harPath, urlFilter: /HAR.X?HTML/i }, ignoreHTTPSErrors: true });const page = await context.newPage();@@ -448,7 +448,7 @@ it('should filter by regexp', async ({ contextFactory, server }, testInfo) => {expect(log.entries[0].request.url.endsWith('har.html')).toBe(true);});-it('should include sizes', async ({ contextFactory, server, asset }, testInfo) => {+it('HA-028 should include sizes', async ({ contextFactory, server, asset }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.PREFIX + '/har.html');const log = await getLog();@@ -465,7 +465,7 @@ it('should include sizes', async ({ contextFactory, server, asset }, testInfo) =expect(log.entries[1].response._transferSize).toBeGreaterThanOrEqual(150);});-it('should work with gzip compression', async ({ contextFactory, server, browserName }, testInfo) => {+it('HA-029 should work with gzip compression', async ({ contextFactory, server, browserName }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);server.enableGzip('/simplezip.json');const response = await page.goto(server.PREFIX + '/simplezip.json');@@ -475,21 +475,21 @@ it('should work with gzip compression', async ({ contextFactory, server, browserexpect(log.entries[0].response.content.compression).toBeGreaterThan(4000);});-it('should calculate time', async ({ contextFactory, server }, testInfo) => {+it('HA-030 should calculate time', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.PREFIX + '/har.html');const log = await getLog();expect(log.entries[0].time).toBeGreaterThan(0);});-it('should return receive time', async ({ contextFactory, server }, testInfo) => {+it('HA-031 should return receive time', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.PREFIX + '/har.html');const log = await getLog();expect(log.entries[0].timings.receive).toBeGreaterThan(0);});-it('should report the correct _transferSize with PNG files', async ({ contextFactory, server, asset }, testInfo) => {+it('HA-032 should report the correct _transferSize with PNG files', async ({ contextFactory, server, asset }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);await page.setContent(`@@ -499,7 +499,7 @@ it('should report the correct _transferSize with PNG files', async ({ contextFacexpect(log.entries[1].response._transferSize).toBeGreaterThan(fs.statSync(asset('pptr.png')).size);});-it('should have -1 _transferSize when its a failed request', async ({ contextFactory, server }, testInfo) => {+it('HA-033 should have -1 _transferSize when its a failed request', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);server.setRoute('/one-style.css', (req, res) => {res.setHeader('Content-Type', 'text/css');@@ -513,7 +513,7 @@ it('should have -1 _transferSize when its a failed request', async ({ contextFacexpect(log.entries[1].response._transferSize).toBe(-1);});-it('should record failed request headers', async ({ contextFactory, server }, testInfo) => {+it('HA-034 should record failed request headers', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);server.setRoute('/har.html', (req, res) => {res.socket!.destroy();@@ -527,7 +527,7 @@ it('should record failed request headers', async ({ contextFactory, server }, teexpect(request.headers).toContainEqual(expect.objectContaining({ name: 'User-Agent' }));});-it('should record failed request overrides', async ({ contextFactory, server }, testInfo) => {+it('HA-035 should record failed request overrides', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);server.setRoute('/empty.html', (req, res) => {res.socket!.destroy();@@ -556,7 +556,7 @@ it('should record failed request overrides', async ({ contextFactory, server },expect(request.postData).toEqual({ 'mimeType': 'text/plain', 'params': [], 'text': 'Hi!' });});-it('should report the correct request body size', async ({ contextFactory, server }, testInfo) => {+it('HA-036 should report the correct request body size', async ({ contextFactory, server }, testInfo) => {server.setRoute('/api', (req, res) => res.end());const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);@@ -573,7 +573,7 @@ it('should report the correct request body size', async ({ contextFactory, serveexpect(log.entries[1].request.bodySize).toBe(6);});-it('should report the correct request body size when the bodySize is 0', async ({ contextFactory, server }, testInfo) => {+it('HA-037 should report the correct request body size when the bodySize is 0', async ({ contextFactory, server }, testInfo) => {server.setRoute('/api', (req, res) => res.end());const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);@@ -590,7 +590,7 @@ it('should report the correct request body size when the bodySize is 0', async (expect(log.entries[1].request.bodySize).toBe(0);});-it('should report the correct response body size when the bodySize is 0', async ({ contextFactory, server }, testInfo) => {+it('HA-038 should report the correct response body size when the bodySize is 0', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);const response = await page.goto(server.EMPTY_PAGE);await response!.finished();@@ -598,7 +598,7 @@ it('should report the correct response body size when the bodySize is 0', asyncexpect(log.entries[0].response.bodySize).toBe(0);});-it('should have popup requests', async ({ contextFactory, server }, testInfo) => {+it('HA-039 should have popup requests', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);await page.setContent('<a target=_blank rel=noopener href="/one-style.html">yo</a>');@@ -619,7 +619,7 @@ it('should have popup requests', async ({ contextFactory, server }, testInfo) =>expect(entries[1].response.status).toBe(200);});-it('should not contain internal pages', async ({ browserName, contextFactory, server }, testInfo) => {+it('HA-040 should not contain internal pages', async ({ browserName, contextFactory, server }, testInfo) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/6743' });server.setRoute('/empty.html', (req, res) => {@@ -639,7 +639,7 @@ it('should not contain internal pages', async ({ browserName, contextFactory, seexpect(log.pages!.length).toBe(1);});-it('should have connection details', async ({ contextFactory, server, browserName, platform, mode }, testInfo) => {+it('HA-041 should have connection details', async ({ contextFactory, server, browserName, platform, mode }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);const log = await getLog();@@ -649,7 +649,7 @@ it('should have connection details', async ({ contextFactory, server, browserNamexpect(securityDetails).toEqual({});});-it('should have security details', async ({ contextFactory, httpsServer, browserName, platform, mode, channel, isFrozenWebkit }, testInfo) => {+it('HA-042 should have security details', async ({ contextFactory, httpsServer, browserName, platform, mode, channel, isFrozenWebkit }, testInfo) => {it.fail(browserName === 'webkit' && platform === 'win32' && channel !== 'webkit-wsl');it.skip(isFrozenWebkit);@@ -674,7 +674,7 @@ it('should have security details', async ({ contextFactory, httpsServer, browserexpect(apiLog.entries[0]._securityDetails).toEqual({ issuer: 'playwright-test', protocol: 'TLSv1.3', subjectName: 'playwright-test', validFrom: 1691708270, validTo: 2007068270 });});-it('should have connection details for redirects', async ({ contextFactory, server, browserName, mode }, testInfo) => {+it('HA-043 should have connection details for redirects', async ({ contextFactory, server, browserName, mode }, testInfo) => {server.setRedirect('/foo.html', '/empty.html');const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.PREFIX + '/foo.html');@@ -696,7 +696,7 @@ it('should have connection details for redirects', async ({ contextFactory, servexpect(detailsEmpty._serverPort).toBe(server.PORT);});-it('should have connection details for failed requests', async ({ contextFactory, server, browserName, platform, mode }, testInfo) => {+it('HA-044 should have connection details for failed requests', async ({ contextFactory, server, browserName, platform, mode }, testInfo) => {server.setRoute('/one-style.css', (_, res) => {res.setHeader('Content-Type', 'text/css');res.socket!.destroy();@@ -709,14 +709,14 @@ it('should have connection details for failed requests', async ({ contextFactoryexpect(port).toBe(server.PORT);});-it('should return server address directly from response', async ({ page, server, mode }) => {+it('HA-045 should return server address directly from response', async ({ page, server, mode }) => {const response = await page.goto(server.EMPTY_PAGE);const { ipAddress, port } = (await response!.serverAddr())!;expect(ipAddress).toMatch(/^127\.0\.0\.1|\[::1\]/);expect(port).toBe(server.PORT);});-it('should return security details directly from response', async ({ contextFactory, httpsServer, browserName, platform, isFrozenWebkit }) => {+it('HA-046 should return security details directly from response', async ({ contextFactory, httpsServer, browserName, platform, isFrozenWebkit }) => {it.skip(isFrozenWebkit);const context = await contextFactory({ ignoreHTTPSErrors: true });@@ -732,7 +732,7 @@ it('should return security details directly from response', async ({ contextFactexpect(securityDetails).toEqual({ issuer: 'playwright-test', protocol: 'TLS 1.3', subjectName: 'playwright-test', validFrom: 1691708270, validTo: 2007068270 });});-it('should contain http2 for http2 requests', async ({ contextFactory }, testInfo) => {+it('HA-047 should contain http2 for http2 requests', async ({ contextFactory }, testInfo) => {const server = createHttp2Server(await TestServer.certOptions());server.on('stream', stream => {stream.respond({@@ -752,7 +752,7 @@ it('should contain http2 for http2 requests', async ({ contextFactory }, testInfserver.close();});-it('should filter favicon and favicon redirects', async ({ server, browserName, headless, asset, contextFactory, channel }, testInfo) => {+it('HA-048 should filter favicon and favicon redirects', async ({ server, browserName, headless, asset, contextFactory, channel }, testInfo) => {it.skip(headless && browserName !== 'firefox', 'headless browsers, except firefox, do not request favicons');it.skip(!headless && browserName === 'webkit', 'headed webkit does not have a favicon feature');@@ -800,7 +800,7 @@ it('should filter favicon and favicon redirects', async ({ server, browserName,expect(entry.request.url).toBe(server.PREFIX + '/page.html');});-it('should have different hars for concurrent contexts', async ({ contextFactory }, testInfo) => {+it('HA-049 should have different hars for concurrent contexts', async ({ contextFactory }, testInfo) => {const session0 = await pageWithHar(contextFactory, testInfo, { outputPath: 'test-0.har' });await session0.page.goto('data:text/html,<title>Zero</title>');await session0.page.waitForLoadState('domcontentloaded');@@ -830,7 +830,7 @@ it('should have different hars for concurrent contexts', async ({ contextFactory}});-it('should exclude API request', async ({ contextFactory, server }, testInfo) => {+it('HA-050 should exclude API request', async ({ contextFactory, server }, testInfo) => {const { page, getLog } = await pageWithHar(contextFactory, testInfo);await page.goto(server.EMPTY_PAGE);await page.request.get(server.PREFIX + '/simple.json');@@ -838,7 +838,7 @@ it('should exclude API request', async ({ contextFactory, server }, testInfo) =>expect(log.entries.map(entry => entry.request.url)).toEqual([server.EMPTY_PAGE]);});-it('should correctly record API request cookies with equals sign in value', async ({ contextFactory, server }, testInfo) => {+it('HA-051 should correctly record API request cookies with equals sign in value', async ({ contextFactory, server }, testInfo) => {const context = await contextFactory();const harPath = testInfo.outputPath('request.har');await context.request.tracing.startHar(harPath);@@ -855,7 +855,7 @@ it('should correctly record API request cookies with equals sign in value', asyn]);});-it('should record nameless API request cookies', {+it('HA-052 should record nameless API request cookies', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43155' },}, async ({ contextFactory, server }, testInfo) => {const context = await contextFactory();@@ -873,7 +873,7 @@ it('should record nameless API request cookies', {]);});-it('should respect minimal mode for API Requests', async ({ contextFactory, server }, testInfo) => {+it('HA-053 should respect minimal mode for API Requests', async ({ contextFactory, server }, testInfo) => {const context = await contextFactory();const harPath = testInfo.outputPath('request.har');await context.request.tracing.startHar(harPath, { mode: 'minimal' });@@ -895,7 +895,7 @@ it('should respect minimal mode for API Requests', async ({ contextFactory, servexpect(entry.response.bodySize).toBe(-1);});-it('should include redirects from API request', async ({ contextFactory, server }, testInfo) => {+it('HA-054 should include redirects from API request', async ({ contextFactory, server }, testInfo) => {server.setRedirect('/redirect-me', '/simple.json');const context = await contextFactory();const harPath = testInfo.outputPath('request.har');@@ -917,7 +917,7 @@ it('should include redirects from API request', async ({ contextFactory, serverexpect(json.timings).toBeDefined();});-it('should not hang on resources served from cache', async ({ contextFactory, server, browserName, isBidi }, testInfo) => {+it('HA-055 should not hang on resources served from cache', async ({ contextFactory, server, browserName, isBidi }, testInfo) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/11435' });server.setRoute('/one-style.css', (req, res) => {res.writeHead(200, {@@ -938,7 +938,7 @@ it('should not hang on resources served from cache', async ({ contextFactory, seexpect(entries.length).toBe(2);});-it('should not hang on slow chunked response', async ({ browserName, browser, contextFactory, server }, testInfo) => {+it('HA-056 should not hang on slow chunked response', async ({ browserName, browser, contextFactory, server }, testInfo) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21182' });server.setRoute('/empty.html', (req, res) => {res.writeHead(200, {@@ -972,7 +972,7 @@ it('should not hang on slow chunked response', async ({ browserName, browser, coexpect(log.browser!.version).toBe(browser.version());});-it('should close the context when saving the har fails', async ({ contextFactory, server }, testInfo) => {+it('HA-057 should close the context when saving the har fails', async ({ contextFactory, server }, testInfo) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42231' });const filePath = testInfo.outputPath('not-a-directory');fs.writeFileSync(filePath, 'data');@@ -985,7 +985,7 @@ it('should close the context when saving the har fails', async ({ contextFactoryawait context.close();});-it('should support HAR larger than 512MB', async ({ contextFactory, server, browserName }, testInfo) => {+it('HA-058 should support HAR larger than 512MB', async ({ contextFactory, server, browserName }, testInfo) => {it.skip(browserName !== 'chromium', 'serializer is browser-agnostic; one browser is enough');it.slow();it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36707' });@@ -1022,7 +1022,7 @@ it('should support HAR larger than 512MB', async ({ contextFactory, server, browexpect(tail.toString()).toMatch(/\}\s*\}\s*$/);});-it('should record resource type', async ({ contextFactory, server, asset }, testInfo) => {+it('HA-059 should record resource type', async ({ contextFactory, server, asset }, testInfo) => {server.setRoute('/resource-types.html', (req, res) => {res.writeHead(200, { 'Content-Type': 'text/html' });res.end(`@@ -1079,7 +1079,7 @@ it('should record resource type', async ({ contextFactory, server, asset }, test});it.describe('tracing.startHar', () => {- it('should record a HAR with options', async ({ contextFactory, server }, testInfo) => {+ it('HA-060 should record a HAR with options', async ({ contextFactory, server }, testInfo) => {const context = await contextFactory();const harPath = testInfo.outputPath('tracing.har');await context.tracing.startHar(harPath, { mode: 'minimal', urlFilter: '**/one-style.css' });@@ -1095,7 +1095,7 @@ it.describe('tracing.startHar', () => {expect(log.entries[0].request.bodySize).toBe(-1);});- it('should record a HAR for a context APIRequestContext', async ({ contextFactory, server }, testInfo) => {+ it('HA-061 should record a HAR for a context APIRequestContext', async ({ contextFactory, server }, testInfo) => {const context = await contextFactory();const harPath = testInfo.outputPath('request.har');await context.request.tracing.startHar(harPath);@@ -1153,7 +1153,7 @@ it.describe('tracing.startHar', () => {expect(entry._serverPort).toEqual(server.PORT);});- it('should include pages', async ({ contextFactory, server }, testInfo) => {+ it('HA-062 should include pages', async ({ contextFactory, server }, testInfo) => {const context = await contextFactory();const harPath = testInfo.outputPath('tracing.har');await context.tracing.startHar(harPath);@@ -1171,7 +1171,7 @@ it.describe('tracing.startHar', () => {expect(log.pages[1].title).toBe('');});- it('should record a zipped HAR for APIRequestContext', async ({ playwright, server }, testInfo) => {+ it('HA-063 should record a zipped HAR for APIRequestContext', async ({ playwright, server }, testInfo) => {const request = await playwright.request.newContext();const harPath = testInfo.outputPath('tracing.har.zip');await request.tracing.startHar(harPath, { content: 'attach' });@@ -1184,7 +1184,7 @@ it.describe('tracing.startHar', () => {expect(log.entries.some(e => e.request.url === server.PREFIX + '/simple.json')).toBe(true);});- it('should record correct cookie expires for APIRequestContext', async ({ playwright, server }, testInfo) => {+ it('HA-064 should record correct cookie expires for APIRequestContext', async ({ playwright, server }, testInfo) => {server.setRoute('/set-cookie', (req, res) => {res.setHeader('Set-Cookie', 'name=value; Expires=Tue, 01 Jan 2030 00:00:00 GMT');res.end('hello');@@ -1203,7 +1203,7 @@ it.describe('tracing.startHar', () => {expect(new Date(cookie.expires!).getUTCFullYear()).toBe(2030);});- it('should record mixed-case request content-type for APIRequestContext', async ({ playwright, server }, testInfo) => {+ it('HA-065 should record mixed-case request content-type for APIRequestContext', async ({ playwright, server }, testInfo) => {server.setRoute('/post', (req, res) => res.end('ok'));const request = await playwright.request.newContext();const harPath = testInfo.outputPath('api-post.har.zip');@@ -1218,7 +1218,7 @@ it.describe('tracing.startHar', () => {expect(entry.request.postData!.mimeType).toBe('application/json');});- it('should record a HAR with resourcesDir', async ({ contextFactory, server }, testInfo) => {+ it('HA-066 should record a HAR with resourcesDir', async ({ contextFactory, server }, testInfo) => {const context = await contextFactory();const harPath = testInfo.outputPath('tracing.har');const resourcesDir = testInfo.outputPath('har-resources');@@ -1239,7 +1239,7 @@ it.describe('tracing.startHar', () => {expect(fs.readFileSync(resourcePath).toString()).toContain('pink');});- it('should reject resourcesDir together with a .zip har file', async ({ contextFactory }, testInfo) => {+ it('HA-067 should reject resourcesDir together with a .zip har file', async ({ contextFactory }, testInfo) => {const context = await contextFactory();const harPath = testInfo.outputPath('tracing.har.zip');const resourcesDir = testInfo.outputPath('har-resources');diff --git a/tests/library/headful.spec.ts b/tests/library/headful.spec.tsindex bb437b33e6..d45fd3eba3 100644--- a/tests/library/headful.spec.ts+++ b/tests/library/headful.spec.ts@@ -23,13 +23,13 @@ const { compare } = utils;it.skip(({ headless }) => headless, 'avoid popping windows in headless mode');it.skip(({ channel }) => channel === 'chromium-headless-shell', 'shell is never headed');-it('should have default url when launching browser @smoke', async ({ launchPersistent }) => {+it('HE-001 should have default url when launching browser @smoke', async ({ launchPersistent }) => {const { context } = await launchPersistent();const urls = context.pages().map(page => page.url());expect(urls).toEqual(['about:blank']);});-it('should close browser with beforeunload page', async ({ launchPersistent, server }) => {+it('HE-002 should close browser with beforeunload page', async ({ launchPersistent, server }) => {it.slow();const { context } = await launchPersistent();@@ -41,7 +41,7 @@ it('should close browser with beforeunload page', async ({ launchPersistent, serawait context.close();});-it('should close browsercontext with pending beforeunload dialog', async ({ server, context }) => {+it('HE-003 should close browsercontext with pending beforeunload dialog', async ({ server, context }) => {const page = await context.newPage();await page.goto(server.PREFIX + '/beforeunload.html');// We have to interact with a page so that 'beforeunload' handlers@@ -55,7 +55,7 @@ it('should close browsercontext with pending beforeunload dialog', async ({ serv});-it('should not crash when creating second context', async ({ browser }) => {+it('HE-004 should not crash when creating second context', async ({ browser }) => {{const browserContext = await browser.newContext();await browserContext.newPage();@@ -68,7 +68,7 @@ it('should not crash when creating second context', async ({ browser }) => {}});-it('should click when viewport size is larger than screen', async ({ page }) => {+it('HE-005 should click when viewport size is larger than screen', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22082' });await page.setViewportSize({width: 3000,@@ -83,7 +83,7 @@ it('should click when viewport size is larger than screen', async ({ page }) =>await page.locator('button').click();});-it('should dispatch click events to oversized viewports', async ({ page }) => {+it('HE-006 should dispatch click events to oversized viewports', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22082' });// Some prime numbers for width/height.const width = 2971;@@ -107,13 +107,13 @@ it('should dispatch click events to oversized viewports', async ({ page }) => {expect(expectedEvents).toEqual(actualEvents);});-it('should click background tab', async ({ page, server }) => {+it('HE-007 should click background tab', async ({ page, server }) => {await page.setContent(`<button>Hello</button><a target=_blank href="${server.EMPTY_PAGE}">empty.html</a>`);await page.click('a');await page.click('button');});-it('should close browser after context menu was triggered', async ({ browserType, server }) => {+it('HE-008 should close browser after context menu was triggered', async ({ browserType, server }) => {const browser = await browserType.launch();const page = await browser.newPage();await page.goto(server.PREFIX + '/grid.html');@@ -121,7 +121,7 @@ it('should close browser after context menu was triggered', async ({ browserTypeawait browser.close();});-it('should(not) block third party cookies', async ({ page, server, allowsThirdParty, defaultSameSiteCookieValue }) => {+it('HE-009 should(not) block third party cookies', async ({ page, server, allowsThirdParty, defaultSameSiteCookieValue }) => {await page.goto(server.EMPTY_PAGE);await page.evaluate(src => {let fulfill;@@ -157,7 +157,7 @@ it('should(not) block third party cookies', async ({ page, server, allowsThirdPa}});-it('should not block third party SameSite=None cookies', async ({ httpsServer, browserName, browser }) => {+it('HE-010 should not block third party SameSite=None cookies', async ({ httpsServer, browserName, browser }) => {it.skip(browserName === 'webkit', 'No third party cookies in WebKit');it.skip(process.env.PW_CLOCK === 'frozen');const page = await browser.newPage({@@ -194,7 +194,7 @@ it('should not block third party SameSite=None cookies', async ({ httpsServer, bawait page.close();});-it('should not override viewport size when passed null', async function({ browserName, server, browser }) {+it('HE-011 should not override viewport size when passed null', async function({ browserName, server, browser }) {it.skip(browserName === 'webkit', 'Our WebKit embedder does not respect window features');const context = await browser.newContext({ viewport: null });@@ -212,7 +212,7 @@ it('should not override viewport size when passed null', async function({ browseawait context.close();});-it('Page.bringToFront should work', async ({ browser }) => {+it('HE-012 Page.bringToFront should work', async ({ browser }) => {const page1 = await browser.newPage();await page1.setContent('Page1');const page2 = await browser.newPage();@@ -232,7 +232,7 @@ it('Page.bringToFront should work', async ({ browser }) => {await page2.close();});-it('should click in OOPIF', async ({ browserName, launchPersistent, server }) => {+it('HE-013 should click in OOPIF', async ({ browserName, launchPersistent, server }) => {server.setRoute('/empty.html', (req, res) => {res.writeHead(200, { 'Content-Type': 'text/html' });res.end(`<iframe src="${server.CROSS_PROCESS_PREFIX}/iframe.html"></iframe>`);@@ -251,7 +251,7 @@ it('should click in OOPIF', async ({ browserName, launchPersistent, server }) =>expect(consoleLog).toContain('ok');});-it('should click bottom row w/ infobar in OOPIF', async ({ browserName, launchPersistent, server }) => {+it('HE-014 should click bottom row w/ infobar in OOPIF', async ({ browserName, launchPersistent, server }) => {server.setRoute('/empty.html', (req, res) => {res.writeHead(200, { 'Content-Type': 'text/html' });res.end(`@@ -290,7 +290,7 @@ it('should click bottom row w/ infobar in OOPIF', async ({ browserName, launchPeexpect(await page.frames()[1].evaluate('window._clicked')).toBe(true);});-it('headless and headful should use same default fonts', async ({ page, browserName, browserType, isBidi }) => {+it('HE-015 headless and headful should use same default fonts', async ({ page, browserName, browserType, isBidi }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/11177' });it.skip(browserName === 'firefox' && !isBidi, 'Text is misaligned in headed vs headless');@@ -320,7 +320,7 @@ it('headless and headful should use same default fonts', async ({ page, browserNawait headlessBrowser.close();});-it('should have the same hyphen rendering on headless and headed', {+it('HE-016 should have the same hyphen rendering on headless and headed', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/33590'diff --git a/tests/library/heap.spec.ts b/tests/library/heap.spec.tsindex 15978d9dcc..ad88cc3ba8 100644--- a/tests/library/heap.spec.ts+++ b/tests/library/heap.spec.ts@@ -160,35 +160,35 @@ test.beforeAll(async ({ browser, server }) => {});for (let i = 0; i < 3; ++i) {- test(`test #${i} to request page and context`, async ({ page, context }) => {+ test(`LE-005 test #${i} to request page and context`, async ({ page, context }) => {// This test is here to create page instance});}-test('test to request page and context', async ({ page, context }) => {+test('LE-006 test to request page and context', async ({ page, context }) => {// This test is here to create page instance});-test('should not leak fixtures w/ page', async ({ page }) => {+test('LE-007 should not leak fixtures w/ page', async ({ page }) => {expect(await queryObjectCount(clientClass.Page)).toBe(1);expect(await queryObjectCount(clientClass.BrowserContext)).toBe(1);expect(await queryObjectCount(clientClass.Browser)).toBe(1);});-test('should not leak fixtures w/o page', async ({}) => {+test('LE-008 should not leak fixtures w/o page', async ({}) => {expect(await queryObjectCount(clientClass.Page)).toBe(0);expect(await queryObjectCount(clientClass.BrowserContext)).toBe(0);expect(await queryObjectCount(clientClass.Browser)).toBe(1);});-test('should not leak server-side objects', async ({ page }) => {+test('LE-009 should not leak server-side objects', async ({ page }) => {expect(await queryObjectCount(coreServer.Page)).toBe(1);// 6 is because v8 heap creates objects for descendant classes, so WKContext, CRContext, FFContext, WVBrowserContext, BidiBrowserContext and our context instance.expect(await queryObjectCount(coreServer.BrowserContext)).toBe(6);expect(await queryObjectCount(coreServer.Browser)).toBe(6);});-test('should not leak dispatchers after closing page', async ({ context, server }) => {+test('LE-010 should not leak dispatchers after closing page', async ({ context, server }) => {const pages = [];const COUNT = 5;for (let i = 0; i < COUNT; ++i) {@@ -220,7 +220,7 @@ test('should not leak dispatchers after closing page', async ({ context, serverexpect(await queryObjectCount(clientClass.Response)).toBe(0);});-test('should not leak workers', async ({ page }) => {+test('LE-011 should not leak workers', async ({ page }) => {const before = await queryObjectCount(coreServer.Worker);for (let i = 0; i < 5; ++i) {const [workerHandle, workerObj] = await Promise.all([@@ -241,7 +241,7 @@ test.describe(() => {coreServer.setMaxDispatchersForTest(100);});- test('should collect stale handles', async ({ page, server }) => {+ test('LE-012 should collect stale handles', async ({ page, server }) => {page.on('request', () => {});const response = await page.goto(server.PREFIX + '/title.html');for (let i = 0; i < 200; ++i) {@@ -267,7 +267,7 @@ test.describe(() => {}});- test('should collect frames', async ({ page, server }) => {+ test('LE-013 should collect frames', async ({ page, server }) => {test.slow();const kFrameCount = 310;@@ -301,7 +301,7 @@ test.describe(() => {});});-test('cycle handles', async ({ page, server, trace }) => {+test('LE-014 cycle handles', async ({ page, server, trace }) => {test.slow();test.skip(trace === 'on', 'too slow with 2000 snapshots');diff --git a/tests/library/hit-target.spec.ts b/tests/library/hit-target.spec.tsindex 9443051999..6b425736b3 100644--- a/tests/library/hit-target.spec.ts+++ b/tests/library/hit-target.spec.ts@@ -21,7 +21,7 @@ declare const renderComponent;declare const e;declare const MaterialUI;-it('should block all events when hit target is wrong', async ({ page, server }) => {+it('HT-001 should block all events when hit target is wrong', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.evaluate(() => {const blocker = document.createElement('div');@@ -49,7 +49,7 @@ it('should block all events when hit target is wrong', async ({ page, server })expect(allEvents).toEqual([]);});-it('should block click when mousedown fails', async ({ page, server }) => {+it('HT-002 should block click when mousedown fails', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', button => {button.addEventListener('mousemove', () => {@@ -73,7 +73,7 @@ it('should block click when mousedown fails', async ({ page, server }) => {]);});-it('should click when element detaches in mousedown', async ({ page, server }) => {+it('HT-003 should click when element detaches in mousedown', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', button => {button.addEventListener('mousedown', () => {@@ -86,7 +86,7 @@ it('should click when element detaches in mousedown', async ({ page, server }) =expect(await page.evaluate('result')).toBe('Mousedown');});-it('should block all events when hit target is wrong and element detaches', async ({ page, server }) => {+it('HT-004 should block all events when hit target is wrong and element detaches', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', button => {const blocker = document.createElement('div');@@ -116,7 +116,7 @@ it('should block all events when hit target is wrong and element detaches', asynexpect(allEvents).toEqual([]);});-it('should not block programmatic events', async ({ page, server }) => {+it('HT-005 should not block programmatic events', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', button => {button.addEventListener('mousemove', () => {@@ -141,7 +141,7 @@ it('should not block programmatic events', async ({ page, server }) => {]);});-it('should click the button again after document.write', async ({ page, server }) => {+it('HT-006 should click the button again after document.write', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.click('button');expect(await page.evaluate('result')).toBe('Clicked');@@ -155,7 +155,7 @@ it('should click the button again after document.write', async ({ page, server }expect(await page.evaluate('result2')).toBe(true);});-it('should work with mui select', async ({ page, server }) => {+it('HT-007 should work with mui select', async ({ page, server }) => {await page.goto(server.PREFIX + '/mui.html');await page.evaluate(() => {renderComponent(e(MaterialUI.FormControl, { fullWidth: true }, [@@ -176,13 +176,13 @@ it('should work with mui select', async ({ page, server }) => {await expect(page.locator('text=Thirty')).toBeVisible();});-it('should work with drag and drop that moves the element under cursor', async ({ page, server }) => {+it('HT-008 should work with drag and drop that moves the element under cursor', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/drag-n-drop-manual.html');await page.dragAndDrop('#from', '#to');await expect(page.locator('#to')).toHaveText('Dropped');});-it('should work with block inside inline', async ({ page, server }) => {+it('HT-009 should work with block inside inline', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<div>@@ -197,7 +197,7 @@ it('should work with block inside inline', async ({ page, server }) => {expect(await page.evaluate('window._clicked')).toBe(true);});-it('should work with block-block-block inside inline-inline', async ({ page, server }) => {+it('HT-010 should work with block-block-block inside inline-inline', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<div>@@ -220,7 +220,7 @@ it('should work with block-block-block inside inline-inline', async ({ page, serawait expect(page).toHaveURL(server.EMPTY_PAGE + '#yay');});-it('should work with block inside inline in shadow dom', async ({ page, server }) => {+it('HT-011 should work with block inside inline in shadow dom', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<div>@@ -241,7 +241,7 @@ it('should work with block inside inline in shadow dom', async ({ page, server }expect(await page.evaluate('window._clicked')).toBe(true);});-it('should not click iframe overlaying the target', async ({ page, server }) => {+it('HT-012 should not click iframe overlaying the target', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<button style="position: absolute; left: 250px;bottom: 0;height: 40px;width: 200px;" onclick="window._clicked=1">@@ -256,7 +256,7 @@ it('should not click iframe overlaying the target', async ({ page, server }) =>expect(error.message).toContain(`<iframe srcdoc=\"<body onclick='window.top._clicked=2' style='background-color:red;height:40px;'></body>\"></iframe> from <div>…</div> subtree intercepts pointer events`);});-it('should not click an element overlaying iframe with the target', async ({ page, server }) => {+it('HT-013 should not click an element overlaying iframe with the target', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<div onclick='window.top._clicked=1'>padding</div>@@ -275,7 +275,7 @@ it('should not click an element overlaying iframe with the target', async ({ pagexpect(await page.evaluate('window._clicked')).toBe(3);});-it('should click into frame inside closed shadow root', async ({ page, server }) => {+it('HT-014 should click into frame inside closed shadow root', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<div id=framecontainer>@@ -295,7 +295,7 @@ it('should click into frame inside closed shadow root', async ({ page, server })expect(await page.evaluate('window.__clicked')).toBe(true);});-it('should click an element inside closed shadow root', async ({ page, server }) => {+it('HT-015 should click an element inside closed shadow root', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<div id=container>@@ -316,7 +316,7 @@ it('should click an element inside closed shadow root', async ({ page, server })expect(await page.evaluate('window.__clicked')).toBe(true);});-it('should detect overlay from another shadow root', async ({ page, server }) => {+it('HT-016 should detect overlay from another shadow root', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<style>@@ -363,7 +363,7 @@ it('should detect overlay from another shadow root', async ({ page, server }) =>expect(error.message).toContain(`<div id="container2"></div> intercepts pointer events`);});-it('should detect overlaid element in a transformed iframe', async ({ page }) => {+it('HT-017 should detect overlaid element in a transformed iframe', async ({ page }) => {await page.setContent(`<style>body, html, iframe { margin: 0; padding: 0; border: none; }@@ -395,7 +395,7 @@ it('should detect overlaid element in a transformed iframe', async ({ page }) =>expect(error.message).toContain('<section>Overlay</section> intercepts pointer events');});-it('should click in iframe with padding', async ({ page }) => {+it('HT-018 should click in iframe with padding', async ({ page }) => {await page.setContent(`<style>body, html, iframe { margin: 0; padding: 0; border: none; box-sizing: border-box; }@@ -419,7 +419,7 @@ it('should click in iframe with padding', async ({ page }) => {expect(await page.evaluate('window._clicked')).toBe(true);});-it('should click in iframe with padding 2', async ({ page }) => {+it('HT-019 should click in iframe with padding 2', async ({ page }) => {await page.setContent(`<style>body, html, iframe { margin: 0; padding: 0; border: none; box-sizing: content-box; }@@ -443,7 +443,7 @@ it('should click in iframe with padding 2', async ({ page }) => {expect(await page.evaluate('window._clicked')).toBe(true);});-it('should click in custom element', async ({ page }) => {+it('HT-020 should click in custom element', async ({ page }) => {await page.setContent(`<html><body>@@ -465,7 +465,7 @@ it('should click in custom element', async ({ page }) => {expect(await page.evaluate('window.__clicked')).toBe(true);});-it('should click in nested custom elements', {+it('HT-021 should click in nested custom elements', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43118' },}, async ({ page }) => {await page.setContent(`@@ -493,7 +493,7 @@ it('should click in nested custom elements', {expect(await page.evaluate('window.__clicked')).toBe(true);});-it('should click an element inside nested closed shadow roots', {+it('HT-022 should click an element inside nested closed shadow roots', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43118' },}, async ({ page }) => {await page.setContent(`diff --git a/tests/library/ignorehttpserrors.spec.ts b/tests/library/ignorehttpserrors.spec.tsindex 7774222dcb..90dc8fcd43 100644--- a/tests/library/ignorehttpserrors.spec.ts+++ b/tests/library/ignorehttpserrors.spec.ts@@ -17,7 +17,7 @@import { browserTest as it, expect } from '../config/browserTest';-it('should work @smoke', async ({ browser, httpsServer }) => {+it('NE-136 should work @smoke', async ({ browser, httpsServer }) => {let error = null;const context = await browser.newContext({ ignoreHTTPSErrors: true });const page = await context.newPage();@@ -27,7 +27,7 @@ it('should work @smoke', async ({ browser, httpsServer }) => {await context.close();});-it('should isolate contexts', async ({ browser, httpsServer }) => {+it('NE-137 should isolate contexts', async ({ browser, httpsServer }) => {{let error = null;const context = await browser.newContext({ ignoreHTTPSErrors: true });@@ -47,7 +47,7 @@ it('should isolate contexts', async ({ browser, httpsServer }) => {}});-it('should isolated contexts that share network process', {+it('NE-138 should isolated contexts that share network process', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35870' }}, async ({ browser, httpsServer, browserName, isLinux }) => {it.fixme(browserName === 'webkit' && isLinux, 'See https://bugs.webkit.org/show_bug.cgi?id=293148');@@ -70,7 +70,7 @@ it('should isolated contexts that share network process', {}});-it('should work with mixed content', async ({ browser, server, httpsServer }) => {+it('NE-139 should work with mixed content', async ({ browser, server, httpsServer }) => {httpsServer.setRoute('/mixedcontent.html', (req, res) => {res.end(`<iframe src=${server.EMPTY_PAGE}></iframe>`);});@@ -85,7 +85,7 @@ it('should work with mixed content', async ({ browser, server, httpsServer }) =>await context.close();});-it('should work with WebSocket', async ({ browser, httpsServer }) => {+it('NE-140 should work with WebSocket', async ({ browser, httpsServer }) => {httpsServer.sendOnWebSocketConnection('incoming');const context = await browser.newContext({ ignoreHTTPSErrors: true });const page = await context.newPage();@@ -101,7 +101,7 @@ it('should work with WebSocket', async ({ browser, httpsServer }) => {await context.close();});-it('should fail with WebSocket if not ignored', async ({ browser, httpsServer }) => {+it('NE-141 should fail with WebSocket if not ignored', async ({ browser, httpsServer }) => {const context = await browser.newContext();const page = await context.newPage();const value = await page.evaluate(endpoint => {@@ -116,7 +116,7 @@ it('should fail with WebSocket if not ignored', async ({ browser, httpsServer })await context.close();});-it('serviceWorker should intercept document request', async ({ browser, httpsServer, browserName }) => {+it('NE-142 serviceWorker should intercept document request', async ({ browser, httpsServer, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27768' });it.fixme(browserName === 'chromium', 'Failed to register a ServiceWorker: An SSL certificate error occurred when fetching the script.');const context = await browser.newContext({ ignoreHTTPSErrors: true });diff --git a/tests/library/inspector/cli-codegen-1.spec.ts b/tests/library/inspector/cli-codegen-1.spec.tsindex afb0140448..23a918a66d 100644--- a/tests/library/inspector/cli-codegen-1.spec.ts+++ b/tests/library/inspector/cli-codegen-1.spec.ts@@ -18,7 +18,7 @@ import { test, expect } from './inspectorTest';import type { ConsoleMessage } from 'playwright';test.describe('cli codegen', () => {- test('should click', async ({ openRecorder }) => {+ test('CG-001 should click', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<button onclick="console.log('click')">Submit</button>`);@@ -50,7 +50,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).ClickAsync();`)expect(message.text()).toBe('click');});- test('should double click', async ({ openRecorder }) => {+ test('CG-002 should double click', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<button onclick="console.log('click ' + event.detail)" ondblclick="console.log('dblclick ' + event.detail)">Submit</button>`);@@ -91,7 +91,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).DblClickAsync()]);});- test('should click twice', async ({ openRecorder }) => {+ test('CG-003 should click twice', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<button onclick="console.log('click')">Submit</button>`);@@ -116,7 +116,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).DblClickAsync()await page.getByRole('button', { name: 'Submit' }).click();`);});- test('should type after clicking twice', async ({ openRecorder }) => {+ test('CG-004 should type after clicking twice', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input type="text" value="foo"/>`);@@ -144,7 +144,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).DblClickAsync()await page.getByRole('textbox').fill('foobar');`);});- test('should ignore programmatic events', async ({ openRecorder }) => {+ test('CG-005 should ignore programmatic events', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<button onclick="console.log('click')">Submit</button>`);@@ -164,7 +164,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).DblClickAsync()expect(clicks.length).toBe(1);});- test('should click after same-document navigation', async ({ openRecorder, server }) => {+ test('CG-006 should click after same-document navigation', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();server.setRoute('/foo.html', (req, res) => {@@ -194,7 +194,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).DblClickAsync()expect(message.text()).toBe('click');});- test('should make a positioned click on a canvas', async ({ openRecorder }) => {+ test('CG-007 should make a positioned click on a canvas', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -247,7 +247,7 @@ await page.Locator("canvas").ClickAsync(new()expect(message.text()).toBe('click 250 250');});- test('should work with TrustedTypes', async ({ openRecorder }) => {+ test('CG-008 should work with TrustedTypes', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -285,7 +285,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).ClickAsync();`)expect(message.text()).toBe('click');});- test('should not target selector preview by text regexp', async ({ openRecorder }) => {+ test('CG-009 should not target selector preview by text regexp', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<span>dummy</span>`);@@ -316,7 +316,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).ClickAsync();`)expect(message.text()).toBe('click');});- test('should fill', async ({ openRecorder }) => {+ test('CG-010 should fill', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input id="input" name="name" oninput="console.log(input.value)"></input>`);@@ -346,7 +346,7 @@ await page.Locator("#input").FillAsync(\"John\");`);expect(message.text()).toBe('John');});- test('should fill japanese text', async ({ openRecorder }) => {+ test('CG-011 should fill japanese text', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();// In Japanese, "てすと" or "テスト" means "test".@@ -380,7 +380,7 @@ await page.Locator("#input").FillAsync(\"てすと\");`);expect(message.text()).toBe('てすと');});- test('should fill textarea', async ({ openRecorder }) => {+ test('CG-012 should fill textarea', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<textarea id="textarea" name="name" oninput="console.log(textarea.value)"></textarea>`);@@ -397,7 +397,7 @@ await page.Locator("#input").FillAsync(\"てすと\");`);expect(message.text()).toBe('John');});- test('should fill textarea with new lines at the end', async ({ openRecorder }) => {+ test('CG-013 should fill textarea with new lines at the end', async ({ openRecorder }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23774' });const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<textarea id="textarea"></textarea>`);@@ -412,7 +412,7 @@ await page.Locator("#input").FillAsync(\"てすと\");`);expect(sources.get('JavaScript')!.text).not.toContain(`Enter`);});- test('should fill [contentEditable]', async ({ openRecorder }) => {+ test('CG-014 should fill [contentEditable]', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<div id="content" contenteditable="" oninput="console.log(content.innerText)"/>`);@@ -429,7 +429,7 @@ await page.Locator("#input").FillAsync(\"てすと\");`);expect(message.text()).toBe('John Doe');});- test('should fill [contentEditable] with initial text', async ({ openRecorder }) => {+ test('CG-015 should fill [contentEditable] with initial text', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -449,7 +449,7 @@ await page.Locator("#input").FillAsync(\"てすと\");`);expect(message.text()).toBe('John Doe');});- test('should press', async ({ openRecorder }) => {+ test('CG-016 should press', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input name="name" onkeypress="console.log('press')"></input>`);@@ -483,7 +483,7 @@ await page.GetByRole(AriaRole.Textbox).PressAsync("Shift+Enter");`);expect(messages.map(m => m.text())).toContain('press');});- test('should update selected element after pressing Tab', async ({ openRecorder }) => {+ test('CG-017 should update selected element after pressing Tab', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -529,7 +529,7 @@ await page.GetByRole(AriaRole.Textbox).PressAsync("Shift+Enter");`);await page.locator('input[name="two"]').fill('barfoo321');`);});- test('should record ArrowDown', async ({ openRecorder }) => {+ test('CG-018 should record ArrowDown', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input name="name" onkeydown="console.log('press:' + event.key)"></input>`);@@ -551,7 +551,7 @@ await page.GetByRole(AriaRole.Textbox).PressAsync("Shift+Enter");`);expect(messages.map(m => m.text())).toContain('press:ArrowDown');});- test('should emit single keyup on ArrowDown', async ({ openRecorder }) => {+ test('CG-019 should emit single keyup on ArrowDown', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input name="name" onkeydown="console.log('down:' + event.key)" onkeyup="console.log('up:' + event.key)"></input>`);@@ -576,7 +576,7 @@ await page.GetByRole(AriaRole.Textbox).PressAsync("Shift+Enter");`);expect(messages[1].text()).toBe('up:ArrowDown');});- test('should not record a click on Enter press', async ({ openRecorder }) => {+ test('CG-020 should not record a click on Enter press', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<button onclick="console.log('clicked')">Submit</button>`);@@ -602,7 +602,7 @@ await page.GetByRole(AriaRole.Textbox).PressAsync("Shift+Enter");`);expect(sources.get('JavaScript')!.text).not.toContain(`click()`);});- test('should check', async ({ openRecorder }) => {+ test('CG-021 should check', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input id="checkbox" type="checkbox" name="accept" onchange="console.log(checkbox.checked)"></input>`);@@ -634,7 +634,7 @@ await page.Locator("#checkbox").CheckAsync();`);expect(message.text()).toBe('true');});- test('should check a radio button', async ({ openRecorder }) => {+ test('CG-022 should check a radio button', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input id="checkbox" type="radio" name="accept" onchange="console.log(checkbox.checked)"></input>`);@@ -653,7 +653,7 @@ await page.Locator("#checkbox").CheckAsync();`);expect(message.text()).toBe('true');});- test('should check with keyboard', async ({ openRecorder }) => {+ test('CG-023 should check with keyboard', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input id="checkbox" type="checkbox" name="accept" onchange="console.log(checkbox.checked)"></input>`);@@ -672,7 +672,7 @@ await page.Locator("#checkbox").CheckAsync();`);expect(message.text()).toBe('true');});- test('should check with keyboard after hover', async ({ openRecorder }) => {+ test('CG-024 should check with keyboard after hover', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input id="checkbox" type="checkbox" name="accept" onchange="console.log(checkbox.checked)"></input>`);@@ -694,7 +694,7 @@ await page.Locator("#checkbox").CheckAsync();`);await page.locator('#checkbox').check();`);});- test('should uncheck', async ({ openRecorder }) => {+ test('CG-025 should uncheck', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input id="checkbox" type="checkbox" checked name="accept" onchange="console.log(checkbox.checked)"></input>`);@@ -726,7 +726,7 @@ await page.Locator("#checkbox").UncheckAsync();`);expect(message.text()).toBe('false');});- test('should select', async ({ openRecorder }) => {+ test('CG-026 should select', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait('<select id="age" onchange="console.log(age.selectedOptions[0].value)"><option value="1"><option value="2"></select>');@@ -759,7 +759,7 @@ await page.Locator("#age").SelectOptionAsync(new[] { "2" });`);expect(message.text()).toBe('2');});- test('should select with size attribute', async ({ openRecorder }) => {+ test('CG-027 should select with size attribute', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -800,7 +800,7 @@ await page.Locator(\"#age\").SelectOptionAsync(new[] { \"2\" });`);expect(message.text()).toBe('2');});- test('should await popup', async ({ openRecorder, server }) => {+ test('CG-028 should await popup', async ({ openRecorder, server }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36461' });const { page, recorder } = await openRecorder();@@ -860,7 +860,7 @@ await page1.GetByRole(AriaRole.Button, new() { Name = \"Click me\" }).ClickAsyncawait page1.GetByRole(AriaRole.Button, new() { Name = \"Click me\" }).ClickAsync();`);});- test('should attribute navigation to click', async ({ openRecorder }) => {+ test('CG-029 should attribute navigation to click', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<a onclick="window.location.href='about:blank#foo'">link</a>`);@@ -915,7 +915,7 @@ await page.GetByText("link").ClickAsync();`);expect(page.url()).toContain('about:blank#foo');});- test('should attribute navigation to press/fill', async ({ openRecorder }) => {+ test('CG-030 should attribute navigation to press/fill', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input /><script>document.querySelector('input').addEventListener('input', () => window.location.href = 'about:blank#foo');</script>`);@@ -979,7 +979,7 @@ await page.GetByRole(AriaRole.Textbox).FillAsync("h");`);expect(page.url()).toContain('about:blank#foo');});- test('should ignore AltGraph', async ({ openRecorder, browserName }) => {+ test('CG-031 should ignore AltGraph', async ({ openRecorder, browserName }) => {test.skip(browserName === 'firefox', 'The TextInputProcessor in Firefox does not work with AltGraph.');const { recorder } = await openRecorder();await recorder.setContentAndWait(`<input></input>`);@@ -993,7 +993,7 @@ await page.GetByRole(AriaRole.Textbox).FillAsync("h");`);expect(recorder.sources().get('JavaScript')!.text).toContain(`await page.getByRole('textbox').fill('[email protected]');`);});- test('should middle click', async ({ openRecorder, server }) => {+ test('CG-032 should middle click', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<a href${JSON.stringify(server.EMPTY_PAGE)}>Click me</a>`);@@ -1025,7 +1025,7 @@ await page.GetByText("Click me").ClickAsync(new()});`);});- test('should record slider', async ({ openRecorder, browserName, isLinux, headless }) => {+ test('CG-033 should record slider', async ({ openRecorder, browserName, isLinux, headless }) => {test.fixme(browserName === 'chromium' && isLinux && headless, 'https://github.com/microsoft/playwright/issues/38568');const { page, recorder } = await openRecorder();@@ -1067,7 +1067,7 @@ await page.GetByText("Click me").ClickAsync(new()await page.GetByRole(AriaRole.Slider).FillAsync("10");`);});- test('should click button with nested div', async ({ openRecorder }) => {+ test('CG-034 should click button with nested div', async ({ openRecorder }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29067' });const { recorder } = await openRecorder();@@ -1099,7 +1099,7 @@ await page.GetByRole(AriaRole.Slider).FillAsync("10");`);await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).ClickAsync();`);});- test('should record omnibox navigations after performAction', async ({ openRecorder, server }) => {+ test('CG-035 should record omnibox navigations after performAction', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<button>Submit</button>`);await Promise.all([@@ -1112,7 +1112,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).ClickAsync();`)await recorder.waitForOutput('JavaScript', `await page.goto('${server.PREFIX}/empty.html');`);});- test('should record omnibox navigations after recordAction', async ({ openRecorder, server }) => {+ test('CG-036 should record omnibox navigations after recordAction', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<textarea></textarea>`);await Promise.all([@@ -1125,7 +1125,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).ClickAsync();`)await recorder.waitForOutput('JavaScript', `await page.goto('${server.PREFIX}/empty.html');`);});- test('should not throw csp directive violation errors', async ({ openRecorder, server }) => {+ test('CG-037 should not throw csp directive violation errors', async ({ openRecorder, server }) => {server.setCSP('/empty.html', `default-src 'self'`);const { page } = await openRecorder();await page.goto(server.EMPTY_PAGE);@@ -1133,7 +1133,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).ClickAsync();`)await expect(page.waitForEvent('console', { predicate, timeout: 1000 })).rejects.toThrow();});- test('should clear when recording is disabled', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/33802' } }, async ({ openRecorder }) => {+ test('CG-038 should clear when recording is disabled', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/33802' } }, async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`diff --git a/tests/library/inspector/cli-codegen-2.spec.ts b/tests/library/inspector/cli-codegen-2.spec.tsindex 38336ac4d8..a84474f3e7 100644--- a/tests/library/inspector/cli-codegen-2.spec.ts+++ b/tests/library/inspector/cli-codegen-2.spec.ts@@ -17,7 +17,7 @@import { test, expect } from './inspectorTest';test.describe('cli codegen', () => {- test('should contain open page', async ({ openRecorder }) => {+ test('CG-039 should contain open page', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(``);@@ -39,7 +39,7 @@ test.describe('cli codegen', () => {var page = await context.NewPageAsync();`);});- test('should contain second page', async ({ openRecorder }) => {+ test('CG-040 should contain second page', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(``);@@ -62,7 +62,7 @@ var page = await context.NewPageAsync();`);var page1 = await context.NewPageAsync();`);});- test('should contain close page', async ({ openRecorder }) => {+ test('CG-041 should contain close page', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(``);@@ -86,7 +86,7 @@ var page1 = await context.NewPageAsync();`);await page.CloseAsync();`);});- test('should not lead to an error if html gets clicked', async ({ openRecorder, platform, macVersion }) => {+ test('CG-042 should not lead to an error if html gets clicked', async ({ openRecorder, platform, macVersion }) => {test.skip(platform === 'darwin' && macVersion < 15, 'recorder.page.evaluate hangs on CDP layer for some reason on macOS 14.');const { page, recorder } = await openRecorder();@@ -102,7 +102,7 @@ await page.CloseAsync();`);expect(errors.length).toBe(0);});- test('should upload a single file', async ({ openRecorder, browserName, asset, isLinux }) => {+ test('CG-043 should upload a single file', async ({ openRecorder, browserName, asset, isLinux }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<form>@@ -139,7 +139,7 @@ await page.CloseAsync();`);await page.GetByRole(AriaRole.Button, new() { Name = "Choose File" }).SetInputFilesAsync(new[] { \"file-to-upload.txt\" });`);});- test('should upload multiple files', async ({ openRecorder, browserName, asset, isLinux }) => {+ test('CG-044 should upload multiple files', async ({ openRecorder, browserName, asset, isLinux }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<form>@@ -169,7 +169,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Choose File" }).SetInputFiawait page.GetByRole(AriaRole.Button, new() { Name = "Choose File" }).SetInputFilesAsync(new[] { \"file-to-upload.txt\", \"file-to-upload-2.txt\" });`);});- test('should clear files', async ({ openRecorder, browserName, asset, isLinux }) => {+ test('CG-045 should clear files', async ({ openRecorder, browserName, asset, isLinux }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<form>@@ -199,7 +199,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Choose File" }).SetInputFiawait page.GetByRole(AriaRole.Button, new() { Name = "Choose File" }).SetInputFilesAsync(new[] { });`);});- test('should upload a file via hidden input triggered by button', async ({ openRecorder, browserName, asset, isLinux }) => {+ test('CG-046 should upload a file via hidden input triggered by button', async ({ openRecorder, browserName, asset, isLinux }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<button onclick="document.querySelector('input[type=file]').click()">select file</button>@@ -221,7 +221,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Choose File" }).SetInputFiexpect(sources.get('JavaScript')!.text).not.toContain(`getByRole('button', { name: 'select file' }).setInputFiles`);});- test('should download files', async ({ openRecorder, server }) => {+ test('CG-047 should download files', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();server.setRoute('/download', (req, res) => {@@ -272,7 +272,7 @@ var download = await page.RunAndWaitForDownloadAsync(async () =>});`);});- test('should handle dialogs', async ({ openRecorder }) => {+ test('CG-048 should handle dialogs', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -320,7 +320,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "click me" }).ClickAsync();});- test('should handle history.postData', async ({ openRecorder, server }) => {+ test('CG-049 should handle history.postData', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -336,7 +336,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "click me" }).ClickAsync();}});- test('should record open in a new tab with url', async ({ openRecorder, browserName }) => {+ test('CG-050 should record open in a new tab with url', async ({ openRecorder, browserName }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<a href="about:blank?foo">link</a>`);@@ -366,7 +366,7 @@ await page1.GotoAsync("about:blank?foo");`);}});- test('should not clash pages', async ({ openRecorder, browserName }) => {+ test('CG-051 should not clash pages', async ({ openRecorder, browserName }) => {const { page, recorder } = await openRecorder();const [popup1] = await Promise.all([page.context().waitForEvent('page'),@@ -403,7 +403,7 @@ await page1.GotoAsync("about:blank?foo");`);expect(sources.get('C#')!.text).toContain(`await page2.Locator("#name").FillAsync("TextB");`);});- test('click should emit events in order', async ({ openRecorder }) => {+ test('CG-052 click should emit events in order', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -427,7 +427,7 @@ await page1.GotoAsync("about:blank?foo");`);await expect.poll(() => messages).toEqual(['mousedown', 'mouseup', 'click']);});- test('should reset hover model on action when element detaches', async ({ openRecorder }) => {+ test('CG-053 should reset hover model on action when element detaches', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input id="checkbox" onclick="document.getElementById('checkbox').remove()">`);@@ -438,7 +438,7 @@ await page1.GotoAsync("about:blank?foo");`);expect(models.hovered).toBe(null);});- test('should update active model on action', async ({ openRecorder, browserName, headless }) => {+ test('CG-054 should update active model on action', async ({ openRecorder, browserName, headless }) => {test.skip(browserName === 'webkit', 'webkit does not actually focus the input after click');const { page, recorder } = await openRecorder();@@ -450,7 +450,7 @@ await page1.GotoAsync("about:blank?foo");`);expect(models.active).toBe('#checkbox');});- test('should check input with chaining id', async ({ openRecorder }) => {+ test('CG-055 should check input with chaining id', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<input id="checkbox" type="checkbox" name="accept" onchange="checkbox.name = 'updated'"></input>`);await Promise.all([@@ -459,7 +459,7 @@ await page1.GotoAsync("about:blank?foo");`);]);});- test('should record navigations after identical pushState', async ({ openRecorder, server }) => {+ test('CG-056 should record navigations after identical pushState', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();server.setRoute('/page2.html', (req, res) => {res.setHeader('Content-Type', 'text/html; charset=utf-8');@@ -478,7 +478,7 @@ await page1.GotoAsync("about:blank?foo");`);await recorder.waitForOutput('JavaScript', `await page.goto('${server.PREFIX}/page2.html');`);});- test('should fill tricky characters', async ({ openRecorder }) => {+ test('CG-057 should fill tricky characters', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<textarea spellcheck=false id="textarea" name="name" oninput="console.log(textarea.value)"></textarea>`);@@ -509,7 +509,7 @@ await page.Locator("#textarea").FillAsync(\"Hello'\\"\`\\nWorld\");`);expect(message.text()).toBe('Hello\'\"\`\nWorld');});- test('should --test-id-attribute', async ({ openRecorder }) => {+ test('CG-058 should --test-id-attribute', async ({ openRecorder }) => {const { page, recorder } = await openRecorder({ testIdAttributeName: 'my-test-id' });await recorder.setContentAndWait(`<div my-test-id="foo">Hello</div>`);@@ -523,7 +523,7 @@ await page.Locator("#textarea").FillAsync(\"Hello'\\"\`\\nWorld\");`);expect.soft(sources.get('C#')!.text).toContain(`await page.GetByTestId("foo").ClickAsync();`);});- test('should generate getByTestId for any of the configured testIdAttributes', async ({ openRecorder }) => {+ test('CG-059 should generate getByTestId for any of the configured testIdAttributes', async ({ openRecorder }) => {const { page, recorder } = await openRecorder({ testIdAttributeName: 'data-pw,data-ti' });await recorder.setContentAndWait(`@@ -540,7 +540,7 @@ await page.Locator("#textarea").FillAsync(\"Hello'\\"\`\\nWorld\");`);expect.soft(sources.get('JavaScript')!.text).toContain(`await page.getByTestId('secondary').click()`);});- test('should auto-generate toBeVisible', async ({ openRecorder }) => {+ test('CG-060 should auto-generate toBeVisible', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`diff --git a/tests/library/inspector/cli-codegen-3.spec.ts b/tests/library/inspector/cli-codegen-3.spec.tsindex ed85ee484a..99b041cb0e 100644--- a/tests/library/inspector/cli-codegen-3.spec.ts+++ b/tests/library/inspector/cli-codegen-3.spec.ts@@ -20,7 +20,7 @@ import { test, expect } from './inspectorTest';import type { Page } from '@playwright/test';test.describe('cli codegen', () => {- test('should click locator.first', async ({ openRecorder }) => {+ test('CG-061 should click locator.first', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -67,7 +67,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).First.ClickAsynexpect(message.text()).toBe('click1');});- test('should click locator.nth', async ({ openRecorder }) => {+ test('CG-062 should click locator.nth', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -102,7 +102,7 @@ await page.GetByRole(AriaRole.Button, new() { Name = "Submit" }).Nth(1).ClickAsyexpect(message.text()).toBe('click2');});- test('should generate frame locators (1)', async ({ openRecorder, server }) => {+ test('CG-063 should generate frame locators (1)', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();const { frameHello1 } = await createFrameHierarchy(page, recorder, server);@@ -145,7 +145,7 @@ await page.Locator("#frame1").ContentFrame.GetByText("Hello1").ClickAsync();`);});});- test('should generate frame locators (2)', async ({ openRecorder, server }) => {+ test('CG-064 should generate frame locators (2)', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();const { frameHello2 } = await createFrameHierarchy(page, recorder, server);@@ -186,7 +186,7 @@ await page.FrameLocator().GetByText("Hello2").ClickAsync();`);});});- test('should generate frame locators (3)', async ({ openRecorder, server }) => {+ test('CG-065 should generate frame locators (3)', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();const { frameAnonymous } = await createFrameHierarchy(page, recorder, server);@@ -226,7 +226,7 @@ await page.FrameLocator().GetByText("HelloNameAnonymous").ClickAsync();`);});});- test('should generate frame locators (4)', async ({ openRecorder, server }) => {+ test('CG-066 should generate frame locators (4)', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();/*iframe@@ -311,7 +311,7 @@ await page.FrameLocator().GetByText("Hello2").ClickAsync();`);await page.FrameLocator().GetByText("HelloNameAnonymous").ClickAsync();`);});- test('should generate frame locators with special characters in name attribute', async ({ openRecorder, server }) => {+ test('CG-067 should generate frame locators with special characters in name attribute', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<iframe srcdoc="<button>Click me</button>">@@ -339,7 +339,7 @@ await page.FrameLocator().GetByText("HelloNameAnonymous").ClickAsync();`);await page.Locator("iframe[name=\\"foo<bar'\\\\\\"\`>\\"]").ContentFrame.GetByRole(AriaRole.Button, new() { Name = "Click me" }).ClickAsync()`);});- test('should generate frame locators with title attribute', async ({ openRecorder, server }) => {+ test('CG-068 should generate frame locators with title attribute', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<iframe title="hello world" srcdoc="<button>Click me</button>"></iframe>@@ -371,7 +371,7 @@ await page.Locator("iframe[name=\\"foo<bar'\\\\\\"\`>\\"]").ContentFrame.GetByRo);});- test('should generate frame locators with name attribute', async ({ openRecorder, server }) => {+ test('CG-069 should generate frame locators with name attribute', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<iframe name="hello world" srcdoc="<button>Click me</button>"></iframe>@@ -403,7 +403,7 @@ await page.Locator("iframe[name=\\"foo<bar'\\\\\\"\`>\\"]").ContentFrame.GetByRo);});- test('should generate frame locators with id attribute', async ({ openRecorder, server }) => {+ test('CG-070 should generate frame locators with id attribute', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<iframe id="hello-world" srcdoc="<button>Click me</button>"></iframe>@@ -435,7 +435,7 @@ await page.Locator("iframe[name=\\"foo<bar'\\\\\\"\`>\\"]").ContentFrame.GetByRo);});- test('should generate frame locators with testId', async ({ openRecorder, server }) => {+ test('CG-071 should generate frame locators with testId', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<iframe data-testid="my-testid" srcdoc="<button>Click me</button>"></iframe>@@ -467,7 +467,7 @@ await page.Locator("iframe[name=\\"foo<bar'\\\\\\"\`>\\"]").ContentFrame.GetByRo);});- test('should generate role locators undef frame locators', async ({ openRecorder, server }) => {+ test('CG-072 should generate role locators undef frame locators', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<iframe id=frame1 srcdoc="<button>Submit</button>">`, server.EMPTY_PAGE, 2);const frame = page.mainFrame().childFrames()[0];@@ -493,7 +493,7 @@ await page.Locator("iframe[name=\\"foo<bar'\\\\\\"\`>\\"]").ContentFrame.GetByRoawait page.Locator("#frame1").ContentFrame.GetByRole(AriaRole.Button, new() { Name = "Submit" }).ClickAsync();`);});- test('should generate getByTestId', async ({ openRecorder }) => {+ test('CG-073 should generate getByTestId', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<div data-testid=testid onclick="console.log('click')">Submit</div>`);@@ -525,7 +525,7 @@ await page.GetByTestId("testid").ClickAsync();`);expect(message.text()).toBe('click');});- test('should generate getByPlaceholder', async ({ openRecorder }) => {+ test('CG-074 should generate getByPlaceholder', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<input placeholder="Country"></input>`);@@ -554,7 +554,7 @@ await page.GetByTestId("testid").ClickAsync();`);await page.GetByRole(AriaRole.Textbox, new() { Name = "Country" }).ClickAsync();`);});- test('should generate getByAltText', async ({ openRecorder }) => {+ test('CG-075 should generate getByAltText', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<input alt="Country"></input>`);@@ -583,7 +583,7 @@ await page.GetByRole(AriaRole.Textbox, new() { Name = "Country" }).ClickAsync();await page.GetByAltText("Country").ClickAsync();`);});- test('should generate getByLabel', async ({ openRecorder }) => {+ test('CG-076 should generate getByLabel', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<label for=target>Country</label><input id=target>`);@@ -612,7 +612,7 @@ await page.GetByAltText("Country").ClickAsync();`);await page.GetByRole(AriaRole.Textbox, new() { Name = "Country" }).ClickAsync();`);});- test('should generate getByLabel without regex', async ({ openRecorder }) => {+ test('CG-077 should generate getByLabel without regex', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<label for=target>Coun"try</label><input id=target>`);@@ -641,7 +641,7 @@ await page.GetByRole(AriaRole.Textbox, new() { Name = "Country" }).ClickAsync();await page.GetByRole(AriaRole.Textbox, new() { Name = \"Coun\\\"try\" }).ClickAsync();`);});- test('should pass through pointer events', async ({ openRecorder }) => {+ test('CG-078 should pass through pointer events', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -671,7 +671,7 @@ await page.GetByRole(AriaRole.Textbox, new() { Name = \"Coun\\\"try\" }).ClickAs]);});- test('should consume contextmenu events, despite a custom context menu', async ({ openRecorder, browserName, isWindows }) => {+ test('CG-079 should consume contextmenu events, despite a custom context menu', async ({ openRecorder, browserName, isWindows }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -717,7 +717,7 @@ await page.GetByRole(AriaRole.Textbox, new() { Name = \"Coun\\\"try\" }).ClickAsexpect(await page.evaluate('log')).toEqual((isWindows && browserName === 'chromium') ? ['button: auxclick', 'button: contextmenu'] : ['button: contextmenu']);});- test('should generate click action from dialog', async ({ openRecorder }) => {+ test('CG-080 should generate click action from dialog', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<button onclick="console.log('clicked')">Submit</button>`);@@ -739,7 +739,7 @@ await page.GetByRole(AriaRole.Textbox, new() { Name = \"Coun\\\"try\" }).ClickAsawait page.getByRole('button', { name: 'Submit' }).click();`);});- test('should generate double click action from dialog', async ({ openRecorder }) => {+ test('CG-081 should generate double click action from dialog', async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<button ondblclick="console.log('dblclicked')">Submit</button>`);@@ -763,7 +763,7 @@ await page.GetByRole(AriaRole.Textbox, new() { Name = \"Coun\\\"try\" }).ClickAsexpect(text).not.toContain(`.click();`);});- test('should generate hover action', async ({ openRecorder }) => {+ test('CG-082 should generate hover action', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<div data-testid=testid>Hover me</div>`);@@ -803,7 +803,7 @@ await page.GetByRole(AriaRole.Textbox, new() { Name = \"Coun\\\"try\" }).ClickAsawait page.GetByTestId("testid").HoverAsync();`);});- test('should assert value', async ({ openRecorder }) => {+ test('CG-083 should assert value', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -850,7 +850,7 @@ await page.GetByTestId("testid").HoverAsync();`);expect.soft(sources4.get('C#')!.text).toContain(`await Expect(page.Locator("#fourth")).ToBeCheckedAsync()`);});- test('should assert value on disabled input', async ({ openRecorder, browserName }) => {+ test('CG-084 should assert value on disabled input', async ({ openRecorder, browserName }) => {test.skip(browserName === 'firefox', 'pointerup event is not dispatched on a disabled input');const { recorder } = await openRecorder();@@ -875,7 +875,7 @@ await page.GetByTestId("testid").HoverAsync();`);expect.soft(sources2.get('C#')!.text).toContain(`await Expect(page.Locator("#second")).ToHaveValueAsync("bar")`);});- test('should assert value on disabled select', async ({ openRecorder, browserName }) => {+ test('CG-085 should assert value on disabled select', async ({ openRecorder, browserName }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -896,7 +896,7 @@ await page.GetByTestId("testid").HoverAsync();`);expect.soft(sources2.get('C#')!.text).toContain(`await Expect(page.Locator("#second")).ToHaveValueAsync("bar2")`);});- test('should assert visibility', async ({ openRecorder }) => {+ test('CG-086 should assert visibility', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<input>`);@@ -914,7 +914,7 @@ await page.GetByTestId("testid").HoverAsync();`);expect.soft(sources1.get('C#')!.text).toContain(`await Expect(page.GetByRole(AriaRole.Textbox)).ToBeVisibleAsync()`);});- test('should keep toolbar visible even if webpage erases content in hydration', async ({ openRecorder }) => {+ test('CG-087 should keep toolbar visible even if webpage erases content in hydration', async ({ openRecorder }) => {const { recorder } = await openRecorder();const hydrate = () => {@@ -931,7 +931,7 @@ await page.GetByTestId("testid").HoverAsync();`);await expect(recorder.page.locator('x-pw-glass')).toBeVisible();});- test('should display inline svg icons on text assertion dialog inside iframe', async ({ openRecorder, server }) => {+ test('CG-088 should display inline svg icons on text assertion dialog inside iframe', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.page.click('x-pw-tool-item.text');@@ -944,7 +944,7 @@ await page.GetByTestId("testid").HoverAsync();`);await expect(glassPane.locator('> svg > defs > clipPath#icon-check')).toBeAttached();});- test('should keep dialog open when clicking inside', async ({ openRecorder }) => {+ test('CG-089 should keep dialog open when clicking inside', async ({ openRecorder }) => {const { page } = await openRecorder();await page.setContent('<div>hello</div>');@@ -974,7 +974,7 @@ await page.GetByTestId("testid").HoverAsync();`);await expect(dialog).toBeHidden();});- test('should record when top layer popover is open', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39095' } }, async ({ openRecorder }) => {+ test('CG-090 should record when top layer popover is open', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39095' } }, async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -994,7 +994,7 @@ await page.GetByTestId("testid").HoverAsync();`);await page.getByTitle('Assert text').click();});- test('should record when top layer popover inside shadow DOM is open', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39095' } }, async ({ openRecorder }) => {+ test('CG-091 should record when top layer popover inside shadow DOM is open', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39095' } }, async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -1026,7 +1026,7 @@ await page.GetByTestId("testid").HoverAsync();`);await page.getByTitle('Assert text').click();});- test('should record when manual popover with fullscreen backdrop is open', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39095' } }, async ({ openRecorder }) => {+ test('CG-092 should record when manual popover with fullscreen backdrop is open', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39095' } }, async ({ openRecorder }) => {const { page, recorder } = await openRecorder();// Mirrors the dialog pattern from Angular Material: https://material.angular.dev/components/dialog/examples@@ -1083,7 +1083,7 @@ await page.GetByTestId("testid").HoverAsync();`);await expect(page.getByRole('button', { name: 'Close Dialog' })).toBeHidden();});- test('should record when fullscreen element is open', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39095' } }, async ({ openRecorder }) => {+ test('CG-093 should record when fullscreen element is open', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39095' } }, async ({ openRecorder }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`@@ -1122,7 +1122,7 @@ await page.GetByTestId("testid").HoverAsync();`);});test.describe('cli codegen with frameLocator()', () => {- test('should prepend the frame selector to disambiguate', async ({ openRecorder, server }) => {+ test('CG-094 should prepend the frame selector to disambiguate', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<iframe id=frame1 srcdoc="<iframe srcdoc='<button>Hello</button>'></iframe>"></iframe>@@ -1144,7 +1144,7 @@ test.describe('cli codegen with frameLocator()', () => {expect.soft(clickAction.selector).toBe('#frame1 >> internal:control=enter-frame >> iframe >> internal:control=enter-frame >> internal:role=button[name="Hello"i]');});- test('should not use frameLocator() when it saves a single frameLocator(selector)', async ({ openRecorder, server }) => {+ test('CG-095 should not use frameLocator() when it saves a single frameLocator(selector)', async ({ openRecorder, server }) => {const { page, recorder } = await openRecorder();await recorder.setContentAndWait(`<iframe id=frame1 srcdoc="<button>Hello</button>"></iframe>diff --git a/tests/library/inspector/cli-codegen-aria.spec.ts b/tests/library/inspector/cli-codegen-aria.spec.tsindex c54cd5b3a4..07a34c219a 100644--- a/tests/library/inspector/cli-codegen-aria.spec.ts+++ b/tests/library/inspector/cli-codegen-aria.spec.ts@@ -18,7 +18,7 @@ import { test, expect } from './inspectorTest';import { roundBox } from '../../config/utils';test.describe(() => {- test('should generate aria snapshot', async ({ openRecorder }) => {+ test('CG-096 should generate aria snapshot', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<main><button>Submit</button></main>`);@@ -38,7 +38,7 @@ test.describe(() => {recorder.text('C#')).toContain(`await Expect(page.GetByRole(AriaRole.Button)).ToMatchAriaSnapshotAsync("- button \\"Submit\\"");`);});- test('should generate regex in aria snapshot', async ({ openRecorder }) => {+ test('CG-097 should generate regex in aria snapshot', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<main><button>Submit 123</button></main>`);@@ -58,7 +58,7 @@ test.describe(() => {recorder.text('C#')).toContain(`await Expect(page.GetByRole(AriaRole.Button)).ToMatchAriaSnapshotAsync("- button /Submit \\\\d+/");`);});- test('should generate regex for uuid in aria snapshot', async ({ openRecorder }) => {+ test('CG-098 should generate regex for uuid in aria snapshot', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<main><a href="/items/550e8400-e29b-41d4-a716-446655440000">Item 550e8400-e29b-41d4-a716-446655440000</a></main>`);@@ -71,7 +71,7 @@ test.describe(() => {recorder.text('JavaScript')).toContain(`- link /Item [0-9a-fA-F-]+/:`);});- test('should inspect aria snapshot', async ({ openRecorder }) => {+ test('CG-099 should inspect aria snapshot', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<main><button>Submit</button></main>`);await recorder.page.click('x-pw-tool-item.pick-locator');@@ -84,7 +84,7 @@ test.describe(() => {`);});- test('should update aria snapshot highlight', async ({ openRecorder }) => {+ test('CG-100 should update aria snapshot highlight', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<main><button>Submit</button>@@ -128,7 +128,7 @@ test.describe(() => {}});- test('should show aria snapshot error', async ({ openRecorder }) => {+ test('CG-101 should show aria snapshot error', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<main><button>Submit</button>@@ -152,7 +152,7 @@ test.describe(() => {await expect(recorder.recorderPage.locator('.source-line-error-underline')).toHaveCount(1);});- test('should generate valid javascript with multiline snapshot assertion', {+ test('CG-102 should generate valid javascript with multiline snapshot assertion', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43459' },}, async ({ openRecorder }) => {const { recorder } = await openRecorder();diff --git a/tests/library/inspector/cli-codegen-csharp.spec.ts b/tests/library/inspector/cli-codegen-csharp.spec.tsindex 8da5c824e5..ed208a09dd 100644--- a/tests/library/inspector/cli-codegen-csharp.spec.ts+++ b/tests/library/inspector/cli-codegen-csharp.spec.ts@@ -25,7 +25,7 @@ function capitalize(browserName: string): string {return browserName[0].toUpperCase() + browserName.slice(1);}-test('should print the correct imports and context options', async ({ browserName, channel, runCLI, server }) => {+test('CG-150 should print the correct imports and context options', async ({ browserName, channel, runCLI, server }) => {const cli = runCLI(['--target=csharp', server.EMPTY_PAGE]);const expectedResult = `using Microsoft.Playwright;using System;@@ -40,7 +40,7 @@ var context = await browser.NewContextAsync();`;await cli.waitFor(expectedResult);});-test('should print the correct context options for custom settings', async ({ browserName, channel, runCLI, server, proxyServer }) => {+test('CG-151 should print the correct context options for custom settings', async ({ browserName, channel, runCLI, server, proxyServer }) => {proxyServer.forwardTo(server.PORT);const cli = runCLI(['--color-scheme=dark',@@ -83,7 +83,7 @@ var context = await browser.NewContextAsync(new()await cli.waitFor(expectedResult);});-test('should print the correct context options when using a device', async ({ browserName, channel, runCLI, server }) => {+test('CG-152 should print the correct context options when using a device', async ({ browserName, channel, runCLI, server }) => {test.skip(browserName !== 'chromium');const cli = runCLI(['--device=Pixel 2', '--target=csharp', server.EMPTY_PAGE]);@@ -97,7 +97,7 @@ var context = await browser.NewContextAsync(playwright.Devices["Pixel 2"]);`;await cli.waitFor(expectedResult);});-test('should print the correct context options when using a device and additional options', async ({ browserName, channel, runCLI, server, proxyServer }) => {+test('CG-153 should print the correct context options when using a device and additional options', async ({ browserName, channel, runCLI, server, proxyServer }) => {test.skip(browserName !== 'webkit');proxyServer.forwardTo(server.PORT);@@ -150,7 +150,7 @@ var context = await browser.NewContextAsync(new()await cli.waitFor(expectedResult);});-test('should print load/save storageState', async ({ browserName, channel, runCLI, server }, testInfo) => {+test('CG-154 should print load/save storageState', async ({ browserName, channel, runCLI, server }, testInfo) => {const loadFileName = testInfo.outputPath('load.json');const saveFileName = testInfo.outputPath('save.json');await fs.promises.writeFile(loadFileName, JSON.stringify({ cookies: [], origins: [] }), 'utf8');@@ -175,7 +175,7 @@ await context.StorageStateAsync(new()await cli.waitFor(expectedResult2);});-test('should work with --save-har', async ({ runCLI }, testInfo) => {+test('CG-155 should work with --save-har', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `await context.RouteFromHARAsync(${JSON.stringify(harFileName)});`;const cli = runCLI(['--target=csharp', `--save-har=${harFileName}`]);@@ -185,7 +185,7 @@ test('should work with --save-har', async ({ runCLI }, testInfo) => {expect(json.log.creator.name).toBe('Playwright');});-test('should work with --save-har and --save-har-glob', async ({ runCLI }, testInfo) => {+test('CG-156 should work with --save-har and --save-har-glob', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `await context.RouteFromHARAsync(${JSON.stringify(harFileName)}, new(){@@ -199,13 +199,13 @@ test('should work with --save-har and --save-har-glob', async ({ runCLI }, testI});for (const testFramework of ['nunit', 'mstest', 'xunit'] as const) {- test(`should not print context options method override in ${testFramework} if no options were passed`, async ({ runCLI, server }) => {+ test(`CG-157 should not print context options method override in ${testFramework} if no options were passed`, async ({ runCLI, server }) => {const cli = runCLI([`--target=csharp-${testFramework}`, server.EMPTY_PAGE]);await cli.waitFor(`Page.GotoAsync("${server.EMPTY_PAGE}")`);expect(await cli.text()).not.toContain('public override BrowserNewContextOptions ContextOptions()');});- test(`should print context options method override in ${testFramework} if options were passed`, async ({ runCLI, server }) => {+ test(`CG-158 should print context options method override in ${testFramework} if options were passed`, async ({ runCLI, server }) => {const cli = runCLI([`--target=csharp-${testFramework}`, '--color-scheme=dark', server.EMPTY_PAGE]);await cli.waitFor(`Page.GotoAsync("${server.EMPTY_PAGE}")`);expect(await cli.text()).toContain(` public override BrowserNewContextOptions ContextOptions()@@ -218,7 +218,7 @@ for (const testFramework of ['nunit', 'mstest', 'xunit'] as const) {`);});- test(`should work with --save-har in ${testFramework}`, async ({ runCLI }, testInfo) => {+ test(`CG-159 should work with --save-har in ${testFramework}`, async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `await Context.RouteFromHARAsync(${JSON.stringify(harFileName)});`;const cli = runCLI([`--target=csharp-${testFramework}`, `--save-har=${harFileName}`]);@@ -228,7 +228,7 @@ for (const testFramework of ['nunit', 'mstest', 'xunit'] as const) {expect(json.log.creator.name).toBe('Playwright');});- test(`should work with --save-har and --save-har-glob in ${testFramework}`, async ({ runCLI }, testInfo) => {+ test(`CG-160 should work with --save-har and --save-har-glob in ${testFramework}`, async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `await Context.RouteFromHARAsync(${JSON.stringify(harFileName)}, new(){@@ -242,7 +242,7 @@ for (const testFramework of ['nunit', 'mstest', 'xunit'] as const) {});}-test(`should print a valid basic program in mstest`, async ({ runCLI, server }) => {+test(`CG-161 should print a valid basic program in mstest`, async ({ runCLI, server }) => {const cli = runCLI([`--target=csharp-mstest`, '--color-scheme=dark', server.EMPTY_PAGE]);await cli.waitFor(`Page.GotoAsync("${server.EMPTY_PAGE}")`);const expected = `using Microsoft.Playwright.MSTest;@@ -268,7 +268,7 @@ public class Tests : PageTestexpect(await cli.text()).toContain(expected);});-test(`should print a valid basic program in nunit`, async ({ runCLI, server }) => {+test(`CG-162 should print a valid basic program in nunit`, async ({ runCLI, server }) => {const cli = runCLI([`--target=csharp-nunit`, '--color-scheme=dark', server.EMPTY_PAGE]);await cli.waitFor(`Page.GotoAsync("${server.EMPTY_PAGE}")`);const expected = `using Microsoft.Playwright.NUnit;@@ -295,7 +295,7 @@ public class Tests : PageTestexpect(await cli.text()).toContain(expected);});-test(`should print a valid basic program in xunit`, async ({ runCLI, server }) => {+test(`CG-163 should print a valid basic program in xunit`, async ({ runCLI, server }) => {const cli = runCLI([`--target=csharp-xunit`, '--color-scheme=dark', server.EMPTY_PAGE]);await cli.waitFor(`Page.GotoAsync("${server.EMPTY_PAGE}")`);const expected = `using Microsoft.Playwright.Xunit;diff --git a/tests/library/inspector/cli-codegen-java.spec.ts b/tests/library/inspector/cli-codegen-java.spec.tsindex d28cf551b4..da675e2c27 100644--- a/tests/library/inspector/cli-codegen-java.spec.ts+++ b/tests/library/inspector/cli-codegen-java.spec.ts@@ -21,7 +21,7 @@ const launchOptions = (channel: string) => {return channel ? `.setChannel("${channel}")\n .setHeadless(false)` : '.setHeadless(false)';};-test('should print the correct imports and context options', async ({ runCLI, channel, browserName, server }) => {+test('CG-141 should print the correct imports and context options', async ({ runCLI, channel, browserName, server }) => {const cli = runCLI(['--target=java', server.EMPTY_PAGE]);const expectedResult = `import com.microsoft.playwright.*;import com.microsoft.playwright.options.*;@@ -37,14 +37,14 @@ public class Example {await cli.waitFor(expectedResult);});-test('should print the correct context options for custom settings', async ({ runCLI, server }) => {+test('CG-142 should print the correct context options for custom settings', async ({ runCLI, server }) => {const cli = runCLI(['--color-scheme=light', '--target=java', server.EMPTY_PAGE]);const expectedResult = `BrowserContext context = browser.newContext(new Browser.NewContextOptions().setColorScheme(ColorScheme.LIGHT));`;await cli.waitFor(expectedResult);});-test('should print the correct context options when using a device', async ({ browserName, runCLI, server }) => {+test('CG-143 should print the correct context options when using a device', async ({ browserName, runCLI, server }) => {test.skip(browserName !== 'chromium');const cli = runCLI(['--device=Pixel 2', '--target=java', server.EMPTY_PAGE]);@@ -59,7 +59,7 @@ test('should print the correct context options when using a device', async ({ brexpect(text.replace(/(.*Chrome\/)(.*?)( .*)/m, '$1XXXX$3')).toContain(expectedResult);});-test('should print the correct context options when using a device and additional options', async ({ browserName, runCLI, server }) => {+test('CG-144 should print the correct context options when using a device and additional options', async ({ browserName, runCLI, server }) => {test.skip(browserName !== 'webkit');const cli = runCLI(['--color-scheme=light', '--device=iPhone 11', '--target=java', server.EMPTY_PAGE]);@@ -75,7 +75,7 @@ test('should print the correct context options when using a device and additionaexpect(text.replace(/(.*Version\/)(.*?)( .*)/m, '$1XXXX$3')).toContain(expectedResult);});-test('should print load/save storage_state', async ({ runCLI, server }, testInfo) => {+test('CG-145 should print load/save storage_state', async ({ runCLI, server }, testInfo) => {const loadFileName = testInfo.outputPath('load.json');const saveFileName = testInfo.outputPath('save.json');await fs.promises.writeFile(loadFileName, JSON.stringify({ cookies: [], origins: [] }), 'utf8');@@ -89,7 +89,7 @@ test('should print load/save storage_state', async ({ runCLI, server }, testInfoawait cli.waitFor(expectedResult2);});-test('should work with --save-har and --save-har-glob as java-library', async ({ runCLI }, testInfo) => {+test('CG-146 should work with --save-har and --save-har-glob as java-library', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `context.routeFromHAR(Paths.get(${JSON.stringify(harFileName)}), new BrowserContext.RouteFromHAROptions().setUrl("**/*.js"));`;@@ -100,7 +100,7 @@ test('should work with --save-har and --save-har-glob as java-library', async ({expect(json.log.creator.name).toBe('Playwright');});-test('should work with --save-har and --save-har-glob as java-junit', async ({ runCLI }, testInfo) => {+test('CG-147 should work with --save-har and --save-har-glob as java-junit', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `page.routeFromHAR(Paths.get(${JSON.stringify(harFileName)}), new Page.RouteFromHAROptions().setUrl("**/*.js"));`;@@ -111,7 +111,7 @@ test('should work with --save-har and --save-har-glob as java-junit', async ({ rexpect(json.log.creator.name).toBe('Playwright');});-test('should print the correct imports in junit', async ({ runCLI, server }) => {+test('CG-148 should print the correct imports in junit', async ({ runCLI, server }) => {const cli = runCLI(['--target=java-junit', server.EMPTY_PAGE]);const expectedImportResult = `import com.microsoft.playwright.junit.UsePlaywright;import com.microsoft.playwright.Page;@@ -122,7 +122,7 @@ import static com.microsoft.playwright.assertions.PlaywrightAssertions.*;`;await cli.waitFor(expectedImportResult);});-test('should print a valid basic program in junit', async ({ runCLI, server }) => {+test('CG-149 should print a valid basic program in junit', async ({ runCLI, server }) => {const cli = runCLI(['--target=java-junit', server.EMPTY_PAGE]);const expectedResult = `import com.microsoft.playwright.junit.UsePlaywright;import com.microsoft.playwright.Page;diff --git a/tests/library/inspector/cli-codegen-javascript.spec.ts b/tests/library/inspector/cli-codegen-javascript.spec.tsindex 29d7114a61..190c22f096 100644--- a/tests/library/inspector/cli-codegen-javascript.spec.ts+++ b/tests/library/inspector/cli-codegen-javascript.spec.ts@@ -21,7 +21,7 @@ const launchOptions = (channel: string) => {return channel ? `channel: '${channel}',\n headless: false` : 'headless: false';};-test('should print the correct imports and context options', async ({ browserName, channel, runCLI, server }) => {+test('CG-105 should print the correct imports and context options', async ({ browserName, channel, runCLI, server }) => {const cli = runCLI(['--target=javascript', server.EMPTY_PAGE]);const expectedResult = `const { ${browserName} } = require('playwright');@@ -33,7 +33,7 @@ test('should print the correct imports and context options', async ({ browserNamawait cli.waitFor(expectedResult);});-test('should print the correct context options for custom settings', async ({ browserName, channel, runCLI, server }) => {+test('CG-106 should print the correct context options for custom settings', async ({ browserName, channel, runCLI, server }) => {const cli = runCLI(['--color-scheme=light', '--target=javascript', server.EMPTY_PAGE]);const expectedResult = `const { ${browserName} } = require('playwright');@@ -48,7 +48,7 @@ test('should print the correct context options for custom settings', async ({ br});-test('should work with --http-credentials', async ({ browserName, channel, runCLI, server }) => {+test('CG-107 should work with --http-credentials', async ({ browserName, channel, runCLI, server }) => {server.setAuth('/empty.html', 'user', 'pass');const cli = runCLI(['--http-credentials=user:pass', '--target=javascript', server.EMPTY_PAGE]);const expectedResult = `const { ${browserName} } = require('playwright');@@ -68,7 +68,7 @@ test('should work with --http-credentials', async ({ browserName, channel, runCLawait cli.waitFor(expectedResult);});-test('should print the correct context options when using a device', async ({ browserName, channel, runCLI, server }) => {+test('CG-108 should print the correct context options when using a device', async ({ browserName, channel, runCLI, server }) => {test.skip(browserName !== 'chromium');const cli = runCLI(['--device=Pixel 2', '--target=javascript', server.EMPTY_PAGE]);@@ -84,7 +84,7 @@ test('should print the correct context options when using a device', async ({ brawait cli.waitFor(expectedResult);});-test('should print the correct context options when using a device and additional options', async ({ browserName, channel, runCLI, server }) => {+test('CG-109 should print the correct context options when using a device and additional options', async ({ browserName, channel, runCLI, server }) => {test.skip(browserName !== 'webkit');const cli = runCLI(['--color-scheme=light', '--device=iPhone 11', '--target=javascript', server.EMPTY_PAGE]);@@ -101,7 +101,7 @@ test('should print the correct context options when using a device and additionaawait cli.waitFor(expectedResult);});-test('should save the codegen output to a file if specified', async ({ browserName, channel, runCLI, server }, testInfo) => {+test('CG-110 should save the codegen output to a file if specified', async ({ browserName, channel, runCLI, server }, testInfo) => {const cli = runCLI(['--target=javascript', server.EMPTY_PAGE]);await cli.waitFor(`const { ${browserName} } = require('playwright');@@ -119,7 +119,7 @@ test('should save the codegen output to a file if specified', async ({ browserNa})();`);});-test('should print load/save storageState', async ({ browserName, channel, runCLI, server }, testInfo) => {+test('CG-111 should print load/save storageState', async ({ browserName, channel, runCLI, server }, testInfo) => {const loadFileName = testInfo.outputPath('load.json');const saveFileName = testInfo.outputPath('save.json');await fs.promises.writeFile(loadFileName, JSON.stringify({ cookies: [], origins: [] }), 'utf8');diff --git a/tests/library/inspector/cli-codegen-pick-locator.spec.ts b/tests/library/inspector/cli-codegen-pick-locator.spec.tsindex 154d0290f1..2977721351 100644--- a/tests/library/inspector/cli-codegen-pick-locator.spec.ts+++ b/tests/library/inspector/cli-codegen-pick-locator.spec.ts@@ -18,7 +18,7 @@ import { test, expect } from './inspectorTest';import { roundBox } from '../../config/utils';test.describe(() => {- test('should inspect locator', async ({ openRecorder }) => {+ test('CG-103 should inspect locator', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<main><button>Submit</button></main>`);await recorder.page.click('x-pw-tool-item.pick-locator');@@ -30,7 +30,7 @@ test.describe(() => {`);});- test('should update locator highlight', async ({ openRecorder }) => {+ test('CG-104 should update locator highlight', async ({ openRecorder }) => {const { recorder } = await openRecorder();await recorder.setContentAndWait(`<main><button>Submit</button>diff --git a/tests/library/inspector/cli-codegen-pytest.spec.ts b/tests/library/inspector/cli-codegen-pytest.spec.tsindex 58676c5b42..fb80e5f753 100644--- a/tests/library/inspector/cli-codegen-pytest.spec.ts+++ b/tests/library/inspector/cli-codegen-pytest.spec.ts@@ -17,7 +17,7 @@import fs from 'fs';import { test, expect } from './inspectorTest';-test('should print the correct imports and context options', async ({ runCLI, server }) => {+test('CG-136 should print the correct imports and context options', async ({ runCLI, server }) => {const cli = runCLI(['--target=python-pytest', server.EMPTY_PAGE]);const expectedResult = `import refrom playwright.sync_api import Page, expect@@ -27,7 +27,7 @@ def test_example(page: Page) -> None:`;await cli.waitFor(expectedResult);});-test('should print the correct context options when using a device and lang', async ({ browserName, runCLI, server }, testInfo) => {+test('CG-137 should print the correct context options when using a device and lang', async ({ browserName, runCLI, server }, testInfo) => {test.skip(browserName !== 'webkit');const cli = runCLI(['--target=python-pytest', '--device=iPhone 11', '--lang=en-US', server.EMPTY_PAGE]);@@ -46,7 +46,7 @@ def test_example(page: Page) -> None:`);});-test('should save the codegen output to a file if specified', async ({ runCLI, server }, testInfo) => {+test('CG-138 should save the codegen output to a file if specified', async ({ runCLI, server }, testInfo) => {const cli = runCLI(['--target=python-pytest', server.EMPTY_PAGE]);await cli.waitFor(`import refrom playwright.sync_api import Page, expect@@ -57,7 +57,7 @@ def test_example(page: Page) -> None:`);});-test('should work with --save-har', async ({ runCLI }, testInfo) => {+test('CG-139 should work with --save-har', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `page.route_from_har(${JSON.stringify(harFileName)})`;const cli = runCLI(['--target=python-pytest', `--save-har=${harFileName}`]);@@ -67,7 +67,7 @@ test('should work with --save-har', async ({ runCLI }, testInfo) => {expect(json.log.creator.name).toBe('Playwright');});-test('should work with --save-har and --save-har-glob', async ({ runCLI }, testInfo) => {+test('CG-140 should work with --save-har and --save-har-glob', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `page.route_from_har(${JSON.stringify(harFileName)}, url="**/*.js")`;const cli = runCLI(['--target=python-pytest', `--save-har=${harFileName}`, '--save-har-glob=**/*.js']);diff --git a/tests/library/inspector/cli-codegen-python-async.spec.ts b/tests/library/inspector/cli-codegen-python-async.spec.tsindex 58b6b40489..d9cc112a42 100644--- a/tests/library/inspector/cli-codegen-python-async.spec.ts+++ b/tests/library/inspector/cli-codegen-python-async.spec.ts@@ -21,7 +21,7 @@ const launchOptions = (channel: string) => {return channel ? `channel="${channel}", headless=False` : 'headless=False';};-test('should print the correct imports and context options', async ({ browserName, channel, runCLI, server }) => {+test('CG-128 should print the correct imports and context options', async ({ browserName, channel, runCLI, server }) => {const cli = runCLI(['--target=python-async', server.EMPTY_PAGE]);const expectedResult = `import asyncioimport re@@ -34,7 +34,7 @@ async def run(playwright: Playwright) -> None:await cli.waitFor(expectedResult);});-test('should print the correct context options for custom settings', async ({ browserName, channel, runCLI, server }) => {+test('CG-129 should print the correct context options for custom settings', async ({ browserName, channel, runCLI, server }) => {const cli = runCLI(['--color-scheme=light', '--target=python-async', server.EMPTY_PAGE]);const expectedResult = `import asyncioimport re@@ -47,7 +47,7 @@ async def run(playwright: Playwright) -> None:await cli.waitFor(expectedResult);});-test('should print the correct context options when using a device', async ({ browserName, channel, runCLI, server }) => {+test('CG-130 should print the correct context options when using a device', async ({ browserName, channel, runCLI, server }) => {test.skip(browserName !== 'chromium');const cli = runCLI(['--device=Pixel 2', '--target=python-async', server.EMPTY_PAGE]);@@ -62,7 +62,7 @@ async def run(playwright: Playwright) -> None:await cli.waitFor(expectedResult);});-test('should print the correct context options when using a device and additional options', async ({ browserName, channel, runCLI, server }) => {+test('CG-131 should print the correct context options when using a device and additional options', async ({ browserName, channel, runCLI, server }) => {test.skip(browserName !== 'webkit');const cli = runCLI(['--color-scheme=light', '--device=iPhone 11', '--target=python-async', server.EMPTY_PAGE]);@@ -77,7 +77,7 @@ async def run(playwright: Playwright) -> None:await cli.waitFor(expectedResult);});-test('should save the codegen output to a file if specified', async ({ browserName, channel, runCLI, server }, testInfo) => {+test('CG-132 should save the codegen output to a file if specified', async ({ browserName, channel, runCLI, server }, testInfo) => {const cli = runCLI(['--target=python-async', server.EMPTY_PAGE]);await cli.waitFor(`import asyncioimport re@@ -104,7 +104,7 @@ asyncio.run(main())`);});-test('should print load/save storage_state', async ({ browserName, channel, runCLI, server }, testInfo) => {+test('CG-133 should print load/save storage_state', async ({ browserName, channel, runCLI, server }, testInfo) => {const loadFileName = testInfo.outputPath('load.json');const saveFileName = testInfo.outputPath('save.json');await fs.promises.writeFile(loadFileName, JSON.stringify({ cookies: [], origins: [] }), 'utf8');@@ -136,7 +136,7 @@ asyncio.run(main())await cli.waitFor(expectedResult2);});-test('should work with --save-har', async ({ runCLI }, testInfo) => {+test('CG-134 should work with --save-har', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `await context.route_from_har(${JSON.stringify(harFileName)})`;const cli = runCLI(['--target=python-async', `--save-har=${harFileName}`]);@@ -146,7 +146,7 @@ test('should work with --save-har', async ({ runCLI }, testInfo) => {expect(json.log.creator.name).toBe('Playwright');});-test('should work with --save-har and --save-har-glob', async ({ runCLI }, testInfo) => {+test('CG-135 should work with --save-har and --save-har-glob', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `await context.route_from_har(${JSON.stringify(harFileName)}, url="**/*.js")`;const cli = runCLI(['--target=python-async', `--save-har=${harFileName}`, '--save-har-glob=**/*.js']);diff --git a/tests/library/inspector/cli-codegen-python.spec.ts b/tests/library/inspector/cli-codegen-python.spec.tsindex a90c0ef764..4013a3a7aa 100644--- a/tests/library/inspector/cli-codegen-python.spec.ts+++ b/tests/library/inspector/cli-codegen-python.spec.ts@@ -21,7 +21,7 @@ const launchOptions = (channel: string) => {return channel ? `channel="${channel}", headless=False` : 'headless=False';};-test('should print the correct imports and context options', async ({ runCLI, channel, browserName, server }) => {+test('CG-120 should print the correct imports and context options', async ({ runCLI, channel, browserName, server }) => {const cli = runCLI(['--target=python', server.EMPTY_PAGE]);const expectedResult = `import refrom playwright.sync_api import Playwright, sync_playwright, expect@@ -33,7 +33,7 @@ def run(playwright: Playwright) -> None:await cli.waitFor(expectedResult);});-test('should print the correct context options for custom settings', async ({ runCLI, channel, browserName, server }) => {+test('CG-121 should print the correct context options for custom settings', async ({ runCLI, channel, browserName, server }) => {const cli = runCLI(['--color-scheme=light', '--target=python', server.EMPTY_PAGE]);const expectedResult = `import refrom playwright.sync_api import Playwright, sync_playwright, expect@@ -45,7 +45,7 @@ def run(playwright: Playwright) -> None:await cli.waitFor(expectedResult);});-test('should print the correct context options when using a device', async ({ browserName, channel, runCLI, server }) => {+test('CG-122 should print the correct context options when using a device', async ({ browserName, channel, runCLI, server }) => {test.skip(browserName !== 'chromium');const cli = runCLI(['--device=Pixel 2', '--target=python', server.EMPTY_PAGE]);@@ -59,7 +59,7 @@ def run(playwright: Playwright) -> None:await cli.waitFor(expectedResult);});-test('should print the correct context options when using a device and additional options', async ({ browserName, channel, runCLI, server }) => {+test('CG-123 should print the correct context options when using a device and additional options', async ({ browserName, channel, runCLI, server }) => {test.skip(browserName !== 'webkit');const cli = runCLI(['--color-scheme=light', '--device=iPhone 11', '--target=python', server.EMPTY_PAGE]);@@ -73,7 +73,7 @@ def run(playwright: Playwright) -> None:await cli.waitFor(expectedResult);});-test('should save the codegen output to a file if specified', async ({ runCLI, channel, browserName, server }, testInfo) => {+test('CG-124 should save the codegen output to a file if specified', async ({ runCLI, channel, browserName, server }, testInfo) => {const cli = runCLI(['--target=python', server.EMPTY_PAGE]);await cli.waitFor(`import refrom playwright.sync_api import Playwright, sync_playwright, expect@@ -95,7 +95,7 @@ with sync_playwright() as playwright:`);});-test('should print load/save storage_state', async ({ runCLI, channel, browserName, server }, testInfo) => {+test('CG-125 should print load/save storage_state', async ({ runCLI, channel, browserName, server }, testInfo) => {const loadFileName = testInfo.outputPath('load.json');const saveFileName = testInfo.outputPath('save.json');await fs.promises.writeFile(loadFileName, JSON.stringify({ cookies: [], origins: [] }), 'utf8');@@ -122,7 +122,7 @@ with sync_playwright() as playwright:await cli.waitFor(expectedResult2);});-test('should work with --save-har', async ({ runCLI }, testInfo) => {+test('CG-126 should work with --save-har', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `context.route_from_har(${JSON.stringify(harFileName)})`;const cli = runCLI(['--target=python-async', `--save-har=${harFileName}`]);@@ -132,7 +132,7 @@ test('should work with --save-har', async ({ runCLI }, testInfo) => {expect(json.log.creator.name).toBe('Playwright');});-test('should work with --save-har and --save-har-glob', async ({ runCLI }, testInfo) => {+test('CG-127 should work with --save-har and --save-har-glob', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `context.route_from_har(${JSON.stringify(harFileName)}, url="**/*.js")`;const cli = runCLI(['--target=python-async', `--save-har=${harFileName}`, '--save-har-glob=**/*.js']);diff --git a/tests/library/inspector/cli-codegen-test.spec.ts b/tests/library/inspector/cli-codegen-test.spec.tsindex 00a3523578..81cfbc061d 100644--- a/tests/library/inspector/cli-codegen-test.spec.ts+++ b/tests/library/inspector/cli-codegen-test.spec.ts@@ -17,7 +17,7 @@import fs from 'fs';import { test, expect } from './inspectorTest';-test('should print the correct imports and context options', async ({ runCLI, server }) => {+test('CG-112 should print the correct imports and context options', async ({ runCLI, server }) => {const cli = runCLI([server.EMPTY_PAGE]);const expectedResult = `import { test, expect } from '@playwright/test';@@ -27,7 +27,7 @@ test('test', async ({ page }) => {await cli.waitFor(expectedResult);});-test('should print the correct context options for custom settings', async ({ runCLI, server }) => {+test('CG-113 should print the correct context options for custom settings', async ({ runCLI, server }) => {const cli = runCLI(['--color-scheme=light', server.EMPTY_PAGE]);const expectedResult = `import { test, expect } from '@playwright/test';@@ -40,7 +40,7 @@ test('test', async ({ page }) => {`;});-test('should print the correct context options when using a device', async ({ browserName, runCLI, server }) => {+test('CG-114 should print the correct context options when using a device', async ({ browserName, runCLI, server }) => {test.skip(browserName !== 'chromium');const cli = runCLI(['--device=Pixel 2', server.EMPTY_PAGE]);@@ -54,7 +54,7 @@ test('test', async ({ page }) => {`;await cli.waitFor(expectedResult);});-test('should print the correct context options when using a device and additional options', async ({ browserName, server, runCLI }) => {+test('CG-115 should print the correct context options when using a device and additional options', async ({ browserName, server, runCLI }) => {test.skip(browserName !== 'webkit');const cli = runCLI(['--color-scheme=light', '--device=iPhone 11', server.EMPTY_PAGE]);@@ -69,7 +69,7 @@ test('test', async ({ page }) => {`;await cli.waitFor(expectedResult);});-test('should print load storageState', async ({ runCLI, server }, testInfo) => {+test('CG-116 should print load storageState', async ({ runCLI, server }, testInfo) => {const loadFileName = testInfo.outputPath('load.json');await fs.promises.writeFile(loadFileName, JSON.stringify({ cookies: [], origins: [] }), 'utf8');const cli = runCLI([`--load-storage=${loadFileName}`, server.EMPTY_PAGE]);@@ -83,7 +83,7 @@ test('test', async ({ page }) => {`;await cli.waitFor(expectedResult);});-test('should not generate recordHAR with --save-har', async ({ runCLI }, testInfo) => {+test('CG-117 should not generate recordHAR with --save-har', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = ` await page.routeFromHAR('${harFileName.replace(/\\/g, '\\\\')}');`;const cli = runCLI(['--target=playwright-test', `--save-har=${harFileName}`]);@@ -93,7 +93,7 @@ test('should not generate recordHAR with --save-har', async ({ runCLI }, testInfexpect(json.log.creator.name).toBe('Playwright');});-test('should generate routeFromHAR with --save-har', async ({ runCLI }, testInfo) => {+test('CG-118 should generate routeFromHAR with --save-har', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `test('test', async ({ page }) => {await page.routeFromHAR('${harFileName.replace(/\\/g, '\\\\')}');@@ -105,7 +105,7 @@ test('should generate routeFromHAR with --save-har', async ({ runCLI }, testInfoexpect(json.log.creator.name).toBe('Playwright');});-test('should generate routeFromHAR with --save-har and --save-har-glob', async ({ runCLI }, testInfo) => {+test('CG-119 should generate routeFromHAR with --save-har and --save-har-glob', async ({ runCLI }, testInfo) => {const harFileName = testInfo.outputPath('har.har');const expectedResult = `test('test', async ({ page }) => {await page.routeFromHAR('${harFileName.replace(/\\/g, '\\\\')}', {diff --git a/tests/library/inspector/console-api.spec.ts b/tests/library/inspector/console-api.spec.tsindex 2951f7bcb7..fde0f2066b 100644--- a/tests/library/inspector/console-api.spec.ts+++ b/tests/library/inspector/console-api.spec.ts@@ -33,25 +33,25 @@ it.afterEach(async ({ recorderPageGetter }) => {recorderPage.click('[title="Resume (F8)"]').catch(() => {});});-it('should support playwright.$, playwright.$$', async ({ page }) => {+it('IN-046 should support playwright.$, playwright.$$', async ({ page }) => {const body = await page.evaluateHandle('playwright.$("body")');expect(await body.evaluate<string, HTMLBodyElement>((node: HTMLBodyElement) => node.nodeName)).toBe('BODY');const length = await page.evaluate('playwright.$$("body").length');expect(length).toBe(1);});-it('should support playwright.selector', async ({ page }) => {+it('IN-047 should support playwright.selector', async ({ page }) => {const length = await page.evaluate('playwright.selector(document.body)');expect(length).toBe('body');});-it('should support playwright.locator.value', async ({ page }) => {+it('IN-048 should support playwright.locator.value', async ({ page }) => {await page.setContent('<div>Hello<div>');const handle = await page.evaluateHandle(`playwright.locator('div', { hasText: 'Hello' }).element`);expect(await handle.evaluate<string, HTMLDivElement>((node: HTMLDivElement) => node.nodeName)).toBe('DIV');});-it('should support playwright.locator.values', async ({ page }) => {+it('IN-049 should support playwright.locator.values', async ({ page }) => {await page.setContent('<div>Hello<div>Bar</div></div>');expect(await page.evaluate(`playwright.locator('div', { hasText: 'Hello' }).elements.length`)).toBe(1);expect(await page.evaluate(`playwright.locator('div', { hasText: 'HElLo' }).elements.length`)).toBe(1);@@ -62,7 +62,7 @@ it('should support playwright.locator.values', async ({ page }) => {expect(await page.evaluate(`playwright.locator('div', { hasNotText: /Hello/ }).elements.length`)).toBe(1);});-it('should support playwright.locator({ has })', async ({ page }) => {+it('IN-050 should support playwright.locator({ has })', async ({ page }) => {await page.setContent(`<div>Hi</div><div><span>Hello</span></div>@@ -73,23 +73,23 @@ it('should support playwright.locator({ has })', async ({ page }) => {expect(await page.evaluate(`playwright.locator('div', { has: playwright.locator('span', { hasText: 'Hello' }) }).elements.length`)).toBe(1);});-it('should support playwright.locator({ hasNot })', async ({ page }) => {+it('IN-051 should support playwright.locator({ hasNot })', async ({ page }) => {await page.setContent('<div>Hi</div><div><span>Hello</span></div>');expect(await page.evaluate(`playwright.locator('div', { hasNot: playwright.locator('span') }).element.innerHTML`)).toContain('Hi');expect(await page.evaluate(`playwright.locator('div', { hasNot: playwright.locator('text=Hello') }).element.innerHTML`)).toContain('Hi');});-it('should support locator.and()', async ({ page }) => {+it('IN-052 should support locator.and()', async ({ page }) => {await page.setContent('<div data-testid=Hey>Hi</div>');expect(await page.evaluate(`playwright.locator('div').and(playwright.getByTestId('Hey')).elements.map(e => e.innerHTML)`)).toEqual(['Hi']);});-it('should support locator.or()', async ({ page }) => {+it('IN-053 should support locator.or()', async ({ page }) => {await page.setContent('<div>Hi</div><span>Hello</span>');expect(await page.evaluate(`playwright.locator('div').or(playwright.locator('span')).elements.map(e => e.innerHTML)`)).toEqual(['Hi', 'Hello']);});-it('should support playwright.getBy*', async ({ page }) => {+it('IN-054 should support playwright.getBy*', async ({ page }) => {await page.setContent('<span>Hello</span><span title="world">World</span><div>one</div><div style="display:none">two</div>');expect(await page.evaluate(`playwright.getByText('hello').element.innerHTML`)).toContain('Hello');expect(await page.evaluate(`playwright.getByTitle('world').element.innerHTML`)).toContain('World');@@ -101,7 +101,7 @@ it('should support playwright.getBy*', async ({ page }) => {expect(await page.evaluate(`playwright.locator('div').visible().element.innerHTML`)).toContain('one');});-it('expected properties on playwright object', async ({ page }) => {+it('IN-055 expected properties on playwright object', async ({ page }) => {expect(await page.evaluate(`Object.keys(playwright)`)).toEqual(['$','$$',diff --git a/tests/library/inspector/pause.spec.ts b/tests/library/inspector/pause.spec.tsindex 3e79cdc400..12326a7b8b 100644--- a/tests/library/inspector/pause.spec.ts+++ b/tests/library/inspector/pause.spec.ts@@ -20,7 +20,7 @@ import { roundBox, waitForTestLog } from '../../config/utils';import type { BoundingBox } from '../../config/utils';import { pauseHelper } from './pause-helper';-it('should resume when closing inspector', async ({ page, recorderPageGetter, closeRecorder, mode }) => {+it('IN-001 should resume when closing inspector', async ({ page, recorderPageGetter, closeRecorder, mode }) => {const scriptPromise = (async () => {// @ts-ignoreawait page.pause({ __testHookKeepTestTimeout: true });@@ -30,7 +30,7 @@ it('should resume when closing inspector', async ({ page, recorderPageGetter, clawait scriptPromise;});-it('should not reset timeouts', async ({ page, recorderPageGetter, closeRecorder, server }) => {+it('IN-002 should not reset timeouts', async ({ page, recorderPageGetter, closeRecorder, server }) => {page.context().setDefaultNavigationTimeout(1000);page.context().setDefaultTimeout(1000);@@ -45,7 +45,7 @@ it('should not reset timeouts', async ({ page, recorderPageGetter, closeRecorderexpect(error.message).toContain('page.goto: Timeout 1000ms exceeded.');});-it('should collapse log entries to a single line', async ({ page, recorderPageGetter }) => {+it('IN-003 should collapse log entries to a single line', async ({ page, recorderPageGetter }) => {const scriptPromise = (async () => {// @ts-ignoreawait page.pause({ __testHookKeepTestTimeout: true });@@ -71,7 +71,7 @@ it.describe('pause', () => {}});- it('should pause and resume the script', async ({ page, recorderPageGetter }) => {+ it('IN-004 should pause and resume the script', async ({ page, recorderPageGetter }) => {const scriptPromise = (async () => {// @ts-ignoreawait page.pause({ __testHookKeepTestTimeout: true });@@ -81,7 +81,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should pause and resume the script with keyboard shortcut', async ({ page, recorderPageGetter }) => {+ it('IN-005 should pause and resume the script with keyboard shortcut', async ({ page, recorderPageGetter }) => {const scriptPromise = (async () => {// @ts-ignoreawait page.pause({ __testHookKeepTestTimeout: true });@@ -92,7 +92,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should resume from console', async ({ page, mode }) => {+ it('IN-006 should resume from console', async ({ page, mode }) => {it.skip(mode !== 'default');const scriptPromise = (async () => {@@ -103,7 +103,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should pause after a navigation', async ({ page, server, recorderPageGetter }) => {+ it('IN-007 should pause after a navigation', async ({ page, server, recorderPageGetter }) => {const scriptPromise = (async () => {await page.goto(server.EMPTY_PAGE);// @ts-ignore@@ -114,7 +114,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should show source', async ({ page, recorderPageGetter }) => {+ it('IN-008 should show source', async ({ page, recorderPageGetter }) => {const scriptPromise = (async () => {// @ts-ignoreawait page.pause({ __testHookKeepTestTimeout: true });@@ -132,7 +132,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should pause on next pause', async ({ page, recorderPageGetter }) => {+ it('IN-009 should pause on next pause', async ({ page, recorderPageGetter }) => {const scriptPromise = (async () => {// @ts-ignoreawait page.pause({ __testHookKeepTestTimeout: true }); // 1@@ -148,7 +148,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should step', async ({ page, recorderPageGetter }) => {+ it('IN-010 should step', async ({ page, recorderPageGetter }) => {await page.setContent('<button>Submit</button>');const scriptPromise = (async () => {// @ts-ignore@@ -166,7 +166,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should disable timeout on paused actions', async ({ page, recorderPageGetter }) => {+ it('IN-011 should disable timeout on paused actions', async ({ page, recorderPageGetter }) => {await page.setContent('<button>Submit</button>');const scriptPromise = (async () => {// @ts-ignore@@ -185,7 +185,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should step with keyboard shortcut', async ({ page, recorderPageGetter }) => {+ it('IN-012 should step with keyboard shortcut', async ({ page, recorderPageGetter }) => {await page.setContent('<button>Submit</button>');const scriptPromise = (async () => {// @ts-ignore@@ -204,7 +204,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should highlight pointer, only in main frame', async ({ page, recorderPageGetter }) => {+ it('IN-013 should highlight pointer, only in main frame', async ({ page, recorderPageGetter }) => {await page.setContent(`<iframestyle="margin: 100px;"@@ -246,7 +246,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should skip input when resuming', async ({ page, recorderPageGetter }) => {+ it('IN-014 should skip input when resuming', async ({ page, recorderPageGetter }) => {await page.setContent('<button>Submit</button>');const scriptPromise = (async () => {// @ts-ignore@@ -262,7 +262,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should populate log', async ({ page, recorderPageGetter }) => {+ it('IN-015 should populate log', async ({ page, recorderPageGetter }) => {await page.setContent('<button>Submit</button>');const scriptPromise = (async () => {// @ts-ignore@@ -283,7 +283,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should hide internal calls', async ({ page, recorderPageGetter, trace }) => {+ it('IN-016 should hide internal calls', async ({ page, recorderPageGetter, trace }) => {it.skip(trace === 'on');const scriptPromise = (async () => {@@ -309,7 +309,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should show expect.toHaveText', async ({ page, recorderPageGetter }) => {+ it('IN-017 should show expect.toHaveText', async ({ page, recorderPageGetter }) => {await page.setContent('<button>Submit</button>');const scriptPromise = (async () => {// @ts-ignore@@ -332,7 +332,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should highlight waitForEvent', async ({ page, recorderPageGetter }) => {+ it('IN-018 should highlight waitForEvent', async ({ page, recorderPageGetter }) => {await page.setContent('<button onclick="console.log(1)">Submit</button>');const scriptPromise = (async () => {// @ts-ignore@@ -350,7 +350,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should populate log with waitForEvent', async ({ page, recorderPageGetter }) => {+ it('IN-019 should populate log with waitForEvent', async ({ page, recorderPageGetter }) => {await page.setContent('<button onclick="console.log(1)">Submit</button>');const scriptPromise = (async () => {// @ts-ignore@@ -375,7 +375,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should populate log with error', async ({ page, recorderPageGetter }) => {+ it('IN-020 should populate log with error', async ({ page, recorderPageGetter }) => {await page.setContent('<button onclick="console.log(1)">Submit</button>');const scriptPromise = (async () => {// @ts-ignore@@ -395,7 +395,7 @@ it.describe('pause', () => {expect(error.message).toContain('Not a checkbox or radio button');});- it('should populate log with expect failure', async ({ page, recorderPageGetter }) => {+ it('IN-021 should populate log with expect failure', async ({ page, recorderPageGetter }) => {await page.setContent('<button>Submit</button>');const scriptPromise = (async () => {// @ts-ignore@@ -416,7 +416,7 @@ it.describe('pause', () => {expect(error.message).toContain('toHaveText');});- it('should populate log with error in waitForEvent', async ({ page, recorderPageGetter }) => {+ it('IN-022 should populate log with error in waitForEvent', async ({ page, recorderPageGetter }) => {await page.setContent('<button>Submit</button>');const scriptPromise = (async () => {// @ts-ignore@@ -442,7 +442,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should pause on page close', async ({ page, recorderPageGetter }) => {+ it('IN-023 should pause on page close', async ({ page, recorderPageGetter }) => {const scriptPromise = (async () => {// @ts-ignoreawait page.pause({ __testHookKeepTestTimeout: true });@@ -455,7 +455,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should pause on context close', async ({ page, recorderPageGetter }) => {+ it('IN-024 should pause on context close', async ({ page, recorderPageGetter }) => {const scriptPromise = (async () => {// @ts-ignoreawait page.pause({ __testHookKeepTestTimeout: true });@@ -469,7 +469,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should highlight on explore', async ({ page, recorderPageGetter }) => {+ it('IN-025 should highlight on explore', async ({ page, recorderPageGetter }) => {await page.setContent('<button>Submit</button>');const scriptPromise = (async () => {// @ts-ignore@@ -492,7 +492,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should highlight on explore (csharp)', async ({ openRecorder }) => {+ it('IN-026 should highlight on explore (csharp)', async ({ openRecorder }) => {process.env.TEST_INSPECTOR_LANGUAGE = 'csharp';try {const { page, recorder } = await openRecorder();@@ -514,7 +514,7 @@ it.describe('pause', () => {}});- it('should not prevent key events', async ({ page, recorderPageGetter }) => {+ it('IN-027 should not prevent key events', async ({ page, recorderPageGetter }) => {await page.setContent('<div>Hello</div>');await page.evaluate(() => {(window as any).log = [];@@ -555,7 +555,7 @@ it.describe('pause', () => {]);});- it('should highlight locators with custom testId', async ({ page, playwright, recorderPageGetter }) => {+ it('IN-028 should highlight locators with custom testId', async ({ page, playwright, recorderPageGetter }) => {await page.setContent('<div data-custom-id=foo id=target>and me</div>');const scriptPromise = (async () => {// @ts-ignore@@ -578,7 +578,7 @@ it.describe('pause', () => {await scriptPromise;});- it('should record from debugger', async ({ page, recorderPageGetter }) => {+ it('IN-029 should record from debugger', async ({ page, recorderPageGetter }) => {await page.setContent('<body style="width: 100%; height: 100%"></body>');const scriptPromise = (async () => {// @ts-ignorediff --git a/tests/library/inspector/recorder-api.spec.ts b/tests/library/inspector/recorder-api.spec.tsindex 6c2c0482b6..e5c590e180 100644--- a/tests/library/inspector/recorder-api.spec.ts+++ b/tests/library/inspector/recorder-api.spec.ts@@ -50,7 +50,7 @@ function normalizeCode(code: string): string {return code.replace(/\s+/g, ' ').trim();}-test('context should implement the internal api used by the tools', async ({ context }) => {+test('IN-030 context should implement the internal api used by the tools', async ({ context }) => {// Listing a method here is enforced by the type, so adding one to the interface breaks compilation until it is covered.const methods: Record<keyof BrowserContextInternalApi, true> = {_startRecording: true,@@ -60,7 +60,7 @@ test('context should implement the internal api used by the tools', async ({ conexpect(typeof context[method], method).toBe('function');});-test('should click', async ({ context, browserName, platform, channel }) => {+test('IN-031 should click', async ({ context, browserName, platform, channel }) => {const log = await startRecording(context);const page = await context.newPage();await page.setContent(`<button onclick="console.log('click')">Submit</button>`);@@ -81,7 +81,7 @@ test('should click', async ({ context, browserName, platform, channel }) => {expect(normalizeCode(log.action('click')[0].code)).toEqual(`await page.getByRole('button', { name: 'Submit' }).click();`);});-test('should double click', async ({ context, browserName, platform, channel }) => {+test('IN-032 should double click', async ({ context, browserName, platform, channel }) => {const log = await startRecording(context);const page = await context.newPage();await page.setContent(`<button onclick="console.log('click')" ondblclick="console.log('dblclick')">Submit</button>`);@@ -103,7 +103,7 @@ test('should double click', async ({ context, browserName, platform, channel })expect(normalizeCode(log.action('click')[0].code)).toEqual(`await page.getByRole('button', { name: 'Submit' }).dblclick();`);});-test('should right click', async ({ context, browserName, platform, channel }) => {+test('IN-033 should right click', async ({ context, browserName, platform, channel }) => {const log = await startRecording(context);const page = await context.newPage();await page.setContent(`<button oncontextmenu="console.log('contextmenu')">Submit</button>`);@@ -126,7 +126,7 @@ test('should right click', async ({ context, browserName, platform, channel }) =expect(normalizeCode(clickActions[0].code)).toEqual(`await page.getByRole('button', { name: 'Submit' }).click({ button: 'right' });`);});-test('should send updated code with the signal', async ({ context, server }) => {+test('IN-034 should send updated code with the signal', async ({ context, server }) => {const recorder = await startRecording(context);const page = await context.newPage();await page.setContent(`<a target=_blank rel=noopener href="${server.EMPTY_PAGE}">link</a>`);@@ -140,7 +140,7 @@ test('should send updated code with the signal', async ({ context, server }) =>expect(normalizeCode(code)).toContain(`const page1 = await page1Promise;`);});-test('should not amend the last action with a signal from another page', async ({ context }) => {+test('IN-035 should not amend the last action with a signal from another page', async ({ context }) => {const recorder = await startRecording(context);const page1 = await context.newPage();await page1.setContent(`<button onclick="console.log('click')">Submit</button>`);@@ -156,7 +156,7 @@ test('should not amend the last action with a signal from another page', async (expect(recorder.signals().find(s => s.signal.name === 'dialog')!.code).toBe('');});-test('should type', async ({ context }) => {+test('IN-036 should type', async ({ context }) => {const log = await startRecording(context);const page = await context.newPage();await page.setContent(`<input type="text" />`);@@ -177,7 +177,7 @@ test('should type', async ({ context }) => {expect(normalizeCode(log.action('fill')[0].code)).toEqual(`await page.getByRole('textbox').fill('Hello');`);});-test('should stop recording', async ({ context }) => {+test('IN-037 should stop recording', async ({ context }) => {const log = await startRecording(context);const page = await context.newPage();await page.setContent(`<button onclick="console.log('click')">Submit</button>`);@@ -191,7 +191,7 @@ test('should stop recording', async ({ context }) => {expect(log.action('click')).toHaveLength(2);});-test('should record again after stop', async ({ context }) => {+test('IN-038 should record again after stop', async ({ context }) => {const log = await startRecording(context);const page = await context.newPage();await page.setContent(`<button onclick="console.log('click')">Submit</button>`);@@ -207,7 +207,7 @@ test('should record again after stop', async ({ context }) => {expect(log2.action('click')).toHaveLength(1);});-test('should not start recording while the recorder is shown', async ({ context, openRecorder }) => {+test('IN-039 should not start recording while the recorder is shown', async ({ context, openRecorder }) => {const { recorder } = await openRecorder();await expect(startRecording(context)).rejects.toThrow('Recorder is shown, close it before starting a recording.');@@ -216,7 +216,7 @@ test('should not start recording while the recorder is shown', async ({ context,await expect.poll(() => startRecording(context).then(() => true, () => false)).toBe(true);});-test('should not show the recorder while recording', async ({ context }) => {+test('IN-040 should not show the recorder while recording', async ({ context }) => {await startRecording(context);await expect((context as any)._showRecorder({ mode: 'recording' })).rejects.toThrow('Recording is in progress, stop it before showing the recorder.');@@ -225,12 +225,12 @@ test('should not show the recorder while recording', async ({ context }) => {await (context as any)._showRecorder({ mode: 'recording' });});-test('should not start recording twice', async ({ context }) => {+test('IN-041 should not start recording twice', async ({ context }) => {await startRecording(context);await expect(startRecording(context)).rejects.toThrow('Recording is already in progress.');});-test('page.pickLocator should return locator for picked element', async ({ page }) => {+test('IN-042 page.pickLocator should return locator for picked element', async ({ page }) => {await page.setContent(`<button>Submit</button>`);const scriptReady = page.waitForEvent('console', msg => msg.text() === 'Recorder script ready for test');@@ -244,7 +244,7 @@ test('page.pickLocator should return locator for picked element', async ({ pageawait expect(locator).toHaveText('Submit');});-test('page.cancelPickLocator should cancel ongoing pickLocator', async ({ page }) => {+test('IN-043 page.cancelPickLocator should cancel ongoing pickLocator', async ({ page }) => {const pickPromise = page.pickLocator();await Promise.all([page.cancelPickLocator(),@@ -252,14 +252,14 @@ test('page.cancelPickLocator should cancel ongoing pickLocator', async ({ page }]);});-test('closing page should cancel ongoing pickLocator', async ({ page }) => {+test('IN-044 closing page should cancel ongoing pickLocator', async ({ page }) => {await page.setContent(`<button>Click me</button>`);const pickPromise = page.pickLocator().catch(e => e.message);await page.close();expect(await pickPromise).toContain('Target page, context or browser has been closed');});-test('page2.pickLocator() should cancel page1.pickLocator()', async ({ page, context, browserName, headless, isMac, macVersion }) => {+test('IN-045 page2.pickLocator() should cancel page1.pickLocator()', async ({ page, context, browserName, headless, isMac, macVersion }) => {test.skip(browserName === 'chromium' && !headless && isMac && macVersion === 14, 'times out on chromium headed on macOS 14');const pick1Promise = page.pickLocator().catch(e => e.message);diff --git a/tests/library/inspector/title.spec.ts b/tests/library/inspector/title.spec.tsindex a2569e74e6..63083e52ae 100644--- a/tests/library/inspector/title.spec.ts+++ b/tests/library/inspector/title.spec.ts@@ -16,7 +16,7 @@import { test, expect } from './inspectorTest';-test('should reflect formatted URL of the page', async ({+test('IN-056 should reflect formatted URL of the page', async ({openRecorder,server,}) => {@@ -32,7 +32,7 @@ test('should reflect formatted URL of the page', async ({);});-test('should update primary page URL when original primary closes', async ({+test('IN-057 should update primary page URL when original primary closes', async ({context,openRecorder,server,@@ -58,7 +58,7 @@ test('should update primary page URL when original primary closes', async ({);});-test('should render primary language', async ({ openRecorder }) => {+test('IN-058 should render primary language', async ({ openRecorder }) => {const { recorder } = await openRecorder({ language: 'python' });await recorder.setContentAndWait('');await expect(recorder.recorderPage.getByRole('combobox', { name: 'Source chooser' })).toHaveValue('python');diff --git a/tests/library/launcher.spec.ts b/tests/library/launcher.spec.tsindex 1bbe086166..2d96c5148d 100644--- a/tests/library/launcher.spec.ts+++ b/tests/library/launcher.spec.ts@@ -18,16 +18,16 @@import { inheritAndCleanEnv } from '../config/utils';import { playwrightTest as it, expect } from '../config/browserTest';-it('should have an errors object', async ({ playwright }) => {+it('BT-018 should have an errors object', async ({ playwright }) => {expect(String(playwright.errors.TimeoutError)).toContain('TimeoutError');});-it('should have a devices object', async ({ playwright }) => {+it('BT-019 should have a devices object', async ({ playwright }) => {expect(playwright.devices['iPhone 6']).toBeTruthy();expect(playwright.devices['iPhone 6'].defaultBrowserType).toBe('webkit');});-it('should kill browser process on timeout after close', async ({ browserType, mode }) => {+it('BT-020 should kill browser process on timeout after close', async ({ browserType, mode }) => {it.skip(mode !== 'default', 'Test passes server hooks via options');const launchOptions: any = {};@@ -42,7 +42,7 @@ it('should kill browser process on timeout after close', async ({ browserType, mexpect(stalled).toBeTruthy();});-it('should throw a friendly error if its headed and there is no xserver on linux running', async ({ mode, browserType, platform, channel }) => {+it('BT-021 should throw a friendly error if its headed and there is no xserver on linux running', async ({ mode, browserType, platform, channel }) => {it.skip(platform !== 'linux');it.skip(channel === 'chromium-headless-shell', 'shell is never headed');diff --git a/tests/library/locator-dispatchevent-touch.spec.ts b/tests/library/locator-dispatchevent-touch.spec.tsindex 1e3cdf08e0..7520129681 100644--- a/tests/library/locator-dispatchevent-touch.spec.ts+++ b/tests/library/locator-dispatchevent-touch.spec.ts@@ -18,7 +18,7 @@ import { contextTest as it, expect } from '../config/browserTest';it.use({ hasTouch: true });-it('should support touch points in touch event arguments', async ({ page, server, browserName }) => {+it('TA-010 should support touch points in touch event arguments', async ({ page, server, browserName }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<div data-testid='outer' style="position: absolute; width: 120px; height: 120px; background-color: red;">diff --git a/tests/library/locator-generator.spec.ts b/tests/library/locator-generator.spec.tsindex 907e9b6623..105f8579d7 100644--- a/tests/library/locator-generator.spec.ts+++ b/tests/library/locator-generator.spec.ts@@ -41,7 +41,7 @@ async function generateForNode(pageOrFrame: Page | Frame, target: string): Promireturn result;}-it('reverse engineer locators', async ({ page }) => {+it('GN-001 reverse engineer locators', async ({ page }) => {expect.soft(generate(page.getByTestId('Hello'))).toEqual({javascript: "getByTestId('Hello')",python: 'get_by_test_id("Hello")',@@ -191,7 +191,7 @@ it('reverse engineer locators', async ({ page }) => {});});-it('reverse engineer getByRole', async ({ page }) => {+it('GN-002 reverse engineer getByRole', async ({ page }) => {expect.soft(generate(page.getByRole('button'))).toEqual({javascript: `getByRole('button')`,python: `get_by_role("button")`,@@ -254,7 +254,7 @@ it('reverse engineer getByRole', async ({ page }) => {});});-it('refuses to translate internal:role with conflicting name/description exactness', {+it('GN-003 refuses to translate internal:role with conflicting name/description exactness', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41032' }}, async () => {const conflicting = 'internal:role=row[name="abc"i][description="d"s]';@@ -265,7 +265,7 @@ it('refuses to translate internal:role with conflicting name/description exactne}});-it('reverse engineer internal:role with regex and string name/description', async () => {+it('GN-004 reverse engineer internal:role with regex and string name/description', async () => {expect.soft(generateForSelector('internal:role=alert[name=/Upload/][description="doc.pdf"i]')).toEqual({javascript: `getByRole('alert', { name: /Upload/, description: 'doc.pdf' })`,python: `get_by_role("alert", name=re.compile(r"Upload"), description="doc.pdf")`,@@ -280,7 +280,7 @@ it('reverse engineer internal:role with regex and string name/description', asyn});});-it('reverse engineer ignore-case locators', async ({ page }) => {+it('GN-005 reverse engineer ignore-case locators', async ({ page }) => {expect.soft(generate(page.getByText('hello my\nwo"rld'))).toEqual({csharp: 'GetByText("hello my\\nwo\\"rld")',java: 'getByText("hello my\\nwo\\"rld")',@@ -301,7 +301,7 @@ it('reverse engineer ignore-case locators', async ({ page }) => {});});-it('reverse engineer ordered locators', async ({ page }) => {+it('GN-006 reverse engineer ordered locators', async ({ page }) => {expect.soft(generate(page.locator('div').nth(3).first().last())).toEqual({csharp: `Locator(\"div\").Nth(3).First.Last`,java: `locator(\"div\").nth(3).first().last()`,@@ -310,7 +310,7 @@ it('reverse engineer ordered locators', async ({ page }) => {});});-it('reverse engineer locators with regex', async ({ page }) => {+it('GN-007 reverse engineer locators with regex', async ({ page }) => {expect.soft(generate(page.getByText(/he\/\sl\nlo/))).toEqual({csharp: `GetByText(new Regex(\"he\\\\/\\\\sl\\\\nlo\"))`,java: `getByText(Pattern.compile(\"he\\\\/\\\\sl\\\\nlo\"))`,@@ -340,7 +340,7 @@ it('reverse engineer locators with regex', async ({ page }) => {});});-it('reverse engineer hasText', async ({ page }) => {+it('GN-008 reverse engineer hasText', async ({ page }) => {expect.soft(generate(page.getByText('Hello').filter({ hasText: 'wo"rld\n' }))).toEqual({csharp: `GetByText("Hello").Filter(new() { HasText = "wo\\"rld\\n" })`,java: `getByText("Hello").filter(new Locator.FilterOptions().setHasText("wo\\"rld\\n"))`,@@ -363,7 +363,7 @@ it('reverse engineer hasText', async ({ page }) => {});});-it('reverse engineer hasNotText', async ({ page }) => {+it('GN-009 reverse engineer hasNotText', async ({ page }) => {expect.soft(generate(page.getByText('Hello').filter({ hasNotText: 'wo"rld\n' }))).toEqual({csharp: `GetByText("Hello").Filter(new() { HasNotText = "wo\\"rld\\n" })`,java: `getByText("Hello").filter(new Locator.FilterOptions().setHasNotText("wo\\"rld\\n"))`,@@ -372,7 +372,7 @@ it('reverse engineer hasNotText', async ({ page }) => {});});-it('reverse engineer visible', async ({ page }) => {+it('GN-010 reverse engineer visible', async ({ page }) => {expect.soft(generate(page.getByText('Hello').visible().locator('div'))).toEqual({csharp: `GetByText("Hello").Visible.Locator("div")`,java: `getByText("Hello").visible().locator("div")`,@@ -387,7 +387,7 @@ it('reverse engineer visible', async ({ page }) => {});});-it('reverse engineer has', async ({ page }) => {+it('GN-011 reverse engineer has', async ({ page }) => {expect.soft(generate(page.getByText('Hello').filter({ has: page.locator('div').getByText('bye') }))).toEqual({csharp: `GetByText("Hello").Filter(new() { Has = Locator("div").GetByText("bye") })`,java: `getByText("Hello").filter(new Locator.FilterOptions().setHas(locator("div").getByText("bye")))`,@@ -408,7 +408,7 @@ it('reverse engineer has', async ({ page }) => {});});-it('reverse engineer hasNot', async ({ page }) => {+it('GN-012 reverse engineer hasNot', async ({ page }) => {expect.soft(generate(page.getByText('Hello').filter({ hasNot: page.locator('div').getByText('bye') }))).toEqual({csharp: `GetByText("Hello").Filter(new() { HasNot = Locator("div").GetByText("bye") })`,java: `getByText("Hello").filter(new Locator.FilterOptions().setHasNot(locator("div").getByText("bye")))`,@@ -429,7 +429,7 @@ it('reverse engineer hasNot', async ({ page }) => {});});-it('reverse engineer has + hasText', async ({ page }) => {+it('GN-013 reverse engineer has + hasText', async ({ page }) => {const locator = page.locator('section').filter({ hasText: 'foo', has: page.locator('div') }).locator('a');expect.soft(generate(locator)).toEqual({csharp: `Locator("section").Filter(new() { HasText = "foo" }).Filter(new() { Has = Locator("div") }).Locator("a")`,@@ -439,7 +439,7 @@ it('reverse engineer has + hasText', async ({ page }) => {});});-it('reverse engineer frameLocator', async ({ page }) => {+it('GN-014 reverse engineer frameLocator', async ({ page }) => {const locator = page.frameLocator('iframe').getByText('foo', { exact: true })@@ -460,7 +460,7 @@ it('reverse engineer frameLocator', async ({ page }) => {expect.soft(asLocators('javascript', 'internal:attr=[title="iframe title"i] >> internal:control=enter-frame')).toEqual([`getByTitle('iframe title').contentFrame()`]);});-it('reverse engineer frameLocator without a selector', async ({ page }) => {+it('GN-015 reverse engineer frameLocator without a selector', async ({ page }) => {expect.soft(generate(page.frameLocator().getByText('foo').locator('span'))).toEqual({csharp: `FrameLocator().GetByText("foo").Locator("span")`,java: `frameLocator().getByText("foo").locator("span")`,@@ -474,7 +474,7 @@ it('reverse engineer frameLocator without a selector', async ({ page }) => {expect.soft(asLocator('csharp', 'internal:control=any-frame')).toBe(`FrameLocator()`);});-it('generate multiple locators', async ({ page }) => {+it('GN-016 generate multiple locators', async ({ page }) => {const selector = (page.locator('div', { hasText: 'foo' }).nth(0).filter({ has: page.locator('span', { hasNotText: 'bar' }).nth(-1) }) as any)._selector;const locators = {javascript: [@@ -559,7 +559,7 @@ it.describe(() => {await (context as any)._showRecorder({ language: 'javascript' });});- it('reverse engineer internal:has-text locators', async ({ page }) => {+ it('GN-017 reverse engineer internal:has-text locators', async ({ page }) => {await page.setContent(`<div>Hello <span>world</span></div><div>Goodbye <span mark=1>world</span></div>@@ -576,28 +576,28 @@ it.describe(() => {});});-it('asLocator internal:and', async () => {+it('GN-018 asLocator internal:and', async () => {expect.soft(asLocator('javascript', 'div >> internal:and="span >> article"')).toBe(`locator('div').and(locator('span').locator('article'))`);expect.soft(asLocator('python', 'div >> internal:and="span >> article"')).toBe(`locator("div").and_(locator("span").locator("article"))`);expect.soft(asLocator('java', 'div >> internal:and="span >> article"')).toBe(`locator("div").and(locator("span").locator("article"))`);expect.soft(asLocator('csharp', 'div >> internal:and="span >> article"')).toBe(`Locator("div").And(Locator("span").Locator("article"))`);});-it('asLocator internal:or', async () => {+it('GN-019 asLocator internal:or', async () => {expect.soft(asLocator('javascript', 'div >> internal:or="span >> article"')).toBe(`locator('div').or(locator('span').locator('article'))`);expect.soft(asLocator('python', 'div >> internal:or="span >> article"')).toBe(`locator("div").or_(locator("span").locator("article"))`);expect.soft(asLocator('java', 'div >> internal:or="span >> article"')).toBe(`locator("div").or(locator("span").locator("article"))`);expect.soft(asLocator('csharp', 'div >> internal:or="span >> article"')).toBe(`Locator("div").Or(Locator("span").Locator("article"))`);});-it('asLocator internal:chain', async () => {+it('GN-020 asLocator internal:chain', async () => {expect.soft(asLocator('javascript', 'div >> internal:chain="span >> article"')).toBe(`locator('div').locator(locator('span').locator('article'))`);expect.soft(asLocator('python', 'div >> internal:chain="span >> article"')).toBe(`locator("div").locator(locator("span").locator("article"))`);expect.soft(asLocator('java', 'div >> internal:chain="span >> article"')).toBe(`locator("div").locator(locator("span").locator("article"))`);expect.soft(asLocator('csharp', 'div >> internal:chain="span >> article"')).toBe(`Locator("div").Locator(Locator("span").Locator("article"))`);});-it('reverse engineer nested locators', async ({ page }) => {+it('GN-021 reverse engineer nested locators', async ({ page }) => {expect.soft(generate(page.getByRole('row').locator(page.getByRole('cell').nth(2)))).toEqual({csharp: `GetByRole(AriaRole.Row).Locator(GetByRole(AriaRole.Cell).Nth(2))`,java: `getByRole(AriaRole.ROW).locator(getByRole(AriaRole.CELL).nth(2))`,@@ -612,7 +612,7 @@ it('reverse engineer nested locators', async ({ page }) => {});});-it('asLocator xpath', async () => {+it('GN-022 asLocator xpath', async () => {const selector = `//*[contains(normalizer-text(), 'foo']`;expect.soft(asLocator('javascript', selector)).toBe(`locator('//*[contains(normalizer-text(), \\'foo\\']')`);expect.soft(asLocator('python', selector)).toBe(`locator(\"//*[contains(normalizer-text(), 'foo']\")`);@@ -620,7 +620,7 @@ it('asLocator xpath', async () => {expect.soft(asLocator('csharp', selector)).toBe(`Locator(\"//*[contains(normalizer-text(), 'foo']\")`);});-it('reverse engineer regex flags', async () => {+it('GN-023 reverse engineer regex flags', async () => {expect.soft(generateForSelector('internal:text=/a.b/ims')).toEqual({csharp: 'GetByText(new Regex("a.b", RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.Singleline))',java: 'getByText(Pattern.compile("a.b", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL))',@@ -635,7 +635,7 @@ it('reverse engineer regex flags', async () => {});});-it('should not oom in locator parser', async ({ page }) => {+it('GN-024 should not oom in locator parser', async ({ page }) => {const l = page.locator.bind(page);const locator = page.locator('text=L1').or(l('text=L2').or(l('text=L3').or(l('text=L4')).or(l('#f0').contentFrame().locator('#f0_mid_0')@@ -659,14 +659,14 @@ it('should not oom in locator parser', async ({ page }) => {expect(error.message).toContain('Frame locators are not allowed inside composite locators');});-it('asLocatorDescription invalid input', async () => {+it('GN-025 asLocatorDescription invalid input', async () => {expect.soft(asLocatorDescription('javascript', `body >> internal:describe="desc"`)).toBe(`desc`);expect.soft(asLocatorDescription('javascript', `body >> internal:describe=12`)).toBe(`locator('body')`);expect.soft(asLocatorDescription('javascript', `following-sibling::*[1]`)).toBe(`following-sibling::*[1]`);expect.soft(asLocatorDescription('javascript', `body >> internal:describe="desc" >> div`)).toBe(`locator('body').locator('div')`);});-it('resolveSelector returns locatorCode for sdkLanguage', async ({ page }) => {+it('GN-026 resolveSelector returns locatorCode for sdkLanguage', async ({ page }) => {await page.setContent(`<button id="submit">Submit</button>`);expect(await page.ariaSnapshot({ mode: 'ai' })).toContain(`button "Submit" [ref=e2]`);const channel = (page.mainFrame() as any)._channel;@@ -682,7 +682,7 @@ it('resolveSelector returns locatorCode for sdkLanguage', async ({ page }) => {expect((await channel.resolveSelector({ selector, sdkLanguage: 'csharp' })).locatorCode).toBe(`GetByRole(AriaRole.Button, new() { Name = "Submit" })`);});-it('asLocatorDescription via LocalUtils', async ({ page }) => {+it('GN-027 asLocatorDescription via LocalUtils', async ({ page }) => {const channel = (page as any)._connection.localUtils()._channel;const selector = `internal:role=button[name="Submit"i]`;expect((await channel.asLocatorDescription({ selector, sdkLanguage: 'javascript' })).description).toBe(`getByRole('button', { name: 'Submit' })`);diff --git a/tests/library/locator-highlight.spec.ts b/tests/library/locator-highlight.spec.tsindex 35f3c4fc0f..fb99df7b1b 100644--- a/tests/library/locator-highlight.spec.ts+++ b/tests/library/locator-highlight.spec.ts@@ -18,7 +18,7 @@ import { expect, browserTest as test } from '../config/browserTest';test.skip(({ mode }) => mode !== 'default', 'Highlight overlay uses an open shadow root only in default mode');-test('highlight should accept a CSS string style', async ({ browser, server, browserName, isFrozenWebkit }) => {+test('LO-193 highlight should accept a CSS string style', async ({ browser, server, browserName, isFrozenWebkit }) => {test.skip(isFrozenWebkit);const context = await browser.newContext();@@ -42,7 +42,7 @@ test('highlight should accept a CSS string style', async ({ browser, server, broawait context.close();});-test('highlight should accept an object style (JS only)', async ({ browser, server, browserName, isFrozenWebkit }) => {+test('LO-194 highlight should accept an object style (JS only)', async ({ browser, server, browserName, isFrozenWebkit }) => {test.skip(isFrozenWebkit);const context = await browser.newContext();@@ -71,7 +71,7 @@ test('highlight should accept an object style (JS only)', async ({ browser, servawait context.close();});-test('hideHighlight removes a styled highlight', async ({ browser, server }) => {+test('LO-195 hideHighlight removes a styled highlight', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.PREFIX + '/input/button.html');@@ -86,7 +86,7 @@ test('hideHighlight removes a styled highlight', async ({ browser, server }) =>await context.close();});-test('highlight should survive navigation', async ({ browser, server }) => {+test('LO-196 highlight should survive navigation', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.setContent(`<button onclick="console.log(1)">Clicker</button>`);@@ -104,7 +104,7 @@ test('highlight should survive navigation', async ({ browser, server }) => {await context.close();});-test('Page.hideHighlight clears all locator highlights', async ({ browser, server }) => {+test('LO-197 Page.hideHighlight clears all locator highlights', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.setContent(`<button>One</button><button>Two</button>`);@@ -119,7 +119,7 @@ test('Page.hideHighlight clears all locator highlights', async ({ browser, serveawait context.close();});-test('highlight should work with a custom selector engine that runs in the main world', async ({ playwright, browser }) => {+test('LO-198 highlight should work with a custom selector engine that runs in the main world', async ({ playwright, browser }) => {// Engines registered without "contentScript" run in the main world and can see page globals.const createEngine = () => ({query(root, selector) {@@ -152,7 +152,7 @@ test('highlight should work with a custom selector engine that runs in the mainawait context.close();});-test('highlight should resolve relative to the frame of the locator', async ({ browser }) => {+test('LO-199 highlight should resolve relative to the frame of the locator', async ({ browser }) => {const context = await browser.newContext();const page = await context.newPage();await page.setContent('<iframe name="frame" srcdoc="<button>foo</button>"></iframe><button>bar</button>');diff --git a/tests/library/locator-parser.spec.ts b/tests/library/locator-parser.spec.tsindex 65ad0b0ccb..fc97635446 100644--- a/tests/library/locator-parser.spec.ts+++ b/tests/library/locator-parser.spec.ts@@ -244,7 +244,7 @@ it.beforeEach(() => {client.setTestIdAttribute('data-testid');});-it('should parse getByText, getByLabel, getByPlaceholder, getByAltText and getByTitle', () => {+it('PS-001 should parse getByText, getByLabel, getByPlaceholder, getByAltText and getByTitle', () => {for (const method of kTextMethods) {for (const text of kTexts) {expect.soft($[method](text)).toParse(kAllStyles);@@ -261,7 +261,7 @@ it('should parse getByText, getByLabel, getByPlaceholder, getByAltText and getBy}});-it('should parse getByTestId', () => {+it('PS-002 should parse getByTestId', () => {for (const text of kTexts)expect.soft($.getByTestId(text)).toParse(kAllStyles);for (const regex of kRegexes)@@ -270,7 +270,7 @@ it('should parse getByTestId', () => {expect.soft($.frameLocator('iframe').getByTestId('submit')).toParse();});-it('should parse getByTestId with a custom test id attribute', () => {+it('PS-003 should parse getByTestId with a custom test id attribute', () => {for (const testIdAttributeName of ['data-pw', 'data-test-id', 'data-pw,data-qa']) {client.setTestIdAttribute(testIdAttributeName);expect.soft($.getByTestId('submit')).toParse(kDefaultStyles, testIdAttributeName);@@ -280,7 +280,7 @@ it('should parse getByTestId with a custom test id attribute', () => {}});-it('should parse getByRef', {+it('PS-004 should parse getByRef', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43159' },}, () => {expect.soft($.getByRef('e5')).toParse();@@ -292,14 +292,14 @@ it('should parse getByRef', {expect.soft($.locator('div').and($.getByRef('e3'))).toParse();});-it('should parse getByRole with every role', () => {+it('PS-005 should parse getByRole with every role', () => {for (const role of kRoles) {expect.soft($.getByRole(role)).toParse();expect.soft($.getByRole(role, { name: 'Hello' })).toParse();}});-it('should parse getByRole options', () => {+it('PS-006 should parse getByRole options', () => {expect.soft($.getByRole('heading', {})).toParse();expect.soft($.getByRole('checkbox', { checked: true })).toParse();expect.soft($.getByRole('checkbox', { checked: false })).toParse();@@ -323,7 +323,7 @@ it('should parse getByRole options', () => {expect.soft($.getByRole('checkbox', { checked: true, disabled: false, selected: true, expanded: false, includeHidden: true, level: 2, name: 'Agree', description: 'Terms', pressed: false, exact: true })).toParse();});-it('should parse getByRole name and description', () => {+it('PS-007 should parse getByRole name and description', () => {for (const text of kTexts) {expect.soft($.getByRole('button', { name: text })).toParse(kAllStyles);expect.soft($.getByRole('button', { name: text, exact: true })).toParse(kAllStyles);@@ -338,7 +338,7 @@ it('should parse getByRole name and description', () => {}});-it('should parse getByRole options in any order', () => {+it('PS-008 should parse getByRole options in any order', () => {expect.soft($.getByRole('button', { exact: true, name: 'Submit' })).toParse();expect.soft($.getByRole('alert', { description: 'doc.pdf', name: 'Upload' })).toParse();expect.soft($.getByRole('heading', { name: 'Title', level: 2 })).toParse();@@ -349,7 +349,7 @@ it('should parse getByRole options in any order', () => {expect.soft($.getByRole('checkbox', { pressed: false, description: 'Terms', name: 'Agree', level: 2, includeHidden: true, expanded: false, selected: true, disabled: false, checked: true, exact: true })).toParse();});-it('should parse locator with a selector', () => {+it('PS-009 should parse locator with a selector', () => {for (const selector of kSelectors) {expect.soft($.locator(selector)).toParse(kAllStyles);expect.soft($.locator('section').locator(selector)).toParse(kAllStyles);@@ -357,7 +357,7 @@ it('should parse locator with a selector', () => {}});-it('should parse locator and filter options', () => {+it('PS-010 should parse locator and filter options', () => {expect.soft($.locator('div').filter()).toParse();expect.soft($.locator('div').filter({})).toParse();expect.soft($.locator('div', {})).toParse();@@ -388,7 +388,7 @@ it('should parse locator and filter options', () => {}});-it('should parse first, last, nth and visible', () => {+it('PS-011 should parse first, last, nth and visible', () => {expect.soft($.locator('li').first()).toParse();expect.soft($.locator('li').last()).toParse();for (const index of [0, 1, 2, 10, -1, -2])@@ -402,7 +402,7 @@ it('should parse first, last, nth and visible', () => {expect.soft($.getByText('Item').visible().nth(-1)).toParse();});-it('should parse and, or, locator and within with a locator argument', {+it('PS-012 should parse and, or, locator and within with a locator argument', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43159' },}, () => {const inners = [@@ -431,7 +431,7 @@ it('should parse and, or, locator and within with a locator argument', {expect.soft($.locator('a').and($.locator('b').and($.locator('c')))).toParse();});-it('should parse chained refinements', () => {+it('PS-013 should parse chained refinements', () => {const atoms: Locator[] = [$.locator('div'),$.getByRole('button', { name: 'Submit' }),@@ -471,7 +471,7 @@ it('should parse chained refinements', () => {}});-it('should parse frame locators', () => {+it('PS-014 should parse frame locators', () => {const frames: FrameLocator[] = [$.frameLocator('iframe'),$.frameLocator('css=iframe'),@@ -513,7 +513,7 @@ it('should parse frame locators', () => {expect.soft($.frameLocator().frameLocator('iframe').locator('span')).toParse();});-it('should parse FrameLocator.locator with a locator argument', () => {+it('PS-015 should parse FrameLocator.locator with a locator argument', () => {expect.soft($.frameLocator('iframe').locator($.getByRole('button'))).toParse();expect.soft($.frameLocator('iframe').locator($.locator('span'))).toParse();expect.soft($.frameLocator('iframe').locator($.getByText('Say "hi"', { exact: true }))).toParse();@@ -526,7 +526,7 @@ it('should parse FrameLocator.locator with a locator argument', () => {expect.soft($.frameLocator().locator($.getByRole('button'))).toParse();});-it('should parse owner', {+it('PS-016 should parse owner', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43183' },}, () => {expect.soft($.frameLocator('iframe').owner()).toParse();@@ -540,7 +540,7 @@ it('should parse owner', {expect.soft($.locator('div').filter({ has: $.frameLocator('iframe').owner() })).toParse();});-it('should parse describe', {+it('PS-017 should parse describe', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43181' },}, () => {expect.soft($.getByTestId('btn-sub').describe('Subscribe button')).toParse();@@ -553,7 +553,7 @@ it('should parse describe', {expect.soft($.locator('a').describe('A').or($.locator('b').describe('B'))).toParse();});-it('should parse deeply nested locators', () => {+it('PS-018 should parse deeply nested locators', () => {expect.soft($.locator('section').filter({ has: $.locator('div').filter({ has: $.getByText('Say "hi"').and($.getByRole('link', { name: /a"b/ })) }) })).toParse(kAllStyles);expect.soft($.getByRole('row').filter({ hasNot: $.getByRole('cell').or($.getByText(`It's`)) }).within($.getByRole('table').filter({ has: $.getByText('line1\nline2') }))).toParse(kAllStyles);expect.soft($.locator('a').and($.locator('b').or($.locator('c').and($.locator('d').or($.getByText('C:\\path')))))).toParse(kAllStyles);@@ -561,7 +561,7 @@ it('should parse deeply nested locators', () => {expect.soft($.locator('div', { has: $.locator('p', { has: $.locator('span', { hasText: '"quoted"' }) }) })).toParse(kAllStyles);});-it('should parse generated locators', {+it('PS-019 should parse generated locators', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42891' },{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43158' },@@ -686,7 +686,7 @@ it('should parse generated locators', {}});-it('should parse javascript string escapes', () => {+it('PS-020 should parse javascript string escapes', () => {expect.soft(javascript(String.raw`getByText('It\'s')`)).toBe(selectorOf($.getByText(`It's`)));expect.soft(javascript(String.raw`getByText("Say \"hi\"")`)).toBe(selectorOf($.getByText('Say "hi"')));expect.soft(javascript('getByText(`back\\`tick`)')).toBe(selectorOf($.getByText('back`tick')));@@ -699,7 +699,7 @@ it('should parse javascript string escapes', () => {expect.soft(javascript(String.raw`getByText('\/\d')`)).toBe(selectorOf($.getByText('/d')));});-it('should parse python string escapes', () => {+it('PS-021 should parse python string escapes', () => {expect.soft(python(String.raw`get_by_text('It\'s')`)).toBe(selectorOf($.getByText(`It's`)));expect.soft(python(String.raw`get_by_text("Say \"hi\"")`)).toBe(selectorOf($.getByText('Say "hi"')));expect.soft(python(String.raw`get_by_text("C:\\path")`)).toBe(selectorOf($.getByText('C:\\path')));@@ -714,7 +714,7 @@ it('should parse python string escapes', () => {expect.soft(python(String.raw`get_by_text("\d")`)).toBe(selectorOf($.getByText('\\d')));});-it('should parse java string escapes', () => {+it('PS-022 should parse java string escapes', () => {expect.soft(java(String.raw`getByText("Say \"hi\"")`)).toBe(selectorOf($.getByText('Say "hi"')));expect.soft(java(String.raw`getByText("C:\\path")`)).toBe(selectorOf($.getByText('C:\\path')));expect.soft(java(String.raw`getByText("line1\nline2\ttab")`)).toBe(selectorOf($.getByText('line1\nline2\ttab')));@@ -723,7 +723,7 @@ it('should parse java string escapes', () => {expect.soft(java(String.raw`getByText("\uD83D\uDE00")`)).toBe(selectorOf($.getByText('😀')));});-it('should parse csharp string escapes', () => {+it('PS-023 should parse csharp string escapes', () => {expect.soft(csharp(String.raw`GetByText("Say \"hi\"")`)).toBe(selectorOf($.getByText('Say "hi"')));expect.soft(csharp(String.raw`GetByText("C:\\path")`)).toBe(selectorOf($.getByText('C:\\path')));expect.soft(csharp(String.raw`GetByText("line1\nline2\ttab")`)).toBe(selectorOf($.getByText('line1\nline2\ttab')));@@ -734,7 +734,7 @@ it('should parse csharp string escapes', () => {expect.soft(csharp(String.raw`GetByText(@"Say ""hi""")`)).toBe(selectorOf($.getByText('Say "hi"')));});-it('should parse javascript regular expressions', () => {+it('PS-024 should parse javascript regular expressions', () => {expect.soft(javascript(String.raw`getByText(/hello/i)`)).toBe(selectorOf($.getByText(/hello/i)));expect.soft(javascript(String.raw`getByText(/a\/b/)`)).toBe(selectorOf($.getByText(/a\/b/)));expect.soft(javascript(String.raw`getByText(/[/]/)`)).toBe(selectorOf($.getByText(/[/]/)));@@ -745,7 +745,7 @@ it('should parse javascript regular expressions', () => {expect.soft(javascript(String.raw`getByText(new RegExp("a\\.b"))`)).toBe(selectorOf($.getByText(/a\.b/)));});-it('should parse python regular expressions', () => {+it('PS-025 should parse python regular expressions', () => {expect.soft(python(String.raw`get_by_text(re.compile(r"hello", re.IGNORECASE))`)).toBe(selectorOf($.getByText(/hello/i)));expect.soft(python(String.raw`get_by_text(re.compile(r'hello', re.I))`)).toBe(selectorOf($.getByText(/hello/i)));expect.soft(python(String.raw`get_by_text(re.compile("hello", re.I | re.M | re.S))`)).toBe(selectorOf($.getByText(/hello/ims)));@@ -763,14 +763,14 @@ it('should parse python regular expressions', () => {expect.soft($.locator('div').filter({ hasText: /hello/m })).toParse(flagAliases);});-it('should parse java regular expressions', () => {+it('PS-026 should parse java regular expressions', () => {expect.soft(java(String.raw`getByText(Pattern.compile("hello", Pattern.CASE_INSENSITIVE))`)).toBe(selectorOf($.getByText(/hello/i)));expect.soft(java(String.raw`getByText(Pattern.compile("\\d+"))`)).toBe(selectorOf($.getByText(/\d+/)));expect.soft(java(String.raw`getByText(Pattern.compile("a.b", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL))`)).toBe(selectorOf($.getByText(/a.b/ims)));expect.soft(java(String.raw`getByText(Pattern.compile("say \"hi\""))`)).toBe(selectorOf($.getByText(/say "hi"/)));});-it('should parse csharp regular expressions', () => {+it('PS-027 should parse csharp regular expressions', () => {expect.soft(csharp(String.raw`GetByText(new Regex("hello", RegexOptions.IgnoreCase))`)).toBe(selectorOf($.getByText(/hello/i)));expect.soft(csharp(String.raw`GetByText(new Regex("\\d+"))`)).toBe(selectorOf($.getByText(/\d+/)));expect.soft(csharp(String.raw`GetByText(new Regex(@"\d+"))`)).toBe(selectorOf($.getByText(/\d+/)));@@ -784,7 +784,7 @@ it('should parse csharp regular expressions', () => {expect.soft($.locator('div').filter({ hasText: /hello/ })).toParse(verbatimStrings);});-it('should parse csharp options with an explicit type', () => {+it('PS-028 should parse csharp options with an explicit type', () => {const typedOptions: Styles = {csharp: [{ name: 'typed options', quote: '"', optionsType: 'typed' },@@ -800,7 +800,7 @@ it('should parse csharp options with an explicit type', () => {expect.soft($.frameLocator('iframe').getByTitle('Close', { exact: true })).toParse(typedOptions);});-it('should parse trailing commas', () => {+it('PS-029 should parse trailing commas', () => {const trailingCommas: Styles = {javascript: [{ name: 'trailing commas', quote: `'`, multiline: true, trailingCommas: true }],python: [{ name: 'trailing commas', quote: '"', rawRegex: true, multiline: true, trailingCommas: true }],@@ -812,7 +812,7 @@ it('should parse trailing commas', () => {expect.soft($.frameLocator('iframe').getByLabel('Name', { exact: true })).toParse(trailingCommas);});-it('should parse unusual whitespace', () => {+it('PS-030 should parse unusual whitespace', () => {const goodbye = selectorOf($.locator('div').filter({ hasText: 'Goodbye world' }).locator('span'));expect.soft(javascript(`getByRole ( 'button' , { name : 'Submit' } ) . first ( )`)).toBe(selectorOf($.getByRole('button', { name: 'Submit' }).first()));expect.soft(javascript(`\n\tgetByRole('button')\n\t\t.first()\n`)).toBe(selectorOf($.getByRole('button').first()));@@ -830,7 +830,7 @@ it('should parse unusual whitespace', () => {expect.soft(csharp(`Locator("div") . Filter (new ( ) { HasText = "Goodbye world" }).Locator( "span" )`)).toBe(goodbye);});-it('should return selectors as is', () => {+it('PS-031 should return selectors as is', () => {for (const selector of ['div','#main',@@ -848,7 +848,7 @@ it('should return selectors as is', () => {}});-it('should reject malformed javascript locators', () => {+it('PS-032 should reject malformed javascript locators', () => {expect.soft(javascript(`getByRole('button'`)).toMatch(/^Error/);expect.soft(javascript(`getByRole('button'))`)).toMatch(/^Error/);expect.soft(javascript(`getByRole('button', { name: 'Submit' )`)).toMatch(/^Error/);@@ -883,7 +883,7 @@ it('should reject malformed javascript locators', () => {expect.soft(javascript(`GetByRole('button')`)).toMatch(/^Error/);});-it('should reject malformed python locators', () => {+it('PS-033 should reject malformed python locators', () => {expect.soft(python(`get_by_role("button"`)).toMatch(/^Error/);expect.soft(python(`get_by_role("button", name="Submit"))`)).toMatch(/^Error/);expect.soft(python(`get_by_role("button", name=="Submit")`)).toMatch(/^Error/);@@ -905,7 +905,7 @@ it('should reject malformed python locators', () => {expect.soft(python(`GetByRole("button")`)).toMatch(/^Error/);});-it('should reject malformed java locators', () => {+it('PS-034 should reject malformed java locators', () => {expect.soft(java(`locator('div')`)).toMatch(/^Error/);expect.soft(java(`locator('text="bar"')`)).toMatch(/^Error/);expect.soft(java(`getByRole(AriaRole.BUTTON, new Page.GetByRoleOptions().setName("Submit")`)).toMatch(/^Error/);@@ -923,7 +923,7 @@ it('should reject malformed java locators', () => {expect.soft(java(`GetByText("Hello")`)).toMatch(/^Error/);});-it('should reject malformed csharp locators', () => {+it('PS-035 should reject malformed csharp locators', () => {expect.soft(csharp(`Locator('div')`)).toMatch(/^Error/);expect.soft(csharp(`Locator('text="bar"')`)).toMatch(/^Error/);expect.soft(csharp(`GetByRole(AriaRole.Button, new() { Name = "Submit" )`)).toMatch(/^Error/);@@ -940,7 +940,7 @@ it('should reject malformed csharp locators', () => {expect.soft(csharp(`get_by_text("Hello")`)).toMatch(/^Error/);});-it('should reject methods that the receiver does not have', () => {+it('PS-036 should reject methods that the receiver does not have', () => {const page = untyped($);const frame = untyped($.frameLocator('iframe'));const anyFrame = untyped($.frameLocator());@@ -968,7 +968,7 @@ it('should reject methods that the receiver does not have', () => {expect.soft(page.describe('x')).toBeRejected();});-it('should reject arguments of a wrong type or count', () => {+it('PS-037 should reject arguments of a wrong type or count', () => {const page = untyped($);const locator = untyped($.locator('div'));expect.soft(page.getByText()).toBeRejected();diff --git a/tests/library/logger.spec.ts b/tests/library/logger.spec.tsindex 6ec9ae1b3f..5c9f51d2f6 100644--- a/tests/library/logger.spec.ts+++ b/tests/library/logger.spec.ts@@ -16,7 +16,7 @@import { playwrightTest as it, expect } from '../config/browserTest';-it('should log @smoke', async ({ browserType, mode }) => {+it('LG-001 should log @smoke', async ({ browserType, mode }) => {it.skip(mode !== 'default', 'logger is not plumbed into the remote connection');const log = [];@@ -31,7 +31,7 @@ it('should log @smoke', async ({ browserType, mode }) => {expect(log.find(item => item.message.includes('browser.newContext succeeded'))).toBeTruthy();});-it('should log context-level', async ({ browserType }) => {+it('LG-002 should log context-level', async ({ browserType }) => {const log = [];const browser = await browserType.launch();const context = await browser.newContext({diff --git a/tests/library/modernizr.spec.ts b/tests/library/modernizr.spec.tsindex e8aec532bc..80b17f3edd 100644--- a/tests/library/modernizr.spec.ts+++ b/tests/library/modernizr.spec.ts@@ -32,7 +32,7 @@ async function checkFeatures(name: string, context: BrowserContext, server: Test}}-it('Safari Desktop', async ({ browser, browserName, platform, httpsServer, channel, isFrozenWebkit }) => {+it('CA-030 Safari Desktop', async ({ browser, browserName, platform, httpsServer, channel, isFrozenWebkit }) => {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(isFrozenWebkit);@@ -88,7 +88,7 @@ it('Safari Desktop', async ({ browser, browserName, platform, httpsServer, channexpect(actual).toEqual(expected);});-it('Mobile Safari', async ({ playwright, browser, browserName, platform, httpsServer, channel, isFrozenWebkit }) => {+it('CA-031 Mobile Safari', async ({ playwright, browser, browserName, platform, httpsServer, channel, isFrozenWebkit }) => {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(isFrozenWebkit);diff --git a/tests/library/multiclient.spec.ts b/tests/library/multiclient.spec.tsindex a850fe8f28..942a146379 100644--- a/tests/library/multiclient.spec.ts+++ b/tests/library/multiclient.spec.ts@@ -61,7 +61,7 @@ async function disconnect(page: Page) {await new Promise(f => setTimeout(f, 1000));}-test('should connect two clients', async ({ connect, remoteServer, server }) => {+test('MC-001 should connect two clients', async ({ connect, remoteServer, server }) => {const browserA = await connect(remoteServer.wsEndpoint());expect(browserA.contexts().length).toBe(0);const contextA1 = await browserA.newContext();@@ -94,7 +94,7 @@ test('should connect two clients', async ({ connect, remoteServer, server }) =>await expect(pageB2).toHaveURL(server.PREFIX + '/frames/frame.html');});-test('should fire context event on remote newContext', async ({ connect, remoteServer }) => {+test('MC-002 should fire context event on remote newContext', async ({ connect, remoteServer }) => {const browserA = await connect(remoteServer.wsEndpoint());const events: BrowserContext[] = [];browserA.on('context', ctx => events.push(ctx));@@ -107,7 +107,7 @@ test('should fire context event on remote newContext', async ({ connect, remoteSexpect(events[0]).not.toBe(contextB);});-test('should have separate default timeouts', async ({ twoPages }) => {+test('MC-003 should have separate default timeouts', async ({ twoPages }) => {const { pageA, pageB } = twoPages;pageA.setDefaultTimeout(500);pageB.setDefaultTimeout(600);@@ -120,7 +120,7 @@ test('should have separate default timeouts', async ({ twoPages }) => {expect(errorB.message).toContain('Timeout 600ms exceeded');});-test('should receive viewport size changes', async ({ twoPages }) => {+test('MC-004 should receive viewport size changes', async ({ twoPages }) => {const { pageA, pageB } = twoPages;await pageA.setViewportSize({ width: 567, height: 456 });@@ -132,7 +132,7 @@ test('should receive viewport size changes', async ({ twoPages }) => {await expect.poll(() => pageA.viewportSize()).toEqual({ width: 456, height: 567 });});-test('should not allow parallel js coverage and cleanup upon disconnect', async ({ twoPages, browserName }) => {+test('MC-005 should not allow parallel js coverage and cleanup upon disconnect', async ({ twoPages, browserName }) => {test.skip(browserName !== 'chromium');const { pageA, pageB } = twoPages;@@ -145,7 +145,7 @@ test('should not allow parallel js coverage and cleanup upon disconnect', asyncawait pageB.coverage.startJSCoverage();});-test('should not allow parallel css coverage', async ({ twoPages, browserName }) => {+test('MC-006 should not allow parallel css coverage', async ({ twoPages, browserName }) => {test.skip(browserName !== 'chromium');const { pageA, pageB } = twoPages;@@ -158,7 +158,7 @@ test('should not allow parallel css coverage', async ({ twoPages, browserName })await pageB.coverage.startCSSCoverage();});-test('should unpause clock', async ({ twoPages }) => {+test('MC-007 should unpause clock', async ({ twoPages }) => {const { pageA, pageB } = twoPages;await pageA.clock.install({ time: 1000 });await pageA.clock.pauseAt(2000);@@ -167,7 +167,7 @@ test('should unpause clock', async ({ twoPages }) => {await promise;});-test('last emulateMedia wins', async ({ twoPages }) => {+test('MC-008 last emulateMedia wins', async ({ twoPages }) => {const { pageA, pageB } = twoPages;await pageA.emulateMedia({ media: 'print' });expect(await pageB.evaluate(() => window.matchMedia('screen').matches)).toBe(false);@@ -177,7 +177,7 @@ test('last emulateMedia wins', async ({ twoPages }) => {expect(await pageA.evaluate(() => window.matchMedia('print').matches)).toBe(false);});-test('should chain routes', async ({ twoPages, server }) => {+test('MC-009 should chain routes', async ({ twoPages, server }) => {const { pageA, pageB } = twoPages;server.setRoute('/foo', (req, res) => res.writeHead(200, { 'Content-Type': 'text/html' }).end('<div>server-foo</div>'));@@ -228,7 +228,7 @@ test('should chain routes', async ({ twoPages, server }) => {await expect(pageB.locator('div')).toHaveText('intercepted2-bar');});-test.fixme('should chain routes with changed url', async ({ twoPages, server }) => {+test.fixme('MC-010 should chain routes with changed url', async ({ twoPages, server }) => {const { pageA, pageB } = twoPages;server.setRoute('/foo', (req, res) => res.writeHead(200, { 'Content-Type': 'text/html' }).end('<div>server-foo</div>'));@@ -245,7 +245,7 @@ test.fixme('should chain routes with changed url', async ({ twoPages, server })await expect(pageB.locator('div')).toHaveText('intercepted2-baz');});-test('should remove exposed bindings upon disconnect', async ({ twoPages }) => {+test('MC-011 should remove exposed bindings upon disconnect', async ({ twoPages }) => {const { pageA, pageB } = twoPages;await pageA.exposeBinding('pageBindingA', () => 'pageBindingAResult');@@ -273,7 +273,7 @@ test('should remove exposed bindings upon disconnect', async ({ twoPages }) => {expect(await pageB.evaluate(() => (window as any).pageBindingB())).toBe('pageBindingBResult');});-test('should unroute websockets', async ({ twoPages, server }) => {+test('MC-012 should unroute websockets', async ({ twoPages, server }) => {const { pageA, pageB } = twoPages;await pageA.goto(server.EMPTY_PAGE);@@ -294,7 +294,7 @@ test('should unroute websockets', async ({ twoPages, server }) => {await promise;});-test('should remove init scripts upon disconnect', async ({ twoPages, server }) => {+test('MC-013 should remove init scripts upon disconnect', async ({ twoPages, server }) => {const { pageA, pageB } = twoPages;await pageA.addInitScript(() => (window as any).pageValueA = 'pageValueA');@@ -318,7 +318,7 @@ test('should remove init scripts upon disconnect', async ({ twoPages, server })expect(await pageA.evaluate(() => (window as any).contextValueA)).toBe('contextValueA');});-test('should remove locator handlers upon disconnect', async ({ twoPages, server }) => {+test('MC-014 should remove locator handlers upon disconnect', async ({ twoPages, server }) => {const { pageA, pageB } = twoPages;await pageA.goto(server.PREFIX + '/input/handle-locator.html');@@ -353,7 +353,7 @@ test('should remove locator handlers upon disconnect', async ({ twoPages, serverexpect(error.message).not.toContain('locator handler');});-test('should launch persistent', async ({ browserType }) => {+test('MC-015 should launch persistent', async ({ browserType }) => {const browserServer = await browserType.launchServer({ _userDataDir: '', _sharedBrowser: true } as any);const browser = await browserType.connect(browserServer.wsEndpoint());expect(browser.contexts().length).toBe(1);@@ -361,7 +361,7 @@ test('should launch persistent', async ({ browserType }) => {await browserServer.close();});-test('should avoid side effects upon disconnect', async ({ twoPages, server }) => {+test('MC-016 should avoid side effects upon disconnect', async ({ twoPages, server }) => {const { pageA, pageB } = twoPages;let counter = 0;@@ -382,7 +382,7 @@ test('should avoid side effects upon disconnect', async ({ twoPages, server }) =expect(counter).toBe(savedCounter);});-test('screencast should deliver cached last frame to a new client', async ({ twoPages, server, trace, video }) => {+test('MC-017 screencast should deliver cached last frame to a new client', async ({ twoPages, server, trace, video }) => {test.skip(trace === 'on', 'trace=on has screencast active on the page already');test.skip(video === 'on', 'video=on has screencast active on the page already');@@ -406,7 +406,7 @@ test('screencast should deliver cached last frame to a new client', async ({ twoawait pageB.screencast.stop();});-test('should stop tracing upon disconnect', async ({ twoPages, trace }) => {+test('MC-018 should stop tracing upon disconnect', async ({ twoPages, trace }) => {test.skip(trace === 'on');const { pageA, pageB } = twoPages;@@ -420,7 +420,7 @@ test('should stop tracing upon disconnect', async ({ twoPages, trace }) => {await pageB.context().tracing.start();});-test('should not deliver an action buffered before the second recording started', {+test('MC-019 should not deliver an action buffered before the second recording started', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43282' },}, async ({ twoPages }) => {const { pageA, pageB } = twoPages;diff --git a/tests/library/network-timeout.spec.ts b/tests/library/network-timeout.spec.tsindex 0f120eca91..73084d8dba 100644--- a/tests/library/network-timeout.spec.ts+++ b/tests/library/network-timeout.spec.ts@@ -21,7 +21,7 @@ import { utils } from '../../packages/playwright-core/lib/coreBundle.js';test.skip(({ mode }) => mode !== 'default');-test('httpRequest should honor socketTimeout while connecting', async () => {+test('NE-128 httpRequest should honor socketTimeout while connecting', async () => {// 203.0.113.1 is TEST-NET-3 (RFC 5737), guaranteed to be unroutable, so the// TCP connection stalls instead of failing. Node's default agents come with// a 5s socket timeout, while `request.setTimeout()` only takes effect after@@ -44,7 +44,7 @@ test('httpRequest should honor socketTimeout while connecting', async () => {expect(elapsed).toBeGreaterThanOrEqual(socketTimeout - 1000);});-test('httpRequest should honor socketTimeout for stalled responses', async () => {+test('NE-129 httpRequest should honor socketTimeout for stalled responses', async () => {const server = http.createServer(() => {});await new Promise<void>(f => server.listen(0, '127.0.0.1', () => f()));const port = (server.address() as import('node:net').AddressInfo).port;@@ -66,7 +66,7 @@ test('httpRequest should honor socketTimeout for stalled responses', async () =>}});-test('httpRequest should honor ipv4first result order', async () => {+test('NE-130 httpRequest should honor ipv4first result order', async () => {const server = http.createServer((req, res) => res.end('ok'));await new Promise<void>(f => server.listen(0, '127.0.0.1', () => f()));const port = (server.address() as import('node:net').AddressInfo).port;diff --git a/tests/library/page-clock.frozen.spec.ts b/tests/library/page-clock.frozen.spec.tsindex 055d70464f..9f6259d90c 100644--- a/tests/library/page-clock.frozen.spec.ts+++ b/tests/library/page-clock.frozen.spec.ts@@ -16,12 +16,12 @@import { browserTest as it, expect } from '../config/browserTest';-it('clock should be frozen', async ({ page }) => {+it('CK-055 clock should be frozen', async ({ page }) => {it.skip(process.env.PW_CLOCK !== 'frozen');expect(await page.evaluate('Date.now()')).toBe(1000);});-it('clock should be realtime', async ({ page }) => {+it('CK-056 clock should be realtime', async ({ page }) => {it.skip(process.env.PW_CLOCK !== 'realtime');expect(await page.evaluate('Date.now()')).toBeLessThan(10000);});diff --git a/tests/library/page-clock.spec.ts b/tests/library/page-clock.spec.tsindex 9e7401702b..e99d6e26ca 100644--- a/tests/library/page-clock.spec.ts+++ b/tests/library/page-clock.spec.ts@@ -40,7 +40,7 @@ it.describe('runFor', () => {await page.clock.pauseAt(1000);});- it('triggers immediately without specified delay', async ({ page, calls }) => {+ it('CK-001 triggers immediately without specified delay', async ({ page, calls }) => {await page.evaluate(async () => {setTimeout(window.stub);});@@ -49,7 +49,7 @@ it.describe('runFor', () => {expect(calls).toHaveLength(1);});- it('does not trigger without sufficient delay', async ({ page, calls }) => {+ it('CK-002 does not trigger without sufficient delay', async ({ page, calls }) => {await page.evaluate(async () => {setTimeout(window.stub, 100);});@@ -57,7 +57,7 @@ it.describe('runFor', () => {expect(calls).toEqual([]);});- it('triggers after sufficient delay', async ({ page, calls }) => {+ it('CK-003 triggers after sufficient delay', async ({ page, calls }) => {await page.evaluate(async () => {setTimeout(window.stub, 100);});@@ -65,7 +65,7 @@ it.describe('runFor', () => {expect(calls).toHaveLength(1);});- it('triggers simultaneous timers', async ({ page, calls }) => {+ it('CK-004 triggers simultaneous timers', async ({ page, calls }) => {await page.evaluate(async () => {setTimeout(window.stub, 100);setTimeout(window.stub, 100);@@ -74,7 +74,7 @@ it.describe('runFor', () => {expect(calls).toHaveLength(2);});- it('triggers multiple simultaneous timers', async ({ page, calls }) => {+ it('CK-005 triggers multiple simultaneous timers', async ({ page, calls }) => {await page.evaluate(async () => {setTimeout(window.stub, 100);setTimeout(window.stub, 100);@@ -85,7 +85,7 @@ it.describe('runFor', () => {expect(calls.length).toBe(4);});- it('waits after setTimeout was called', async ({ page, calls }) => {+ it('CK-006 waits after setTimeout was called', async ({ page, calls }) => {await page.evaluate(async () => {setTimeout(window.stub, 150);});@@ -95,7 +95,7 @@ it.describe('runFor', () => {expect(calls).toHaveLength(1);});- it('triggers event when some throw', async ({ page, calls }) => {+ it('CK-007 triggers event when some throw', async ({ page, calls }) => {await page.evaluate(async () => {setTimeout(() => { throw new Error(); }, 100);setTimeout(window.stub, 120);@@ -104,7 +104,7 @@ it.describe('runFor', () => {expect(calls).toHaveLength(1);});- it('creates updated Date while ticking', async ({ page, calls }) => {+ it('CK-008 creates updated Date while ticking', async ({ page, calls }) => {await page.clock.setSystemTime(0);await page.evaluate(async () => {setInterval(() => {@@ -126,7 +126,7 @@ it.describe('runFor', () => {]);});- it('passes 8 seconds', async ({ page, calls }) => {+ it('CK-009 passes 8 seconds', async ({ page, calls }) => {await page.evaluate(async () => {setInterval(window.stub, 4000);});@@ -135,7 +135,7 @@ it.describe('runFor', () => {expect(calls.length).toBe(2);});- it('passes 1 minute', async ({ page, calls }) => {+ it('CK-010 passes 1 minute', async ({ page, calls }) => {await page.evaluate(async () => {setInterval(window.stub, 6000);});@@ -144,7 +144,7 @@ it.describe('runFor', () => {expect(calls.length).toBe(10);});- it('passes 2 hours, 34 minutes and 10 seconds', {+ it('CK-011 passes 2 hours, 34 minutes and 10 seconds', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43452' },}, async ({ page, calls }) => {await page.evaluate(async () => {@@ -158,7 +158,7 @@ it.describe('runFor', () => {expect(performance.now() - start).toBeLessThan(2000);});- it('throws for invalid format', async ({ page, calls }) => {+ it('CK-012 throws for invalid format', async ({ page, calls }) => {await page.evaluate(async () => {setInterval(window.stub, 10000);});@@ -166,7 +166,7 @@ it.describe('runFor', () => {expect(calls).toEqual([]);});- it('returns the current now value', async ({ page }) => {+ it('CK-013 returns the current now value', async ({ page }) => {await page.clock.setSystemTime(0);const value = 200;await page.clock.runFor(value);@@ -180,7 +180,7 @@ it.describe('fastForward', () => {await page.clock.pauseAt(1000);});- it(`ignores timers which wouldn't be run`, async ({ page, calls }) => {+ it(`CK-014 ignores timers which wouldn't be run`, async ({ page, calls }) => {await page.evaluate(async () => {setTimeout(() => {window.stub('should not be logged');@@ -190,7 +190,7 @@ it.describe('fastForward', () => {expect(calls).toEqual([]);});- it('pushes back execution time for skipped timers', async ({ page, calls }) => {+ it('CK-015 pushes back execution time for skipped timers', async ({ page, calls }) => {await page.evaluate(async () => {setTimeout(() => {window.stub(Date.now());@@ -201,7 +201,7 @@ it.describe('fastForward', () => {expect(calls).toEqual([{ params: [1000 + 2000] }]);});- it('supports string time arguments', async ({ page, calls }) => {+ it('CK-016 supports string time arguments', async ({ page, calls }) => {await page.evaluate(async () => {setTimeout(() => {window.stub(Date.now());@@ -217,17 +217,17 @@ it.describe('stubTimers', () => {await page.clock.install({ time: 0 });await page.clock.pauseAt(1000);});- it('sets initial timestamp', async ({ page, calls }) => {+ it('CK-017 sets initial timestamp', async ({ page, calls }) => {await page.clock.setSystemTime(1400);expect(await page.evaluate(() => Date.now())).toBe(1400);});- it('should throw for invalid date', async ({ page }) => {+ it('CK-018 should throw for invalid date', async ({ page }) => {await expect(page.clock.setSystemTime(new Date('invalid'))).rejects.toThrow('Invalid date: Invalid Date');await expect(page.clock.setSystemTime('invalid')).rejects.toThrow('clock.setSystemTime: Invalid date: invalid');});- it('replaces global setTimeout', async ({ page, calls }) => {+ it('CK-019 replaces global setTimeout', async ({ page, calls }) => {await page.evaluate(async () => {setTimeout(window.stub, 1000);});@@ -235,12 +235,12 @@ it.describe('stubTimers', () => {expect(calls.length).toBe(1);});- it('global fake setTimeout should return id', async ({ page, calls }) => {+ it('CK-020 global fake setTimeout should return id', async ({ page, calls }) => {const to = await page.evaluate(() => setTimeout(window.stub, 1000));expect(typeof to).toBe('number');});- it('replaces global clearTimeout', async ({ page, calls }) => {+ it('CK-021 replaces global clearTimeout', async ({ page, calls }) => {await page.evaluate(async () => {const to = setTimeout(window.stub, 1000);clearTimeout(to);@@ -249,7 +249,7 @@ it.describe('stubTimers', () => {expect(calls).toEqual([]);});- it('replaces global setInterval', async ({ page, calls }) => {+ it('CK-022 replaces global setInterval', async ({ page, calls }) => {await page.evaluate(async () => {setInterval(window.stub, 500);});@@ -257,7 +257,7 @@ it.describe('stubTimers', () => {expect(calls.length).toBe(2);});- it('replaces global clearInterval', async ({ page, calls }) => {+ it('CK-023 replaces global clearInterval', async ({ page, calls }) => {await page.evaluate(async () => {const to = setInterval(window.stub, 500);clearInterval(to);@@ -266,7 +266,7 @@ it.describe('stubTimers', () => {expect(calls).toEqual([]);});- it('replaces global performance.now', async ({ page }) => {+ it('CK-024 replaces global performance.now', async ({ page }) => {const promise = page.evaluate(async () => {const prev = performance.now();await new Promise(f => setTimeout(f, 1000));@@ -277,14 +277,14 @@ it.describe('stubTimers', () => {expect(await promise).toEqual({ prev: 1000, next: 2000 });});- it('fakes Date constructor', async ({ page }) => {+ it('CK-025 fakes Date constructor', async ({ page }) => {const now = await page.evaluate(() => new Date().getTime());expect(now).toBe(1000);});});it.describe('stubTimers', () => {- it('replaces global performance.timeOrigin', async ({ page }) => {+ it('CK-026 replaces global performance.timeOrigin', async ({ page }) => {await page.clock.install({ time: 1000 });await page.clock.pauseAt(2000);const promise = page.evaluate(async () => {@@ -300,7 +300,7 @@ it.describe('stubTimers', () => {});it.describe('popup', () => {- it('should tick after popup', async ({ page }) => {+ it('CK-027 should tick after popup', async ({ page }) => {await page.clock.install({ time: 0 });const now = new Date('2015-09-25');await page.clock.pauseAt(now);@@ -315,7 +315,7 @@ it.describe('popup', () => {expect(popupTimeAfter).toBe(now.getTime() + 1000);});- it('should tick before popup', async ({ page }) => {+ it('CK-028 should tick before popup', async ({ page }) => {await page.clock.install({ time: 0 });const now = new Date('2015-09-25');await page.clock.pauseAt(now);@@ -329,7 +329,7 @@ it.describe('popup', () => {expect(popupTime).toBe(now.getTime() + 1000);});- it('should run time before popup', async ({ page, server }) => {+ it('CK-029 should run time before popup', async ({ page, server }) => {server.setRoute('/popup.html', async (req, res) => {res.setHeader('Content-Type', 'text/html');res.end(`<script>window.time = Date.now()</script>`);@@ -345,7 +345,7 @@ it.describe('popup', () => {expect(popupTime).toBeGreaterThanOrEqual(2000);});- it('should not run time before popup on pause', async ({ page, server }) => {+ it('CK-030 should not run time before popup on pause', async ({ page, server }) => {server.setRoute('/popup.html', async (req, res) => {res.setHeader('Content-Type', 'text/html');res.end(`<script>window.time = Date.now()</script>`);@@ -366,7 +366,7 @@ it.describe('popup', () => {});it.describe('setFixedTime', () => {- it('does not fake methods', async ({ page }) => {+ it('CK-031 does not fake methods', async ({ page }) => {await page.clock.setFixedTime(0);// Should not stall.@@ -375,21 +375,21 @@ it.describe('setFixedTime', () => {});});- it('allows setting time multiple times', async ({ page }) => {+ it('CK-032 allows setting time multiple times', async ({ page }) => {await page.clock.setFixedTime(100);expect(await page.evaluate(() => Date.now())).toBe(100);await page.clock.setFixedTime(200);expect(await page.evaluate(() => Date.now())).toBe(200);});- it('fixed time is not affected by clock manipulation', async ({ page }) => {+ it('CK-033 fixed time is not affected by clock manipulation', async ({ page }) => {await page.clock.setFixedTime(100);expect(await page.evaluate(() => Date.now())).toBe(100);await page.clock.fastForward(20);expect(await page.evaluate(() => Date.now())).toBe(100);});- it('allows installing fake timers after settings time', async ({ page, calls }) => {+ it('CK-034 allows installing fake timers after settings time', async ({ page, calls }) => {await page.clock.setFixedTime(100);expect(await page.evaluate(() => Date.now())).toBe(100);await page.clock.setFixedTime(200);@@ -402,7 +402,7 @@ it.describe('setFixedTime', () => {});it.describe('while running', () => {- it('should progress time', async ({ page }) => {+ it('CK-035 should progress time', async ({ page }) => {await page.clock.install({ time: 0 });const startRealTime = Date.now();await page.goto('data:text/html,');@@ -413,7 +413,7 @@ it.describe('while running', () => {expect(now).toBeLessThanOrEqual(realElapsed + 1000);});- it('should runFor', async ({ page }) => {+ it('CK-036 should runFor', async ({ page }) => {await page.clock.install({ time: 0 });const startRealTime = Date.now();await page.goto('data:text/html,');@@ -424,7 +424,7 @@ it.describe('while running', () => {expect(now).toBeLessThanOrEqual(10000 + realElapsed + 1000);});- it('should fastForward', async ({ page }) => {+ it('CK-037 should fastForward', async ({ page }) => {await page.clock.install({ time: 0 });const startRealTime = Date.now();await page.goto('data:text/html,');@@ -435,7 +435,7 @@ it.describe('while running', () => {expect(now).toBeLessThanOrEqual(10000 + realElapsed + 1000);});- it('should pause', async ({ page }) => {+ it('CK-038 should pause', async ({ page }) => {await page.clock.install({ time: 0 });await page.goto('data:text/html,');await page.clock.pauseAt(60000);@@ -445,7 +445,7 @@ it.describe('while running', () => {expect(now).toBe(60000);});- it('should reject an invalid target time with an active requestAnimationFrame loop', {+ it('CK-039 should reject an invalid target time with an active requestAnimationFrame loop', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright-python/issues/3137',@@ -457,7 +457,7 @@ it.describe('while running', () => {await expect(page.clock.pauseAt(invalidTime)).rejects.toThrow(`clock.pauseAt: Invalid date: ${invalidTime}`);});- it('should pause and fastForward', async ({ page }) => {+ it('CK-040 should pause and fastForward', async ({ page }) => {await page.clock.install({ time: 0 });await page.goto('data:text/html,');await page.clock.pauseAt(60000);@@ -466,7 +466,7 @@ it.describe('while running', () => {expect(now).toBe(61000);});- it('should set system time on pause', async ({ page }) => {+ it('CK-041 should set system time on pause', async ({ page }) => {await page.clock.install({ time: 0 });await page.goto('data:text/html,');await page.clock.pauseAt(60000);@@ -476,7 +476,7 @@ it.describe('while running', () => {});it.describe('while on pause', () => {- it('fastForward should not run nested immediate', async ({ page, calls }) => {+ it('CK-042 fastForward should not run nested immediate', async ({ page, calls }) => {await page.clock.install({ time: 0 });await page.goto('data:text/html,');await page.clock.pauseAt(1000);@@ -492,7 +492,7 @@ it.describe('while on pause', () => {expect(calls).toEqual([{ params: ['outer'] }, { params: ['inner'] }]);});- it('runFor should not run nested immediate', async ({ page, calls }) => {+ it('CK-043 runFor should not run nested immediate', async ({ page, calls }) => {await page.clock.install({ time: 0 });await page.goto('data:text/html,');await page.clock.pauseAt(1000);@@ -508,7 +508,7 @@ it.describe('while on pause', () => {expect(calls).toEqual([{ params: ['outer'] }, { params: ['inner'] }]);});- it('runFor should not run nested immediate from microtask', async ({ page, calls }) => {+ it('CK-044 runFor should not run nested immediate from microtask', async ({ page, calls }) => {await page.clock.install({ time: 0 });await page.goto('data:text/html,');await page.clock.pauseAt(1000);@@ -524,7 +524,7 @@ it.describe('while on pause', () => {expect(calls).toEqual([{ params: ['outer'] }, { params: ['inner'] }]);});- it('should stay paused on the next page when an init script reads the time', {+ it('CK-045 should stay paused on the next page when an init script reads the time', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43214' },}, async ({ page, server }) => {await page.clock.install({ time: 0 });@@ -538,7 +538,7 @@ it.describe('while on pause', () => {expect(await page.evaluate(() => Date.now())).toBe(2000);});- it('should not advance performance.now() before the first clock call on a new page', {+ it('CK-046 should not advance performance.now() before the first clock call on a new page', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43214' },}, async ({ page, server }) => {await page.clock.pauseAt(1000);@@ -549,7 +549,7 @@ it.describe('while on pause', () => {});it.describe('Date.now', () => {- it('check Date.now is an integer', async ({ page }) => {+ it('CK-047 check Date.now is an integer', async ({ page }) => {await page.clock.install();await page.goto('data:text/html,');await page.waitForTimeout(1000);@@ -560,7 +560,7 @@ it.describe('Date.now', () => {expect(Number.isInteger(dateValue2)).toBeTruthy();});- it('check Date.now is an integer (2)', async ({ page }) => {+ it('CK-048 check Date.now is an integer (2)', async ({ page }) => {await page.clock.install({ time: 0 });await page.goto('data:text/html,');await page.clock.pauseAt(1000);@@ -575,7 +575,7 @@ it.describe('Temporal.Now', { annotation: { type: 'issue', description: 'https:/it.skip(!await page.evaluate(() => 'Temporal' in globalThis), 'Temporal is not supported');});- it('should follow fixed time', async ({ page }) => {+ it('CK-049 should follow fixed time', async ({ page }) => {await page.clock.setFixedTime(new Date('2020-01-01T00:00:00Z'));await page.goto('data:text/html,');expect(await page.evaluate(() => {@@ -596,7 +596,7 @@ it.describe('Temporal.Now', { annotation: { type: 'issue', description: 'https:/});});- it('should advance with the clock', async ({ page }) => {+ it('CK-050 should advance with the clock', async ({ page }) => {await page.clock.install({ time: 0 });await page.goto('data:text/html,');await page.clock.pauseAt(1000);@@ -604,7 +604,7 @@ it.describe('Temporal.Now', { annotation: { type: 'issue', description: 'https:/expect(await page.evaluate(() => (globalThis as any).Temporal.Now.instant().epochMilliseconds)).toBe(3000);});- it('should use the system time zone by default', async ({ browser }) => {+ it('CK-051 should use the system time zone by default', async ({ browser }) => {const context = await browser.newContext({ timezoneId: 'America/Los_Angeles' });const page = await context.newPage();await page.clock.setFixedTime(new Date('2020-01-01T00:00:00Z'));@@ -624,7 +624,7 @@ it.describe('Temporal.Now', { annotation: { type: 'issue', description: 'https:/await context.close();});- it('should keep the rest of Temporal intact', async ({ page }) => {+ it('CK-052 should keep the rest of Temporal intact', async ({ page }) => {await page.clock.install({ time: 0 });await page.goto('data:text/html,');expect(await page.evaluate(() => {@@ -644,7 +644,7 @@ it.describe('Temporal.Now', { annotation: { type: 'issue', description: 'https:/});});-it('AbortSignal.timeout', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39293' } }, async ({ page, browserName }) => {+it('CK-053 AbortSignal.timeout', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39293' } }, async ({ page, browserName }) => {await page.clock.install({ time: 0 });const controller = await page.evaluateHandle(() => {const signal = AbortSignal.any([@@ -691,7 +691,7 @@ it('AbortSignal.timeout', { annotation: { type: 'issue', description: 'https://gexpect(await page.evaluate(() => AbortSignal.abort().aborted)).toBe(true);});-it('correctly increments Date.now()/performance.now() during blocking execution', {+it('CK-054 correctly increments Date.now()/performance.now() during blocking execution', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/35362',diff --git a/tests/library/page-close.spec.ts b/tests/library/page-close.spec.tsindex 5569dfbcad..eda5967715 100644--- a/tests/library/page-close.spec.ts+++ b/tests/library/page-close.spec.ts@@ -19,7 +19,7 @@ import { stripAnsi } from '../config/utils';import { browserTest as test, expect } from '../config/browserTest';import { kTargetClosedErrorMessage } from '../config/errors';-test('should close page with active dialog', async ({ page }) => {+test('PA-039 should close page with active dialog', async ({ page }) => {await page.evaluate('"trigger builtins.setTimeout"');await page.setContent(`<button onclick="builtins.setTimeout(() => alert(1))">alert</button>`);void page.click('button').catch(() => {});@@ -27,7 +27,7 @@ test('should close page with active dialog', async ({ page }) => {await page.close();});-test('expect should not print timed out error message when page closes', async ({ page }) => {+test('PA-040 expect should not print timed out error message when page closes', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const [error] = await Promise.all([expect(page.locator('div')).toHaveText('hey', { timeout: 100000 }).catch(e => e),@@ -37,7 +37,7 @@ test('expect should not print timed out error message when page closes', async (expect(stripAnsi(error.message)).not.toContain('Timed out');});-test('addLocatorHandler should throw when page closes', async ({ page, server }) => {+test('PA-041 addLocatorHandler should throw when page closes', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/handle-locator.html');await page.addLocatorHandler(page.getByText('This interstitial covers the button'), async () => {@@ -53,7 +53,7 @@ test('addLocatorHandler should throw when page closes', async ({ page, server })expect(error.message).toContain('custom reason');});-test('should reject all promises when page is closed', async ({ page }) => {+test('PA-042 should reject all promises when page is closed', async ({ page }) => {let error = null;await Promise.all([page.evaluate(() => new Promise(r => {})).catch(e => error = e),@@ -62,13 +62,13 @@ test('should reject all promises when page is closed', async ({ page }) => {expect(error.message).toContain(kTargetClosedErrorMessage);});-test('should set the page close state', async ({ page }) => {+test('PA-043 should set the page close state', async ({ page }) => {expect(page.isClosed()).toBe(false);await page.close();expect(page.isClosed()).toBe(true);});-test('should pass page to close event', async ({ page }) => {+test('PA-044 should pass page to close event', async ({ page }) => {const [closedPage] = await Promise.all([page.waitForEvent('close'),page.close()@@ -76,7 +76,7 @@ test('should pass page to close event', async ({ page }) => {expect(closedPage).toBe(page);});-test('should terminate network waiters', async ({ page, server }) => {+test('PA-045 should terminate network waiters', async ({ page, server }) => {const results = await Promise.all([page.waitForRequest(server.EMPTY_PAGE).catch(e => e),page.waitForResponse(server.EMPTY_PAGE).catch(e => e),@@ -89,7 +89,7 @@ test('should terminate network waiters', async ({ page, server }) => {}});-test('should be callable twice', async ({ page }) => {+test('PA-046 should be callable twice', async ({ page }) => {await Promise.all([page.close(),page.close(),@@ -97,7 +97,7 @@ test('should be callable twice', async ({ page }) => {await page.close();});-test('should return null if parent page has been closed', async ({ page }) => {+test('PA-047 should return null if parent page has been closed', async ({ page }) => {const [popup] = await Promise.all([page.waitForEvent('popup'),page.evaluate(() => window.open('about:blank')),@@ -107,7 +107,7 @@ test('should return null if parent page has been closed', async ({ page }) => {expect(opener).toBe(null);});-test('should fail with error upon disconnect', async ({ page }) => {+test('PA-048 should fail with error upon disconnect', async ({ page }) => {let error;const waitForPromise = page.waitForEvent('download').catch(e => error = e);await page.close();@@ -115,13 +115,13 @@ test('should fail with error upon disconnect', async ({ page }) => {expect(error.message).toContain(kTargetClosedErrorMessage);});-test('page.close should work with window.close', async function({ page }) {+test('PA-049 page.close should work with window.close', async function({ page }) {const closedPromise = new Promise(x => page.on('close', x));await page.close();await closedPromise;});-test('should not throw UnhandledPromiseRejection when page closes', async ({ page, browserName, isWindows }) => {+test('PA-050 should not throw UnhandledPromiseRejection when page closes', async ({ page, browserName, isWindows }) => {test.fixme(browserName === 'firefox' && isWindows, 'makes the next test to always timeout');await Promise.all([@@ -130,7 +130,7 @@ test('should not throw UnhandledPromiseRejection when page closes', async ({ pag]).catch(e => {});});-test('interrupt request.response() and request.allHeaders() on page.close', async ({ page, server, browserName, channel }) => {+test('PA-051 interrupt request.response() and request.allHeaders() on page.close', async ({ page, server, browserName, channel }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27227' });server.setRoute('/one-style.css', (req, res) => {res.setHeader('Content-Type', 'text/css');@@ -149,7 +149,7 @@ test('interrupt request.response() and request.allHeaders() on page.close', asynexpect((await headersPromise).message).toContain(kTargetClosedErrorMessage);});-test('should not treat navigations as new popups', async ({ page, server }) => {+test('PA-052 should not treat navigations as new popups', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent('<a target=_blank rel=noopener href="/one-style.html">yo</a>');const [popup] = await Promise.all([@@ -163,7 +163,7 @@ test('should not treat navigations as new popups', async ({ page, server }) => {expect(badSecondPopup).toBe(false);});-test('should not result in unhandled rejection', async ({ page }) => {+test('PA-053 should not result in unhandled rejection', async ({ page }) => {const closedPromise = page.waitForEvent('close');await page.exposeFunction('foo', async () => {await page.close();@@ -177,7 +177,7 @@ test('should not result in unhandled rejection', async ({ page }) => {expect(await page.evaluate('1 + 1').catch(e => e)).toBeInstanceOf(Error);});-test('should reject response.finished if page closes', async ({ page, server }) => {+test('PA-054 should reject response.finished if page closes', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);server.setRoute('/get', (req, res) => {// In Firefox, |fetch| will be hanging until it receives |Content-Type| header@@ -197,7 +197,7 @@ test('should reject response.finished if page closes', async ({ page, server })expect(error.message).toContain('closed');});-test('should not throw when continuing while page is closing', async ({ page, server }) => {+test('PA-055 should not throw when continuing while page is closing', async ({ page, server }) => {let done;await page.route('**/*', async route => {done = Promise.all([@@ -209,7 +209,7 @@ test('should not throw when continuing while page is closing', async ({ page, seawait done;});-test('should not throw when continuing after page is closed', async ({ page, server }) => {+test('PA-056 should not throw when continuing after page is closed', async ({ page, server }) => {let done;await page.route('**/*', async route => {await page.close();diff --git a/tests/library/page-event-crash.spec.ts b/tests/library/page-event-crash.spec.tsindex 09817f525e..40b585a70a 100644--- a/tests/library/page-event-crash.spec.ts+++ b/tests/library/page-event-crash.spec.ts@@ -40,14 +40,14 @@ test.beforeEach(({ platform, browserName, channel }) => {test.skip(browserName === 'webkit' && utils.hostPlatform.startsWith('debian13'), 'never dispatches the crash event');});-test('should emit crash event when page crashes', async ({ page, crash }) => {+test('ER-014 should emit crash event when page crashes', async ({ page, crash }) => {await page.setContent(`<div>This page should crash</div>`);crash();const crashedPage = await new Promise(f => page.on('crash', f));expect(crashedPage).toBe(page);});-test('should throw on any action after page crashes', async ({ page, crash, server, browserName }) => {+test('ER-015 should throw on any action after page crashes', async ({ page, crash, server, browserName }) => {await page.setContent(`<div>This page should crash</div>`);crash();await page.waitForEvent('crash');@@ -64,7 +64,7 @@ test('should throw on any action after page crashes', async ({ page, crash, servexpectCrashError(await page.reload().then(() => null, e => e));});-test('expect should not hang when page crashed', {+test('ER-016 expect should not hang when page crashed', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31907' },}, async ({ page, crash }) => {const expectPromise = expect(page.getByText('child')).toBeVisible();@@ -72,7 +72,7 @@ test('expect should not hang when page crashed', {await expect(expectPromise).rejects.toThrowError();});-test('should cancel waitForEvent when page crashes', async ({ page, crash }) => {+test('ER-017 should cancel waitForEvent when page crashes', async ({ page, crash }) => {await page.setContent(`<div>This page should crash</div>`);const promise = page.waitForEvent('response').catch(e => e);crash();@@ -80,7 +80,7 @@ test('should cancel waitForEvent when page crashes', async ({ page, crash }) =>expect(error.message).toContain('Page crashed');});-test('should cancel navigation when page crashes', async ({ server, page, crash }) => {+test('ER-018 should cancel navigation when page crashes', async ({ server, page, crash }) => {await page.setContent(`<div>This page should crash</div>`);server.setRoute('/one-style.css', () => {});const promise = page.goto(server.PREFIX + '/one-style.html').catch(e => e);@@ -90,7 +90,7 @@ test('should cancel navigation when page crashes', async ({ server, page, crashexpect(error.message).toContain('page.goto: Page crashed');});-test('should be able to close context when page crashes', async ({ isAndroid, page, crash }) => {+test('ER-019 should be able to close context when page crashes', async ({ isAndroid, page, crash }) => {test.skip(isAndroid);await page.setContent(`<div>This page should crash</div>`);@@ -99,7 +99,7 @@ test('should be able to close context when page crashes', async ({ isAndroid, paawait page.context().close();});-test('should be able to close page after crash', {+test('ER-020 should be able to close page after crash', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42956' },}, async ({ page, crash }) => {await page.setContent(`<div>This page should crash</div>`);@@ -114,7 +114,7 @@ test('should be able to close page after crash', {expect(page.context().pages()).toEqual([]);});-test('should reject in-flight worker.evaluate when page crashes', {+test('ER-021 should reject in-flight worker.evaluate when page crashes', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43204' },}, async ({ page, crash, server }) => {await page.goto(server.EMPTY_PAGE);diff --git a/tests/library/pdf.spec.ts b/tests/library/pdf.spec.tsindex 38e8c7b5be..5adbc80241 100644--- a/tests/library/pdf.spec.ts+++ b/tests/library/pdf.spec.ts@@ -17,7 +17,7 @@import { browserTest as it, expect } from '../config/browserTest';import fs from 'fs';-it('should be able to save file', async ({ contextFactory, browserName }, testInfo) => {+it('PD-001 should be able to save file', async ({ contextFactory, browserName }, testInfo) => {it.skip(browserName !== 'chromium', 'Printing to pdf is currently only supported in chromium.');const context = await contextFactory();const page = await context.newPage();@@ -26,7 +26,7 @@ it('should be able to save file', async ({ contextFactory, browserName }, testInexpect(fs.readFileSync(outputFile).byteLength).toBeGreaterThan(0);});-it('should be able to generate outline', async ({ contextFactory, server, browserName }, testInfo) => {+it('PD-002 should be able to generate outline', async ({ contextFactory, server, browserName }, testInfo) => {it.skip(browserName !== 'chromium', 'Printing to pdf is currently only supported in chromium.');const context = await contextFactory({baseURL: server.PREFIX,diff --git a/tests/library/permissions.spec.ts b/tests/library/permissions.spec.tsindex 64a414296a..ed951fd096 100644--- a/tests/library/permissions.spec.ts+++ b/tests/library/permissions.spec.ts@@ -24,12 +24,12 @@ function getPermission(page, name) {it.describe('permissions', () => {it.fixme(({ browserName, isWindows }) => browserName === 'webkit' && isWindows, 'Permissions API is disabled on Windows WebKit');- it('should be prompt by default', async ({ page, server }) => {+ it('PE-001 should be prompt by default', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(await getPermission(page, 'geolocation')).toBe('prompt');});- it('should deny permission when not listed', async ({ page, context, server, browserName, isBidi, isFrozenWebkit }) => {+ it('PE-002 should deny permission when not listed', async ({ page, context, server, browserName, isBidi, isFrozenWebkit }) => {it.skip(isFrozenWebkit);await page.goto(server.EMPTY_PAGE);@@ -47,7 +47,7 @@ it.describe('permissions', () => {}});- it('should fail when bad permission is given', async ({ page, context, server, isBidi }) => {+ it('PE-003 should fail when bad permission is given', async ({ page, context, server, isBidi }) => {await page.goto(server.EMPTY_PAGE);let error: Error;await context.grantPermissions(['foo'], { origin: server.EMPTY_PAGE }).catch(e => error = e);@@ -57,26 +57,26 @@ it.describe('permissions', () => {expect(error.message).toContain('Unknown permission: foo');});- it('should grant geolocation permission when origin is listed', async ({ page, context, server }) => {+ it('PE-004 should grant geolocation permission when origin is listed', async ({ page, context, server }) => {await page.goto(server.EMPTY_PAGE);await context.grantPermissions(['geolocation'], { origin: server.EMPTY_PAGE });expect(await getPermission(page, 'geolocation')).toBe('granted');});- it('should prompt for geolocation permission when origin is not listed', async ({ page, context, server }) => {+ it('PE-005 should prompt for geolocation permission when origin is not listed', async ({ page, context, server }) => {await page.goto(server.EMPTY_PAGE);await context.grantPermissions(['geolocation'], { origin: server.EMPTY_PAGE });await page.goto(server.CROSS_PROCESS_PREFIX + '/empty.html');expect(await getPermission(page, 'geolocation')).toBe('prompt');});- it('should grant notifications permission when listed', async ({ page, context, server }) => {+ it('PE-006 should grant notifications permission when listed', async ({ page, context, server }) => {await page.goto(server.EMPTY_PAGE);await context.grantPermissions(['notifications'], { origin: server.EMPTY_PAGE });expect(await getPermission(page, 'notifications')).toBe('granted');});- it('should accumulate when adding', async ({ page, context, server }) => {+ it('PE-007 should accumulate when adding', async ({ page, context, server }) => {await page.goto(server.EMPTY_PAGE);await context.grantPermissions(['geolocation']);await context.grantPermissions(['notifications']);@@ -84,7 +84,7 @@ it.describe('permissions', () => {expect(await getPermission(page, 'notifications')).toBe('granted');});- it('should clear permissions', async ({ page, context, server }) => {+ it('PE-008 should clear permissions', async ({ page, context, server }) => {await page.goto(server.EMPTY_PAGE);await context.grantPermissions(['geolocation']);await context.clearPermissions();@@ -93,13 +93,13 @@ it.describe('permissions', () => {expect(await getPermission(page, 'notifications')).toBe('granted');});- it('should grant permission when listed for all domains', async ({ page, context, server }) => {+ it('PE-009 should grant permission when listed for all domains', async ({ page, context, server }) => {await page.goto(server.EMPTY_PAGE);await context.grantPermissions(['geolocation']);expect(await getPermission(page, 'geolocation')).toBe('granted');});- it('should grant permission when creating context', async ({ server, browser }) => {+ it('PE-010 should grant permission when creating context', async ({ server, browser }) => {const context = await browser.newContext({ permissions: ['geolocation'] });const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -107,7 +107,7 @@ it.describe('permissions', () => {await context.close();});- it('should reset permissions', async ({ page, context, server }) => {+ it('PE-011 should reset permissions', async ({ page, context, server }) => {await page.goto(server.EMPTY_PAGE);await context.grantPermissions(['geolocation'], { origin: server.EMPTY_PAGE });expect(await getPermission(page, 'geolocation')).toBe('granted');@@ -115,7 +115,7 @@ it.describe('permissions', () => {expect(await getPermission(page, 'geolocation')).toBe('prompt');});- it('should trigger permission onchange', async ({ page, context, server, browserName, isBidi }) => {+ it('PE-012 should trigger permission onchange', async ({ page, context, server, browserName, isBidi }) => {it.fail(browserName === 'webkit');await page.goto(server.EMPTY_PAGE);@@ -142,7 +142,7 @@ it.describe('permissions', () => {expect(await page.evaluate(() => window['events'])).toEqual(expectedEvents);});- it('should isolate permissions between browser contexts', async ({ server, browser, browserName, isBidi, isFrozenWebkit }) => {+ it('PE-013 should isolate permissions between browser contexts', async ({ server, browser, browserName, isBidi, isFrozenWebkit }) => {it.skip(isFrozenWebkit);const context = await browser.newContext();@@ -192,7 +192,7 @@ it.describe('permissions', () => {});});-it('should support clipboard read', async ({ page, context, server, browserName, isWindows, isHeadlessShell }) => {+it('PE-014 should support clipboard read', async ({ page, context, server, browserName, isWindows, isHeadlessShell }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27475' });it.fail(browserName === 'firefox', 'No such permissions (requires flag) in Firefox');@@ -217,7 +217,7 @@ it('should support clipboard read', async ({ page, context, server, browserName,expect(await page.evaluate(() => navigator.clipboard.readText())).toBe('test content');});-it('should isolate the headless clipboard from the operating system', {+it('PE-015 should isolate the headless clipboard from the operating system', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/13097' },}, async ({ browserType, server, browserName, isFrozenWebkit }) => {it.skip(isFrozenWebkit, 'needs recent webkit');@@ -248,7 +248,7 @@ it('should isolate the headless clipboard from the operating system', {await Promise.all([browser1.close(), browser2.close()]);});-it('storage access', {+it('PE-016 storage access', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31227' }}, async ({ page, context, server, browserName }) => {it.skip(browserName !== 'chromium', 'chromium-only api');@@ -279,7 +279,7 @@ it.describe(() => {// Secure contextit.use({ ignoreHTTPSErrors: true, });- it('should be able to use the local-fonts API', async ({ page, context, httpsServer, browserName, channel, headless }) => {+ it('PE-017 should be able to use the local-fonts API', async ({ page, context, httpsServer, browserName, channel, headless }) => {it.skip(browserName !== 'chromium', 'chromium-only api');it.skip(!!channel && channel.startsWith('msedge'), 'always times out in edge');it.fixme(!headless, 'times out in headed');@@ -293,7 +293,7 @@ it.describe(() => {});});-it('local network request is allowed from public origin', {+it('PE-018 local network request is allowed from public origin', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37861' }}, async ({ page, context, server, browserName, channel, browserMajorVersion }) => {it.skip(browserName === 'webkit');@@ -343,7 +343,7 @@ it('local network request is allowed from public origin', {]);});-it('can request screen-wake-lock', {+it('PE-019 can request screen-wake-lock', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39115' }}, async ({ page, context }) => {await context.grantPermissions(['screen-wake-lock']);@@ -375,7 +375,7 @@ it.describe('camera and microphone', () => {}, constraints);}- it('should capture when camera and microphone are granted', {+ it('PE-020 should capture when camera and microphone are granted', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/2973' }}, async ({ page, context, server, isFrozenWebkit }) => {it.skip(isFrozenWebkit, 'Mock capture device support requires a newer WebKit build');@@ -390,7 +390,7 @@ it.describe('camera and microphone', () => {});});- it('should reject when no permission is granted', {+ it('PE-021 should reject when no permission is granted', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/2973' }}, async ({ page, server, isFrozenWebkit }) => {it.skip(isFrozenWebkit, 'Mock capture device support requires a newer WebKit build');@@ -399,7 +399,7 @@ it.describe('camera and microphone', () => {expect(await getUserMedia(page, { video: true, audio: true })).toEqual({ error: 'NotAllowedError' });});- it('should gate audio and video independently', {+ it('PE-022 should gate audio and video independently', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/2973' }}, async ({ page, context, server, isFrozenWebkit }) => {it.skip(isFrozenWebkit, 'Mock capture device support requires a newer WebKit build');@@ -412,7 +412,7 @@ it.describe('camera and microphone', () => {expect(await getUserMedia(page, { audio: true })).toEqual({ error: 'NotAllowedError' });});- it('should stop capturing after permissions are cleared', {+ it('PE-023 should stop capturing after permissions are cleared', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/2973' }}, async ({ page, context, server, isFrozenWebkit }) => {it.skip(isFrozenWebkit, 'Mock capture device support requires a newer WebKit build');diff --git a/tests/library/playwright-client.spec.ts b/tests/library/playwright-client.spec.tsindex 59454329be..aa036f0d24 100644--- a/tests/library/playwright-client.spec.ts+++ b/tests/library/playwright-client.spec.ts@@ -23,7 +23,7 @@ it.skip(({ mode }) => mode !== 'default');const kBundlePath = path.join(__dirname, '..', '..', 'packages', 'playwright-client', 'lib', 'index.mjs');-it('should connect from a page and drive the same browser', async ({ browser, browserName, channel, server }) => {+it('PC-001 should connect from a page and drive the same browser', async ({ browser, browserName, channel, server }) => {// Expose this very browser over a WebSocket endpoint. In WSL the browser runs in the// guest and reaches the host over mirrored networking, which mirrors the IPv4 loopback// but not the host's IPv6 `::1`; bind to 127.0.0.1 so the in-page client can connect back.diff --git a/tests/library/popup.spec.ts b/tests/library/popup.spec.tsindex 521dd497ac..427efc1bba 100644--- a/tests/library/popup.spec.ts+++ b/tests/library/popup.spec.ts@@ -17,7 +17,7 @@import { browserTest as it, expect } from '../config/browserTest';import type { Page } from 'playwright-core';-it('should inherit user agent from browser context @smoke', async function({ browser, server, isFrozenWebkit }) {+it('PO-014 should inherit user agent from browser context @smoke', async function({ browser, server, isFrozenWebkit }) {it.skip(isFrozenWebkit);const context = await browser.newContext({@@ -39,7 +39,7 @@ it('should inherit user agent from browser context @smoke', async function({ broexpect(request.headers['user-agent']).toBe('hey');});-it('should respect routes from browser context', async function({ browser, server }) {+it('PO-015 should respect routes from browser context', async function({ browser, server }) {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -57,7 +57,7 @@ it('should respect routes from browser context', async function({ browser, serveexpect(intercepted).toBe(true);});-it('should inherit extra headers from browser context', async function({ browser, server }) {+it('PO-016 should inherit extra headers from browser context', async function({ browser, server }) {const context = await browser.newContext({extraHTTPHeaders: { 'foo': 'bar' },});@@ -70,7 +70,7 @@ it('should inherit extra headers from browser context', async function({ browserexpect(request.headers['foo']).toBe('bar');});-it('should inherit offline from browser context', async function({ browser, server }) {+it('PO-017 should inherit offline from browser context', async function({ browser, server }) {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -83,7 +83,7 @@ it('should inherit offline from browser context', async function({ browser, servexpect(online).toBe(false);});-it('should inherit http credentials from browser context', async function({ browser, server }) {+it('PO-018 should inherit http credentials from browser context', async function({ browser, server }) {server.setAuth('/title.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: { username: 'user', password: 'pass' }@@ -99,7 +99,7 @@ it('should inherit http credentials from browser context', async function({ browawait context.close();});-it('should inherit touch support from browser context', async function({ browser, server }) {+it('PO-019 should inherit touch support from browser context', async function({ browser, server }) {const context = await browser.newContext({viewport: { width: 400, height: 500 },hasTouch: true@@ -114,7 +114,7 @@ it('should inherit touch support from browser context', async function({ browserexpect(hasTouch).toBe(true);});-it('should inherit viewport size from browser context', async function({ browser, server }) {+it('PO-020 should inherit viewport size from browser context', async function({ browser, server }) {const context = await browser.newContext({viewport: { width: 400, height: 500 }});@@ -128,7 +128,7 @@ it('should inherit viewport size from browser context', async function({ browserexpect(size).toEqual({ width: 400, height: 500 });});-it('should use viewport size from window features', async function({ browser, server, browserName }) {+it('PO-021 should use viewport size from window features', async function({ browser, server, browserName }) {const context = await browser.newContext({viewport: { width: 700, height: 700 }});@@ -157,7 +157,7 @@ it('should use viewport size from window features', async function({ browser, seexpect(resized).toEqual({ width: 500, height: 400 });});-it('should respect routes from browser context when using window.open', async function({ browser, server }) {+it('PO-022 should respect routes from browser context when using window.open', async function({ browser, server }) {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -174,7 +174,7 @@ it('should respect routes from browser context when using window.open', async fuawait context.close();});-it('BrowserContext.addInitScript should apply to an in-process popup', async function({ browser, server }) {+it('PO-023 BrowserContext.addInitScript should apply to an in-process popup', async function({ browser, server }) {const context = await browser.newContext();await context.addInitScript(() => window['injected'] = 123);const page = await context.newPage();@@ -187,7 +187,7 @@ it('BrowserContext.addInitScript should apply to an in-process popup', async funexpect(injected).toBe(123);});-it('BrowserContext.addInitScript should apply to a cross-process popup', async function({ browser, server }) {+it('PO-024 BrowserContext.addInitScript should apply to a cross-process popup', async function({ browser, server }) {const context = await browser.newContext();await context.addInitScript(() => window['injected'] = 123);const page = await context.newPage();@@ -202,7 +202,7 @@ it('BrowserContext.addInitScript should apply to a cross-process popup', async fawait context.close();});-it('should expose function from browser context', async function({ browser, server }) {+it('PO-025 should expose function from browser context', async function({ browser, server }) {const context = await browser.newContext();const messages = [];await context.exposeFunction('add', (a, b) => {@@ -221,7 +221,7 @@ it('should expose function from browser context', async function({ browser, servexpect(messages.join('|')).toBe('page|binding');});-it('should not dispatch binding on a closed page', async function({ browser, server, browserName }) {+it('PO-026 should not dispatch binding on a closed page', async function({ browser, server, browserName }) {const context = await browser.newContext();let wasClosed: boolean | undefined;await context.exposeBinding('add', (source, a, b) => {@@ -244,7 +244,7 @@ it('should not dispatch binding on a closed page', async function({ browser, serexpect(wasClosed).not.toBeTruthy();});-it('should not throttle rAF in the opener page', async ({ page, server }) => {+it('PO-027 should not throttle rAF in the opener page', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/14557' });await page.goto(server.EMPTY_PAGE);const [popup] = await Promise.all([@@ -257,7 +257,7 @@ it('should not throttle rAF in the opener page', async ({ page, server }) => {]);});-it('should not throw when click closes popup', async ({ browserName, page, server }) => {+it('PO-028 should not throw when click closes popup', async ({ browserName, page, server }) => {it.fixme(browserName === 'firefox', 'locator.click: Target page, context or browser has been closed');await page.goto(server.EMPTY_PAGE);diff --git a/tests/library/proxy-pattern.spec.ts b/tests/library/proxy-pattern.spec.tsindex c9b5a18d84..4d31956ebb 100644--- a/tests/library/proxy-pattern.spec.ts+++ b/tests/library/proxy-pattern.spec.ts@@ -19,7 +19,7 @@ import { playwrightTest as test, expect } from '../config/browserTest';const { parsePattern } = utils;-test('socks proxy patter matcher', async ({}) => {+test('PR-040 socks proxy patter matcher', async ({}) => {const m1 = parsePattern('*');expect.soft(m1('example.com', 80)).toBe(true);expect.soft(m1('some.long.example.com', 80)).toBe(true);diff --git a/tests/library/proxy.spec.ts b/tests/library/proxy.spec.tsindex d9bb5e9c16..6de2e67c08 100644--- a/tests/library/proxy.spec.ts+++ b/tests/library/proxy.spec.ts@@ -18,7 +18,7 @@ import { setupSocksForwardingServer } from '../config/proxy';import { playwrightTest as it, expect } from '../config/browserTest';import net from 'net';-it('should throw for bad server value', async ({ browserType }) => {+it('PR-001 should throw for bad server value', async ({ browserType }) => {const error = await browserType.launch({// @ts-expect-error server must be a stringproxy: { server: 123 }@@ -26,7 +26,7 @@ it('should throw for bad server value', async ({ browserType }) => {expect(error.message).toContain('proxy.server: expected string, got number');});-it('should use proxy @smoke', async ({ browserType, server, mode }) => {+it('PR-002 should use proxy @smoke', async ({ browserType, server, mode }) => {server.setRoute('/target.html', async (req, res) => {res.end('<html><title>Served by the proxy</title></html>');});@@ -39,7 +39,7 @@ it('should use proxy @smoke', async ({ browserType, server, mode }) => {await browser.close();});-it('should use proxy for second page', async ({ browserType, server }) => {+it('PR-003 should use proxy for second page', async ({ browserType, server }) => {server.setRoute('/target.html', async (req, res) => {res.end('<html><title>Served by the proxy</title></html>');});@@ -58,7 +58,7 @@ it('should use proxy for second page', async ({ browserType, server }) => {await browser.close();});-it('should work with IP:PORT notion', async ({ browserType, server }) => {+it('PR-004 should work with IP:PORT notion', async ({ browserType, server }) => {server.setRoute('/target.html', async (req, res) => {res.end('<html><title>Served by the proxy</title></html>');});@@ -88,7 +88,7 @@ it.describe('should proxy local network requests', () => {description: 'link-local'}]) {- it(`${params.description}`, async ({ platform, browserName, browserType, server, proxyServer, channel }) => {+ it(`PR-005 ${params.description}`, async ({ platform, browserName, browserType, server, proxyServer, channel }) => {it.skip(browserName === 'webkit' && platform === 'darwin' && ['localhost', '127.0.0.1'].includes(params.target) && additionalBypass, 'Mac webkit does not proxy localhost when bypass rules are set.');it.skip(channel?.startsWith('msedge'), 'times out while loading the page');@@ -122,7 +122,7 @@ it.describe('should proxy local network requests', () => {});for (const host of ['localhost', '127.0.0.1']) {- it(`should allow bypassing ${host} requests`, async ({ browserType, server, proxyServer }) => {+ it(`PR-006 should allow bypassing ${host} requests`, async ({ browserType, server, proxyServer }) => {server.setRoute(`/proxied/target.html`, async (req, res) => {res.end('<html><title>Served by the server</title></html>');});@@ -141,7 +141,7 @@ for (const host of ['localhost', '127.0.0.1']) {});}-it('should authenticate', {+it('PR-007 should authenticate', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43326' },}, async ({ browserType, server }) => {server.setRoute('/target.html', async (req, res) => {@@ -177,7 +177,7 @@ it('should authenticate', {await browser.close();});-it('should reconnect with credentials after CONNECT 407 closes the socket', {+it('PR-008 should reconnect with credentials after CONNECT 407 closes the socket', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40768' }}, async ({ browserType, httpsServer, proxyServer }) => {// Some HTTP proxies send 407 and close the socket on the first CONNECT, expecting@@ -215,7 +215,7 @@ it('should reconnect with credentials after CONNECT 407 closes the socket', {await browser.close();});-it('should work with authenticate followed by redirect', async ({ browserName, browserType, server }) => {+it('PR-009 should work with authenticate followed by redirect', async ({ browserName, browserType, server }) => {function hasAuth(req, res) {const auth = req.headers['proxy-authorization'];if (!auth) {@@ -247,7 +247,7 @@ it('should work with authenticate followed by redirect', async ({ browserName, bawait browser.close();});-it('should exclude patterns', async ({ browserType, server, channel }) => {+it('PR-010 should exclude patterns', async ({ browserType, server, channel }) => {it.skip(channel?.startsWith('msedge'), 'times out while loading the page');server.setRoute('/target.html', async (req, res) => {@@ -300,7 +300,7 @@ it('should exclude patterns', async ({ browserType, server, channel }) => {});for (const host of ['localhost', '127.0.0.1']) {- it(`should bypass proxy for ${host} when ${host} is in bypass list`, async ({ browserType, server, proxyServer }) => {+ it(`PR-011 should bypass proxy for ${host} when ${host} is in bypass list`, async ({ browserType, server, proxyServer }) => {proxyServer.forwardTo(server.PORT, { removePrefix: '/proxied' });server.setRoute(`/proxied/target.html`, async (req, res) => {res.end('<html><title>Served by the server</title></html>');@@ -318,7 +318,7 @@ for (const host of ['localhost', '127.0.0.1']) {});}-it('should use socks proxy', async ({ browserType, socksPort }) => {+it('PR-012 should use socks proxy', async ({ browserType, socksPort }) => {const browser = await browserType.launch({proxy: { server: `socks5://localhost:${socksPort}` }});@@ -328,7 +328,7 @@ it('should use socks proxy', async ({ browserType, socksPort }) => {await browser.close();});-it('should use socks proxy in second page', async ({ browserType, socksPort }) => {+it('PR-013 should use socks proxy in second page', async ({ browserType, socksPort }) => {const browser = await browserType.launch({proxy: { server: `socks5://localhost:${socksPort}` }});@@ -344,14 +344,14 @@ it('should use socks proxy in second page', async ({ browserType, socksPort }) =await browser.close();});-it('does launch without a port', async ({ browserType }) => {+it('PR-014 does launch without a port', async ({ browserType }) => {const browser = await browserType.launch({proxy: { server: 'http://localhost' }});await browser.close();});-it('should use proxy with emulated user agent', async ({ browserType }) => {+it('PR-015 should use proxy with emulated user agent', async ({ browserType }) => {it.fixme(true, 'Non-emulated user agent is used in proxy CONNECT');let requestText = '';@@ -381,7 +381,7 @@ it('should use proxy with emulated user agent', async ({ browserType }) => {});-it('should use SOCKS proxy for websocket requests', async ({ browserType, server }) => {+it('PR-016 should use SOCKS proxy for websocket requests', async ({ browserType, server }) => {const { proxyServerAddr, closeProxyServer } = await setupSocksForwardingServer({port: it.info().workerIndex + 2048 + 2,forwardPort: server.PORT,@@ -416,7 +416,7 @@ it('should use SOCKS proxy for websocket requests', async ({ browserType, serverawait closeProxyServer();});-it('should use http proxy for websocket requests', async ({ browserName, browserType, server, proxyServer, isWindows, isMac, macVersion, channel }) => {+it('PR-017 should use http proxy for websocket requests', async ({ browserName, browserType, server, proxyServer, isWindows, isMac, macVersion, channel }) => {it.skip(isMac && macVersion === 13, 'Times out on Mac 13');proxyServer.forwardTo(server.PORT, { allowConnectRequests: true });diff --git a/tests/library/resource-timing.spec.ts b/tests/library/resource-timing.spec.tsindex db2f2b0951..491892dd45 100644--- a/tests/library/resource-timing.spec.ts+++ b/tests/library/resource-timing.spec.ts@@ -17,7 +17,7 @@import { browserTest as it, expect } from '../config/browserTest';-it('should work @smoke', async ({ contextFactory, server }) => {+it('NE-131 should work @smoke', async ({ contextFactory, server }) => {const context = await contextFactory();const page = await context.newPage();const [request] = await Promise.all([@@ -33,7 +33,7 @@ it('should work @smoke', async ({ contextFactory, server }) => {await context.close();});-it('should work for subresource', async ({ contextFactory, server, browserName, platform }) => {+it('NE-132 should work for subresource', async ({ contextFactory, server, browserName, platform }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/20654' });it.fixme(browserName === 'webkit' && platform === 'win32', 'responseStart is wrong due upstream webkit/libcurl bug');const context = await contextFactory();@@ -51,7 +51,7 @@ it('should work for subresource', async ({ contextFactory, server, browserName,await context.close();});-it('should work for SSL', async ({ browser, httpsServer, browserName, platform }) => {+it('NE-133 should work for SSL', async ({ browser, httpsServer, browserName, platform }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/20654' });const page = await browser.newPage({ ignoreHTTPSErrors: true });@@ -68,7 +68,7 @@ it('should work for SSL', async ({ browser, httpsServer, browserName, platform }await page.close();});-it('should work for redirect', async ({ contextFactory, browserName, server }) => {+it('NE-134 should work for redirect', async ({ contextFactory, browserName, server }) => {it.fixme(browserName === 'webkit', `In WebKit, redirects don't carry the timing info`);const context = await contextFactory();@@ -100,7 +100,7 @@ it('should work for redirect', async ({ contextFactory, browserName, server }) =await context.close();});-it('should work when serving from memory cache', async ({ contextFactory, server, browserName, isBidi }) => {+it('NE-135 should work when serving from memory cache', async ({ contextFactory, server, browserName, isBidi }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright-java/issues/1080' });it.fixme(browserName === 'firefox' && !isBidi, 'Response event is not fired in Firefox');server.setRoute('/one-style.css', (req, res) => {diff --git a/tests/library/role-utils.spec.ts b/tests/library/role-utils.spec.tsindex 90899bc977..ff8b011616 100644--- a/tests/library/role-utils.spec.ts+++ b/tests/library/role-utils.spec.ts@@ -35,7 +35,7 @@ const ranges = [];for (let range = 0; range <= ranges.length; range++) {- test('wpt accname #' + range, async ({ page, asset, server, browserName }) => {+ test('AR-143 wpt accname #' + range, async ({ page, asset, server, browserName }) => {const skipped = [// This test expects ::before + title + ::after, which is neither 2F nor 2I.'name_test_case_659-manual.html',@@ -97,7 +97,7 @@ for (let range = 0; range <= ranges.length; range++) {});}-test('wpt accname non-manual', async ({ page, asset, server, browserName }) => {+test('AR-144 wpt accname non-manual', async ({ page, asset, server, browserName }) => {await page.addInitScript(() => {const self = window as any;self.AriaUtils = {};@@ -153,7 +153,7 @@ test('wpt accname non-manual', async ({ page, asset, server, browserName }) => {}});-test('axe-core implicit-role', async ({ page, asset, server }) => {+test('AR-145 axe-core implicit-role', async ({ page, asset, server }) => {await page.goto(server.EMPTY_PAGE);const testCases = require(asset('axe-core/implicit-role'));for (const testCase of testCases) {@@ -175,7 +175,7 @@ test('axe-core implicit-role', async ({ page, asset, server }) => {}});-test('axe-core accessible-text', async ({ page, asset, server }) => {+test('AR-146 axe-core accessible-text', async ({ page, asset, server }) => {await page.goto(server.EMPTY_PAGE);const testCases = require(asset('axe-core/accessible-text'));for (const testCase of testCases) {@@ -209,7 +209,7 @@ test('axe-core accessible-text', async ({ page, asset, server }) => {}});-test('accessible name with slots', async ({ page }) => {+test('AR-147 accessible name with slots', async ({ page }) => {// Text "foo" is assigned to the slot, should not be used twice.await page.setContent(`<button><div>foo</div></button>@@ -276,7 +276,7 @@ test('accessible name with slots', async ({ page }) => {expect.soft(await getNameAndRole(page, 'div')).toEqual({ role: 'button', name: 'bar' });});-test('accessible name with closed details', async ({ page }) => {+test('AR-148 accessible name with closed details', async ({ page }) => {await page.setContent(`<button aria-labelledby="details"></button><details id="details">@@ -289,7 +289,7 @@ test('accessible name with closed details', async ({ page }) => {expect.soft(await getNameAndRole(page, 'button')).toEqual({ role: 'button', name: 'Summary Details' });});-test('accessible name nested treeitem', async ({ page }) => {+test('AR-149 accessible name nested treeitem', async ({ page }) => {await page.setContent(`<div role=treeitem id=target><span>Top-level</span>@@ -302,7 +302,7 @@ test('accessible name nested treeitem', async ({ page }) => {expect.soft(await getNameAndRole(page, '#target')).toEqual({ role: 'treeitem', name: 'Top-level' });});-test('svg title', async ({ page }) => {+test('AR-150 svg title', async ({ page }) => {await page.setContent(`<div><svg width="162" height="30" viewBox="0 0 162 30" fill="none" xmlns="http://www.w3.org/2000/svg">@@ -320,7 +320,7 @@ test('svg title', async ({ page }) => {expect.soft(await getNameAndRole(page, 'a')).toEqual({ role: 'link', name: 'a link' });});-test('native controls', async ({ page }) => {+test('AR-151 native controls', async ({ page }) => {await page.setContent(`<label for="text1">TEXT1</label><input id="text1" type=text><input id="text2" type=text title="TEXT2">@@ -355,7 +355,7 @@ test('native controls', async ({ page }) => {expect.soft(await getNameAndRole(page, '#file2')).toEqual({ role: 'button', name: 'FILE2' });});-test('input type=search maps to searchbox unless list points at a datalist', {+test('AR-152 input type=search maps to searchbox unless list points at a datalist', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41899' },}, async ({ page }) => {await page.setContent(`@@ -370,7 +370,7 @@ test('input type=search maps to searchbox unless list points at a datalist', {expect.soft(await getNameAndRole(page, '#search4')).toEqual({ role: 'combobox', name: '' });});-test('meter and progress get their name from an associated label', {+test('AR-153 meter and progress get their name from an associated label', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41891' },}, async ({ page }) => {await page.setContent(`@@ -385,7 +385,7 @@ test('meter and progress get their name from an associated label', {expect.soft(await getNameAndRole(page, '#meter3')).toEqual({ role: 'meter', name: 'Overridden' });});-test('native controls labelled-by', async ({ page }) => {+test('AR-154 native controls labelled-by', async ({ page }) => {await page.setContent(`<label id="for-text1">TEXT1</label><input aria-labelledby="for-text1" id="text1" type=text><label id="for-text2">TEXT2</label><input aria-labelledby="for-text2 text2" id="text2" type=text>@@ -418,21 +418,21 @@ test('native controls labelled-by', async ({ page }) => {expect.soft(await getNameAndRole(page, '#textarea1')).toEqual({ role: 'textbox', name: 'TEXTAREA1 MORE2' });});-test('display:contents should be visible when contents are visible', async ({ page }) => {+test('AR-155 display:contents should be visible when contents are visible', async ({ page }) => {await page.setContent(`<button style='display: contents;'>yo</button>`);await expect(page.getByRole('button')).toHaveCount(1);});-test('should remove soft hyphens and zero-width spaces', async ({ page }) => {+test('AR-156 should remove soft hyphens and zero-width spaces', async ({ page }) => {await page.setContent(`<button>1\u00ad2\u200b3</button>`);expect.soft(await getNameAndRole(page, 'button')).toEqual({ role: 'button', name: '123' });});-test('label/labelled-by aria-hidden with descendants', async ({ page }) => {+test('AR-157 label/labelled-by aria-hidden with descendants', async ({ page }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29796' });await page.setContent(`@@ -454,7 +454,7 @@ test('label/labelled-by aria-hidden with descendants', async ({ page }) => {expect.soft(await getNameAndRole(page, '#case2 button')).toEqual({ role: 'button', name: 'Label2' });});-test('own aria-label concatenated with aria-labelledby', async ({ page }) => {+test('AR-158 own aria-label concatenated with aria-labelledby', async ({ page }) => {// This is taken from https://w3c.github.io/accname/#example-5-0await page.setContent(`@@ -474,7 +474,7 @@ test('own aria-label concatenated with aria-labelledby', async ({ page }) => {expect.soft(await getNameAndRole(page, '#del_row2')).toEqual({ role: 'button', name: 'Delete HolidayLetter.pdf' });});-test('control embedded in a label', async ({ page }) => {+test('AR-159 control embedded in a label', async ({ page }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28848' });await page.setContent(`@@ -488,7 +488,7 @@ test('control embedded in a label', async ({ page }) => {expect.soft(await getNameAndRole(page, 'label')).toEqual({ role: null, name: '' });});-test('control embedded in a target element', async ({ page }) => {+test('AR-160 control embedded in a target element', async ({ page }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28848' });await page.setContent(`@@ -499,7 +499,7 @@ test('control embedded in a target element', async ({ page }) => {expect.soft(await getNameAndRole(page, 'h1')).toEqual({ role: 'heading', name: 'Foo bar' });});-test('searchbox embedded control should contribute its value', async ({ page }) => {+test('AR-161 searchbox embedded control should contribute its value', async ({ page }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42341' });await page.setContent(`@@ -515,7 +515,7 @@ test('searchbox embedded control should contribute its value', async ({ page })expect.soft(await getNameAndRole(page, 'h1')).toEqual({ role: 'heading', name: 'Foo bar' });});-test('svg role=presentation', async ({ page, server }) => {+test('AR-162 svg role=presentation', async ({ page, server }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/26809' });await page.goto(server.EMPTY_PAGE);@@ -527,7 +527,7 @@ test('svg role=presentation', async ({ page, server }) => {expect.soft(await getNameAndRole(page, 'svg')).toEqual({ role: 'presentation', name: '' });});-test('should work with form and tricky input names', async ({ page }) => {+test('AR-163 should work with form and tricky input names', async ({ page }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30616' });await page.setContent(`@@ -539,7 +539,7 @@ test('should work with form and tricky input names', async ({ page }) => {expect.soft(await getNameAndRole(page, 'form')).toEqual({ role: 'form', name: 'my form' });});-test('should ignore stylesheet from hidden aria-labelledby subtree', async ({ page }) => {+test('AR-164 should ignore stylesheet from hidden aria-labelledby subtree', async ({ page }) => {await page.setContent(`<div id=mylabel style="display:none"><template shadowrootmode=open>@@ -552,7 +552,7 @@ test('should ignore stylesheet from hidden aria-labelledby subtree', async ({ paexpect.soft(await getNameAndRole(page, 'input')).toEqual({ role: 'textbox', name: 'hello' });});-test('should not include hidden pseudo into accessible name', async ({ page }) => {+test('AR-165 should not include hidden pseudo into accessible name', async ({ page }) => {await page.setContent(`<style>span:before {@@ -572,7 +572,7 @@ test('should not include hidden pseudo into accessible name', async ({ page }) =expect.soft(await getNameAndRole(page, 'a')).toEqual({ role: 'link', name: 'hello hello' });});-test('should resolve pseudo content from attr', async ({ page }) => {+test('AR-166 should resolve pseudo content from attr', async ({ page }) => {await page.setContent(`<style>.stars:before {@@ -587,7 +587,7 @@ test('should resolve pseudo content from attr', async ({ page }) => {expect(await getNameAndRole(page, 'a')).toEqual({ role: 'link', name: 'hello world' });});-test('should resolve pseudo content alternative text', async ({ page }) => {+test('AR-167 should resolve pseudo content alternative text', async ({ page }) => {await page.setContent(`<style>.with-content:before {@@ -599,7 +599,7 @@ test('should resolve pseudo content alternative text', async ({ page }) => {expect(await getNameAndRole(page, 'div')).toEqual({ role: 'button', name: 'alternative text inner text' });});-test('should resolve css content property for an element', async ({ page }) => {+test('AR-168 should resolve css content property for an element', async ({ page }) => {await page.setContent(`<style>.with-content-1 {@@ -616,7 +616,7 @@ test('should resolve css content property for an element', async ({ page }) => {expect(await getNameAndRole(page, '#button2')).toEqual({ role: 'button', name: 'inner text' });});-test('should ignore invalid aria-labelledby', async ({ page }) => {+test('AR-169 should ignore invalid aria-labelledby', async ({ page }) => {await page.setContent(`<label><span>Text here</span>@@ -626,7 +626,7 @@ test('should ignore invalid aria-labelledby', async ({ page }) => {expect.soft(await getNameAndRole(page, 'input')).toEqual({ role: 'textbox', name: 'Text here' });});-test('should support search element', async ({ page }) => {+test('AR-170 should support search element', async ({ page }) => {await page.setContent(`<search id=search1 aria-label="example">Hellodiff --git a/tests/library/route-web-socket.spec.ts b/tests/library/route-web-socket.spec.tsindex f43a31e798..6d2cafd95f 100644--- a/tests/library/route-web-socket.spec.ts+++ b/tests/library/route-web-socket.spec.ts@@ -73,7 +73,7 @@ for (const mock of ['no-mock', 'no-match', 'pass-through']) {}});- test('should work with text message', async ({ page, server }) => {+ test('WS-015 should work with text message', async ({ page, server }) => {const wsPromise = server.waitForWebSocket();const upgradePromise = server.waitForUpgrade();await setupWS(page, server, 'blob');@@ -103,7 +103,7 @@ for (const mock of ['no-mock', 'no-match', 'pass-through']) {]);});- test('should work with binaryType=blob', async ({ page, server }) => {+ test('WS-016 should work with binaryType=blob', async ({ page, server }) => {const wsPromise = server.waitForWebSocket();await setupWS(page, server, 'blob');const ws = await wsPromise;@@ -117,7 +117,7 @@ for (const mock of ['no-mock', 'no-match', 'pass-through']) {expect(await messagePromise).toBe('hi');});- test('should work with binaryType=arraybuffer', async ({ page, server }) => {+ test('WS-017 should work with binaryType=arraybuffer', async ({ page, server }) => {const wsPromise = server.waitForWebSocket();await setupWS(page, server, 'arraybuffer');const ws = await wsPromise;@@ -131,7 +131,7 @@ for (const mock of ['no-mock', 'no-match', 'pass-through']) {expect(await messagePromise).toBe('hi');});- test('should work when connection errors out', async ({ page, server, browserName }) => {+ test('WS-018 should work when connection errors out', async ({ page, server, browserName }) => {test.skip(browserName === 'webkit', 'WebKit ignores the connection error and fires no events!');const upgradePromise = server.waitForUpgrade();@@ -147,7 +147,7 @@ for (const mock of ['no-mock', 'no-match', 'pass-through']) {]);});- test('should work with error after successful open', async ({ page, server, browserName, isLinux, isWindows }) => {+ test('WS-019 should work with error after successful open', async ({ page, server, browserName, isLinux, isWindows }) => {test.skip(browserName === 'firefox', 'Firefox does not close the websocket upon a bad frame');test.skip(browserName === 'webkit' && isLinux, 'WebKit linux does not close the websocket upon a bad frame');test.skip(browserName === 'webkit' && isWindows, 'WebKit Windows does not close the websocket upon a bad frame');@@ -167,7 +167,7 @@ for (const mock of ['no-mock', 'no-match', 'pass-through']) {]);});- test('should work with client-side close', async ({ page, server }) => {+ test('WS-020 should work with client-side close', async ({ page, server }) => {const wsPromise = server.waitForWebSocket();const upgradePromise = server.waitForUpgrade();await setupWS(page, server, 'blob');@@ -195,14 +195,14 @@ for (const mock of ['no-mock', 'no-match', 'pass-through']) {expect(closed.reason.toString()).toBe('oops');});- test('should pass through the required protocol', async ({ page, server }) => {+ test('WS-021 should pass through the required protocol', async ({ page, server }) => {await setupWS(page, server, 'blob', 'my-custom-protocol');await page.evaluate(() => window.wsOpened);const protocol = await page.evaluate(() => window.ws.protocol);expect(protocol).toBe('my-custom-protocol');});- test('should work with relative WebSocket URL', async ({ page, server }) => {+ test('WS-022 should work with relative WebSocket URL', async ({ page, server }) => {const wsPromise = server.waitForWebSocket();await setupWS(page, server, 'blob', undefined, true);const ws = await wsPromise;@@ -218,7 +218,7 @@ for (const mock of ['no-mock', 'no-match', 'pass-through']) {});}-test('should work with ws.close', async ({ page, server }) => {+test('WS-023 should work with ws.close', async ({ page, server }) => {const { promise, resolve } = withResolvers<WebSocketRoute>();await page.routeWebSocket(/.*/, async ws => {ws.connectToServer();@@ -246,7 +246,7 @@ test('should work with ws.close', async ({ page, server }) => {expect(await closedPromise).toEqual({ code: 3009, reason: 'oops' });});-test('should observe upstream handshake failure when connectToServer is used', async ({ page, server }) => {+test('WS-024 should observe upstream handshake failure when connectToServer is used', async ({ page, server }) => {// Exercises the WebSocket-as-network-request path used by Firefox after the// har-WebSocket plumbing change, where a 4xx handshake response is synthesized// into a full lifecycle in FFPage._onWebSocketRequestFinished.@@ -276,7 +276,7 @@ test('should observe upstream handshake failure when connectToServer is used', aexpect(routeHandlerInvoked).toBe(1);});-test('should observe multiple concurrent routed WebSockets with connectToServer', async ({ page, server }) => {+test('WS-025 should observe multiple concurrent routed WebSockets with connectToServer', async ({ page, server }) => {// Exercises FFNetworkManager._webSocketRequestIds tracking by routing two// simultaneous WebSocket connections through `connectToServer()`. Each request// gets a distinct id in the new Firefox WebSocket-as-network-request flow.@@ -312,7 +312,7 @@ test('should observe multiple concurrent routed WebSockets with connectToServer'expect(routedConnections).toBe(2);});-test('should pattern match', async ({ page, server }) => {+test('WS-026 should pattern match', async ({ page, server }) => {await page.routeWebSocket(/.*\/ws$/, async ws => {ws.connectToServer();});@@ -348,7 +348,7 @@ test('should pattern match', async ({ page, server }) => {await expect.poll(() => page.evaluate(() => window.log)).toEqual([`ws1:response`, `ws2:mock-response`]);});-test('should work with server', async ({ page, server }) => {+test('WS-027 should work with server', async ({ page, server }) => {const { promise, resolve } = withResolvers<WebSocketRoute>();await page.routeWebSocket(/.*/, async ws => {const server = ws.connectToServer();@@ -434,7 +434,7 @@ test('should work with server', async ({ page, server }) => {await expect.poll(() => log).toEqual(['message: fake', 'message: modified', 'message: pass-client', 'message: pass-client-2', 'close: code=3009 reason=problem']);});-test('should work without server', async ({ page, server }) => {+test('WS-028 should work without server', async ({ page, server }) => {const { promise, resolve } = withResolvers<WebSocketRoute>();await page.routeWebSocket(/.*/, ws => {ws.onMessage(message => {@@ -475,7 +475,7 @@ test('should work without server', async ({ page, server }) => {]);});-test('should route WebSockets in already loaded documents', {+test('WS-029 should route WebSockets in already loaded documents', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43105' },}, async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);@@ -496,7 +496,7 @@ test('should route WebSockets in already loaded documents', {}});-test('should emit close upon frame navigation', async ({ page, server }) => {+test('WS-030 should emit close upon frame navigation', async ({ page, server }) => {const { promise, resolve } = withResolvers<WebSocketRoute>();await page.routeWebSocket(/.*/, async ws => {ws.connectToServer();@@ -518,7 +518,7 @@ test('should emit close upon frame navigation', async ({ page, server }) => {await closedPromise;});-test('should emit close upon frame detach', async ({ page, server }) => {+test('WS-031 should emit close upon frame detach', async ({ page, server }) => {const { promise, resolve } = withResolvers<WebSocketRoute>();await page.routeWebSocket(/.*/, async ws => {ws.connectToServer();@@ -541,7 +541,7 @@ test('should emit close upon frame detach', async ({ page, server }) => {await closedPromise;});-test('should route on context', async ({ page, server }) => {+test('WS-032 should route on context', async ({ page, server }) => {await page.routeWebSocket(/ws1/, ws => {ws.onMessage(message => {ws.send('page-mock-1');@@ -579,7 +579,7 @@ test('should route on context', async ({ page, server }) => {await expect.poll(() => page.evaluate(() => window.log)).toEqual([`ws1:page-mock-2`, `ws2:context-mock-2`]);});-test('should not throw after page closure', async ({ page, server }) => {+test('WS-033 should not throw after page closure', async ({ page, server }) => {const { promise, resolve } = withResolvers<WebSocketRoute>();await page.routeWebSocket(/.*/, async ws => {ws.connectToServer();@@ -595,7 +595,7 @@ test('should not throw after page closure', async ({ page, server }) => {]);});-test('should not throw with empty handler', async ({ page, server }) => {+test('WS-034 should not throw with empty handler', async ({ page, server }) => {await page.routeWebSocket(/.*/, () => {});await setupWS(page, server, 'blob');await expect.poll(() => page.evaluate(() => window.log)).toEqual(['open']);@@ -604,7 +604,7 @@ test('should not throw with empty handler', async ({ page, server }) => {await expect.poll(() => page.evaluate(() => window.log)).toEqual(['open']);});-test('should throw when connecting twice', async ({ page, server }) => {+test('WS-035 should throw when connecting twice', async ({ page, server }) => {const { promise, resolve } = withResolvers<Error>();await page.routeWebSocket(/.*/, ws => {@@ -620,7 +620,7 @@ test('should throw when connecting twice', async ({ page, server }) => {expect(error.message).toContain('Already connected to the server');});-test('should work with no trailing slash', async ({ page, server }) => {+test('WS-036 should work with no trailing slash', async ({ page, server }) => {const log: string[] = [];// No trailing slash!await page.routeWebSocket('ws://' + server.HOST, ws => {@@ -644,7 +644,7 @@ test('should work with no trailing slash', async ({ page, server }) => {expect(await page.evaluate(() => window.log)).toEqual(['response']);});-test('should work with baseURL', async ({ contextFactory, server }) => {+test('WS-037 should work with baseURL', async ({ contextFactory, server }) => {const context = await contextFactory({ baseURL: 'http://' + server.HOST });const page = await context.newPage();@@ -667,7 +667,7 @@ test('should work with baseURL', async ({ contextFactory, server }) => {]);});-test('should work with baseURL regardless of scheme casing', async ({ contextFactory, server }) => {+test('WS-038 should work with baseURL regardless of scheme casing', async ({ contextFactory, server }) => {// baseURL schemes are case-insensitive, same as everywhere else in URL matching.const context = await contextFactory({ baseURL: 'HTTP://' + server.HOST });const page = await context.newPage();@@ -691,7 +691,7 @@ test('should work with baseURL regardless of scheme casing', async ({ contextFac]);});-test('should expose protocols to the route handler', async ({ page, server }) => {+test('WS-039 should expose protocols to the route handler', async ({ page, server }) => {const routes: WebSocketRoute[] = [];await page.routeWebSocket(/.*/, ws => {routes.push(ws);@@ -712,7 +712,7 @@ test('should expose protocols to the route handler', async ({ page, server }) =>expect(byUrl.get('/ws-array')!.protocols()).toEqual(['chat.v2', 'chat.v1']);});-test('should expose protocols on server-side route', async ({ page, server }) => {+test('WS-040 should expose protocols on server-side route', async ({ page, server }) => {const { promise, resolve } = withResolvers<{ page: WebSocketRoute, server: WebSocketRoute }>();await page.routeWebSocket(/.*/, ws => {const serverRoute = ws.connectToServer();diff --git a/tests/library/screencast-actions.spec.ts b/tests/library/screencast-actions.spec.tsindex 64b6c48686..10dc634816 100644--- a/tests/library/screencast-actions.spec.ts+++ b/tests/library/screencast-actions.spec.ts@@ -23,7 +23,7 @@ const style = {highlight: 'outline: 2px solid #333',};-test('should show annotation on click', async ({ browser, server }) => {+test('SC-016 should show annotation on click', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.PREFIX + '/input/button.html');@@ -40,7 +40,7 @@ test('should show annotation on click', async ({ browser, server }) => {await context.close();});-test('should render annotation styles', async ({ browser, server }) => {+test('SC-017 should render annotation styles', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.PREFIX + '/input/button.html');@@ -93,7 +93,7 @@ for (const { position, expected } of [{ position: 'bottom' as const, expected: { bottom: '6px', left: '50%' } },{ position: 'bottom-right' as const, expected: { bottom: '6px', right: '6px' } },] as const) {- test(`should position title at ${position}`, async ({ browser, server }) => {+ test(`SC-018 should position title at ${position}`, async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.PREFIX + '/input/button.html');@@ -118,7 +118,7 @@ for (const { position, expected } of [});}-test('should clear annotation after duration', async ({ browser, server }) => {+test('SC-019 should clear annotation after duration', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.PREFIX + '/input/button.html');@@ -133,7 +133,7 @@ test('should clear annotation after duration', async ({ browser, server }) => {await context.close();});-test('should annotate fill action', async ({ browser, server }) => {+test('SC-020 should annotate fill action', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.PREFIX + '/input/textarea.html');@@ -148,7 +148,7 @@ test('should annotate fill action', async ({ browser, server }) => {await context.close();});-test('should stop showing actions after dispose', async ({ browser, server }) => {+test('SC-021 should stop showing actions after dispose', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.PREFIX + '/input/button.html');@@ -165,7 +165,7 @@ test('should stop showing actions after dispose', async ({ browser, server }) =>await context.close();});-test('should stop showing actions after hideActions', async ({ browser, server }) => {+test('SC-022 should stop showing actions after hideActions', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.PREFIX + '/input/button.html');@@ -182,7 +182,7 @@ test('should stop showing actions after hideActions', async ({ browser, server }await context.close();});-test('should render an action cursor that animates to the click point', async ({ browser, server }) => {+test('SC-023 should render an action cursor that animates to the click point', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.PREFIX + '/input/button.html');@@ -203,7 +203,7 @@ test('should render an action cursor that animates to the click point', async ({await context.close();});-test('cursor moves between two pointer actions', async ({ browser, server }) => {+test('SC-024 cursor moves between two pointer actions', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.setContent(`@@ -226,7 +226,7 @@ test('cursor moves between two pointer actions', async ({ browser, server }) =>await context.close();});-test('cursor: "none" suppresses the action cursor decoration', async ({ browser, server }) => {+test('SC-025 cursor: "none" suppresses the action cursor decoration', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.PREFIX + '/input/button.html');@@ -241,7 +241,7 @@ test('cursor: "none" suppresses the action cursor decoration', async ({ browser,await context.close();});-test('cursor stays at the last action point until hideActions', async ({ browser, server }) => {+test('SC-026 cursor stays at the last action point until hideActions', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.PREFIX + '/input/button.html');@@ -263,7 +263,7 @@ test('cursor stays at the last action point until hideActions', async ({ browserawait context.close();});-test('should survive navigation', async ({ browser, server }) => {+test('SC-027 should survive navigation', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.PREFIX + '/input/button.html');diff --git a/tests/library/screencast-overlay.spec.ts b/tests/library/screencast-overlay.spec.tsindex aaa41bd6d7..a7ae04b19b 100644--- a/tests/library/screencast-overlay.spec.ts+++ b/tests/library/screencast-overlay.spec.ts@@ -25,7 +25,7 @@ function pixel(screenshot: Buffer, x: number, y: number) {return [png.data[offset], png.data[offset + 1], png.data[offset + 2]];}-test('should add and remove overlay', async ({ browser, server }) => {+test('SC-028 should add and remove overlay', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -41,7 +41,7 @@ test('should add and remove overlay', async ({ browser, server }) => {await context.close();});-test('should add multiple overlays', async ({ browser, server }) => {+test('SC-029 should add multiple overlays', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -62,7 +62,7 @@ test('should add multiple overlays', async ({ browser, server }) => {await context.close();});-test('should hide and show overlays', async ({ browser, server }) => {+test('SC-030 should hide and show overlays', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -80,7 +80,7 @@ test('should hide and show overlays', async ({ browser, server }) => {await context.close();});-test('should survive navigation', async ({ browser, server }) => {+test('SC-031 should survive navigation', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -97,7 +97,7 @@ test('should survive navigation', async ({ browser, server }) => {await context.close();});-test('should remove overlay and not restore after navigation', async ({ browser, server }) => {+test('SC-032 should remove overlay and not restore after navigation', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -114,7 +114,7 @@ test('should remove overlay and not restore after navigation', async ({ browser,await context.close();});-test('should sanitize scripts from overlay html', async ({ browser, server }) => {+test('SC-033 should sanitize scripts from overlay html', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -126,7 +126,7 @@ test('should sanitize scripts from overlay html', async ({ browser, server }) =>await context.close();});-test('should strip event handlers from overlay html', async ({ browser, server }) => {+test('SC-034 should strip event handlers from overlay html', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -139,7 +139,7 @@ test('should strip event handlers from overlay html', async ({ browser, server }await context.close();});-test('should auto-remove overlay after timeout', async ({ browser, server }) => {+test('SC-035 should auto-remove overlay after timeout', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -150,7 +150,7 @@ test('should auto-remove overlay after timeout', async ({ browser, server }) =>await context.close();});-test('should allow styles in overlay html', async ({ browser, server }) => {+test('SC-036 should allow styles in overlay html', async ({ browser, server }) => {const context = await browser.newContext();const page = await context.newPage();await page.goto(server.EMPTY_PAGE);@@ -176,7 +176,7 @@ const topLayerPages = {const redOverlay = '<div style="position: absolute; top: 50px; left: 50px; width: 200px; height: 100px; background: rgb(255, 0, 0);"></div>';for (const [kind, content] of Object.entries(topLayerPages)) {- test(`should show overlay above ${kind} opened before it`, { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42629' } }, async ({ browser }) => {+ test(`SC-037 should show overlay above ${kind} opened before it`, { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42629' } }, async ({ browser }) => {const context = await browser.newContext();const page = await context.newPage();await page.setContent(content);@@ -192,7 +192,7 @@ for (const [kind, content] of Object.entries(topLayerPages)) {await context.close();});- test(`should keep overlay above ${kind} opened after it`, { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42629' } }, async ({ browser }) => {+ test(`SC-038 should keep overlay above ${kind} opened after it`, { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42629' } }, async ({ browser }) => {const context = await browser.newContext();const page = await context.newPage();await page.setContent(content);diff --git a/tests/library/screencast.spec.ts b/tests/library/screencast.spec.tsindex bcb981fc06..40f8dadac4 100644--- a/tests/library/screencast.spec.ts+++ b/tests/library/screencast.spec.ts@@ -25,7 +25,7 @@ test.skip(({ mode }) => mode !== 'default', 'screencast is not available in remotest.skip(({ video }) => video === 'on', 'conflicts with built-in video recording');test.slow();-test('screencast.start delivers frames via onFrame callback', async ({ browser, server, trace, browserName, isMac, headless }) => {+test('SC-001 screencast.start delivers frames via onFrame callback', async ({ browser, server, trace, browserName, isMac, headless }) => {test.skip(trace === 'on', 'trace=on has different screencast image configuration');test.fixme(browserName === 'firefox' && isMac && !headless, 'wrong frame size in headed Firefox on Mac');@@ -54,7 +54,7 @@ test('screencast.start delivers frames via onFrame callback', async ({ browser,await context.close();});-test('applies backpressure while async onFrame callback is pending', async ({ browser, server, trace }) => {+test('SC-002 applies backpressure while async onFrame callback is pending', async ({ browser, server, trace }) => {test.skip(trace === 'on', 'trace recording acknowledges screencast frames independently');const context = await browser.newContext({ viewport: { width: 500, height: 400 } });@@ -102,7 +102,7 @@ test('applies backpressure while async onFrame callback is pending', async ({ brawait context.close();});-test('onFrame receives viewport size', async ({ browser, server, trace, browserName, isMac, headless }) => {+test('SC-003 onFrame receives viewport size', async ({ browser, server, trace, browserName, isMac, headless }) => {test.skip(trace === 'on', 'trace=on has different screencast image configuration');test.fixme(browserName === 'firefox' && isMac && !headless, 'wrong frame size in headed Firefox on Mac');@@ -128,7 +128,7 @@ test('onFrame receives viewport size', async ({ browser, server, trace, browserNawait context.close();});-test('start throws if screencast is already started', async ({ browser }) => {+test('SC-004 start throws if screencast is already started', async ({ browser }) => {const context = await browser.newContext({ viewport: { width: 500, height: 400 } });const page = await context.newPage();@@ -139,7 +139,7 @@ test('start throws if screencast is already started', async ({ browser }) => {await context.close();});-test('start allows restart with different options after stop', async ({ browser, trace }) => {+test('SC-005 start allows restart with different options after stop', async ({ browser, trace }) => {test.skip(trace === 'on', 'trace=on enables screencast with different options');const context = await browser.newContext({ viewport: { width: 500, height: 400 } });@@ -153,7 +153,7 @@ test('start allows restart with different options after stop', async ({ browser,await context.close();});-test('start returns a disposable that stops screencast', async ({ browser, server, trace }) => {+test('SC-006 start returns a disposable that stops screencast', async ({ browser, server, trace }) => {test.skip(trace === 'on', 'trace=on has different screencast image configuration');const context = await browser.newContext({ viewport: { width: 500, height: 400 } });const page = await context.newPage();@@ -176,7 +176,7 @@ test('start returns a disposable that stops screencast', async ({ browser, serveawait context.close();});-test('start/stop twice without path creates two files in artifactsDir', async ({ browserType }, testInfo) => {+test('SC-007 start/stop twice without path creates two files in artifactsDir', async ({ browserType }, testInfo) => {test.slow();const artifactsDir = testInfo.outputPath('artifacts');const browser = await browserType.launch({ artifactsDir });@@ -201,7 +201,7 @@ test('start/stop twice without path creates two files in artifactsDir', async ({await browser.close();});-test('start should work when recordVideo is set', async ({ browser }, testInfo) => {+test('SC-008 start should work when recordVideo is set', async ({ browser }, testInfo) => {test.slow();const autoDir = testInfo.outputPath('auto');@@ -225,7 +225,7 @@ test('start should work when recordVideo is set', async ({ browser }, testInfo)expect(videoFiles2).toHaveLength(1);});-test('start should record video with the requested fps', async ({ browser }, testInfo) => {+test('SC-009 start should record video with the requested fps', async ({ browser }, testInfo) => {const context = await browser.newContext();const page = await context.newPage();const videoPath = testInfo.outputPath('video.webm');@@ -236,19 +236,19 @@ test('start should record video with the requested fps', async ({ browser }, tesawait context.close();});-test('start should throw on invalid fps', async ({ page }, testInfo) => {+test('SC-010 start should throw on invalid fps', async ({ page }, testInfo) => {const error = await page.screencast.start({ path: testInfo.outputPath('video.webm'), fps: -1 }).catch(e => e);expect(error.message).toContain('"fps" must be a positive number, got -1');});-test('start should fail when another recording is in progress', async ({ page, trace }, testInfo) => {+test('SC-011 start should fail when another recording is in progress', async ({ page, trace }, testInfo) => {test.skip(trace === 'on', 'trace=on has different screencast image configuration');await page.screencast.start({ path: testInfo.outputPath('video.webm') });const error = await page.screencast.start({ path: testInfo.outputPath('video2.webm') }).catch(e => e);expect(error.message).toContain('Screencast is already started');});-test('stop should not fail when no recording is in progress', async ({ browser }) => {+test('SC-012 stop should not fail when no recording is in progress', async ({ browser }) => {const context = await browser.newContext();const page = await context.newPage();// stop() is a no-op when screencast is not started.@@ -256,7 +256,7 @@ test('stop should not fail when no recording is in progress', async ({ browser }await context.close();});-test('start should finish when page is closed', async ({ browser }, testInfo) => {+test('SC-013 start should finish when page is closed', async ({ browser }, testInfo) => {const context = await browser.newContext();const page = await context.newPage();const videoPath = testInfo.outputPath('video.webm');@@ -269,7 +269,7 @@ test('start should finish when page is closed', async ({ browser }, testInfo) =>await context.close();});-test('empty video', async ({ browser }, testInfo) => {+test('SC-014 empty video', async ({ browser }, testInfo) => {const size = { width: 800, height: 800 };const context = await browser.newContext({ viewport: size });const page = await context.newPage();@@ -280,7 +280,7 @@ test('empty video', async ({ browser }, testInfo) => {expectFrames(videoPath, size, isAlmostWhite);});-test('start dispose stops recording', async ({ browser }, testInfo) => {+test('SC-015 start dispose stops recording', async ({ browser }, testInfo) => {test.slow();const size = { width: 800, height: 800 };const context = await browser.newContext({ viewport: size });diff --git a/tests/library/screenshot.spec.ts b/tests/library/screenshot.spec.tsindex c2784f32a0..91487dc9f7 100644--- a/tests/library/screenshot.spec.ts+++ b/tests/library/screenshot.spec.ts@@ -22,7 +22,7 @@ import { verifyViewport } from '../config/utils';browserTest.describe('page screenshot', () => {browserTest.skip(({ browserName, headless }) => browserName === 'firefox' && !headless, 'Firefox headed produces a different image.');- browserTest('should run in parallel in multiple pages', async ({ server, contextFactory }) => {+ browserTest('SS-068 should run in parallel in multiple pages', async ({ server, contextFactory }) => {const context = await contextFactory();const N = 5;const pages = await Promise.all(Array(N).fill(0).map(async () => {@@ -39,7 +39,7 @@ browserTest.describe('page screenshot', () => {await Promise.all(pages.map(page => page.close()));});- browserTest('should work with a mobile viewport', async ({ browser, server, browserName }) => {+ browserTest('SS-069 should work with a mobile viewport', async ({ browser, server, browserName }) => {browserTest.skip(browserName === 'firefox');const context = await browser.newContext({ viewport: { width: 320, height: 480 }, isMobile: true });@@ -50,7 +50,7 @@ browserTest.describe('page screenshot', () => {await context.close();});- browserTest('should work with a mobile viewport and clip', async ({ browser, server, browserName }) => {+ browserTest('SS-070 should work with a mobile viewport and clip', async ({ browser, server, browserName }) => {browserTest.skip(browserName === 'firefox');const context = await browser.newContext({ viewport: { width: 320, height: 480 }, isMobile: true });@@ -61,7 +61,7 @@ browserTest.describe('page screenshot', () => {await context.close();});- browserTest('should work with a mobile viewport and fullPage', async ({ browser, server, browserName }) => {+ browserTest('SS-071 should work with a mobile viewport and fullPage', async ({ browser, server, browserName }) => {browserTest.skip(browserName === 'firefox');const context = await browser.newContext({ viewport: { width: 320, height: 480 }, isMobile: true });@@ -72,7 +72,7 @@ browserTest.describe('page screenshot', () => {await context.close();});- browserTest('should work with device scale factor', async ({ browser, server, isMac, browserName }) => {+ browserTest('SS-072 should work with device scale factor', async ({ browser, server, isMac, browserName }) => {const context = await browser.newContext({ viewport: { width: 320, height: 480 }, deviceScaleFactor: 2 });const page = await context.newPage();await page.goto(server.PREFIX + '/grid.html');@@ -81,7 +81,7 @@ browserTest.describe('page screenshot', () => {await context.close();});- browserTest('should work with device scale factor and clip', async ({ browser, server }) => {+ browserTest('SS-073 should work with device scale factor and clip', async ({ browser, server }) => {const context = await browser.newContext({ viewport: { width: 500, height: 500 }, deviceScaleFactor: 3 });const page = await context.newPage();await page.goto(server.PREFIX + '/grid.html');@@ -90,7 +90,7 @@ browserTest.describe('page screenshot', () => {await context.close();});- browserTest('should work with device scale factor and scale:css', async ({ browser, server }) => {+ browserTest('SS-074 should work with device scale factor and scale:css', async ({ browser, server }) => {const context = await browser.newContext({ viewport: { width: 320, height: 480 }, deviceScaleFactor: 2 });const page = await context.newPage();await page.goto(server.PREFIX + '/grid.html');@@ -99,7 +99,7 @@ browserTest.describe('page screenshot', () => {await context.close();});- browserTest('should produce screenshot of correct size with scale:css and null viewport', async ({ browser, server }) => {+ browserTest('SS-075 should produce screenshot of correct size with scale:css and null viewport', async ({ browser, server }) => {const context = await browser.newContext({ viewport: null });const page = await context.newPage();await page.goto(server.PREFIX + '/grid.html');@@ -111,7 +111,7 @@ browserTest.describe('page screenshot', () => {await context.close();});- browserTest('should work with device scale factor, clip and scale:css', async ({ browser, server }) => {+ browserTest('SS-076 should work with device scale factor, clip and scale:css', async ({ browser, server }) => {const context = await browser.newContext({ viewport: { width: 500, height: 500 }, deviceScaleFactor: 3 });const page = await context.newPage();await page.goto(server.PREFIX + '/grid.html');@@ -120,7 +120,7 @@ browserTest.describe('page screenshot', () => {await context.close();});- browserTest('should throw if screenshot size is too large with device scale factor', async ({ browser, browserName, isMac, isBidi }) => {+ browserTest('SS-077 should throw if screenshot size is too large with device scale factor', async ({ browser, browserName, isMac, isBidi }) => {browserTest.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16727' });const context = await browser.newContext({ viewport: { width: 500, height: 500 }, deviceScaleFactor: 2 });const page = await context.newPage();@@ -141,7 +141,7 @@ browserTest.describe('page screenshot', () => {await context.close();});- browserTest('should work with large size', {+ browserTest('SS-078 should work with large size', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/4038' },}, async ({ browserName, headless, platform, contextFactory, channel }) => {browserTest.fixme(browserName === 'chromium' && !headless && platform === 'linux', 'Chromium has gpu problems on linux with large screenshots');@@ -178,7 +178,7 @@ browserTest.describe('page screenshot', () => {expect(pixel(0, 8339).b).toBeGreaterThan(128);});- browserTest('should handle vh units ', async ({ contextFactory }) => {+ browserTest('SS-079 should handle vh units ', async ({ contextFactory }) => {const context = await contextFactory();const page = await context.newPage();@@ -210,7 +210,7 @@ browserTest.describe('page screenshot', () => {expect(pixel(0, 999).b).toBeGreaterThan(128);});- browserTest('should not hang when event loop is blocked', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36702' } }, async ({ page, trace, mode }) => {+ browserTest('SS-080 should not hang when event loop is blocked', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36702' } }, async ({ page, trace, mode }) => {browserTest.skip(trace === 'on', 'taking a snapshot hangs when the page is blocked');browserTest.skip(mode === 'driver', 'test hooks are not available in driver mode');browserTest.setTimeout(5000);@@ -228,7 +228,7 @@ browserTest.describe('page screenshot', () => {browserTest.describe('element screenshot', () => {browserTest.skip(({ browserName, headless }) => browserName === 'firefox' && !headless);- browserTest('element screenshot should work with a mobile viewport', async ({ browser, server, browserName, isBidi }) => {+ browserTest('SS-081 element screenshot should work with a mobile viewport', async ({ browser, server, browserName, isBidi }) => {browserTest.skip(browserName === 'firefox' && !isBidi);const context = await browser.newContext({ viewport: { width: 320, height: 480 }, isMobile: true });@@ -241,7 +241,7 @@ browserTest.describe('element screenshot', () => {await context.close();});- browserTest('element screenshot should work with device scale factor', async ({ browser, server, browserName, isBidi }) => {+ browserTest('SS-082 element screenshot should work with device scale factor', async ({ browser, server, browserName, isBidi }) => {browserTest.skip(browserName === 'firefox' && !isBidi);const context = await browser.newContext({ viewport: { width: 320, height: 480 }, deviceScaleFactor: 2 });@@ -254,7 +254,7 @@ browserTest.describe('element screenshot', () => {await context.close();});- browserTest('should take screenshots when default viewport is null', async ({ server, browser }) => {+ browserTest('SS-083 should take screenshots when default viewport is null', async ({ server, browser }) => {const context = await browser.newContext({ viewport: null });const page = await context.newPage();await page.setContent(`<div style='height: 10000px; background: red'></div>`);@@ -273,7 +273,7 @@ browserTest.describe('element screenshot', () => {await context.close();});- browserTest('should take fullPage screenshots when default viewport is null', async ({ server, browser }) => {+ browserTest('SS-084 should take fullPage screenshots when default viewport is null', async ({ server, browser }) => {const context = await browser.newContext({ viewport: null });const page = await context.newPage();await page.goto(server.PREFIX + '/grid.html');@@ -289,7 +289,7 @@ browserTest.describe('element screenshot', () => {await context.close();});- browserTest('should restore default viewport after fullPage screenshot', async ({ browser }) => {+ browserTest('SS-085 should restore default viewport after fullPage screenshot', async ({ browser }) => {const context = await browser.newContext({ viewport: { width: 456, height: 789 } });const page = await context.newPage();await verifyViewport(page, 456, 789);@@ -299,7 +299,7 @@ browserTest.describe('element screenshot', () => {await context.close();});- browserTest('should restore viewport after page screenshot and exception', async ({ browser, server, mode }) => {+ browserTest('SS-086 should restore viewport after page screenshot and exception', async ({ browser, server, mode }) => {browserTest.skip(mode !== 'default');const context = await browser.newContext({ viewport: { width: 350, height: 360 } });@@ -312,7 +312,7 @@ browserTest.describe('element screenshot', () => {await context.close();});- browserTest('should restore viewport after page screenshot and timeout', async ({ browser, server, mode }) => {+ browserTest('SS-087 should restore viewport after page screenshot and timeout', async ({ browser, server, mode }) => {browserTest.skip(mode !== 'default');const context = await browser.newContext({ viewport: { width: 350, height: 360 } });@@ -328,7 +328,7 @@ browserTest.describe('element screenshot', () => {await context.close();});- browserTest('should take element screenshot when default viewport is null and restore back', async ({ server, browser }) => {+ browserTest('SS-088 should take element screenshot when default viewport is null and restore back', async ({ server, browser }) => {const context = await browser.newContext({ viewport: null });const page = await context.newPage();await page.setContent(`@@ -358,7 +358,7 @@ browserTest.describe('element screenshot', () => {await context.close();});- browserTest('should restore viewport after element screenshot and exception', async ({ browser, mode }) => {+ browserTest('SS-089 should restore viewport after element screenshot and exception', async ({ browser, mode }) => {browserTest.skip(mode !== 'default');const context = await browser.newContext({ viewport: { width: 350, height: 360 } });@@ -372,7 +372,7 @@ browserTest.describe('element screenshot', () => {await context.close();});- browserTest('element screenshots should handle vh units ', async ({ contextFactory }) => {+ browserTest('SS-090 element screenshots should handle vh units ', async ({ contextFactory }) => {const context = await contextFactory();const page = await context.newPage();@@ -401,7 +401,7 @@ browserTest.describe('element screenshot', () => {expect(pixel(0, 999).b).toBeGreaterThan(128);});- browserTest('should work if the main resource hangs', async ({ browser, browserName, mode, server }) => {+ browserTest('SS-091 should work if the main resource hangs', async ({ browser, browserName, mode, server }) => {browserTest.skip(mode !== 'default');browserTest.skip(browserName === 'chromium', 'https://github.com/microsoft/playwright/issues/9757');@@ -421,7 +421,7 @@ browserTest.describe('element screenshot', () => {}});- browserTest('should capture full element when larger than viewport with device scale factor', async ({ browser }) => {+ browserTest('SS-092 should capture full element when larger than viewport with device scale factor', async ({ browser }) => {const context = await browser.newContext({ viewport: { width: 501, height: 501 }, deviceScaleFactor: 2.5 });const page = await context.newPage();await page.setContent(`@@ -446,7 +446,7 @@ browserTest.describe('element screenshot', () => {await context.close();});- browserTest('should capture full element when larger than viewport with device scale factor and scale:css', async ({ browser }) => {+ browserTest('SS-093 should capture full element when larger than viewport with device scale factor and scale:css', async ({ browser }) => {const context = await browser.newContext({ viewport: { width: 501, height: 501 }, deviceScaleFactor: 2.5 });const page = await context.newPage();await page.setContent(`@@ -471,7 +471,7 @@ browserTest.describe('element screenshot', () => {await context.close();});- browserTest('page screenshot should capture css transform with device pixels', async function({ browser, browserName }) {+ browserTest('SS-094 page screenshot should capture css transform with device pixels', async function({ browser, browserName }) {browserTest.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/26447' });browserTest.fixme(browserName === 'webkit');const context = await browser.newContext({diff --git a/tests/library/screenshot.spec.ts-snapshots/element-screenshot-page-screenshot-should-capture-css-transform-with-device-pixels-1-chromium.png b/tests/library/screenshot.spec.ts-snapshots/element-screenshot-SS-094-page-screenshot-should-capture-css-transform-with-device-pixels-1-chromium.pngsimilarity index 100%rename from tests/library/screenshot.spec.ts-snapshots/element-screenshot-page-screenshot-should-capture-css-transform-with-device-pixels-1-chromium.pngrename to tests/library/screenshot.spec.ts-snapshots/element-screenshot-SS-094-page-screenshot-should-capture-css-transform-with-device-pixels-1-chromium.pngdiff --git a/tests/library/screenshot.spec.ts-snapshots/element-screenshot-page-screenshot-should-capture-css-transform-with-device-pixels-1-firefox.png b/tests/library/screenshot.spec.ts-snapshots/element-screenshot-SS-094-page-screenshot-should-capture-css-transform-with-device-pixels-1-firefox.pngsimilarity index 100%rename from tests/library/screenshot.spec.ts-snapshots/element-screenshot-page-screenshot-should-capture-css-transform-with-device-pixels-1-firefox.pngrename to tests/library/screenshot.spec.ts-snapshots/element-screenshot-SS-094-page-screenshot-should-capture-css-transform-with-device-pixels-1-firefox.pngdiff --git a/tests/library/screenshot.spec.ts-snapshots/element-screenshot-page-screenshot-should-capture-css-transform-with-device-pixels-1-moz-firefox-nightly.png b/tests/library/screenshot.spec.ts-snapshots/element-screenshot-SS-094-page-screenshot-should-capture-css-transform-with-device-pixels-1-moz-firefox-nightly.pngsimilarity index 100%rename from tests/library/screenshot.spec.ts-snapshots/element-screenshot-page-screenshot-should-capture-css-transform-with-device-pixels-1-moz-firefox-nightly.pngrename to tests/library/screenshot.spec.ts-snapshots/element-screenshot-SS-094-page-screenshot-should-capture-css-transform-with-device-pixels-1-moz-firefox-nightly.pngdiff --git a/tests/library/selector-generator.spec.ts b/tests/library/selector-generator.spec.tsindex 78bfd559bb..5125273836 100644--- a/tests/library/selector-generator.spec.ts+++ b/tests/library/selector-generator.spec.ts@@ -43,17 +43,17 @@ it.describe('selector generator', () => {await (context as any)._showRecorder({ language: 'javascript' });});- it('should prefer button over inner span', async ({ page }) => {+ it('GN-028 should prefer button over inner span', async ({ page }) => {await page.setContent(`<button><span>text</span></button>`);expect(await generate(page, 'span', 'button')).toBe('internal:role=button[name="text"i]');});- it('should prefer role=button over inner span', async ({ page }) => {+ it('GN-029 should prefer role=button over inner span', async ({ page }) => {await page.setContent(`<div role=button><span>text</span></div>`);expect(await generate(page, 'span', 'div')).toBe('internal:role=button[name="text"i]');});- it('should not prefer zero-sized button over inner span', async ({ page }) => {+ it('GN-030 should not prefer zero-sized button over inner span', async ({ page }) => {await page.setContent(`<button style="width:0;height:0;padding:0;border:0;overflow:visible;"><span style="width:100px;height:100px;">text</span>@@ -62,22 +62,22 @@ it.describe('selector generator', () => {expect(await generate(page, 'span')).toBe('internal:text="text"i');});- it('should generate text and normalize whitespace', async ({ page }) => {+ it('GN-031 should generate text and normalize whitespace', async ({ page }) => {await page.setContent(`<div>Text some\n\n\n more \t text </div>`);expect(await generate(page, 'div')).toBe('internal:text="Text some more text"i');});- it('should not escape spaces inside named attr selectors', async ({ page }) => {+ it('GN-032 should not escape spaces inside named attr selectors', async ({ page }) => {await page.setContent(`<input placeholder="Foo b ar"/>`);expect(await generate(page, 'input')).toBe('internal:role=textbox[name=\"Foo b ar\"i]');});- it('should generate text for <input type=button>', async ({ page }) => {+ it('GN-033 should generate text for <input type=button>', async ({ page }) => {await page.setContent(`<input type=button value="Click me">`);expect(await generate(page, 'input')).toBe('internal:role=button[name=\"Click me\"i]');});- it('should trim text', async ({ page }) => {+ it('GN-034 should trim text', async ({ page }) => {await page.setContent(`<div>Text0123456789Text0123456789Text0123456789Text0123456789Text0123456789Text0123456789Text0123456789Text0123456789Text0123456789Text0123456789</div><div>Text0123456789Text0123456789Text0123456789Text0123456789Text0123456789!Text0123456789Text0123456789Text0123456789Text0123456789Text0123456789</div>@@ -85,12 +85,12 @@ it.describe('selector generator', () => {expect(await generate(page, 'div')).toBe('internal:text="Text0123456789Text0123456789Text0123456789Text0123456789Text0123456789Text012345"i');});- it('should try to improve role name', async ({ page }) => {+ it('GN-035 should try to improve role name', async ({ page }) => {await page.setContent(`<div role=button>Issues 23</div>`);expect(await generate(page, 'div')).toBe('internal:role=button[name="Issues"i]');});- it('should use description when name is not unique', async ({ page }) => {+ it('GN-036 should use description when name is not unique', async ({ page }) => {await page.setContent(`<button aria-description="Upload report">Submit</button><button aria-description="Upload photo">Submit</button>@@ -99,7 +99,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'button[aria-description="Upload photo"]')).toBe('internal:role=button[name="Submit"i][description="Upload photo"i]');});- it('should not use description when name is unique', async ({ page }) => {+ it('GN-037 should not use description when name is unique', async ({ page }) => {await page.setContent(`<button aria-description="Some description">Submit</button><button aria-description="Other description">Cancel</button>@@ -107,7 +107,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'button[aria-description="Some description"]')).toBe('internal:role=button[name="Submit"i]');});- it('should use description from aria-describedby', async ({ page }) => {+ it('GN-038 should use description from aria-describedby', async ({ page }) => {await page.setContent(`<span id="desc1">Save form data</span><span id="desc2">Save as draft</span>@@ -118,7 +118,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'button[aria-describedby="desc2"]')).toBe('internal:role=button[name="Submit"i][description="Save as draft"i]');});- it('should fall back to nth when name and description are both not unique', async ({ page }) => {+ it('GN-039 should fall back to nth when name and description are both not unique', async ({ page }) => {await page.setContent(`<button aria-description="Same desc">Submit</button><button aria-description="Same desc">Submit</button>@@ -126,7 +126,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'button:first-of-type')).toBe('internal:role=button[name="Submit"i] >> nth=0');});- it('should use consistent exactness for name and description', {+ it('GN-040 should use consistent exactness for name and description', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41032' }}, async ({ page }) => {// The public getByRole API has a single `exact` flag that covers both@@ -148,7 +148,7 @@ it.describe('selector generator', () => {expect(selector).not.toMatch(/\[name="[^"]*"s\]\[description="[^"]*"i\]/);});- it('should use description when role has no name', async ({ page }) => {+ it('GN-041 should use description when role has no name', async ({ page }) => {await page.setContent(`<div role="alert" aria-description="Error in field A"></div><div role="alert" aria-description="Error in field B"></div>@@ -157,42 +157,42 @@ it.describe('selector generator', () => {expect(await generate(page, 'div[aria-description="Error in field B"]')).toBe('internal:role=alert[description="Error in field B"s]');});- it('should try to improve text', async ({ page }) => {+ it('GN-042 should try to improve text', async ({ page }) => {await page.setContent(`<div>23 Issues</div>`);expect(await generate(page, 'div')).toBe('internal:text="Issues"i');});- it('should try to improve text by shortening', async ({ page }) => {+ it('GN-043 should try to improve text by shortening', async ({ page }) => {await page.setContent(`<div>Longest verbose description of the item</div>`);expect(await generate(page, 'div')).toBe('internal:text="Longest verbose description"i');});- it('should try to improve label text by shortening', async ({ page }) => {+ it('GN-044 should try to improve label text by shortening', async ({ page }) => {await page.setContent(`<label>Longest verbose description of the item<input></label>`);expect(await generate(page, 'input')).toBe('internal:role=textbox[name=\"Longest verbose description\"i]');});- it('should not improve guid text', async ({ page }) => {+ it('GN-045 should not improve guid text', async ({ page }) => {await page.setContent(`<div>91b1b23</div>`);expect(await generate(page, 'div')).toBe('internal:text="91b1b23"i');});- it('should not escape text with >>', async ({ page }) => {+ it('GN-046 should not escape text with >>', async ({ page }) => {await page.setContent(`<div>text>>text</div>`);expect(await generate(page, 'div')).toBe('internal:text="text>>text"i');});- it('should escape text with quote', async ({ page }) => {+ it('GN-047 should escape text with quote', async ({ page }) => {await page.setContent(`<div>text"text</div>`);expect(await generate(page, 'div')).toBe('internal:text="text\\\"text"i');});- it('should escape text with slash', async ({ page }) => {+ it('GN-048 should escape text with slash', async ({ page }) => {await page.setContent(`<div>/text</div>`);expect(await generate(page, 'div')).toBe('internal:text="\/text"i');});- it('should not use text for select', async ({ page }) => {+ it('GN-049 should not use text for select', async ({ page }) => {await page.setContent(`<select><option>foo</option></select><select mark=1><option>bar</option></select>@@ -200,17 +200,17 @@ it.describe('selector generator', () => {expect(await generate(page, '[mark="1"]')).toBe('internal:role=combobox >> nth=1');});- it('should use ordinal for identical nodes', async ({ page }) => {+ it('GN-050 should use ordinal for identical nodes', async ({ page }) => {await page.setContent(`<div>Text</div><div>Text</div><div mark=1>Text</div><div>Text</div>`);expect(await generate(page, 'div[mark="1"]')).toBe(`internal:text="Text"i >> nth=2`);});- it('should prefer data-testid', async ({ page }) => {+ it('GN-051 should prefer data-testid', async ({ page }) => {await page.setContent(`<div>Text</div><div>Text</div><div data-testid=a>Text</div><div>Text</div>`);expect(await generate(page, '[data-testid="a"]')).toBe('internal:testid=[data-testid=\"a\"s]');});- it('should use data-testid in strict errors', async ({ contextFactory, page, playwright }) => {+ it('GN-052 should use data-testid in strict errors', async ({ contextFactory, page, playwright }) => {const content = `<div><div></div>@@ -247,7 +247,7 @@ it.describe('selector generator', () => {await checkPage(page2);});- it('should handle first non-unique data-testid', async ({ page }) => {+ it('GN-053 should handle first non-unique data-testid', async ({ page }) => {await page.setContent(`<div data-testid=a mark=1>Text@@ -258,7 +258,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'div[mark="1"]')).toBe('internal:testid=[data-testid=\"a\"s] >> nth=0');});- it('should handle second non-unique data-testid', async ({ page }) => {+ it('GN-054 should handle second non-unique data-testid', async ({ page }) => {await page.setContent(`<div data-testid=a>Text@@ -269,7 +269,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'div[mark="1"]')).toBe(`internal:testid=[data-testid=\"a\"s] >> nth=1`);});- it('should use readable id', async ({ page }) => {+ it('GN-055 should use readable id', async ({ page }) => {await page.setContent(`<div></div><div id=first-item mark=1></div>@@ -277,7 +277,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'div[mark="1"]')).toBe('#first-item');});- it('should not use generated id', async ({ page }) => {+ it('GN-056 should not use generated id', async ({ page }) => {await page.setContent(`<div></div><div id=aAbBcCdDeE mark=1></div>@@ -285,7 +285,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'div[mark="1"]')).toBe(`div >> nth=1`);});- it('should use internal:has-text', async ({ page }) => {+ it('GN-057 should use internal:has-text', async ({ page }) => {await page.setContent(`<div>Hello world</div><a>Hello <span>world</span></a>@@ -294,7 +294,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'a:has-text("Hello")')).toBe(`a >> internal:has-text="Hello world"i`);});- it('should use internal:has-text with regexp', async ({ page }) => {+ it('GN-058 should use internal:has-text with regexp', async ({ page }) => {await page.setContent(`<span>Hello world</span><div><div>Hello <span>world</span></div>extra</div>@@ -303,7 +303,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'div div')).toBe(`div >> internal:has-text=/^Hello world$/`);});- it('should use internal:has-text with regexp with a quote', async ({ page }) => {+ it('GN-059 should use internal:has-text with regexp with a quote', async ({ page }) => {await page.setContent(`<span>Hello'world</span><div><div>Hello'<span>world</span></div>extra</div>@@ -312,7 +312,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'div div')).toBe(`div >> internal:has-text=/^Hello\\'world$/`);});- it('should chain text after parent', async ({ page }) => {+ it('GN-060 should chain text after parent', async ({ page }) => {await page.setContent(`<div>Hello <span>world</span></div><b>Hello <span mark=1>world</span></b>@@ -320,7 +320,7 @@ it.describe('selector generator', () => {expect(await generate(page, '[mark="1"]')).toBe(`b >> internal:text="world"i`);});- it('should use parent text', async ({ page }) => {+ it('GN-061 should use parent text', async ({ page }) => {await page.setContent(`<div>Hello <span>world</span></div><div>Goodbye <span mark=1>world</span></div>@@ -328,7 +328,7 @@ it.describe('selector generator', () => {expect(await generate(page, '[mark="1"]')).toBe(`div >> internal:has-text="Goodbye world"i >> span`);});- it('should separate selectors by >>', async ({ page }) => {+ it('GN-062 should separate selectors by >>', async ({ page }) => {await page.setContent(`<div><div>Text</div>@@ -340,7 +340,7 @@ it.describe('selector generator', () => {expect(await generate(page, '#id > div')).toBe('#id >> internal:text="Text"i');});- it('should trim long text', async ({ page }) => {+ it('GN-063 should trim long text', async ({ page }) => {await page.setContent(`<div><div>Text that goes on and on and on and on and on and on and on and on and on and on and on and on and on and on and on</div>@@ -353,7 +353,7 @@ it.describe('selector generator', () => {expect(await generate(page, '#id > div')).toBe(`#id >> internal:text="Text that goes on and on and on and on and on and on and on and on and on and"i`);});- it('should use nested ordinals', async ({ page }) => {+ it('GN-064 should use nested ordinals', async ({ page }) => {await page.setContent(`<div><c></c><c></c><c></c><c></c><c></c><b></b></div><div>@@ -370,7 +370,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'c[mark="1"]')).toBe('b:nth-child(2) > c');});- it('should prefer class to ordinal', async ({ page }) => {+ it('GN-065 should prefer class to ordinal', async ({ page }) => {await page.setContent(`<div><c></c><c></c><c></c><c></c><c></c><b></b></div><div>@@ -388,7 +388,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'c[mark="1"]')).toBe(`.foo.\\31 2\\.bar\\.baz\\[\\&x\\]-_\\?\\"\\' > c`);});- it('should properly join child selectors under nested ordinals', async ({ page }) => {+ it('GN-066 should properly join child selectors under nested ordinals', async ({ page }) => {await page.setContent(`<div><c></c><c></c><c></c><c></c><c></c><b></b></div><div>@@ -409,7 +409,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'c[mark="1"]')).toBe('b:nth-child(2) > div > c');});- it('should not use input[value]', async ({ page }) => {+ it('GN-067 should not use input[value]', async ({ page }) => {await page.setContent(`<input value="one"><input value="two" mark="1">@@ -419,22 +419,22 @@ it.describe('selector generator', () => {});it.describe('should prioritize attributes correctly', () => {- it('role', async ({ page }) => {+ it('GN-068 role', async ({ page }) => {await page.setContent(`<input name="foobar" type="text"/>`);expect(await generate(page, 'input')).toBe('internal:role=textbox');});- it('placeholder', async ({ page }) => {+ it('GN-069 placeholder', async ({ page }) => {await page.setContent(`<input placeholder="foobar" type="text"/>`);expect(await generate(page, 'input')).toBe('internal:role=textbox[name=\"foobar\"i]');});- it('name', async ({ page }) => {+ it('GN-070 name', async ({ page }) => {await page.setContent(`<input aria-hidden="false" name="foobar" type="date"/><div role="textbox"/>content</div>`);expect(await generate(page, 'input')).toBe('input[name="foobar"]');});- it('type', async ({ page }) => {+ it('GN-071 type', async ({ page }) => {await page.setContent(`<input aria-hidden="false" type="checkbox"/><div role="checkbox"/>content</div>@@ -443,7 +443,7 @@ it.describe('selector generator', () => {});});- it('should find text in shadow dom', async ({ page }) => {+ it('GN-072 should find text in shadow dom', async ({ page }) => {await page.setContent(`<div></div>`);await page.$eval('div', div => {const shadowRoot = div.attachShadow({ mode: 'open' });@@ -454,7 +454,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'span')).toBe('internal:text="Target"i');});- it('should match in shadow dom', async ({ page }) => {+ it('GN-073 should match in shadow dom', async ({ page }) => {await page.setContent(`<div></div>`);await page.$eval('div', div => {const shadowRoot = div.attachShadow({ mode: 'open' });@@ -464,7 +464,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'input')).toBe('internal:role=textbox');});- it('should match in deep shadow dom', async ({ page }) => {+ it('GN-074 should match in deep shadow dom', async ({ page }) => {await page.setContent(`<div></div><div></div><div><input></div>`);await page.$eval('div', div1 => {const shadowRoot1 = div1.attachShadow({ mode: 'open' });@@ -482,7 +482,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'input[value=foo]')).toBe('internal:role=textbox >> nth=2');});- it('should work in dynamic iframes without navigation', async ({ page }) => {+ it('GN-075 should work in dynamic iframes without navigation', async ({ page }) => {await page.setContent(`<div></div>`);const [frame] = await Promise.all([page.waitForEvent('frameattached'),@@ -500,7 +500,7 @@ it.describe('selector generator', () => {expect(await generate(frame, 'div')).toBe('internal:text="Target"i');});- it('should use the name attributes for elements that can have it', async ({ page }) => {+ it('GN-076 should use the name attributes for elements that can have it', async ({ page }) => {for (const tagName of ['button', 'input', 'textarea']) {await page.setContent(`<form><${tagName} name="foo"></${tagName}><${tagName} name="bar"></${tagName}></form>`);expect(await generate(page, '[name=bar]')).toBe(`${tagName}[name="bar"]`);@@ -513,7 +513,7 @@ it.describe('selector generator', () => {expect(await generate(page, '[name=bar]')).toBe(`frame[name="bar"]`);});- it('should work with tricky attributes', async ({ page }) => {+ it('GN-077 should work with tricky attributes', async ({ page }) => {await page.setContent(`<button id="this:is-my-tricky.id"><span></span></button>`);expect(await generate(page, 'button')).toBe('[id="this:is-my-tricky.id"]');@@ -529,7 +529,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'div')).toBe(`[id="!#'!?\\"\\\\:"]`);});- it('should work without CSS.escape', async ({ page }) => {+ it('GN-078 should work without CSS.escape', async ({ page }) => {await page.setContent(`<button aria-hidden="false"></button><div role="button"></div>`);await page.$eval('button', button => {delete window.CSS.escape;@@ -538,22 +538,22 @@ it.describe('selector generator', () => {expect(await generate(page, 'button')).toBe(`button[name="-tricky\u0001name"]`);});- it('should not over-escape for CSS syntax', async ({ page }) => {+ it('GN-079 should not over-escape for CSS syntax', async ({ page }) => {await page.setContent(`<button aria-hidden="false" name="123"></button><div role="button"></div>`);expect(await generate(page, 'button')).toBe(`button[name="123"]`);});- it('should ignore empty aria-label for candidate consideration', async ({ page }) => {+ it('GN-080 should ignore empty aria-label for candidate consideration', async ({ page }) => {await page.setContent(`<button aria-label="" id="buttonId"></button>`);expect(await generate(page, 'button')).toBe('#buttonId');});- it('should accept valid aria-label for candidate consideration', async ({ page }) => {+ it('GN-081 should accept valid aria-label for candidate consideration', async ({ page }) => {await page.setContent(`<button aria-label="ariaLabel" id="buttonId"></button>`);expect(await generate(page, 'button')).toBe('internal:role=button[name=\"ariaLabel\"i]');});- it('should generate title selector', async ({ page }) => {+ it('GN-082 should generate title selector', async ({ page }) => {await page.setContent(`<div><button title="Send to" aria-description="High-Speed Parcel Delivery">Send</button><button aria-description="High-Speed Parcel Delivery">Send</button>@@ -561,27 +561,27 @@ it.describe('selector generator', () => {expect(await generate(page, 'button')).toBe('internal:attr=[title=\"Send to\"i]');});- it('should ignore empty role for candidate consideration', async ({ page }) => {+ it('GN-083 should ignore empty role for candidate consideration', async ({ page }) => {await page.setContent(`<button role="" id="buttonId"></button>`);expect(await generate(page, 'button')).toBe('#buttonId');});- it('should not accept invalid role for candidate consideration', async ({ page }) => {+ it('GN-084 should not accept invalid role for candidate consideration', async ({ page }) => {await page.setContent(`<button role="roleDescription" id="buttonId"></button>`);expect(await generate(page, 'button')).toBe('#buttonId');});- it('should ignore empty data-test-id for candidate consideration', async ({ page }) => {+ it('GN-085 should ignore empty data-test-id for candidate consideration', async ({ page }) => {await page.setContent(`<button data-test-id="" id="buttonId"></button>`);expect(await generate(page, 'button')).toBe('#buttonId');});- it('should accept valid data-test-id for candidate consideration', async ({ page }) => {+ it('GN-086 should accept valid data-test-id for candidate consideration', async ({ page }) => {await page.setContent(`<button data-test-id="testId" id="buttonId"></button>`);expect(await generate(page, 'button')).toBe('[data-test-id="testId"]');});- it('should generate label selector', async ({ page }) => {+ it('GN-087 should generate label selector', async ({ page }) => {await page.setContent(`<label for=target1>Target1</label><input id=target1><label for=target2>Target2</label><button id=target2>??</button>@@ -601,12 +601,12 @@ it.describe('selector generator', () => {expect(await generate(page, 'input')).toBe('internal:role=textbox[name=\"Coun\\\"try\"i]');});- it('should prefer role other input[type]', async ({ page }) => {+ it('GN-088 should prefer role other input[type]', async ({ page }) => {await page.setContent(`<input type=checkbox><div data-testid=wrapper><input type=checkbox></div>`);expect(await generate(page, '[data-testid=wrapper] > input')).toBe('internal:testid=[data-testid="wrapper"s] >> internal:role=checkbox');});- it('should generate exact text when necessary', async ({ page }) => {+ it('GN-089 should generate exact text when necessary', async ({ page }) => {await page.setContent(`<span>Text</span><span>Text and more</span>@@ -614,7 +614,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'span')).toBe('internal:text=\"Text\"s');});- it('should generate exact title when necessary', async ({ page }) => {+ it('GN-090 should generate exact title when necessary', async ({ page }) => {await page.setContent(`<span title="Text"></span><span title="Text and more"></span>@@ -622,7 +622,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'span')).toBe('internal:attr=[title=\"Text\"s]');});- it('should generate exact placeholder when necessary', async ({ page }) => {+ it('GN-091 should generate exact placeholder when necessary', async ({ page }) => {await page.setContent(`<input placeholder="Text"></input><input placeholder="Text and more"></input>@@ -630,7 +630,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'input')).toBe('internal:role=textbox[name=\"Text\"s]');});- it('should generate exact role when necessary', async ({ page }) => {+ it('GN-092 should generate exact role when necessary', async ({ page }) => {await page.setContent(`<img alt="Text"></img><img alt="Text and more"></img>@@ -638,7 +638,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'img')).toBe('internal:role=img[name=\"Text\"s]');});- it('should generate exact label when necessary', async ({ page }) => {+ it('GN-093 should generate exact label when necessary', async ({ page }) => {await page.setContent(`<label>Text <input></input></label><label>Text and more <input></input></label>@@ -646,7 +646,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'input')).toBe('internal:role=textbox[name=\"Text\"s]');});- it('should generate relative selector', async ({ page }) => {+ it('GN-094 should generate relative selector', async ({ page }) => {await page.setContent(`<div><span>Hello</span>@@ -670,37 +670,37 @@ it.describe('selector generator', () => {});});- it('should generate noText: no text engine', async ({ page }) => {+ it('GN-095 should generate noText: no text engine', async ({ page }) => {await page.setContent(`<div>Some text</div>`);expect(await generateNoText(page, 'div')).toBe(`div`);});- it('should generate noText: no name from content', async ({ page }) => {+ it('GN-096 should generate noText: no name from content', async ({ page }) => {await page.setContent(`<button><span>Send</span></button>`);expect(await generateNoText(page, 'button')).toBe(`internal:role=button`);});- it('should generate noText: name from aria-label', async ({ page }) => {+ it('GN-097 should generate noText: name from aria-label', async ({ page }) => {await page.setContent(`<button aria-label="Send message"><span>Send</span></button>`);expect(await generateNoText(page, 'button')).toBe(`internal:role=button[name="Send message"i]`);});- it('should generate noText: name from external aria-labelledby', async ({ page }) => {+ it('GN-098 should generate noText: name from external aria-labelledby', async ({ page }) => {await page.setContent(`<span id="label">Editor</span><div role="textbox" aria-labelledby="label" contenteditable>Text</div>`);expect(await generateNoText(page, 'div[role=textbox]')).toBe(`internal:role=textbox[name="Editor"i]`);});- it('should generate noText: ignore aria-labelledby pointing inside the element', async ({ page }) => {+ it('GN-099 should generate noText: ignore aria-labelledby pointing inside the element', async ({ page }) => {await page.setContent(`<div role="textbox" aria-labelledby="child" contenteditable><p id="child">Title</p><p>Text</p></div>`);expect(await generateNoText(page, 'div[role=textbox]')).toBe(`internal:role=textbox`);});- it('should generate noText: contenteditable heading', async ({ page }) => {+ it('GN-100 should generate noText: contenteditable heading', async ({ page }) => {await page.setContent(`<h1 contenteditable>Page title</h1>`);expect(await generateNoText(page, 'h1')).toBe(`internal:role=heading`);});- it('should generate noText: description from external aria-describedby', async ({ page }) => {+ it('GN-101 should generate noText: description from external aria-describedby', async ({ page }) => {await page.setContent(`<span id="desc1">First</span><span id="desc2">Second</span><div role="textbox" aria-label="Editor" aria-describedby="desc1" contenteditable>foo</div>@@ -709,7 +709,7 @@ it.describe('selector generator', () => {expect(await generateNoText(page, 'div[aria-describedby=desc1]')).toBe(`internal:role=textbox[name="Editor"i][description="First"i]`);});- it('should generate noText: ignore aria-describedby pointing inside the element', async ({ page }) => {+ it('GN-102 should generate noText: ignore aria-describedby pointing inside the element', async ({ page }) => {await page.setContent(`<div role="textbox" aria-label="Editor" aria-describedby="child" contenteditable><p id="child">First</p></div><div role="textbox" aria-label="Editor" contenteditable>Second</div>@@ -717,7 +717,7 @@ it.describe('selector generator', () => {expect(await generateNoText(page, 'div[aria-describedby=child]')).toBe(`internal:role=textbox[name="Editor"i] >> nth=0`);});- it('should prefer role with hasText to css with hasText', async ({ page }) => {+ it('GN-103 should prefer role with hasText to css with hasText', async ({ page }) => {await page.setContent(`<ul><li>@@ -733,7 +733,7 @@ it.describe('selector generator', () => {expect(await generate(page, 'input')).toBe(`internal:role=listitem >> internal:has-text=\"buy flowers\"i >> internal:label=\"Toggle Todo\"i`);});- it('should not use icon fonts aria name', async ({ page }) => {+ it('GN-104 should not use icon fonts aria name', async ({ page }) => {await page.setContent(`<style>.icon-foo:before {diff --git a/tests/library/selectors-register.spec.ts b/tests/library/selectors-register.spec.tsindex b739376186..8e0d185cac 100644--- a/tests/library/selectors-register.spec.ts+++ b/tests/library/selectors-register.spec.ts@@ -26,7 +26,7 @@ const createTagSelector = () => ({}});-it('should work', async ({ playwright, browser }) => {+it('SE-160 should work', async ({ playwright, browser }) => {// Register one engine before creating context.await playwright.selectors.register('tag', `(${createTagSelector.toString()})()`);@@ -52,7 +52,7 @@ it('should work', async ({ playwright, browser }) => {await context.close();});-it('should work when registered on global', async ({ browser, mode }) => {+it('SE-161 should work when registered on global', async ({ browser, mode }) => {it.skip(mode === 'driver', 'We expect registering selectors on the right Playwright instance.');await require('@playwright/test').selectors.register('oop-tag', `(${createTagSelector.toString()})()`);@@ -75,7 +75,7 @@ it('should work when registered on global', async ({ browser, mode }) => {await context.close();});-it('should work with path', async ({ playwright, browser, asset }) => {+it('SE-162 should work with path', async ({ playwright, browser, asset }) => {await playwright.selectors.register('foo', { path: asset('sectionselectorengine.js') });const page = await browser.newPage();await page.setContent('<section></section>');@@ -83,7 +83,7 @@ it('should work with path', async ({ playwright, browser, asset }) => {await page.close();});-it('should work in main and isolated world', async ({ playwright, browser }) => {+it('SE-163 should work in main and isolated world', async ({ playwright, browser }) => {const createDummySelector = () => ({query(root, selector) {return window['__answer'];@@ -116,7 +116,7 @@ it('should work in main and isolated world', async ({ playwright, browser }) =>await page.close();});-it('should handle errors', async ({ playwright, browser }) => {+it('SE-164 should handle errors', async ({ playwright, browser }) => {const page = await browser.newPage();let error = await page.$('neverregister=ignored').catch(e => e);expect(error.message).toContain('Unknown engine "neverregister" while parsing selector neverregister=ignored');@@ -145,12 +145,12 @@ it('should handle errors', async ({ playwright, browser }) => {await page.close();});-it('should throw "already registered" error when registering', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36467' } }, async ({ playwright }) => {+it('SE-165 should throw "already registered" error when registering', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36467' } }, async ({ playwright }) => {await playwright.selectors.register('alreadyRegistered', createTagSelector);await expect(playwright.selectors.register('alreadyRegistered', createTagSelector)).rejects.toThrowError('selectors.register: "alreadyRegistered" selector engine has been already registered');});-it('should not rely on engines working from the root', async ({ playwright, browser }) => {+it('SE-166 should not rely on engines working from the root', async ({ playwright, browser }) => {const createValueEngine = () => ({query(root, selector) {return root && root.value.includes(selector) ? root : undefined;@@ -166,7 +166,7 @@ it('should not rely on engines working from the root', async ({ playwright, browawait page.close();});-it('should throw a nice error if the selector returns a bad value', async ({ playwright, browser }) => {+it('SE-167 should throw a nice error if the selector returns a bad value', async ({ playwright, browser }) => {const createFakeEngine = () => ({query(root, selector) {return [document.body];diff --git a/tests/library/shared-worker.spec.ts b/tests/library/shared-worker.spec.tsindex de356a6279..a2f5464065 100644--- a/tests/library/shared-worker.spec.ts+++ b/tests/library/shared-worker.spec.ts@@ -16,7 +16,7 @@import { contextTest as test, expect } from '../config/browserTest';-test('should survive shared worker restart', async ({ context, server }) => {+test('WO-026 should survive shared worker restart', async ({ context, server }) => {const page1 = await context.newPage();await page1.goto(server.PREFIX + '/shared-worker/shared-worker.html');expect(await page1.evaluate('window.sharedWorkerResponsePromise')).toBe('echo:hello');diff --git a/tests/library/signals.spec.ts b/tests/library/signals.spec.tsindex 5eec86366a..d5294fddd7 100644--- a/tests/library/signals.spec.ts+++ b/tests/library/signals.spec.ts@@ -22,7 +22,7 @@ import os from 'os';test.slow();-test('should close the browser when the node process closes', async ({ startRemoteServer, isWindows, server, mode }) => {+test('SI-001 should close the browser when the node process closes', async ({ startRemoteServer, isWindows, server, mode }) => {const remoteServer = await startRemoteServer('launchServer', { url: server.EMPTY_PAGE });try {if (isWindows)@@ -42,7 +42,7 @@ test('should close the browser when the node process closes', async ({ startRemoexpect(await remoteServer.childExitCode()).toBe(isWindows ? 1 : 0);});-test('should remove temp dir on process.exit', async ({ startRemoteServer, server, platform }, testInfo) => {+test('SI-002 should remove temp dir on process.exit', async ({ startRemoteServer, server, platform }, testInfo) => {test.skip(platform === 'win32', 'Removing user data dir synchronously is blocked on Windows');const file = testInfo.outputPath('exit.file');@@ -59,7 +59,7 @@ test('should remove temp dir on process.exit', async ({ startRemoteServer, servetest.describe('signals', () => {test.skip(({ platform }) => platform === 'win32');- test('should report browser close signal 2', async ({ startRemoteServer, server, isMac, macVersion, browserName }) => {+ test('SI-003 should report browser close signal 2', async ({ startRemoteServer, server, isMac, macVersion, browserName }) => {const remoteServer = await startRemoteServer('launchServer', { url: server.EMPTY_PAGE });const pid = await remoteServer.out('pid');process.kill(-pid, 'SIGKILL');@@ -75,7 +75,7 @@ test.describe('signals', () => {await remoteServer.childExitCode();});- test('should close the browser on SIGINT', async ({ startRemoteServer, server }) => {+ test('SI-004 should close the browser on SIGINT', async ({ startRemoteServer, server }) => {const remoteServer = await startRemoteServer('launchServer', { url: server.EMPTY_PAGE });process.kill(remoteServer.child().pid, 'SIGINT');expect(await remoteServer.out('exitCode')).toBe('0');@@ -83,7 +83,7 @@ test.describe('signals', () => {expect(await remoteServer.childExitCode()).toBe(130);});- test('should close the browser on SIGTERM', async ({ startRemoteServer, server }) => {+ test('SI-005 should close the browser on SIGTERM', async ({ startRemoteServer, server }) => {const remoteServer = await startRemoteServer('launchServer', { url: server.EMPTY_PAGE });process.kill(remoteServer.child().pid, 'SIGTERM');expect(await remoteServer.out('exitCode')).toBe('0');@@ -91,7 +91,7 @@ test.describe('signals', () => {expect(await remoteServer.childExitCode()).toBe(0);});- test('should close the browser on SIGHUP', async ({ startRemoteServer, server }) => {+ test('SI-006 should close the browser on SIGHUP', async ({ startRemoteServer, server }) => {const remoteServer = await startRemoteServer('launchServer', { url: server.EMPTY_PAGE });process.kill(remoteServer.child().pid, 'SIGHUP');expect(await remoteServer.out('exitCode')).toBe('0');@@ -99,7 +99,7 @@ test.describe('signals', () => {expect(await remoteServer.childExitCode()).toBe(0);});- test('should kill the browser on double SIGINT and remove temp dir', async ({ startRemoteServer, server }) => {+ test('SI-007 should kill the browser on double SIGINT and remove temp dir', async ({ startRemoteServer, server }) => {const remoteServer = await startRemoteServer('launchServer', { stallOnClose: true, url: server.EMPTY_PAGE });const tempDir = await remoteServer.out('tempDir');const before = fs.existsSync(tempDir);@@ -114,7 +114,7 @@ test.describe('signals', () => {expect(after).toBe(false);});- test('should kill the browser on SIGINT + SIGTERM', async ({ startRemoteServer, server }) => {+ test('SI-008 should kill the browser on SIGINT + SIGTERM', async ({ startRemoteServer, server }) => {const remoteServer = await startRemoteServer('launchServer', { stallOnClose: true, url: server.EMPTY_PAGE });process.kill(remoteServer.child().pid, 'SIGINT');await remoteServer.out('stalled');@@ -124,7 +124,7 @@ test.describe('signals', () => {expect(await remoteServer.childExitCode()).toBe(0);});- test('should kill the browser on SIGTERM + SIGINT', async ({ startRemoteServer, server }) => {+ test('SI-009 should kill the browser on SIGTERM + SIGINT', async ({ startRemoteServer, server }) => {const remoteServer = await startRemoteServer('launchServer', { stallOnClose: true, url: server.EMPTY_PAGE });process.kill(remoteServer.child().pid, 'SIGTERM');await remoteServer.out('stalled');@@ -134,7 +134,7 @@ test.describe('signals', () => {expect(await remoteServer.childExitCode()).toBe(130);});- test('should not prevent default SIGTERM handling after browser close', async ({ startRemoteServer, server, platform }, testInfo) => {+ test('SI-010 should not prevent default SIGTERM handling after browser close', async ({ startRemoteServer, server, platform }, testInfo) => {const remoteServer = await startRemoteServer('launchServer', { startStopAndRunHttp: true });expect(await remoteServer.out('closed')).toBe('success');process.kill(remoteServer.child().pid, 'SIGTERM');diff --git a/tests/library/slowmo.spec.ts b/tests/library/slowmo.spec.tsindex 8a1872532b..07d22a608b 100644--- a/tests/library/slowmo.spec.ts+++ b/tests/library/slowmo.spec.ts@@ -51,121 +51,121 @@ async function checkPageSlowMo(toImpl: (api: any) => any, page: Page, task: () =it.describe('slowMo', () => {it.skip(({ mode }) => mode !== 'default');- it('Page SlowMo check', async ({ page, toImpl }) => {+ it('SL-001 Page SlowMo check', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.check('.check'));});- it('Page SlowMo click', async ({ page, toImpl }) => {+ it('SL-002 Page SlowMo click', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.click('button'));});- it('Page SlowMo dblclick', async ({ page, toImpl }) => {+ it('SL-003 Page SlowMo dblclick', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.dblclick('button'));});- it('Page SlowMo dispatchEvent', async ({ page, toImpl }) => {+ it('SL-004 Page SlowMo dispatchEvent', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.dispatchEvent('button', 'click'));});- it('Page SlowMo fill', async ({ page, toImpl }) => {+ it('SL-005 Page SlowMo fill', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.fill('.fill', 'foo'));});- it('Page SlowMo focus', async ({ page, toImpl }) => {+ it('SL-006 Page SlowMo focus', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.focus('button'));});- it('Page SlowMo goto', async ({ page, toImpl }) => {+ it('SL-007 Page SlowMo goto', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.goto('about:blank'));});- it('Page SlowMo hover', async ({ page, toImpl }) => {+ it('SL-008 Page SlowMo hover', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.hover('button'));});- it('Page SlowMo press', async ({ page, toImpl }) => {+ it('SL-009 Page SlowMo press', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.press('button', 'Enter'));});- it('Page SlowMo reload', async ({ page, toImpl }) => {+ it('SL-010 Page SlowMo reload', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.reload());});- it('Page SlowMo selectOption', async ({ page, toImpl }) => {+ it('SL-011 Page SlowMo selectOption', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.selectOption('select', 'foo'));});- it('Page SlowMo setInputFiles', async ({ page, toImpl }) => {+ it('SL-012 Page SlowMo setInputFiles', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.setInputFiles('.file', []));});- it('Page SlowMo type', async ({ page, toImpl }) => {+ it('SL-013 Page SlowMo type', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.type('.fill', 'a'));});- it('Page SlowMo uncheck', async ({ page, toImpl }) => {+ it('SL-014 Page SlowMo uncheck', async ({ page, toImpl }) => {await checkPageSlowMo(toImpl, page, () => page.uncheck('.uncheck'));});- it('Frame SlowMo check', async ({ page, server, toImpl }) => {+ it('SL-015 Frame SlowMo check', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.check('.check'));});- it('Frame SlowMo click', async ({ page, server, toImpl }) => {+ it('SL-016 Frame SlowMo click', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.click('button'));});- it('Frame SlowMo dblclick', async ({ page, server, toImpl }) => {+ it('SL-017 Frame SlowMo dblclick', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.dblclick('button'));});- it('Frame SlowMo dispatchEvent', async ({ page, server, toImpl }) => {+ it('SL-018 Frame SlowMo dispatchEvent', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.dispatchEvent('button', 'click'));});- it('Frame SlowMo fill', async ({ page, server, toImpl }) => {+ it('SL-019 Frame SlowMo fill', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.fill('.fill', 'foo'));});- it('Frame SlowMo focus', async ({ page, server, toImpl }) => {+ it('SL-020 Frame SlowMo focus', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.focus('button'));});- it('Frame SlowMo goto', async ({ page, server, toImpl }) => {+ it('SL-021 Frame SlowMo goto', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.goto('about:blank'));});- it('Frame SlowMo hover', async ({ page, server, toImpl }) => {+ it('SL-022 Frame SlowMo hover', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.hover('button'));});- it('Frame SlowMo press', async ({ page, server, toImpl }) => {+ it('SL-023 Frame SlowMo press', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.press('button', 'Enter'));});- it('Frame SlowMo selectOption', async ({ page, server, toImpl }) => {+ it('SL-024 Frame SlowMo selectOption', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.selectOption('select', 'foo'));});- it('Frame SlowMo setInputFiles', async ({ page, server, toImpl }) => {+ it('SL-025 Frame SlowMo setInputFiles', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.setInputFiles('.file', []));});- it('Frame SlowMo type', async ({ page, server, toImpl }) => {+ it('SL-026 Frame SlowMo type', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.type('.fill', 'a'));});- it('Frame SlowMo uncheck', async ({ page, server, toImpl }) => {+ it('SL-027 Frame SlowMo uncheck', async ({ page, server, toImpl }) => {await checkFrameSlowMo(toImpl, page, server, frame => frame.uncheck('.uncheck'));});- it('ElementHandle SlowMo check', async ({ page, toImpl }) => {+ it('SL-028 ElementHandle SlowMo check', async ({ page, toImpl }) => {await checkElementSlowMo(toImpl, page, '.check', element => element.check());});- it('ElementHandle SlowMo click', async ({ page, toImpl }) => {+ it('SL-029 ElementHandle SlowMo click', async ({ page, toImpl }) => {await checkElementSlowMo(toImpl, page, 'button', element => element.click());});- it('ElementHandle SlowMo dblclick', async ({ page, toImpl }) => {+ it('SL-030 ElementHandle SlowMo dblclick', async ({ page, toImpl }) => {await checkElementSlowMo(toImpl, page, 'button', element => element.dblclick());});- it('ElementHandle SlowMo dispatchEvent', async ({ page, toImpl }) => {+ it('SL-031 ElementHandle SlowMo dispatchEvent', async ({ page, toImpl }) => {await checkElementSlowMo(toImpl, page, 'button', element => element.dispatchEvent('click'));});- it('ElementHandle SlowMo fill', async ({ page, toImpl }) => {+ it('SL-032 ElementHandle SlowMo fill', async ({ page, toImpl }) => {await checkElementSlowMo(toImpl, page, '.fill', element => element.fill('foo'));});- it('ElementHandle SlowMo focus', async ({ page, toImpl }) => {+ it('SL-033 ElementHandle SlowMo focus', async ({ page, toImpl }) => {await checkElementSlowMo(toImpl, page, 'button', element => element.focus());});- it('ElementHandle SlowMo hover', async ({ page, toImpl }) => {+ it('SL-034 ElementHandle SlowMo hover', async ({ page, toImpl }) => {await checkElementSlowMo(toImpl, page, 'button', element => element.hover());});- it('ElementHandle SlowMo press', async ({ page, toImpl }) => {+ it('SL-035 ElementHandle SlowMo press', async ({ page, toImpl }) => {await checkElementSlowMo(toImpl, page, 'button', element => element.press('Enter'));});- it('ElementHandle SlowMo selectOption', async ({ page, toImpl }) => {+ it('SL-036 ElementHandle SlowMo selectOption', async ({ page, toImpl }) => {await checkElementSlowMo(toImpl, page, 'select', element => element.selectOption('foo'));});- it('ElementHandle SlowMo setInputFiles', async ({ page, toImpl }) => {+ it('SL-037 ElementHandle SlowMo setInputFiles', async ({ page, toImpl }) => {await checkElementSlowMo(toImpl, page, '.file', element => element.setInputFiles([]));});- it('ElementHandle SlowMo type', async ({ page, toImpl }) => {+ it('SL-038 ElementHandle SlowMo type', async ({ page, toImpl }) => {await checkElementSlowMo(toImpl, page, '.fill', element => element.type('a'));});- it('ElementHandle SlowMo uncheck', async ({ page, toImpl }) => {+ it('SL-039 ElementHandle SlowMo uncheck', async ({ page, toImpl }) => {await checkElementSlowMo(toImpl, page, '.uncheck', element => element.uncheck());});});diff --git a/tests/library/snapshot-renderer.spec.ts b/tests/library/snapshot-renderer.spec.tsindex 2bfa23ecab..c22f53d4e8 100644--- a/tests/library/snapshot-renderer.spec.ts+++ b/tests/library/snapshot-renderer.spec.ts@@ -40,7 +40,7 @@ for (const [name, overrides] of [['callId', { callId: '</script><script>window.__pwned__=true;//' }],['snapshotName', { callId: 'call-1', snapshotName: '</script><img src=x onerror=alert(1)>' }],] as const) {- test(`snapshot renderer escapes attacker-controlled ${name} in script context`, () => {+ test(`TV-123 snapshot renderer escapes attacker-controlled ${name} in script context`, () => {const renderer = new SnapshotRenderer(new LRUCache(1_000_000), [], [makeSnapshot(overrides)], [], 0);const { html } = renderer.render();expect(html.match(/<script[ >]/g)).toHaveLength(1);@@ -48,7 +48,7 @@ for (const [name, overrides] of [});}-test('snapshot renderer nonces the bootstrap script', () => {+test('TV-124 snapshot renderer nonces the bootstrap script', () => {const renderer = new SnapshotRenderer(new LRUCache(1_000_000), [], [makeSnapshot()], [], 0);const { html, scriptNonce } = renderer.render();expect(scriptNonce).toMatch(/^[0-9a-f]{32}$/);@@ -61,7 +61,7 @@ test('snapshot renderer nonces the bootstrap script', () => {expect(other.render().scriptNonce).not.toBe(scriptNonce);});-test('snapshot renderer strips event handler attributes', () => {+test('TV-125 snapshot renderer strips event handler attributes', () => {const renderer = new SnapshotRenderer(new LRUCache(1_000_000), [], [makeSnapshot({html: ['HTML', {}, ['BODY', {}, ['IMG', { 'onerror': 'alert(1)', 'src': 'x' }]]],})], [], 0);@@ -70,7 +70,7 @@ test('snapshot renderer strips event handler attributes', () => {expect(html).toContain('src="x"');});-test('snapshot renderer strips onclick attributes', () => {+test('TV-126 snapshot renderer strips onclick attributes', () => {const renderer = new SnapshotRenderer(new LRUCache(1_000_000), [], [makeSnapshot({html: ['HTML', {}, ['BODY', {}, ['DIV', { 'onClick': 'alert(1)' }, 'click me']]],})], [], 0);@@ -80,7 +80,7 @@ test('snapshot renderer strips onclick attributes', () => {expect(html).toContain('click me');});-test('snapshot renderer neutralizes iframe srcdoc', () => {+test('TV-127 snapshot renderer neutralizes iframe srcdoc', () => {const renderer = new SnapshotRenderer(new LRUCache(1_000_000), [], [makeSnapshot({html: ['HTML', {}, ['BODY', {}, ['IFRAME', { 'srcdoc': '<script>alert(1)</script>' }]]],})], [], 0);@@ -89,7 +89,7 @@ test('snapshot renderer neutralizes iframe srcdoc', () => {expect(html).toContain('__playwright_srcdoc__');});-test('snapshot renderer neutralizes iframe sandbox', () => {+test('TV-128 snapshot renderer neutralizes iframe sandbox', () => {const renderer = new SnapshotRenderer(new LRUCache(1_000_000), [], [makeSnapshot({html: ['HTML', {}, ['BODY', {}, ['IFRAME', { 'sandbox': 'allow-scripts allow-top-navigation' }]]],})], [], 0);@@ -98,7 +98,7 @@ test('snapshot renderer neutralizes iframe sandbox', () => {expect(html).toContain('__playwright_sandbox__');});-test('snapshot renderer neutralizes object data attribute', () => {+test('TV-129 snapshot renderer neutralizes object data attribute', () => {const renderer = new SnapshotRenderer(new LRUCache(1_000_000), [], [makeSnapshot({html: ['HTML', {}, ['BODY', {}, ['OBJECT', { 'data': '/sha1/malicious', 'type': 'text/html' }]]],})], [], 0);@@ -107,7 +107,7 @@ test('snapshot renderer neutralizes object data attribute', () => {expect(html).toContain('__playwright_data__');});-test('snapshot renderer neutralizes embed src attribute', () => {+test('TV-130 snapshot renderer neutralizes embed src attribute', () => {const renderer = new SnapshotRenderer(new LRUCache(1_000_000), [], [makeSnapshot({html: ['HTML', {}, ['BODY', {}, ['EMBED', { 'src': '/sha1/malicious', 'type': 'text/html' }]]],})], [], 0);@@ -116,7 +116,7 @@ test('snapshot renderer neutralizes embed src attribute', () => {expect(html).toContain('__playwright_src__');});-test('snapshot renderer handles case-insensitive iframe tag names', () => {+test('TV-131 snapshot renderer handles case-insensitive iframe tag names', () => {const renderer = new SnapshotRenderer(new LRUCache(1_000_000), [], [makeSnapshot({html: ['HTML', {}, ['BODY', {}, ['iframe', { 'srcdoc': '<script>alert(1)</script>', 'src': 'http://evil.com' }]]],})], [], 0);@@ -126,7 +126,7 @@ test('snapshot renderer handles case-insensitive iframe tag names', () => {expect(html).toContain('__playwright_src__');});-test('snapshot renderer drops unsafe tag names that smuggle attributes', () => {+test('TV-132 snapshot renderer drops unsafe tag names that smuggle attributes', () => {const renderer = new SnapshotRenderer(new LRUCache(1_000_000), [], [makeSnapshot({html: ['HTML', {}, ['BODY', {}, ['img src=x onerror=alert(1)', {}], 'safe']],})], [], 0);@@ -136,7 +136,7 @@ test('snapshot renderer drops unsafe tag names that smuggle attributes', () => {expect(html).toContain('safe');});-test('snapshot renderer still renders ordinary custom elements', () => {+test('TV-133 snapshot renderer still renders ordinary custom elements', () => {const renderer = new SnapshotRenderer(new LRUCache(1_000_000), [], [makeSnapshot({html: ['HTML', {}, ['BODY', {},['MY-WIDGET', { 'id': 'w' }, 'hello'],@@ -154,7 +154,7 @@ test('snapshot renderer still renders ordinary custom elements', () => {expect(html).toContain('<my-élément id="e">elem</my-élément>');});-test('stripAnsiEscapes should not exhibit polynomial backtracking', () => {+test('TV-134 stripAnsiEscapes should not exhibit polynomial backtracking', () => {// \x1b[ + 50000 semicolons + non-terminal character.// Before the fix this took >3 seconds due to O(n^2) backtracking.const payload = '\x1b[' + ';'.repeat(50000) + '!';@@ -163,7 +163,7 @@ test('stripAnsiEscapes should not exhibit polynomial backtracking', () => {expect(result).toContain('!');});-test('stripAnsiEscapes handles common ANSI sequences after fix', () => {+test('TV-135 stripAnsiEscapes handles common ANSI sequences after fix', () => {expect(stripAnsiEscapes('\x1b[31mred\x1b[0m')).toBe('red');expect(stripAnsiEscapes('\x1b[0;31mbold red\x1b[0m')).toBe('bold red');expect(stripAnsiEscapes('\x1b[;H')).toBe('');diff --git a/tests/library/tap.spec.ts b/tests/library/tap.spec.tsindex c523be9e86..d9c0479c1d 100644--- a/tests/library/tap.spec.ts+++ b/tests/library/tap.spec.ts@@ -19,7 +19,7 @@ import type { ElementHandle } from 'playwright-core';it.use({ hasTouch: true });-it('should send all of the correct events @smoke', async ({ page }) => {+it('TA-001 should send all of the correct events @smoke', async ({ page }) => {await page.setContent(`<div id="a" style="background: lightblue; width: 50px; height: 50px">a</div><div id="b" style="background: pink; width: 50px; height: 50px">b</div>@@ -39,7 +39,7 @@ it('should send all of the correct events @smoke', async ({ page }) => {]);});-it('trial run should not tap', async ({ page }) => {+it('TA-002 trial run should not tap', async ({ page }) => {await page.setContent(`<div id="a" style="background: lightblue; width: 50px; height: 50px">a</div><div id="b" style="background: pink; width: 50px; height: 50px">b</div>@@ -51,7 +51,7 @@ it('trial run should not tap', async ({ page }) => {expect(await eventsHandle.jsonValue()).toEqual(expected);});-it('should not send mouse events touchstart is canceled', async ({ page }) => {+it('TA-003 should not send mouse events touchstart is canceled', async ({ page }) => {await page.setContent(`<div style="width: 50px; height: 50px; background: red">`);await page.evaluate(() => {// touchstart is not cancelable unless passive is false@@ -67,7 +67,7 @@ it('should not send mouse events touchstart is canceled', async ({ page }) => {]);});-it('should not send mouse events when touchend is canceled', async ({ page }) => {+it('TA-004 should not send mouse events when touchend is canceled', async ({ page }) => {await page.setContent(`<div style="width: 50px; height: 50px; background: red">`);await page.evaluate(() => {document.addEventListener('touchend', t => t.preventDefault());@@ -82,7 +82,7 @@ it('should not send mouse events when touchend is canceled', async ({ page }) =>]);});-it('should not wait for a navigation caused by a tap', async ({ page, server }) => {+it('TA-005 should not wait for a navigation caused by a tap', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<a href="/intercept-this.html">link</a>;`);await Promise.all([@@ -91,7 +91,7 @@ it('should not wait for a navigation caused by a tap', async ({ page, server })]);});-it('should work with modifiers', async ({ page }) => {+it('TA-006 should work with modifiers', async ({ page }) => {await page.setContent('hello world');const altKeyPromise = page.evaluate(() => new Promise(resolve => {document.addEventListener('touchstart', event => {@@ -106,7 +106,7 @@ it('should work with modifiers', async ({ page }) => {expect(await altKeyPromise).toBe(true);});-it('should send well formed touch points', async ({ page }) => {+it('TA-007 should send well formed touch points', async ({ page }) => {const promises = Promise.all([page.evaluate(() => new Promise(resolve => {document.addEventListener('touchstart', event => {@@ -158,7 +158,7 @@ it('should send well formed touch points', async ({ page }) => {expect(touchend).toEqual([]);});-it('should wait until an element is visible to tap it', async ({ page }) => {+it('TA-008 should wait until an element is visible to tap it', async ({ page }) => {const div = await page.evaluateHandle(() => {const button = document.createElement('button');button.textContent = 'not clicked';@@ -188,7 +188,7 @@ async function trackEvents(target: ElementHandle) {}it.describe('locators', () => {- it('should send all of the correct events', async ({ page }) => {+ it('TA-009 should send all of the correct events', async ({ page }) => {await page.setContent(`<div id="a" style="background: lightblue; width: 50px; height: 50px">a</div><div id="b" style="background: pink; width: 50px; height: 50px">b</div>diff --git a/tests/library/trace-viewer.spec.ts b/tests/library/trace-viewer.spec.tsindex 47a1fc3462..923d214aaa 100644--- a/tests/library/trace-viewer.spec.ts+++ b/tests/library/trace-viewer.spec.ts@@ -92,12 +92,12 @@ test.beforeAll(async function recordTrace({ browser, browserName, browserType, s(browserType as any)._instrumentation.removeListener(csi);});-test('should show empty trace viewer', async ({ showTraceViewer }, testInfo) => {+test('TV-001 should show empty trace viewer', async ({ showTraceViewer }, testInfo) => {const traceViewer = await showTraceViewer(testInfo.outputPath());await expect(traceViewer.page).toHaveTitle('Playwright Trace Viewer');});-test('should open two trace viewers', async ({ showTraceViewer }, testInfo) => {+test('TV-002 should open two trace viewers', async ({ showTraceViewer }, testInfo) => {const port = testInfo.workerIndex + 13321;const traceViewer1 = await showTraceViewer(testInfo.outputPath(), { host: 'localhost', port });await expect(traceViewer1.page).toHaveTitle('Playwright Trace Viewer');@@ -105,7 +105,7 @@ test('should open two trace viewers', async ({ showTraceViewer }, testInfo) => {await expect(traceViewer2.page).toHaveTitle('Playwright Trace Viewer');});-test('should open trace viewer on specific host', async ({ showTraceViewer }, testInfo) => {+test('TV-003 should open trace viewer on specific host', async ({ showTraceViewer }, testInfo) => {const dir = testInfo.outputPath('some-dir');await fs.promises.mkdir(dir, { recursive: true });// Run from a random directory to check that file access works.@@ -118,7 +118,7 @@ test('should open trace viewer on specific host', async ({ showTraceViewer }, te]);});-test('should show tracing.group in the action list with location', async ({ runAndTrace, page, context }) => {+test('TV-004 should show tracing.group in the action list with location', async ({ runAndTrace, page, context }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36483' });test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39302' });@@ -174,7 +174,7 @@ test('should show tracing.group in the action list with location', async ({ runAawait expect(traceViewer.sourceCodeTab.locator('.source-line-running')).toContainText('buddy beaver');});-test('should open simple trace viewer', async ({ showTraceViewer }) => {+test('TV-005 should open simple trace viewer', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await expect(traceViewer.actionTitles).toHaveText([/Create page/,@@ -198,7 +198,7 @@ test('should open simple trace viewer', async ({ showTraceViewer }) => {]);});-test('should filter actions by text', async ({ showTraceViewer }) => {+test('TV-006 should filter actions by text', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);const filterInput = traceViewer.page.getByRole('searchbox', { name: 'Filter actions' });await expect(filterInput).toBeVisible();@@ -213,7 +213,7 @@ test('should filter actions by text', async ({ showTraceViewer }) => {await expect(traceViewer.actionTitles).toHaveCount(fullCount);});-test('should keep selected action in view after Show all', async ({ runAndTrace, page }) => {+test('TV-007 should keep selected action in view after Show all', async ({ runAndTrace, page }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40808' });const traceViewer = await runAndTrace(async () => {await page.setContent('<div>hello</div>');@@ -236,7 +236,7 @@ test('should keep selected action in view after Show all', async ({ runAndTrace,await expect(selected).toBeInViewport();});-test('should activate Show all with keyboard', async ({ runAndTrace, page }) => {+test('TV-008 should activate Show all with keyboard', async ({ runAndTrace, page }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42323' });const traceViewer = await runAndTrace(async () => {await page.setContent('<div>hello</div>');@@ -252,7 +252,7 @@ test('should activate Show all with keyboard', async ({ runAndTrace, page }) =>await expect(showAll).toBeHidden();});-test('should open uncompressed trace directory', async ({ showTraceViewer }) => {+test('TV-009 should open uncompressed trace directory', async ({ showTraceViewer }) => {const traceDir = test.info().outputPath('unzipped-trace');await extractZip(traceFile, { dir: traceDir });const traceViewer = await showTraceViewer(traceDir);@@ -278,7 +278,7 @@ test('should open uncompressed trace directory', async ({ showTraceViewer }) =>]);});-test('should show action context on locators and other common actions', async ({+test('TV-010 should show action context on locators and other common actions', async ({runAndTrace,page,}) => {@@ -333,12 +333,12 @@ test('should show action context on locators and other common actions', async ({]);});-test('should complain about newer version of trace in old viewer', async ({ showTraceViewer, asset }, testInfo) => {+test('TV-011 should complain about newer version of trace in old viewer', async ({ showTraceViewer, asset }, testInfo) => {const traceViewer = await showTraceViewer(asset('trace-from-the-future.zip'));await expect(traceViewer.page.getByText('The trace was created by a newer version of Playwright and is not supported by this version of the viewer.')).toBeVisible();});-test('should properly synchronize local and remote time', async ({ showTraceViewer, asset }, testInfo) => {+test('TV-012 should properly synchronize local and remote time', async ({ showTraceViewer, asset }, testInfo) => {const traceViewer = await showTraceViewer(asset('trace-remote-time-diff.zip'));// The total duration should be sub 10s, rather than 16h.await expect.poll(async () =>@@ -346,7 +346,7 @@ test('should properly synchronize local and remote time', async ({ showTraceView).toBeLessThan(10);});-test('should contain action info', async ({ showTraceViewer }) => {+test('TV-013 should contain action info', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.selectAction('Click');await traceViewer.page.getByText('Log', { exact: true }).click();@@ -356,7 +356,7 @@ test('should contain action info', async ({ showTraceViewer }) => {]);});-test('should render console', async ({ showTraceViewer, browserName }) => {+test('TV-014 should render console', async ({ showTraceViewer, browserName }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.showConsoleTab();@@ -382,7 +382,7 @@ test('should render console', async ({ showTraceViewer, browserName }) => {await expect(listViews.filter({ hasText: 'Cheers!' })).toHaveClass('list-view-entry');});-test('should show console source for multiple pages', async ({ context, runAndTrace, server }) => {+test('TV-015 should show console source for multiple pages', async ({ context, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {const page1 = await context.newPage();await page1.goto(server.EMPTY_PAGE);@@ -396,7 +396,7 @@ test('should show console source for multiple pages', async ({ context, runAndTrawait expect(traceViewer.consoleLines.filter({ hasText: 'hello from two' }).locator('.console-source')).toHaveText('page#2');});-test('should highlight console message on timeline on hover', async ({ showTraceViewer }) => {+test('TV-016 should highlight console message on timeline on hover', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.showConsoleTab();const highlight = traceViewer.page.locator('.timeline-highlight');@@ -405,7 +405,7 @@ test('should highlight console message on timeline on hover', async ({ showTraceawait expect(highlight).toBeVisible();});-test('should open console errors on click', async ({ showTraceViewer }) => {+test('TV-017 should open console errors on click', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await expect(traceViewer.actionIconsText('Evaluate')).toHaveText(['2', '1']);await expect(traceViewer.page.getByRole('tabpanel', { name: 'Console' })).toBeHidden();@@ -413,7 +413,7 @@ test('should open console errors on click', async ({ showTraceViewer }) => {await traceViewer.page.getByRole('tabpanel', { name: 'Console' }).waitFor();});-test('should open console errors with keyboard', async ({ showTraceViewer }) => {+test('TV-018 should open console errors with keyboard', async ({ showTraceViewer }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42323' });const traceViewer = await showTraceViewer(traceFile);const badge = traceViewer.actionIcons('Evaluate');@@ -425,7 +425,7 @@ test('should open console errors with keyboard', async ({ showTraceViewer }) =>await traceViewer.page.getByRole('tabpanel', { name: 'Console' }).waitFor();});-test('should show params and return value', async ({ showTraceViewer }) => {+test('TV-019 should show params and return value', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.selectAction('Evaluate');await expect(traceViewer.callLines).toHaveText([@@ -449,7 +449,7 @@ test('should show params and return value', async ({ showTraceViewer }) => {]);});-test('should show null as a param', async ({ showTraceViewer, browserName }) => {+test('TV-020 should show null as a param', async ({ showTraceViewer, browserName }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.selectAction('Evaluate', 1);await expect(traceViewer.callLines).toHaveText([@@ -463,7 +463,7 @@ test('should show null as a param', async ({ showTraceViewer, browserName }) =>]);});-test('should truncate long return values with ellipsis but copy full value', async ({ page, runAndTrace }) => {+test('TV-021 should truncate long return values with ellipsis but copy full value', async ({ page, runAndTrace }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40527' });const traceViewer = await runAndTrace(async () => {await page.evaluate(() => {@@ -485,7 +485,7 @@ test('should truncate long return values with ellipsis but copy full value', asyexpect(copied.endsWith('…')).toBe(false);});-test('should have correct snapshot size', async ({ showTraceViewer }, testInfo) => {+test('TV-022 should have correct snapshot size', async ({ showTraceViewer }, testInfo) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43313' });const traceViewer = await showTraceViewer(traceFile);await traceViewer.selectAction('SET VIEWPORT');@@ -499,7 +499,7 @@ test('should have correct snapshot size', async ({ showTraceViewer }, testInfo)await expect(traceViewer.page.locator('.snapshot-container')).toHaveCSS('width', '390px');});-test('should have correct stack trace', async ({ showTraceViewer }) => {+test('TV-023 should have correct stack trace', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.selectAction('Click');@@ -510,7 +510,7 @@ test('should have correct stack trace', async ({ showTraceViewer }) => {], { useInnerText: true });});-test('should have network requests', async ({ showTraceViewer }) => {+test('TV-024 should have network requests', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.selectAction('Navigate');await traceViewer.showNetworkTab();@@ -521,7 +521,7 @@ test('should have network requests', async ({ showTraceViewer }) => {await expect(traceViewer.networkRequests.filter({ hasText: '404GET404text' })).toHaveCSS('background-color', 'rgb(242, 222, 222)');});-test('should attribute network requests to service workers', async ({ runAndTrace, page, context, server, browserName }) => {+test('TV-025 should attribute network requests to service workers', async ({ runAndTrace, page, context, server, browserName }) => {test.skip(browserName !== 'chromium', 'Service worker requests are only reported in Chromium');const traceViewer = await runAndTrace(async () => {const [worker] = await Promise.all([@@ -536,7 +536,7 @@ test('should attribute network requests to service workers', async ({ runAndTracawait expect(traceViewer.networkRequests.filter({ hasText: 'one-style.css' })).toContainText(['service-worker#1']);});-test('should highlight network request on timeline on hover', async ({ showTraceViewer }) => {+test('TV-026 should highlight network request on timeline on hover', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.selectAction('Navigate');await traceViewer.showNetworkTab();@@ -546,7 +546,7 @@ test('should highlight network request on timeline on hover', async ({ showTraceawait expect(highlight).toBeVisible();});-test('should filter network requests by resource type', async ({ page, runAndTrace, server }) => {+test('TV-027 should filter network requests by resource type', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {server.setRoute('/api/endpoint', (_, res) => res.setHeader('Content-Type', 'application/json').end());await page.goto(`${server.PREFIX}/network-tab/network.html`);@@ -580,7 +580,7 @@ test('should filter network requests by resource type', async ({ page, runAndTraawait expect(traceViewer.networkRequests.getByText('font.woff2')).toBeVisible();});-test('should filter network requests by multiple resource types', async ({ page, runAndTrace, server }) => {+test('TV-028 should filter network requests by multiple resource types', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {server.setRoute('/api/endpoint', (_, res) => res.setHeader('Content-Type', 'application/json').end());await page.goto(`${server.PREFIX}/network-tab/network.html`);@@ -613,7 +613,7 @@ test('should filter network requests by multiple resource types', async ({ page,await expect(networkRequests).toHaveCount(10);});-test('should show font preview', async ({ page, runAndTrace, server }) => {+test('TV-029 should show font preview', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(`${server.PREFIX}/network-tab/network.html`);await page.evaluate(() => (window as any).donePromise);@@ -628,7 +628,7 @@ test('should show font preview', async ({ page, runAndTrace, server }) => {await expect(traceViewer.networkTab.getByRole('tabpanel', { name: 'Response' })).toContainText('ABCDEF');});-test('should syntax highlight body', async ({ page, runAndTrace, server }) => {+test('TV-030 should syntax highlight body', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(`${server.PREFIX}/network-tab/network.html`);await page.evaluate(() => (window as any).donePromise);@@ -644,7 +644,7 @@ test('should syntax highlight body', async ({ page, runAndTrace, server }) => {await expect(keyword).toHaveClass('cm-keyword');});-test('should filter network requests by url', async ({ page, runAndTrace, server }) => {+test('TV-031 should filter network requests by url', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(`${server.PREFIX}/network-tab/network.html`);await page.evaluate(() => (window as any).donePromise);@@ -675,7 +675,7 @@ test('should filter network requests by url', async ({ page, runAndTrace, serverawait expect(traceViewer.networkRequests.getByText('font.woff2')).toBeVisible();});-test('should have network request overrides', async ({ page, server, runAndTrace }) => {+test('TV-032 should have network request overrides', async ({ page, server, runAndTrace }) => {const traceViewer = await runAndTrace(async () => {await page.route('**/style.css', route => route.abort());await page.goto(server.PREFIX + '/frames/frame.html');@@ -687,7 +687,7 @@ test('should have network request overrides', async ({ page, server, runAndTraceawait expect(traceViewer.networkRequests).not.toContainText([/continued/]);});-test('should show canceled status for requests canceled by navigation', async ({ page, server, runAndTrace }) => {+test('TV-033 should show canceled status for requests canceled by navigation', async ({ page, server, runAndTrace }) => {server.setRoute('/slow', (_req, _res) => {// Never respond so the request stays in-flight until navigation cancels it.});@@ -705,7 +705,7 @@ test('should show canceled status for requests canceled by navigation', async ({await expect(slowRequest).toHaveCSS('background-color', 'rgb(242, 222, 222)');});-test('should have network request overrides 2', async ({ page, server, runAndTrace }) => {+test('TV-034 should have network request overrides 2', async ({ page, server, runAndTrace }) => {const traceViewer = await runAndTrace(async () => {await page.route('**/script.js', route => route.continue());await page.goto(server.PREFIX + '/frames/frame.html');@@ -716,7 +716,7 @@ test('should have network request overrides 2', async ({ page, server, runAndTraawait expect.soft(traceViewer.networkRequests).toContainText([/script.jsGET200text\/javascript.*continued/]);});-test('should filter network requests by websocket type', {+test('TV-035 should filter network requests by websocket type', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/10996' }}, async ({ page, server, runAndTrace }) => {server.onceWebSocketConnection(ws => {@@ -739,7 +739,7 @@ test('should filter network requests by websocket type', {await expect(traceViewer.networkRequests).toContainText('websocket');});-test('should show websocket messages', {+test('TV-036 should show websocket messages', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/10996' }}, async ({ page, server, runAndTrace }) => {server.onceWebSocketConnection(ws => {@@ -784,7 +784,7 @@ test('should show websocket messages', {await expect(wsList.getByRole('option').nth(3)).toContainText('Binary');});-test('should show snapshot URL and copy button', async ({ page, runAndTrace, server }) => {+test('TV-037 should show snapshot URL and copy button', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.evaluate('2+2');@@ -798,7 +798,7 @@ test('should show snapshot URL and copy button', async ({ page, runAndTrace, serexpect(await traceViewer.page.evaluate(() => navigator.clipboard.readText())).toBe(server.EMPTY_PAGE);});-test('should popup snapshot', async ({ page, runAndTrace, server }) => {+test('TV-038 should popup snapshot', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.setContent('hello äöü 🙂');@@ -810,7 +810,7 @@ test('should popup snapshot', async ({ page, runAndTrace, server }) => {await expect(popup.frameLocator('iframe').getByText('hello äöü 🙂')).toBeVisible();});-test('should capture attribute mutations inside a popup window', {+test('TV-039 should capture attribute mutations inside a popup window', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40895' }}, async ({ page, server, runAndTrace }) => {server.setRoute('/popup.html', (req, res) => {@@ -836,7 +836,7 @@ test('should capture attribute mutations inside a popup window', {await expect(frame.locator('#overlay')).toHaveClass('no-display');});-test('should capture iframe with sandbox attribute', async ({ page, server, runAndTrace }) => {+test('TV-040 should capture iframe with sandbox attribute', async ({ page, server, runAndTrace }) => {await page.route('**/empty.html', route => {void route.fulfill({body: '<iframe src="iframe.html" sandBOX="allow-scripts"></iframe>',@@ -865,7 +865,7 @@ test('should capture iframe with sandbox attribute', async ({ page, server, runAexpect(await button.textContent()).toBe('Hello iframe');});-test('should capture data-url svg iframe', async ({ page, server, runAndTrace }) => {+test('TV-041 should capture data-url svg iframe', async ({ page, server, runAndTrace }) => {await page.route('**/empty.html', route => {void route.fulfill({body: `<iframe src="data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3e%3cpath d='M0 0h24v24H0z' fill='none'/%3e%3cpath d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z'/%3e%3c/svg%3e"></iframe>`,@@ -889,7 +889,7 @@ test('should capture data-url svg iframe', async ({ page, server, runAndTrace })expect(content).toContain(`d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"`);});-test('should not let style text break out of the style element', async ({ page, runAndTrace, server }) => {+test('TV-042 should not let style text break out of the style element', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.evaluate(() => {@@ -910,7 +910,7 @@ test('should not let style text break out of the style element', async ({ page,expect(await frame.locator('body style').evaluate(el => el.textContent)).toContain('onerror=');});-test('should contain adopted style sheets', async ({ page, runAndTrace, browserName }) => {+test('TV-043 should contain adopted style sheets', async ({ page, runAndTrace, browserName }) => {const traceViewer = await runAndTrace(async () => {await page.setContent('<button>Hello</button>');await page.evaluate(() => {@@ -938,7 +938,7 @@ test('should contain adopted style sheets', async ({ page, runAndTrace, browserNawait expect(frame.locator('span')).toHaveCSS('color', 'rgb(0, 0, 255)');});-test('should work with adopted style sheets and replace/replaceSync', async ({ page, runAndTrace, browserName }) => {+test('TV-044 should work with adopted style sheets and replace/replaceSync', async ({ page, runAndTrace, browserName }) => {const traceViewer = await runAndTrace(async () => {await page.setContent('<button>Hello</button>');await page.evaluate(() => {@@ -970,7 +970,7 @@ test('should work with adopted style sheets and replace/replaceSync', async ({ p}});-test('should work with adopted style sheets and all: unset', async ({ page, runAndTrace, browserName }) => {+test('TV-045 should work with adopted style sheets and all: unset', async ({ page, runAndTrace, browserName }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31500' });const traceViewer = await runAndTrace(async () => {@@ -992,7 +992,7 @@ test('should work with adopted style sheets and all: unset', async ({ page, runA}});-test('empty adopted style sheets should not prevent node refs', async ({ page }) => {+test('TV-046 empty adopted style sheets should not prevent node refs', async ({ page }) => {const traceFile = test.info().outputPath('trace.zip');await page.context().tracing.start({ snapshots: true });await page.setContent('<button>Hello</button>');@@ -1020,7 +1020,7 @@ test('empty adopted style sheets should not prevent node refs', async ({ page })expect(snapshot.snapshot().html).toEqual([[1, 9]]);});-test('should work with nesting CSS selectors', async ({ page, runAndTrace }) => {+test('TV-047 should work with nesting CSS selectors', async ({ page, runAndTrace }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31607' });const traceViewer = await runAndTrace(async () => {@@ -1046,7 +1046,7 @@ test('should work with nesting CSS selectors', async ({ page, runAndTrace }) =>}});-test('should restore scroll positions', async ({ page, runAndTrace }) => {+test('TV-048 should restore scroll positions', async ({ page, runAndTrace }) => {const traceViewer = await runAndTrace(async () => {await page.setContent(`<style>@@ -1077,7 +1077,7 @@ test('should restore scroll positions', async ({ page, runAndTrace }) => {expect(await frame.locator('div').evaluate(div => div.scrollTop)).toBe(136);});-test('should restore control values', async ({ page, runAndTrace, asset }) => {+test('TV-049 should restore control values', async ({ page, runAndTrace, asset }) => {const traceViewer = await runAndTrace(async () => {await page.setContent(`<input type=text value=old>@@ -1131,7 +1131,7 @@ test('should restore control values', async ({ page, runAndTrace, asset }) => {await expect(frame.locator('input[type=file]')).toHaveValue('');});-test('should work with meta CSP', async ({ page, runAndTrace, browserName }) => {+test('TV-050 should work with meta CSP', async ({ page, runAndTrace, browserName }) => {const traceViewer = await runAndTrace(async () => {await page.setContent(`<head>@@ -1155,7 +1155,7 @@ test('should work with meta CSP', async ({ page, runAndTrace, browserName }) =>await expect(frame.locator('span')).toHaveText('World');});-test('should handle multiple headers', async ({ page, server, runAndTrace, browserName }) => {+test('TV-051 should handle multiple headers', async ({ page, server, runAndTrace, browserName }) => {server.setRoute('/foo.css', (req, res) => {res.statusCode = 200;res.setHeader('vary', ['accepts-encoding', 'accepts-encoding']);@@ -1172,7 +1172,7 @@ test('should handle multiple headers', async ({ page, server, runAndTrace, browsawait expect(frame.locator('body')).toHaveCSS('padding-left', '42px');});-test('should handle src=blob', async ({ page, server, runAndTrace, browserName }) => {+test('TV-052 should handle src=blob', async ({ page, server, runAndTrace, browserName }) => {test.skip(browserName === 'firefox');const traceViewer = await runAndTrace(async () => {@@ -1195,7 +1195,7 @@ test('should handle src=blob', async ({ page, server, runAndTrace, browserName }expect(size).toBe(10);});-test('should handle file URIs', async ({ page, runAndTrace, browserName }) => {+test('TV-053 should handle file URIs', async ({ page, runAndTrace, browserName }) => {test.skip(browserName !== 'chromium');const traceViewer = await runAndTrace(async () => {@@ -1206,7 +1206,7 @@ test('should handle file URIs', async ({ page, runAndTrace, browserName }) => {await expect(frame.locator('body')).toHaveCSS('background-color', 'rgb(255, 192, 203)');});-test('should preserve currentSrc', async ({ browser, server, showTraceViewer }) => {+test('TV-054 should preserve currentSrc', async ({ browser, server, showTraceViewer }) => {const traceFile = test.info().outputPath('trace.zip');const page = await browser.newPage({ deviceScaleFactor: 3 });await page.context().tracing.start({ snapshots: true, screenshots: true, sources: true });@@ -1228,7 +1228,7 @@ test('should preserve currentSrc', async ({ browser, server, showTraceViewer })await expect(frame.locator('#target2')).toHaveAttribute('src', server.PREFIX + '/digits/6.png');});-test('should register custom elements', async ({ page, server, runAndTrace }) => {+test('TV-055 should register custom elements', async ({ page, server, runAndTrace }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.evaluate(() => {@@ -1257,7 +1257,7 @@ test('should register custom elements', async ({ page, server, runAndTrace }) =>await expect(frame.getByText('worldhello')).toBeVisible();});-test('should not treat synthetic shadow root as a shadow root', async ({ page, server, runAndTrace }) => {+test('TV-056 should not treat synthetic shadow root as a shadow root', async ({ page, server, runAndTrace }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42772' });const traceViewer = await runAndTrace(async () => {await page.goto(server.PREFIX + '/synthetic-shadow.html');@@ -1276,7 +1276,7 @@ test('should not treat synthetic shadow root as a shadow root', async ({ page, sawait expect(frame.locator('#native .icon')).toHaveCSS('fill', 'rgb(46, 139, 87)');});-test('should highlight target elements', async ({ page, runAndTrace, browserName }) => {+test('TV-057 should highlight target elements', async ({ page, runAndTrace, browserName }) => {const traceViewer = await runAndTrace(async () => {await page.setContent(`<div>t1</div>@@ -1357,7 +1357,7 @@ test('should highlight target elements', async ({ page, runAndTrace, browserNameawait expect.poll(() => highlightedDivs(frameUpdatedListOfTargets)).toEqual(['t4']);});-test('should highlight target element in shadow dom', async ({ page, server, runAndTrace }) => {+test('TV-058 should highlight target element in shadow dom', async ({ page, server, runAndTrace }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.PREFIX + '/shadow.html');await page.locator('button').click();@@ -1371,7 +1371,7 @@ test('should highlight target element in shadow dom', async ({ page, server, runawait expect(frameExpect.locator('h1')).toHaveCSS('background-color', 'rgba(111, 168, 220, 0.498)');});-test('should highlight expect failure', async ({ page, server, runAndTrace }) => {+test('TV-059 should highlight expect failure', async ({ page, server, runAndTrace }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright-python/issues/2258' });const traceViewer = await runAndTrace(async () => {try {@@ -1386,7 +1386,7 @@ test('should highlight expect failure', async ({ page, server, runAndTrace }) =>await expect(traceViewer.errorMessages.nth(0)).toHaveText('Expect failed');});-test('should show action source', async ({ showTraceViewer }) => {+test('TV-060 should show action source', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.selectAction('Click');@@ -1398,7 +1398,7 @@ test('should show action source', async ({ showTraceViewer }) => {await expect(traceViewer.page.locator('.source-line-running')).toContainText('page.waitForNavigation()');});-test('should follow redirects', async ({ page, runAndTrace, server, asset }) => {+test('TV-061 should follow redirects', async ({ page, runAndTrace, server, asset }) => {server.setRoute('/empty.html', (req, res) => {res.writeHead(200, { 'Content-Type': 'text/html' });res.end(`<div><img id=img src="image.png"></img></div>`);@@ -1424,7 +1424,7 @@ test('should follow redirects', async ({ page, runAndTrace, server, asset }) =>await expect(snapshotFrame.locator('img')).toHaveJSProperty('naturalWidth', 10);});-test('should include metainfo', async ({ showTraceViewer }) => {+test('TV-062 should include metainfo', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.page.getByRole('tab', { name: 'Metadata' }).click();const callLine = traceViewer.metadataTab.locator('.call-line');@@ -1440,7 +1440,7 @@ test('should include metainfo', async ({ showTraceViewer }) => {await expect(callLine.getByText('events')).toHaveText(/events:[\d]+/);});-test('should open v6 trace file', async ({ showTraceViewer, asset }) => {+test('TV-063 should open v6 trace file', async ({ showTraceViewer, asset }) => {const traceViewer = await showTraceViewer(asset('test-trace1.zip'));// Same actions from different test runs should not be merged.await expect(traceViewer.actionTitles).toHaveText([@@ -1451,7 +1451,7 @@ test('should open v6 trace file', async ({ showTraceViewer, asset }) => {]);});-test('should not crash with broken locator', async ({ page, runAndTrace, server }) => {+test('TV-064 should not crash with broken locator', async ({ page, runAndTrace, server }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21832' });const traceViewer = await runAndTrace(async () => {try {@@ -1464,7 +1464,7 @@ test('should not crash with broken locator', async ({ page, runAndTrace, serverawait expect(header).toBeVisible();});-test('should serve overridden request', async ({ page, runAndTrace, server }) => {+test('TV-065 should serve overridden request', async ({ page, runAndTrace, server }) => {server.setRoute('/custom.css', (req, res) => {res.writeHead(200, {'Content-Type': 'text/css',@@ -1484,7 +1484,7 @@ test('should serve overridden request', async ({ page, runAndTrace, server }) =>await expect(snapshotFrame.locator('body')).toHaveCSS('background-color', 'rgb(255, 0, 0)');});-test('should display waitForLoadState even if did not wait for it', async ({ runAndTrace, server, page }) => {+test('TV-066 should display waitForLoadState even if did not wait for it', async ({ runAndTrace, server, page }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.waitForLoadState('load');@@ -1497,7 +1497,7 @@ test('should display waitForLoadState even if did not wait for it', async ({ run]);});-test('should display language-specific locators', async ({ runAndTrace, server, page, toImpl }) => {+test('TV-067 should display language-specific locators', async ({ runAndTrace, server, page, toImpl }) => {toImpl(page).attribution.browser.options.sdkLanguage = 'python';const traceViewer = await runAndTrace(async () => {await page.setContent('<button>Submit</button>');@@ -1510,7 +1510,7 @@ test('should display language-specific locators', async ({ runAndTrace, server,toImpl(page).attribution.browser.options.sdkLanguage = 'javascript';});-test('should pick locator', async ({ page, runAndTrace, server }) => {+test('TV-068 should pick locator', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.setContent('<button>Submit</button>');@@ -1522,7 +1522,7 @@ test('should pick locator', async ({ page, runAndTrace, server }) => {await expect(traceViewer.page.locator('.cm-wrapper').last()).toContainText(`- button "Submit"`);});-test('should generate aria snapshot with unaltered urls', async ({ page, runAndTrace, server }) => {+test('TV-069 should generate aria snapshot with unaltered urls', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.setContent('<a href="https://example.com">Example link</a>');@@ -1536,7 +1536,7 @@ test('should generate aria snapshot with unaltered urls', async ({ page, runAndT`);});-test('should update highlight when typing locator', async ({ page, runAndTrace, server }) => {+test('TV-070 should update highlight when typing locator', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.setContent('<button>Submit</button>');@@ -1553,7 +1553,7 @@ test('should update highlight when typing locator', async ({ page, runAndTrace,}).toEqual(buttonBox);});-test('should update highlight when typing snapshot', async ({ page, runAndTrace, server }) => {+test('TV-071 should update highlight when typing snapshot', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.setContent('<button>Submit</button>');@@ -1569,13 +1569,13 @@ test('should update highlight when typing snapshot', async ({ page, runAndTrace,}).toEqual(buttonBox);});-test('should open trace-1.31', async ({ showTraceViewer }) => {+test('TV-072 should open trace-1.31', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(path.join(__dirname, '../assets/trace-1.31.zip'));const snapshot = await traceViewer.snapshotFrame('Click');await expect(snapshot.locator('[__playwright_target__]')).toHaveText(['Submit']);});-test('should open trace-1.37', async ({ showTraceViewer }) => {+test('TV-073 should open trace-1.37', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(path.join(__dirname, '../assets/trace-1.37.zip'));const snapshot = await traceViewer.snapshotFrame('page.goto');await expect(snapshot.locator('div')).toHaveCSS('background-color', 'rgb(255, 0, 0)');@@ -1590,7 +1590,7 @@ test('should open trace-1.37', async ({ showTraceViewer }) => {]);});-test('should prefer later resource request with the same method', async ({ page, server, runAndTrace }) => {+test('TV-074 should prefer later resource request with the same method', async ({ page, server, runAndTrace }) => {const html = `<body><script>@@ -1639,7 +1639,7 @@ test('should prefer later resource request with the same method', async ({ page,await expect(frame2.locator('body')).toHaveCSS('background-color', 'rgb(123, 123, 123)');});-test('should ignore 304 responses', async ({ page, server, runAndTrace }) => {+test('TV-075 should ignore 304 responses', async ({ page, server, runAndTrace }) => {const html = `<head><link rel=stylesheet href="style.css" />@@ -1676,7 +1676,7 @@ test('should ignore 304 responses', async ({ page, server, runAndTrace }) => {await expect(frame.locator('body')).toHaveCSS('background-color', 'rgb(123, 123, 123)');});-test('should pick locator in iframe', async ({ page, runAndTrace, server }) => {+test('TV-076 should pick locator in iframe', async ({ page, runAndTrace, server }) => {/*iframe[id=frame1]div Hello1@@ -1714,7 +1714,7 @@ test('should pick locator in iframe', async ({ page, runAndTrace, server }) => {await expect.soft(cmWrapper).toContainText(`locator('#frame1').contentFrame().locator('iframe').contentFrame().locator('iframe[name="two"]').contentFrame().getByText('HelloNameTwo')`, { timeout: 0 });});-test('should highlight locator in iframe while typing', async ({ page, runAndTrace, server, platform }) => {+test('TV-077 should highlight locator in iframe while typing', async ({ page, runAndTrace, server, platform }) => {/*iframe[id=frame1]div Hello1@@ -1769,7 +1769,7 @@ test('should highlight locator in iframe while typing', async ({ page, runAndTra}});-test('should preserve noscript when javascript is disabled', async ({ browser, server, showTraceViewer }) => {+test('TV-078 should preserve noscript when javascript is disabled', async ({ browser, server, showTraceViewer }) => {const traceFile = test.info().outputPath('trace.zip');const page = await browser.newPage({ javaScriptEnabled: false });await page.context().tracing.start({ snapshots: true, screenshots: true, sources: true });@@ -1787,7 +1787,7 @@ test('should preserve noscript when javascript is disabled', async ({ browser, sawait expect(frame.getByText('javascript is disabled!')).toBeVisible();});-test('should remove noscript by default', async ({ browser, server, showTraceViewer, browserType }) => {+test('TV-079 should remove noscript by default', async ({ browser, server, showTraceViewer, browserType }) => {const traceFile = test.info().outputPath('trace.zip');const page = await browser.newPage({ javaScriptEnabled: undefined });await page.context().tracing.start({ snapshots: true, screenshots: true, sources: true });@@ -1805,7 +1805,7 @@ test('should remove noscript by default', async ({ browser, server, showTraceVieawait expect(frame.getByText('Enable JavaScript to run this app.')).toBeHidden();});-test('should remove noscript when javaScriptEnabled is set to true', async ({ browser, server, showTraceViewer, browserType }) => {+test('TV-080 should remove noscript when javaScriptEnabled is set to true', async ({ browser, server, showTraceViewer, browserType }) => {const traceFile = test.info().outputPath('trace.zip');const page = await browser.newPage({ javaScriptEnabled: true });await page.context().tracing.start({ snapshots: true, screenshots: true, sources: true });@@ -1823,7 +1823,7 @@ test('should remove noscript when javaScriptEnabled is set to true', async ({ brawait expect(frame.getByText('Enable JavaScript to run this app.')).toBeHidden();});-test('should open snapshot in new browser context', async ({ browser, page, runAndTrace, server, channel }) => {+test('TV-081 should open snapshot in new browser context', async ({ browser, page, runAndTrace, server, channel }) => {test.skip(channel === 'webkit-wsl', 'Trace Viewer opens via ipv6 address which is not supported in WSL');const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);@@ -1841,7 +1841,7 @@ test('should open snapshot in new browser context', async ({ browser, page, runAawait newPage.close();});-test('should show similar actions from legacy library-only trace', async ({ showTraceViewer, asset }) => {+test('TV-082 should show similar actions from legacy library-only trace', async ({ showTraceViewer, asset }) => {const traceViewer = await showTraceViewer(asset('trace-library-1.46.zip'));await traceViewer.showAllActions();await expect(traceViewer.actionTitles).toHaveText([@@ -1863,7 +1863,7 @@ function parseMillis(s: string): number {return (+matchSeconds[1]) * 1000;}-test('should show correct request start time', {+test('TV-083 should show correct request start time', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31133' },}, async ({ page, runAndTrace, server }) => {server.setRoute('/api', (req, res) => {@@ -1888,7 +1888,7 @@ test('should show correct request start time', {expect(parseMillis(start)).toBeLessThan(1000);});-test('should not record route actions', {+test('TV-084 should not record route actions', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30970' },}, async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {@@ -1903,7 +1903,7 @@ test('should not record route actions', {]);});-test('should not record network actions', {+test('TV-085 should not record network actions', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/33558' },}, async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {@@ -1925,7 +1925,7 @@ test('should not record network actions', {]);});-test('should show baseURL in metadata pane', {+test('TV-086 should show baseURL in metadata pane', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31847' },}, async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);@@ -1934,7 +1934,7 @@ test('should show baseURL in metadata pane', {await expect(traceViewer.metadataTab).toContainText('baseURL:https://example.com');});-test('should not leak recorders', {+test('TV-087 should not leak recorders', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/33086' },}, async ({ showTraceViewer, platform }) => {const traceViewer = await showTraceViewer(traceFile);@@ -1994,7 +1994,7 @@ test('should not leak recorders', {await expect.poll(() => aliveCount()).toBeLessThanOrEqual(2); // two snapshot iframes});-test('should serve css without content-type', async ({ page, runAndTrace, server }) => {+test('TV-088 should serve css without content-type', async ({ page, runAndTrace, server }) => {server.setRoute('/one-style.css', (req, res) => {res.writeHead(200);res.end(`body { background: red }`);@@ -2006,7 +2006,7 @@ test('should serve css without content-type', async ({ page, runAndTrace, serverawait expect(snapshotFrame.locator('body')).toHaveCSS('background-color', 'rgb(255, 0, 0)', { timeout: 0 });});-test('canvas disabled title', async ({ runAndTrace, page, server }) => {+test('TV-089 canvas disabled title', async ({ runAndTrace, page, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.PREFIX + '/screenshots/canvas.html#canvas-on-edge');await rafraf(page, 5);@@ -2016,7 +2016,7 @@ test('canvas disabled title', async ({ runAndTrace, page, server }) => {await expect(snapshot.locator('canvas')).toHaveAttribute('title', `Canvas content display is disabled.`);});-test('canvas clipping', async ({ runAndTrace, page, server }) => {+test('TV-090 canvas clipping', async ({ runAndTrace, page, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.PREFIX + '/screenshots/canvas.html#canvas-on-edge');await rafraf(page, 5);@@ -2035,7 +2035,7 @@ test('canvas clipping', async ({ runAndTrace, page, server }) => {await expect(snapshot.locator('canvas')).toHaveAttribute('title', `Playwright couldn't capture full canvas contents because it's located partially outside the viewport.`);});-test('canvas clipping in iframe', async ({ runAndTrace, page, server }) => {+test('TV-091 canvas clipping in iframe', async ({ runAndTrace, page, server }) => {const traceViewer = await runAndTrace(async () => {await page.setContent(`<iframe src="${server.PREFIX}/screenshots/canvas.html#canvas-on-edge"></iframe>@@ -2058,7 +2058,7 @@ test('canvas clipping in iframe', async ({ runAndTrace, page, server }) => {await expect(canvas).toHaveAttribute('title', 'Canvas contents are displayed on a best-effort basis based on viewport screenshots taken during test execution.');});-test('should show only one pointer with multilevel iframes', async ({ page, runAndTrace, server, browserName, isBidi }) => {+test('TV-092 should show only one pointer with multilevel iframes', async ({ page, runAndTrace, server, browserName, isBidi }) => {server.setRoute('/level-0.html', (req, res) => {res.writeHead(200, { 'Content-Type': 'text/html' });res.end(`<iframe src="/level-1.html" style="position: absolute; left: 100px"></iframe>`);@@ -2082,7 +2082,7 @@ test('should show only one pointer with multilevel iframes', async ({ page, runAawait expect.soft(snapshotFrame.frameLocator('iframe').frameLocator('iframe').locator('x-pw-pointer')).not.toBeAttached();});-test('should show a popover', async ({ runAndTrace, page, server, platform, browserName, macVersion }) => {+test('TV-093 should show a popover', async ({ runAndTrace, page, server, platform, browserName, macVersion }) => {test.skip(platform === 'darwin' && macVersion === 13 && browserName === 'webkit', 'WebKit on macOS 13.7 reliably fails on this test for some reason');const traceViewer = await runAndTrace(async () => {await page.setContent(`@@ -2100,7 +2100,7 @@ test('should show a popover', async ({ runAndTrace, page, server, platform, browawait expect.poll(() => popover.evaluate(e => e.matches(':popover-open'))).toBe(true);});-test('should show a modal dialog', async ({ runAndTrace, page, platform, browserName, macVersion }) => {+test('TV-094 should show a modal dialog', async ({ runAndTrace, page, platform, browserName, macVersion }) => {test.skip(platform === 'darwin' && macVersion === 13 && browserName === 'webkit', 'WebKit on macOS 13.7 reliably fails on this test for some reason');const traceViewer = await runAndTrace(async () => {await page.setContent(`@@ -2124,14 +2124,14 @@ test('should show a modal dialog', async ({ runAndTrace, page, platform, browserawait expect.poll(() => dialog.evaluate(e => e.matches(':modal'))).toBe(true);});-test('should open settings dialog', async ({ showTraceViewer }) => {+test('TV-095 should open settings dialog', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.selectAction('Navigate');await traceViewer.showSettings();await expect(traceViewer.settingsDialog).toBeVisible();});-test('should toggle theme color', async ({ showTraceViewer }) => {+test('TV-096 should toggle theme color', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.selectAction('Navigate');await traceViewer.showSettings();@@ -2147,7 +2147,7 @@ test('should toggle theme color', async ({ showTraceViewer }) => {await expect(traceViewer.page.locator('html')).toHaveClass('light-mode');});-test('should reflect system color scheme changes in document theme', async ({ showTraceViewer }) => {+test('TV-097 should reflect system color scheme changes in document theme', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(traceFile);await traceViewer.selectAction('Navigate');@@ -2160,7 +2160,7 @@ test('should reflect system color scheme changes in document theme', async ({ shawait expect(traceViewer.page.locator('html')).toHaveClass('light-mode');});-test('should toggle canvas rendering', async ({ runAndTrace, page }) => {+test('TV-098 should toggle canvas rendering', async ({ runAndTrace, page }) => {const traceViewer = await runAndTrace(async () => {await page.goto(`data:text/html,<!DOCTYPE html><body><div>Hello world</div><canvas /></body>`);await page.goto(`data:text/html,<!DOCTYPE html><body><div>Hello world</div></body>`);@@ -2194,7 +2194,7 @@ test('should toggle canvas rendering', async ({ runAndTrace, page }) => {expect(snapshotRequest.url()).toContain('shouldPopulateCanvasFromScreenshot');});-test('should display aria mode', async ({ runAndTrace, page }) => {+test('TV-099 should display aria mode', async ({ runAndTrace, page }) => {let buttonBox: { x: number, y: number, width: number, height: number };const traceViewer = await runAndTrace(async () => {await page.setContent('<!DOCTYPE html><button>Click me</button>');@@ -2280,7 +2280,7 @@ test('should display aria mode', async ({ runAndTrace, page }) => {await expect(traceViewer.snapshotContainer).toBeVisible();});-test('should disable aria setting when there are no aria snapshots', async ({ runAndTrace, page }) => {+test('TV-100 should disable aria setting when there are no aria snapshots', async ({ runAndTrace, page }) => {const traceViewer = await runAndTrace(async () => {await page.setContent('<!DOCTYPE html><button>Click me</button>');await page.locator('button').click();@@ -2294,7 +2294,7 @@ test('should disable aria setting when there are no aria snapshots', async ({ ruawait expect(traceViewer.displayAriaSetting).toBeChecked({ checked: false });});-test('should force aria mode when there are no dom snapshots', async ({ runAndTrace, page }) => {+test('TV-101 should force aria mode when there are no dom snapshots', async ({ runAndTrace, page }) => {const traceViewer = await runAndTrace(async () => {await page.setContent('<!DOCTYPE html><button>Click me</button>');await page.locator('button').click();@@ -2308,7 +2308,7 @@ test('should force aria mode when there are no dom snapshots', async ({ runAndTrawait expect(traceViewer.displayAriaSetting).toBeChecked({ checked: true });});-test('should notify parent when ready to receive messages', async ({ browser, server, showTraceViewer }) => {+test('TV-102 should notify parent when ready to receive messages', async ({ browser, server, showTraceViewer }) => {const traceViewer = await showTraceViewer(undefined, { host: 'localhost' });const traceViewerURL = traceViewer.page.url();await using context = await browser.newContext();@@ -2339,7 +2339,7 @@ test('should notify parent when ready to receive messages', async ({ browser, seexpect(readyMessage).toEqual({ method: 'ready' });});-test('should render blob trace received from opener', async ({ browser, server, showTraceViewer }) => {+test('TV-103 should render blob trace received from opener', async ({ browser, server, showTraceViewer }) => {const traceViewer = await showTraceViewer(undefined, { host: 'localhost' });const traceViewerURL = traceViewer.page.url();await using context = await browser.newContext();@@ -2402,7 +2402,7 @@ test('should render blob trace received from opener', async ({ browser, server,]);});-test("shouldn't render not-blob trace received from message", async ({ showTraceViewer }) => {+test("TV-104 shouldn't render not-blob trace received from message", async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(undefined, { host: 'localhost' });await expect(traceViewer.page.locator('.drop-target')).toBeVisible();@@ -2421,7 +2421,7 @@ test("shouldn't render not-blob trace received from message", async ({ showTraceawait expect(traceViewer.actionTitles).not.toBeVisible();});-test('should not trip over complex urls in style tags', {+test('TV-105 should not trip over complex urls in style tags', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35681' },}, async ({ runAndTrace, page }) => {const traceViewer = await runAndTrace(async () => {@@ -2457,7 +2457,7 @@ test('should not trip over complex urls in style tags', {await expect(snapshot.locator('span')).toHaveCSS('color', 'rgb(4, 5, 6)');});-test('should render locator descriptions', async ({ runAndTrace, page }) => {+test('TV-106 should render locator descriptions', async ({ runAndTrace, page }) => {const traceViewer = await runAndTrace(async () => {await page.setContent('<input type="text" />');await page.locator('input').describe('custom').click();@@ -2470,7 +2470,7 @@ test('should render locator descriptions', async ({ runAndTrace, page }) => {`);});-test('should load trace from HTTP with progress indicator', async ({ showTraceViewer, server }) => {+test('TV-107 should load trace from HTTP with progress indicator', async ({ showTraceViewer, server }) => {const [traceViewer, res] = await Promise.all([showTraceViewer(server.PREFIX),new Promise<http.ServerResponse>(resolve => {@@ -2493,7 +2493,7 @@ test('should load trace from HTTP with progress indicator', async ({ showTraceViawait expect(traceViewer.actionTitles).toContainText([/Create page/]);});-test('should filter actions', async ({ runAndTrace, page }) => {+test('TV-108 should filter actions', async ({ runAndTrace, page }) => {const traceViewer = await runAndTrace(async () => {await page.route('**/*', async route => {await route.fulfill({ contentType: 'text/html', body: '<input type=checkbox checked>' });@@ -2540,7 +2540,7 @@ test.describe(() => {// On http/about:blank it throws "The operation is insecure".test.use({ ignoreHTTPSErrors: true });- test('should handle failed snapshots due to dialog', async ({ page, httpsServer, runAndTrace }) => {+ test('TV-109 should handle failed snapshots due to dialog', async ({ page, httpsServer, runAndTrace }) => {const traceViewer = await runAndTrace(async () => {await page.goto(httpsServer.EMPTY_PAGE);await page.setContent(`@@ -2576,7 +2576,7 @@ test.describe(() => {});});-test('should survive service worker restart', async ({ page, runAndTrace, server }) => {+test('TV-110 should survive service worker restart', async ({ page, runAndTrace, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.setContent('Old world');@@ -2595,7 +2595,7 @@ test('should survive service worker restart', async ({ page, runAndTrace, serverawait expect(snapshot2.locator('body')).toHaveText('Old world');});-test('should not navigate on anchor clicks', async ({ runAndTrace, page, server }) => {+test('TV-111 should not navigate on anchor clicks', async ({ runAndTrace, page, server }) => {const url = server.EMPTY_PAGE;const traceViewer = await runAndTrace(async () => {await page.setContent(`@@ -2624,7 +2624,7 @@ test('should not navigate on anchor clicks', async ({ runAndTrace, page, serverawait checkLink('link3');});-test('should respect CSSOM changes', async ({ runAndTrace, page, server }) => {+test('TV-112 should respect CSSOM changes', async ({ runAndTrace, page, server }) => {const traceViewer = await runAndTrace(async () => {await page.setContent('<style>button { color: red; }</style><button>Hello</button>');await page.evaluate(() => { (document.styleSheets[0].cssRules[0] as any).style.color = 'blue'; });@@ -2670,7 +2670,7 @@ test('should respect CSSOM changes', async ({ runAndTrace, page, server }) => {await expect(frame9.locator('button')).toHaveCSS('color', 'rgb(0, 0, 0)');});-test('should preserve custom doctype', async ({ runAndTrace, page }) => {+test('TV-113 should preserve custom doctype', async ({ runAndTrace, page }) => {const traceViewer = await runAndTrace(async () => {await page.setContent('<!DOCTYPE foo><body>hi</body>');});@@ -2678,7 +2678,7 @@ test('should preserve custom doctype', async ({ runAndTrace, page }) => {await expect.poll(() => frame.locator('body').evaluate(() => document.doctype.name)).toBe('foo');});-test('should replace meta charset attr that specifies charset', async ({ runAndTrace, page, server }) => {+test('TV-114 should replace meta charset attr that specifies charset', async ({ runAndTrace, page, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.setContent('<meta charset="shift-jis" />');@@ -2687,7 +2687,7 @@ test('should replace meta charset attr that specifies charset', async ({ runAndTawait expect.poll(() => frame.locator('body').evaluate(() => document.querySelector('meta')?.outerHTML.toLowerCase())).toBe('<meta charset="utf-8">');});-test('should replace meta content attr that specifies charset', async ({ runAndTrace, page, server }) => {+test('TV-115 should replace meta content attr that specifies charset', async ({ runAndTrace, page, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.setContent('<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">');@@ -2696,7 +2696,7 @@ test('should replace meta content attr that specifies charset', async ({ runAndTawait expect.poll(() => frame.locator('body').evaluate(() => document.querySelector('meta')?.outerHTML.toLowerCase())).toBe('<meta http-equiv="content-type" content="text/html; charset=utf-8">');});-test('should drop meta http-equiv refresh during recording', async ({ runAndTrace, page, server }) => {+test('TV-116 should drop meta http-equiv refresh during recording', async ({ runAndTrace, page, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);// Use a very large delay so the recorded page does not actually navigate before the snapshot is taken.@@ -2716,7 +2716,7 @@ test('should drop meta http-equiv refresh during recording', async ({ runAndTracawait expect(traceViewer.page.locator('body')).not.toHaveAttribute('data-pwned', /.*/);});-test('should neutralize meta http-equiv refresh during rendering', async ({ runAndTrace, page, server }) => {+test('TV-117 should neutralize meta http-equiv refresh during rendering', async ({ runAndTrace, page, server }) => {// Inject a META refresh directly via DOM manipulation that bypasses the// recording-time strip (so this test specifically validates the renderer-side defense).const traceViewer = await runAndTrace(async () => {@@ -2739,7 +2739,7 @@ test('should neutralize meta http-equiv refresh during rendering', async ({ runAawait expect(traceViewer.page).toHaveTitle(/Playwright Trace Viewer/);});-test('snapshots should be served with a script-src policy', async ({ runAndTrace, page, server }) => {+test('TV-118 snapshots should be served with a script-src policy', async ({ runAndTrace, page, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.setContent('<div>hello</div>');@@ -2755,7 +2755,7 @@ test('snapshots should be served with a script-src policy', async ({ runAndTraceexpect(scripted).toBe(null);});-test('snapshot iframes should be sandboxed', async ({ runAndTrace, page, server }) => {+test('TV-119 snapshot iframes should be sandboxed', async ({ runAndTrace, page, server }) => {const traceViewer = await runAndTrace(async () => {await page.goto(server.EMPTY_PAGE);await page.setContent('<div>hello</div>');@@ -2769,7 +2769,7 @@ test('snapshot iframes should be sandboxed', async ({ runAndTrace, page, server}});-test('should capture iframe with srcdoc', async ({ page, server, runAndTrace }) => {+test('TV-120 should capture iframe with srcdoc', async ({ page, server, runAndTrace }) => {await page.route('**/empty.html', route => {void route.fulfill({body: `<iframe srcdoc="<button>Hello iframe</button>"></iframe>`,@@ -2787,7 +2787,7 @@ test('should capture iframe with srcdoc', async ({ page, server, runAndTrace })await expect(frame.frameLocator('iframe').getByRole('button')).toHaveText('Hello iframe');});-test('should render snapshots from the second chunk', async ({ context, page, server, showTraceViewer }, testInfo) => {+test('TV-121 should render snapshots from the second chunk', async ({ context, page, server, showTraceViewer }, testInfo) => {await context.tracing.start({ screenshots: true, snapshots: true });await page.goto(server.EMPTY_PAGE);await page.setContent('<button>Click</button>');@@ -2807,7 +2807,7 @@ test('should render snapshots from the second chunk', async ({ context, page, seawait expect(frame.locator('button')).toHaveText('Click');});-test('take trace paths via stdin', async ({ showTraceViewer }) => {+test('TV-122 take trace paths via stdin', async ({ showTraceViewer }) => {const traceViewer = await showTraceViewer(undefined, { stdin: true });await expect(traceViewer.page).toHaveTitle('Playwright Trace Viewer');traceViewer.process.write(traceFile);diff --git a/tests/library/tracing.spec.ts b/tests/library/tracing.spec.tsindex 6e5b88e7bb..4d1360b331 100644--- a/tests/library/tracing.spec.ts+++ b/tests/library/tracing.spec.ts@@ -25,7 +25,7 @@ import { rafraf } from '../page/pageTest';test.skip(({ trace }) => trace === 'on');-test('should collect trace with resources, but no js', async ({ context, page, server, asset }, testInfo) => {+test('TR-001 should collect trace with resources, but no js', async ({ context, page, server, asset }, testInfo) => {await context.tracing.start({ screenshots: true, snapshots: true });await page.goto(server.PREFIX + '/frames/frame.html');await page.setContent('<button>Click</button>');@@ -64,7 +64,7 @@ test('should collect trace with resources, but no js', async ({ context, page, sexpect(script.snapshot.response.content._file).toBe(undefined);});-test('should use the correct title for event driven callbacks', async ({ context, page, server }, testInfo) => {+test('TR-002 should use the correct title for event driven callbacks', async ({ context, page, server }, testInfo) => {await context.tracing.start();// route.* calls should not be included in the traceawait page.route('**/empty.html', route => route.continue());@@ -95,7 +95,7 @@ test('should use the correct title for event driven callbacks', async ({ context]);});-browserTest('should not store secrets in context options', async ({ browser, server }, testInfo) => {+browserTest('TR-003 should not store secrets in context options', async ({ browser, server }, testInfo) => {const context = await browser.newContext({baseURL: server.PREFIX,viewport: { width: 500, height: 600 },@@ -127,7 +127,7 @@ browserTest('should not store secrets in context options', async ({ browser, serexpect(traceText).not.toContain('secret-cookie');});-test('should not collect snapshots by default', async ({ context, page, server }, testInfo) => {+test('TR-004 should not collect snapshots by default', async ({ context, page, server }, testInfo) => {await context.tracing.start();await page.goto(server.EMPTY_PAGE);await page.setContent('<button>Click</button>');@@ -140,7 +140,7 @@ test('should not collect snapshots by default', async ({ context, page, server }expect(events.some(e => e.type === 'resource-snapshot')).toBeFalsy();});-test('should not collect action screenshots and aria snapshots by default', async ({ context, page, server }, testInfo) => {+test('TR-005 should not collect action screenshots and aria snapshots by default', async ({ context, page, server }, testInfo) => {await context.tracing.start({ snapshots: true });await page.goto(server.PREFIX + '/input/button.html');await page.click('button');@@ -151,7 +151,7 @@ test('should not collect action screenshots and aria snapshots by default', asynexpect(events.some(e => e.type === 'aria-snapshot')).toBeFalsy();});-test('should collect action screenshots', async ({ context, page, server }, testInfo) => {+test('TR-006 should collect action screenshots', async ({ context, page, server }, testInfo) => {await context.tracing.start({ snapshots: { screen: true } });await page.goto(server.PREFIX + '/input/button.html');await page.click('button');@@ -168,7 +168,7 @@ test('should collect action screenshots', async ({ context, page, server }, test}});-test('should collect aria snapshots', async ({ context, page, server }, testInfo) => {+test('TR-007 should collect aria snapshots', async ({ context, page, server }, testInfo) => {await context.tracing.start({ snapshots: { aria: true } });await page.goto(server.PREFIX + '/input/button.html');await page.click('button');@@ -186,7 +186,7 @@ test('should collect aria snapshots', async ({ context, page, server }, testInfo}});-test('can call tracing.group/groupEnd at any time and auto-close', async ({ context, page, server }, testInfo) => {+test('TR-008 can call tracing.group/groupEnd at any time and auto-close', async ({ context, page, server }, testInfo) => {await context.tracing.group('ignored');await context.tracing.groupEnd();await context.tracing.group('ignored2');@@ -208,7 +208,7 @@ test('can call tracing.group/groupEnd at any time and auto-close', async ({ contexpect(events.some(e => e.type === 'after' && e.callId === groups[0].callId)).toBe(true);});-test('should not include buffers in the trace', async ({ context, page, server }, testInfo) => {+test('TR-009 should not include buffers in the trace', async ({ context, page, server }, testInfo) => {await context.tracing.start({ snapshots: true });await page.goto(server.PREFIX + '/empty.html');await page.screenshot();@@ -223,7 +223,7 @@ test('should not include buffers in the trace', async ({ context, page, server }});});-test('should exclude internal pages', async ({ browserName, context, page, server }, testInfo) => {+test('TR-010 should exclude internal pages', async ({ browserName, context, page, server }, testInfo) => {await page.goto(server.EMPTY_PAGE);await context.tracing.start();@@ -241,7 +241,7 @@ test('should exclude internal pages', async ({ browserName, context, page, serveexpect(pageIds.size).toBe(1);});-test('should record context API request trace independently', async ({ context, page, server }, testInfo) => {+test('TR-011 should record context API request trace independently', async ({ context, page, server }, testInfo) => {const browserTracePath = testInfo.outputPath('browser-trace.zip');const apiTracePath = testInfo.outputPath('api-trace.zip');const apiURL = server.PREFIX + '/simple.json';@@ -269,7 +269,7 @@ test('should record context API request trace independently', async ({ context,expect(apiTrace.events.filter(event => event.type === 'resource-snapshot').map(event => event.snapshot._apiRequestRef)).toEqual([expect.stringMatching(/^request-context@/)]);});-test('should collect two traces', async ({ context, page, server }, testInfo) => {+test('TR-012 should collect two traces', async ({ context, page, server }, testInfo) => {await context.tracing.start({ screenshots: true, snapshots: true });await page.goto(server.EMPTY_PAGE);await page.setContent('<button>Click</button>');@@ -301,7 +301,7 @@ test('should collect two traces', async ({ context, page, server }, testInfo) =>}});-test('should respect tracesDir and name', async ({ browserType, server, mode }, testInfo) => {+test('TR-013 should respect tracesDir and name', async ({ browserType, server, mode }, testInfo) => {const tracesDir = testInfo.outputPath('traces');const browser = await browserType.launch({ tracesDir });const context = await browser.newContext();@@ -353,7 +353,7 @@ test('should respect tracesDir and name', async ({ browserType, server, mode },}});-test('should not include trace resources from the previous chunks', async ({ context, page, server, browserName, mode }, testInfo) => {+test('TR-014 should not include trace resources from the previous chunks', async ({ context, page, server, browserName, mode }, testInfo) => {await context.tracing.start({ screenshots: true, snapshots: true, sources: true });await context.tracing.startChunk();@@ -401,7 +401,7 @@ test('should not include trace resources from the previous chunks', async ({ con}});-test('should overwrite existing file', async ({ context, page, server }, testInfo) => {+test('TR-015 should overwrite existing file', async ({ context, page, server }, testInfo) => {await context.tracing.start({ screenshots: true, snapshots: true, sources: true });await page.goto(server.EMPTY_PAGE);await page.setContent('<button>Click</button>');@@ -424,7 +424,7 @@ test('should overwrite existing file', async ({ context, page, server }, testInf}});-test('should collect sources', async ({ context, page, server }, testInfo) => {+test('TR-016 should collect sources', async ({ context, page, server }, testInfo) => {await context.tracing.start({ sources: true });await page.goto(server.EMPTY_PAGE);await page.setContent('<button>Click</button>');@@ -440,7 +440,7 @@ test('should collect sources', async ({ context, page, server }, testInfo) => {expect(sourceFile).toEqual(thisFile);});-test('should record network failures', async ({ context, page, server }, testInfo) => {+test('TR-017 should record network failures', async ({ context, page, server }, testInfo) => {await context.tracing.start({ snapshots: true });await page.route('**/*', route => route.abort('connectionaborted'));await page.goto(server.EMPTY_PAGE).catch(e => {});@@ -453,7 +453,7 @@ test('should record network failures', async ({ context, page, server }, testInfexpect(requestEvent.snapshot.time).toBeGreaterThanOrEqual(0);});-test('should recover tracing after a failed stop', async ({ context, page, server }, testInfo) => {+test('TR-018 should recover tracing after a failed stop', async ({ context, page, server }, testInfo) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42423' });await context.tracing.start();// Saving fails: a parent of the destination is a file, not a directory.@@ -472,7 +472,7 @@ test('should recover tracing after a failed stop', async ({ context, page, serveexpect(actions).toContain(`Click locator('button')`);});-test('should release the stack session when saving the trace fails', async ({ browserType }, testInfo) => {+test('TR-019 should release the stack session when saving the trace fails', async ({ browserType }, testInfo) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42423' });// Override the test runner's tracesDir, so that the stack session owns a temporary directory.const browser = await browserType.launch({ tracesDir: undefined });@@ -491,7 +491,7 @@ test('should release the stack session when saving the trace fails', async ({ br}});-test('should not crash when browser closes mid-trace', async ({ browserType, server }, testInfo) => {+test('TR-020 should not crash when browser closes mid-trace', async ({ browserType, server }, testInfo) => {const browser = await browserType.launch();const page = await browser.newPage();await page.context().tracing.start({ snapshots: true, screenshots: true });@@ -500,7 +500,7 @@ test('should not crash when browser closes mid-trace', async ({ browserType, serawait new Promise(f => setTimeout(f, 1000)); // Give it some time to throw errors});-test('should survive browser.close with auto-created traces dir', async ({ browserType }, testInfo) => {+test('TR-021 should survive browser.close with auto-created traces dir', async ({ browserType }, testInfo) => {const oldTracesDir = (browserType as any)._playwright._defaultTracesDir;(browserType as any)._playwright._defaultTracesDir = undefined;const browser = await browserType.launch();@@ -530,7 +530,7 @@ test('should survive browser.close with auto-created traces dir', async ({ brows(browserType as any)._playwright._defaultTracesDir = oldTracesDir;});-test('should not stall on dialogs', async ({ page, context, server }) => {+test('TR-022 should not stall on dialogs', async ({ page, context, server }) => {await context.tracing.start({ screenshots: true, snapshots: true });await page.goto(server.EMPTY_PAGE);@@ -562,7 +562,7 @@ for (const params of [height: 768,}]) {- browserTest(`should produce screencast frames ${params.id}`, async ({ video, contextFactory, browserName, platform, headless, isHeadlessShell }, testInfo) => {+ browserTest(`TR-023 should produce screencast frames ${params.id}`, async ({ video, contextFactory, browserName, platform, headless, isHeadlessShell }, testInfo) => {browserTest.skip(video === 'on', 'Same screencast resolution conflicts');browserTest.fixme(browserName === 'chromium' && !isHeadlessShell, 'Chromium (but not headless-shell) screencast has a min width issue');browserTest.fixme(params.id === 'fit' && browserName === 'chromium' && platform === 'darwin', 'High DPI maxes image at 600x600');@@ -611,7 +611,7 @@ for (const params of [});}-test('should include interrupted actions', async ({ context, page, server }, testInfo) => {+test('TR-024 should include interrupted actions', async ({ context, page, server }, testInfo) => {await context.tracing.start({ screenshots: true, snapshots: true });await page.goto(server.EMPTY_PAGE);await page.setContent('<button>Click</button>');@@ -623,22 +623,22 @@ test('should include interrupted actions', async ({ context, page, server }, tesexpect(actions).toContain(`Click locator('text="ClickNoButton"')`);});-test('should throw when starting with different options', async ({ context }) => {+test('TR-025 should throw when starting with different options', async ({ context }) => {await context.tracing.start({ screenshots: true, snapshots: true });const error = await context.tracing.start({ screenshots: false, snapshots: false }).catch(e => e);expect(error.message).toContain('Tracing has been already started');});-test('should throw when stopping without start', async ({ context }, testInfo) => {+test('TR-026 should throw when stopping without start', async ({ context }, testInfo) => {const error = await context.tracing.stop({ path: testInfo.outputPath('trace.zip') }).catch(e => e);expect(error.message).toContain('Must start tracing before stopping');});-test('should not throw when stopping without start but not exporting', async ({ context }, testInfo) => {+test('TR-027 should not throw when stopping without start but not exporting', async ({ context }, testInfo) => {await context.tracing.stop();});-test('start should return a disposable that discards the trace', async ({ context, page, server }, testInfo) => {+test('TR-028 start should return a disposable that discards the trace', async ({ context, page, server }, testInfo) => {const disposable = await context.tracing.start();await page.goto(server.EMPTY_PAGE);await disposable.dispose();@@ -646,7 +646,7 @@ test('start should return a disposable that discards the trace', async ({ contexexpect(error.message).toContain('Must start tracing before stopping');});-test('startChunk should return a disposable that discards the chunk', async ({ context, page, server }, testInfo) => {+test('TR-029 startChunk should return a disposable that discards the chunk', async ({ context, page, server }, testInfo) => {await context.tracing.start();const disposable = await context.tracing.startChunk();await page.goto(server.EMPTY_PAGE);@@ -655,7 +655,7 @@ test('startChunk should return a disposable that discards the chunk', async ({ cexpect(error.message).toContain('Must start tracing before stopping');});-test('should work with multiple chunks', async ({ context, page, server }, testInfo) => {+test('TR-030 should work with multiple chunks', async ({ context, page, server }, testInfo) => {await context.tracing.start({ screenshots: true, snapshots: true });await page.goto(server.PREFIX + '/frames/frame.html');@@ -694,7 +694,7 @@ test('should work with multiple chunks', async ({ context, page, server }, testIexpect(trace2.events.some(e => e.type === 'resource-snapshot' && e.snapshot.request.url.endsWith('style.css'))).toBeTruthy();});-test('should export trace concurrently to second navigation', async ({ context, page, server }, testInfo) => {+test('TR-031 should export trace concurrently to second navigation', async ({ context, page, server }, testInfo) => {for (let timeout = 0; timeout < 200; timeout += 20) {await context.tracing.start({ screenshots: true, snapshots: true });await page.goto(server.PREFIX + '/grid.html');@@ -710,7 +710,7 @@ test('should export trace concurrently to second navigation', async ({ context,}});-test('should not hang for clicks that open dialogs', async ({ context, page }) => {+test('TR-032 should not hang for clicks that open dialogs', async ({ context, page }) => {await context.tracing.start({ screenshots: true, snapshots: true });const dialogPromise = page.waitForEvent('dialog');await page.setContent(`<div onclick='window.alert(123)'>Click me</div>`);@@ -720,7 +720,7 @@ test('should not hang for clicks that open dialogs', async ({ context, page }) =await context.tracing.stop();});-test('should ignore iframes in head', async ({ context, page, server }, testInfo) => {+test('TR-033 should ignore iframes in head', async ({ context, page, server }, testInfo) => {await page.goto(server.PREFIX + '/input/button.html');await page.evaluate(() => {document.head.appendChild(document.createElement('iframe'));@@ -741,7 +741,7 @@ test('should ignore iframes in head', async ({ context, page, server }, testInfoexpect(trace.events.find(e => e.type === 'frame-snapshot' && JSON.stringify(e.snapshot.html).includes('IFRAME'))).toBeFalsy();});-test('should hide internal stack frames', async ({ context, page }, testInfo) => {+test('TR-034 should hide internal stack frames', async ({ context, page }, testInfo) => {await context.tracing.start({ screenshots: true, snapshots: true });let evalPromise;page.on('dialog', dialog => {@@ -761,7 +761,7 @@ test('should hide internal stack frames', async ({ context, page }, testInfo) =>expect(relativeStack(action, trace.stacks)).toEqual(['tracing.spec.ts']);});-test('should hide internal stack frames in expect', async ({ context, page }, testInfo) => {+test('TR-035 should hide internal stack frames in expect', async ({ context, page }, testInfo) => {await context.tracing.start({ screenshots: true, snapshots: true });let expectPromise;page.on('dialog', dialog => {@@ -782,7 +782,7 @@ test('should hide internal stack frames in expect', async ({ context, page }, teexpect(relativeStack(action, trace.stacks)).toEqual(['tracing.spec.ts']);});-test('should record global request trace', async ({ request, context, server }, testInfo) => {+test('TR-036 should record global request trace', async ({ request, context, server }, testInfo) => {await request.tracing.start({ snapshots: true });const url = server.PREFIX + '/simple.json';await request.get(url);@@ -808,7 +808,7 @@ test('should record global request trace', async ({ request, context, server },}));});-test('should store global request traces separately', async ({ request, server, playwright, browserName, mode }, testInfo) => {+test('TR-037 should store global request traces separately', async ({ request, server, playwright, browserName, mode }, testInfo) => {const request2 = await playwright.request.newContext();await Promise.all([request.tracing.start({ snapshots: true }),@@ -845,7 +845,7 @@ test('should store global request traces separately', async ({ request, server,}});-test('should store postData for global request', async ({ request, server }, testInfo) => {+test('TR-038 should store postData for global request', async ({ request, server }, testInfo) => {testInfo.annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15031' });await request.tracing.start({ snapshots: true });const url = server.PREFIX + '/simple.json';@@ -866,7 +866,7 @@ test('should store postData for global request', async ({ request, server }, tes}));});-test('should not flush console events', async ({ context, page, mode }, testInfo) => {+test('TR-039 should not flush console events', async ({ context, page, mode }, testInfo) => {const testId = test.info().testId;await context.tracing.start({ name: testId });const promise = new Promise<void>(f => {@@ -907,7 +907,7 @@ test('should not flush console events', async ({ context, page, mode }, testInfo}).toPass();});-test('should flush console events on tracing stop', async ({ context, page }, testInfo) => {+test('TR-040 should flush console events on tracing stop', async ({ context, page }, testInfo) => {await context.tracing.start();const promise = new Promise<void>(f => {let counter = 0;@@ -930,7 +930,7 @@ test('should flush console events on tracing stop', async ({ context, page }, teexpect(events).toHaveLength(100);});-test('should not emit after w/o before', async ({ browserType, mode }, testInfo) => {+test('TR-041 should not emit after w/o before', async ({ browserType, mode }, testInfo) => {const tracesDir = testInfo.outputPath('traces');const browser = await browserType.launch({ tracesDir });const context = await browser.newContext();@@ -1009,7 +1009,7 @@ test('should not emit after w/o before', async ({ browserType, mode }, testInfo)expect(call2after).toBe(call2before);});-test('should save trace while a WebSocket keeps streaming frames', {+test('TR-042 should save trace while a WebSocket keeps streaming frames', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41351' }}, async ({ context, page, server }, testInfo) => {let streaming = true;diff --git a/tests/library/unit/android-webviews.spec.ts b/tests/library/unit/android-webviews.spec.tsindex 1b77ff5a82..0b5a7a0d5a 100644--- a/tests/library/unit/android-webviews.spec.ts+++ b/tests/library/unit/android-webviews.spec.ts@@ -54,7 +54,7 @@ function createBackend() {return { devices: async () => [deviceBackend] };}-it('should attribute a webview socket to the process that owns it', async () => {+it('AN-001 should attribute a webview socket to the process that owns it', async () => {const playwright = coreServer.createPlaywright({ sdkLanguage: 'javascript' });// Swap the adb backend for a scripted one - no device involved.(playwright.android as any)._backend = createBackend();diff --git a/tests/library/unit/clock.spec.ts b/tests/library/unit/clock.spec.tsindex e46a0ee982..e782a2367a 100644--- a/tests/library/unit/clock.spec.ts+++ b/tests/library/unit/clock.spec.ts@@ -69,14 +69,14 @@ const it = test.extend<ClockFixtures>({});it.describe('setTimeout', () => {- it('throws if no arguments', async ({ clock }) => {+ it('CK-057 throws if no arguments', async ({ clock }) => {expect(() => {// @ts-expect-errorclock.setTimeout();}).toThrow();});- it('does not throw if |undefined| or |null| is passed as a callback', async ({ clock }) => {+ it('CK-058 does not throw if |undefined| or |null| is passed as a callback', async ({ clock }) => {const timerId1 = clock.setTimeout(undefined, 10);const timerId2 = clock.setTimeout(null, 10);await clock.runFor(10);@@ -84,23 +84,23 @@ it.describe('setTimeout', () => {expect(timerId2).toBeGreaterThan(timerId1);});- it('returns numeric id or object with numeric id', async ({ clock }) => {+ it('CK-059 returns numeric id or object with numeric id', async ({ clock }) => {const result = clock.setTimeout(() => { }, 10);expect(result).toEqual(expect.any(Number));});- it('returns unique id', async ({ clock }) => {+ it('CK-060 returns unique id', async ({ clock }) => {const id1 = clock.setTimeout(() => { }, 10);const id2 = clock.setTimeout(() => { }, 10);expect(id2).not.toBe(id1);});- it('starts id from a large number', async ({ clock }) => {+ it('CK-061 starts id from a large number', async ({ clock }) => {const timer = clock.setTimeout(() => { }, 10);expect(timer).toBeGreaterThanOrEqual(1e12);});- it('sets timers on instance', async ({ clock }) => {+ it('CK-062 sets timers on instance', async ({ clock }) => {const clock1 = createClock();const clock2 = createClock();const stubs = [createStub(), createStub()];@@ -113,7 +113,7 @@ it.describe('setTimeout', () => {expect(stubs[1].called).toBeTruthy();});- it('parses numeric string times', async ({ clock }) => {+ it('CK-063 parses numeric string times', async ({ clock }) => {let evalCalled = false;clock.setTimeout(() => {evalCalled = true;@@ -123,7 +123,7 @@ it.describe('setTimeout', () => {expect(evalCalled).toBeTruthy();});- it('parses no-numeric string times', async ({ clock }) => {+ it('CK-064 parses no-numeric string times', async ({ clock }) => {let evalCalled = false;clock.setTimeout(() => {evalCalled = true;@@ -134,14 +134,14 @@ it.describe('setTimeout', () => {expect(evalCalled).toBeTruthy();});- it('passes setTimeout parameters', async ({ clock }) => {+ it('CK-065 passes setTimeout parameters', async ({ clock }) => {const stub = createStub();clock.setTimeout(stub, 2, 'the first', 'the second');await clock.runFor(3);expect(stub.calledWithExactly('the first', 'the second')).toBeTruthy();});- it('calls correct timeout on recursive tick', async ({ clock }) => {+ it('CK-066 calls correct timeout on recursive tick', async ({ clock }) => {const stub = createStub();const recurseCallback = () => {void clock.runFor(100);@@ -154,14 +154,14 @@ it.describe('setTimeout', () => {expect(stub.called).toBeTruthy();});- it('does not depend on this', async ({ clock }) => {+ it('CK-067 does not depend on this', async ({ clock }) => {const stub = createStub();clock.setTimeout(stub, 100);await clock.runFor(100);expect(stub.called).toBeTruthy();});- it('is not influenced by forward system clock changes', async ({ clock }) => {+ it('CK-068 is not influenced by forward system clock changes', async ({ clock }) => {const stub = createStub();clock.setTimeout(stub, 5000);await clock.runFor(1000);@@ -172,7 +172,7 @@ it.describe('setTimeout', () => {expect(stub.callCount).toBe(1);});- it('is not influenced by backward system clock changes', async ({ clock }) => {+ it('CK-069 is not influenced by backward system clock changes', async ({ clock }) => {const stub = createStub();clock.setTimeout(stub, 5000);await clock.runFor(1000);@@ -192,14 +192,14 @@ it.describe('setTimeout', () => {delete globalThis.evalCalled.evalCalled;});- it('evals non-function callbacks', async ({ clock }) => {+ it('CK-070 evals non-function callbacks', async ({ clock }) => {clock.setTimeout('globalThis.evalCalled = true', 10);await clock.runFor(10);expect(globalThis.evalCalled).toBeTruthy();});- it('only evals on global scope', async ({ clock }) => {+ it('CK-071 only evals on global scope', async ({ clock }) => {const x = 15;try {clock.setTimeout('x', x);@@ -213,28 +213,28 @@ it.describe('setTimeout', () => {});it.describe('runFor', () => {- it('triggers immediately without specified delay', async ({ clock }) => {+ it('CK-072 triggers immediately without specified delay', async ({ clock }) => {const stub = createStub();clock.setTimeout(stub);await clock.runFor(0);expect(stub.called).toBeTruthy();});- it('does not trigger without sufficient delay', async ({ clock }) => {+ it('CK-073 does not trigger without sufficient delay', async ({ clock }) => {const stub = createStub();clock.setTimeout(stub, 100);await clock.runFor(10);expect(stub.called).toBeFalsy();});- it('triggers after sufficient delay', async ({ clock }) => {+ it('CK-074 triggers after sufficient delay', async ({ clock }) => {const stub = createStub();clock.setTimeout(stub, 100);await clock.runFor(100);expect(stub.called).toBeTruthy();});- it('triggers simultaneous timers', async ({ clock }) => {+ it('CK-075 triggers simultaneous timers', async ({ clock }) => {const spies = [createStub(), createStub()];clock.setTimeout(spies[0], 100);clock.setTimeout(spies[1], 100);@@ -243,7 +243,7 @@ it.describe('runFor', () => {expect(spies[1].called).toBeTruthy();});- it('triggers multiple simultaneous timers', async ({ clock }) => {+ it('CK-076 triggers multiple simultaneous timers', async ({ clock }) => {const spies = [createStub(), createStub(), createStub(), createStub()];clock.setTimeout(spies[0], 100);clock.setTimeout(spies[1], 100);@@ -256,7 +256,7 @@ it.describe('runFor', () => {expect(spies[3].called).toBeTruthy();});- it('triggers multiple simultaneous timers with zero callAt', async ({ clock }) => {+ it('CK-077 triggers multiple simultaneous timers with zero callAt', async ({ clock }) => {const spies = [createStub(() => {clock.setTimeout(spies[1], 0);@@ -274,7 +274,7 @@ it.describe('runFor', () => {expect(spies[2].called).toBeTruthy();});- it('waits after setTimeout was called', async ({ clock }) => {+ it('CK-078 waits after setTimeout was called', async ({ clock }) => {await clock.runFor(100);const stub = createStub();clock.setTimeout(stub, 150);@@ -284,7 +284,7 @@ it.describe('runFor', () => {expect(stub.called).toBeTruthy();});- it('mini integration test', async ({ clock }) => {+ it('CK-079 mini integration test', async ({ clock }) => {const stubs = [createStub(), createStub(), createStub()];clock.setTimeout(stubs[0], 100);clock.setTimeout(stubs[1], 120);@@ -304,7 +304,7 @@ it.describe('runFor', () => {expect(stubs[1].called).toBeTruthy();});- it('triggers even when some throw', async ({ clock }) => {+ it('CK-080 triggers even when some throw', async ({ clock }) => {const stubs = [createStub().throws(), createStub()];clock.setTimeout(stubs[0], 100);@@ -316,14 +316,14 @@ it.describe('runFor', () => {expect(stubs[1].called).toBeTruthy();});- it('calls function with global object or null (strict mode) as this', async ({ clock }) => {+ it('CK-081 calls function with global object or null (strict mode) as this', async ({ clock }) => {const stub = createStub().throws();clock.setTimeout(stub, 100);await expect(clock.runFor(100)).rejects.toThrow();expect(stub.calledOn(global) || stub.calledOn(null)).toBeTruthy();});- it('triggers in the order scheduled', async ({ clock }) => {+ it('CK-082 triggers in the order scheduled', async ({ clock }) => {const spies = [createStub(), createStub()];clock.setTimeout(spies[0], 13);clock.setTimeout(spies[1], 11);@@ -333,7 +333,7 @@ it.describe('runFor', () => {expect(spies[1].calledBefore(spies[0])).toBeTruthy();});- it('creates updated Date while ticking', async ({ clock }) => {+ it('CK-083 creates updated Date while ticking', async ({ clock }) => {const spy = createStub();clock.setInterval(() => {@@ -355,14 +355,14 @@ it.describe('runFor', () => {expect(spy.calledWith(100)).toBeTruthy();});- it('fires timer in intervals of 13', async ({ clock }) => {+ it('CK-084 fires timer in intervals of 13', async ({ clock }) => {const spy = createStub();clock.setInterval(spy, 13);await clock.runFor(500);expect(spy.callCount).toBe(38);});- it('fires timer in intervals of "13"', async ({ clock }) => {+ it('CK-085 fires timer in intervals of "13"', async ({ clock }) => {const spy = createStub();// @ts-expect-errorclock.setInterval(spy, '13');@@ -370,7 +370,7 @@ it.describe('runFor', () => {expect(spy.callCount).toBe(38);});- it('fires timers in correct order', async ({ clock }) => {+ it('CK-086 fires timers in correct order', async ({ clock }) => {const spy13 = createStub();const spy10 = createStub();@@ -391,7 +391,7 @@ it.describe('runFor', () => {expect(spy10.calledWith(320)).toBeTruthy();});- it('triggers timeouts and intervals in the order scheduled', async ({ clock }) => {+ it('CK-087 triggers timeouts and intervals in the order scheduled', async ({ clock }) => {const spies = [createStub(), createStub()];clock.setInterval(spies[0], 10);clock.setTimeout(spies[1], 50);@@ -403,7 +403,7 @@ it.describe('runFor', () => {expect(spies[1].callCount).toBe(1);});- it('does not fire canceled intervals', async ({ clock }) => {+ it('CK-088 does not fire canceled intervals', async ({ clock }) => {// eslint-disable-next-line prefer-constlet id;const callback = createStub(() => {@@ -415,7 +415,7 @@ it.describe('runFor', () => {expect(callback.callCount).toBe(3);});- it('throws for negative minutes', async ({ clock }) => {+ it('CK-089 throws for negative minutes', async ({ clock }) => {const spy = createStub();clock.setInterval(spy, 10000);@@ -423,7 +423,7 @@ it.describe('runFor', () => {expect(spy.callCount).toBe(0);});- it('fires nested setTimeout calls properly', async ({ clock }) => {+ it('CK-090 fires nested setTimeout calls properly', async ({ clock }) => {let i = 0;const callback = () => {++i;@@ -437,7 +437,7 @@ it.describe('runFor', () => {expect(i).toBe(11);});- it('does not silently catch errors', async ({ clock }) => {+ it('CK-091 does not silently catch errors', async ({ clock }) => {const callback = () => {throw new Error('oh no!');};@@ -445,7 +445,7 @@ it.describe('runFor', () => {await expect(clock.runFor(1000)).rejects.toThrow();});- it('is not influenced by forward system clock changes', async ({ clock }) => {+ it('CK-092 is not influenced by forward system clock changes', async ({ clock }) => {const callback = () => {clock.setSystemTime(new clock.Date().getTime() + 1000);};@@ -458,7 +458,7 @@ it.describe('runFor', () => {expect(stub.callCount).toBe(1);});- it('is not influenced by forward system clock changes 2', async ({ clock }) => {+ it('CK-093 is not influenced by forward system clock changes 2', async ({ clock }) => {const callback = () => {clock.setSystemTime(new clock.Date().getTime() - 1000);};@@ -471,7 +471,7 @@ it.describe('runFor', () => {expect(stub.callCount).toBe(1);});- it('is not influenced by forward system clock changes when an error is thrown', async ({ clock }) => {+ it('CK-094 is not influenced by forward system clock changes when an error is thrown', async ({ clock }) => {const callback = () => {clock.setSystemTime(new clock.Date().getTime() + 1000);throw new Error();@@ -487,7 +487,7 @@ it.describe('runFor', () => {expect(stub.callCount).toBe(1);});- it('is not influenced by forward system clock changes when an error is thrown 2', async ({ clock }) => {+ it('CK-095 is not influenced by forward system clock changes when an error is thrown 2', async ({ clock }) => {const callback = () => {clock.setSystemTime(new clock.Date().getTime() - 1000);throw new Error();@@ -503,11 +503,11 @@ it.describe('runFor', () => {expect(stub.callCount).toBe(1);});- it('throws on negative ticks', async ({ clock }) => {+ it('CK-096 throws on negative ticks', async ({ clock }) => {await expect(clock.runFor(-500)).rejects.toThrow('Negative ticks are not supported');});- it('creates updated Date while ticking promises', async ({ clock }) => {+ it('CK-097 creates updated Date while ticking promises', async ({ clock }) => {const spy = createStub();clock.setInterval(() => {@@ -531,7 +531,7 @@ it.describe('runFor', () => {expect(spy.calledWith(100)).toBeTruthy();});- it('fires promise timers in correct order', async ({ clock }) => {+ it('CK-098 fires promise timers in correct order', async ({ clock }) => {const spy13 = createStub();const spy10 = createStub();@@ -556,7 +556,7 @@ it.describe('runFor', () => {expect(spy10.calledWith(320)).toBeTruthy();});- it('does not fire intervals canceled in a promise', async ({ clock }) => {+ it('CK-099 does not fire intervals canceled in a promise', async ({ clock }) => {// ESLint fails to detect this correctly/* eslint-disable prefer-const */let id;@@ -574,7 +574,7 @@ it.describe('runFor', () => {expect(callback.callCount).toBe(3);});- it('fires nested setTimeout calls in user-created promises properly', async ({ clock }) => {+ it('CK-100 fires nested setTimeout calls in user-created promises properly', async ({ clock }) => {let i = 0;const callback = () => {void Promise.resolve().then(() => {@@ -595,7 +595,7 @@ it.describe('runFor', () => {expect(i).toBe(11);});- it('is not influenced by forward system clock changes in promises', async ({ clock }) => {+ it('CK-101 is not influenced by forward system clock changes in promises', async ({ clock }) => {const callback = () => {void Promise.resolve().then(() => {clock.setSystemTime(new clock.Date().getTime() + 1000);@@ -610,7 +610,7 @@ it.describe('runFor', () => {expect(stub.callCount).toBe(1);});- it('should settle user-created promises', async ({ clock }) => {+ it('CK-102 should settle user-created promises', async ({ clock }) => {const spy = createStub();clock.setTimeout(() => {@@ -622,7 +622,7 @@ it.describe('runFor', () => {expect(spy.called).toBeTruthy();});- it('should settle chained user-created promises', async ({ clock }) => {+ it('CK-103 should settle chained user-created promises', async ({ clock }) => {const spies = [createStub(), createStub(), createStub()];clock.setTimeout(() => {@@ -639,7 +639,7 @@ it.describe('runFor', () => {expect(spies[2].called).toBeTruthy();});- it('should settle multiple user-created promises', async ({ clock }) => {+ it('CK-104 should settle multiple user-created promises', async ({ clock }) => {const spies = [createStub(), createStub(), createStub()];clock.setTimeout(() => {@@ -655,7 +655,7 @@ it.describe('runFor', () => {expect(spies[2].called).toBeTruthy();});- it('should settle nested user-created promises', async ({ clock }) => {+ it('CK-105 should settle nested user-created promises', async ({ clock }) => {const spy = createStub();clock.setTimeout(() => {@@ -671,7 +671,7 @@ it.describe('runFor', () => {expect(spy.called).toBeTruthy();});- it('should settle user-created promises even if some throw', async ({ clock }) => {+ it('CK-106 should settle user-created promises even if some throw', async ({ clock }) => {const spies = [createStub(), createStub(), createStub(), createStub()];clock.setTimeout(() => {@@ -687,7 +687,7 @@ it.describe('runFor', () => {expect(spies[3].callCount).toBe(0);});- it('should settle user-created promises before calling more timeouts', async ({ clock }) => {+ it('CK-107 should settle user-created promises before calling more timeouts', async ({ clock }) => {const spies = [createStub(), createStub()];clock.setTimeout(() => {@@ -701,7 +701,7 @@ it.describe('runFor', () => {expect(spies[0].calledBefore(spies[1])).toBeTruthy();});- it('should settle local promises before calling timeouts', async ({ clock }) => {+ it('CK-108 should settle local promises before calling timeouts', async ({ clock }) => {const spies = [createStub(), createStub()];void Promise.resolve().then(spies[0]);clock.setTimeout(spies[1], 100);@@ -713,7 +713,7 @@ it.describe('runFor', () => {expect(spies[0].calledBefore(spies[1])).toBeTruthy();});- it('should settle local nested promises before calling timeouts', async ({ clock }) => {+ it('CK-109 should settle local nested promises before calling timeouts', async ({ clock }) => {const spies = [createStub(), createStub()];void Promise.resolve().then(() => {@@ -731,7 +731,7 @@ it.describe('runFor', () => {expect(spies[0].calledBefore(spies[1])).toBeTruthy();});- it('does not rewind back in time', async ({ clock }) => {+ it('CK-110 does not rewind back in time', async ({ clock }) => {const stub = createStub();const gotTime = await new Promise<number>(done => {clock.setTimeout(() => {@@ -756,7 +756,7 @@ it.describe('runFor', () => {});it.describe('clearTimeout', () => {- it('removes timeout', async ({ clock }) => {+ it('CK-111 removes timeout', async ({ clock }) => {const stub = createStub();const id = clock.setTimeout(stub, 50);clock.clearTimeout(id);@@ -764,7 +764,7 @@ it.describe('clearTimeout', () => {expect(stub.called).toBeFalsy();});- it('removes interval', async ({ clock }) => {+ it('CK-112 removes interval', async ({ clock }) => {const stub = createStub();const id = clock.setInterval(stub, 50);clock.clearTimeout(id);@@ -772,7 +772,7 @@ it.describe('clearTimeout', () => {expect(stub.called).toBeFalsy();});- it('removes interval with undefined interval', async ({ clock }) => {+ it('CK-113 removes interval with undefined interval', async ({ clock }) => {const stub = createStub();const id = clock.setInterval(stub);clock.clearTimeout(id);@@ -780,20 +780,20 @@ it.describe('clearTimeout', () => {expect(stub.called).toBeFalsy();});- it('ignores null argument', async ({ clock }) => {+ it('CK-114 ignores null argument', async ({ clock }) => {clock.clearTimeout(null);});});it.describe('setInterval', () => {- it('throws if no arguments', async ({ clock }) => {+ it('CK-115 throws if no arguments', async ({ clock }) => {expect(() => {// @ts-expect-errorclock.setInterval();}).toThrow();});- it('does not throw if |undefined| or |null| is passed as a callback', async ({ clock }) => {+ it('CK-116 does not throw if |undefined| or |null| is passed as a callback', async ({ clock }) => {const timerId1 = clock.setInterval(undefined, 10);const timerId2 = clock.setInterval(null, 10);await clock.runFor(10);@@ -801,19 +801,19 @@ it.describe('setInterval', () => {expect(timerId2).toBeGreaterThan(timerId1);});- it('returns numeric id or object with numeric id', async ({ clock }) => {+ it('CK-117 returns numeric id or object with numeric id', async ({ clock }) => {const result = clock.setInterval(() => {}, 10);expect(result).toBeGreaterThan(0);});- it('returns unique id', async ({ clock }) => {+ it('CK-118 returns unique id', async ({ clock }) => {const id1 = clock.setInterval(() => {}, 10);const id2 = clock.setInterval(() => {}, 10);expect(id2).not.toEqual(id1);});- it('schedules recurring timeout', async ({ clock }) => {+ it('CK-119 schedules recurring timeout', async ({ clock }) => {const stub = createStub();clock.setInterval(stub, 10);await clock.runFor(99);@@ -821,7 +821,7 @@ it.describe('setInterval', () => {expect(stub.callCount).toBe(9);});- it('is not influenced by forward system clock changes', async ({ clock }) => {+ it('CK-120 is not influenced by forward system clock changes', async ({ clock }) => {const stub = createStub();clock.setInterval(stub, 10);await clock.runFor(11);@@ -833,7 +833,7 @@ it.describe('setInterval', () => {expect(stub.callCount).toBe(2);});- it('is not influenced by backward system clock changes', async ({ clock }) => {+ it('CK-121 is not influenced by backward system clock changes', async ({ clock }) => {const stub = createStub();clock.setInterval(stub, 10);await clock.runFor(5);@@ -844,7 +844,7 @@ it.describe('setInterval', () => {expect(stub.callCount).toBe(2);});- it('does not schedule recurring timeout when cleared', async ({ clock }) => {+ it('CK-122 does not schedule recurring timeout when cleared', async ({ clock }) => {const stub = createStub(() => {if (stub.callCount === 3)clock.clearInterval(id);@@ -856,7 +856,7 @@ it.describe('setInterval', () => {expect(stub.callCount).toBe(3);});- it('passes setTimeout parameters', async ({ clock }) => {+ it('CK-123 passes setTimeout parameters', async ({ clock }) => {const stub = createStub();clock.setInterval(stub, 2, 'the first', 'the second');await clock.runFor(3);@@ -865,7 +865,7 @@ it.describe('setInterval', () => {});it.describe('clearInterval', () => {- it('removes interval', async ({ clock }) => {+ it('CK-124 removes interval', async ({ clock }) => {const stub = createStub();const id = clock.setInterval(stub, 50);clock.clearInterval(id);@@ -873,7 +873,7 @@ it.describe('clearInterval', () => {expect(stub.called).toBeFalsy();});- it('removes interval with undefined interval', async ({ clock }) => {+ it('CK-125 removes interval with undefined interval', async ({ clock }) => {const stub = createStub();const id = clock.setInterval(stub);clock.clearInterval(id);@@ -881,7 +881,7 @@ it.describe('clearInterval', () => {expect(stub.called).toBeFalsy();});- it('removes timeout', async ({ clock }) => {+ it('CK-126 removes timeout', async ({ clock }) => {const stub = createStub();const id = clock.setTimeout(stub, 50);clock.clearInterval(id);@@ -889,162 +889,162 @@ it.describe('clearInterval', () => {expect(stub.called).toBeFalsy();});- it('ignores null argument', async ({ clock }) => {+ it('CK-127 ignores null argument', async ({ clock }) => {clock.clearInterval(null);});});it.describe('date', () => {- it('provides date constructor', async ({ clock }) => {+ it('CK-128 provides date constructor', async ({ clock }) => {expect(clock.Date).toEqual(expect.any(Function));});- it('creates real Date objects', async ({ clock }) => {+ it('CK-129 creates real Date objects', async ({ clock }) => {const date = new clock.Date();expect(Date.prototype.isPrototypeOf(date)).toBeTruthy();});- it('returns date as string when called as function', async ({ clock }) => {+ it('CK-130 returns date as string when called as function', async ({ clock }) => {const date = clock.Date();expect(typeof date).toBe('string');});- it('creates Date objects representing clock time', async ({ clock }) => {+ it('CK-131 creates Date objects representing clock time', async ({ clock }) => {const date = new clock.Date();expect(date.getTime()).toBe(new Date(clock.now()).getTime());});- it('returns date as string representing clock time', async ({ clock }) => {+ it('CK-132 returns date as string representing clock time', async ({ clock }) => {const date = clock.Date();expect(date).toBe(new Date(clock.now()).toString());});- it('listens to ticking clock', async ({ clock }) => {+ it('CK-133 listens to ticking clock', async ({ clock }) => {const date1 = new clock.Date();await clock.runFor(3);const date2 = new clock.Date();expect(date2.getTime() - date1.getTime()).toBe(3);});- it('listens to system clock changes', async ({ clock }) => {+ it('CK-134 listens to system clock changes', async ({ clock }) => {const date1 = new clock.Date();clock.setSystemTime(date1.getTime() + 1000);const date2 = new clock.Date();expect(date2.getTime() - date1.getTime()).toBe(1000);});- it('creates regular date when passing timestamp', async ({ clock }) => {+ it('CK-135 creates regular date when passing timestamp', async ({ clock }) => {const date = new Date();const fakeDate = new clock.Date(date.getTime());expect(fakeDate.getTime()).toBe(date.getTime());});- it('creates regular date when passing a date as string', async ({ clock }) => {+ it('CK-136 creates regular date when passing a date as string', async ({ clock }) => {const date = new Date();const fakeDate = new clock.Date(date.toISOString());expect(fakeDate.getTime()).toBe(date.getTime());});- it('creates regular date when passing a date as RFC 2822 string', async ({ clock }) => {+ it('CK-137 creates regular date when passing a date as RFC 2822 string', async ({ clock }) => {const date = new Date('Sat Apr 12 2014 12:22:00 GMT+1000');const fakeDate = new clock.Date('Sat Apr 12 2014 12:22:00 GMT+1000');expect(fakeDate.getTime()).toBe(date.getTime());});- it('creates regular date when passing year, month', async ({ clock }) => {+ it('CK-138 creates regular date when passing year, month', async ({ clock }) => {const date = new Date(2010, 4);const fakeDate = new clock.Date(2010, 4);expect(fakeDate.getTime()).toBe(date.getTime());});- it('creates regular date when passing y, m, d', async ({ clock }) => {+ it('CK-139 creates regular date when passing y, m, d', async ({ clock }) => {const date = new Date(2010, 4, 2);const fakeDate = new clock.Date(2010, 4, 2);expect(fakeDate.getTime()).toBe(date.getTime());});- it('creates regular date when passing y, m, d, h', async ({ clock }) => {+ it('CK-140 creates regular date when passing y, m, d, h', async ({ clock }) => {const date = new Date(2010, 4, 2, 12);const fakeDate = new clock.Date(2010, 4, 2, 12);expect(fakeDate.getTime()).toBe(date.getTime());});- it('creates regular date when passing y, m, d, h, m', async ({ clock }) => {+ it('CK-141 creates regular date when passing y, m, d, h, m', async ({ clock }) => {const date = new Date(2010, 4, 2, 12, 42);const fakeDate = new clock.Date(2010, 4, 2, 12, 42);expect(fakeDate.getTime()).toBe(date.getTime());});- it('creates regular date when passing y, m, d, h, m, s', async ({ clock }) => {+ it('CK-142 creates regular date when passing y, m, d, h, m, s', async ({ clock }) => {const date = new Date(2010, 4, 2, 12, 42, 53);const fakeDate = new clock.Date(2010, 4, 2, 12, 42, 53);expect(fakeDate.getTime()).toBe(date.getTime());});- it('creates regular date when passing y, m, d, h, m, s, ms', async ({ clock }) => {+ it('CK-143 creates regular date when passing y, m, d, h, m, s, ms', async ({ clock }) => {const date = new Date(2010, 4, 2, 12, 42, 53, 498);const fakeDate = new clock.Date(2010, 4, 2, 12, 42, 53, 498);expect(fakeDate.getTime()).toBe(date.getTime());});- it('returns date as string when calling with arguments', async ({ clock }) => {+ it('CK-144 returns date as string when calling with arguments', async ({ clock }) => {// @ts-expect-errorconst fakeDateStr = clock.Date(2010, 4, 2, 12, 42, 53, 498);expect(fakeDateStr).toBe(new clock.Date().toString());});- it('returns date as string when calling with timestamp', async ({ clock }) => {+ it('CK-145 returns date as string when calling with timestamp', async ({ clock }) => {// @ts-expect-errorconst fakeDateStr = clock.Date(1);expect(fakeDateStr).toBe(new clock.Date().toString());});- it('mirrors native Date.prototype', async ({ clock }) => {+ it('CK-146 mirrors native Date.prototype', async ({ clock }) => {expect(clock.Date.prototype).toEqual(Date.prototype);});- it('supports now method if present', async ({ clock }) => {+ it('CK-147 supports now method if present', async ({ clock }) => {expect(typeof clock.Date.now).toEqual(typeof Date.now);});- it('returns clock.now()', async ({ clock }) => {+ it('CK-148 returns clock.now()', async ({ clock }) => {const clock_now = clock.Date.now();const global_now = Date.now();expect(clock_now).toBeGreaterThanOrEqual(clock.now());expect(clock_now).toBeLessThanOrEqual(global_now);});- it('mirrors parse method', async ({ clock }) => {+ it('CK-149 mirrors parse method', async ({ clock }) => {expect(clock.Date.parse).toEqual(Date.parse);});- it('mirrors UTC method', async ({ clock }) => {+ it('CK-150 mirrors UTC method', async ({ clock }) => {expect(clock.Date.UTC).toEqual(Date.UTC);});- it('mirrors toUTCString method', async ({ clock }) => {+ it('CK-151 mirrors toUTCString method', async ({ clock }) => {expect(clock.Date.prototype.toUTCString).toEqual(Date.prototype.toUTCString);});});it.describe('stubTimers', () => {- it('returns clock object', async ({ install }) => {+ it('CK-152 returns clock object', async ({ install }) => {const clock = install();expect(clock).toEqual(expect.any(Object));expect(clock.runFor).toEqual(expect.any(Function));});- it('takes an object parameter', async ({ install }) => {+ it('CK-153 takes an object parameter', async ({ install }) => {const clock = install();expect(clock).toEqual(expect.any(Object));});- it('sets initial timestamp', async ({ install }) => {+ it('CK-154 sets initial timestamp', async ({ install }) => {const clock = install(1400);expect(clock.now()).toBe(1400);});- it('replaces global setTimeout', async ({ install }) => {+ it('CK-155 replaces global setTimeout', async ({ install }) => {const clock = install();const stub = createStub();@@ -1054,14 +1054,14 @@ it.describe('stubTimers', () => {expect(stub.called).toBeTruthy();});- it('global fake setTimeout should return id', async ({ install }) => {+ it('CK-156 global fake setTimeout should return id', async ({ install }) => {install();const stub = createStub();const to = setTimeout(stub, 1000);expect(to).toEqual(expect.any(Number));});- it('replaces global clearTimeout', async ({ install }) => {+ it('CK-157 replaces global clearTimeout', async ({ install }) => {const clock = install();const stub = createStub();@@ -1071,7 +1071,7 @@ it.describe('stubTimers', () => {expect(stub.called).toBeFalsy();});- it('replaces global setInterval', async ({ install }) => {+ it('CK-158 replaces global setInterval', async ({ install }) => {const clock = install();const stub = createStub();@@ -1081,7 +1081,7 @@ it.describe('stubTimers', () => {expect(stub.callCount).toBe(2);});- it('replaces global clearInterval', async ({ install }) => {+ it('CK-159 replaces global clearInterval', async ({ install }) => {const clock = install();const stub = createStub();@@ -1091,7 +1091,7 @@ it.describe('stubTimers', () => {expect(stub.called).toBeFalsy();});- it('replaces global performance.now', async ({ install }) => {+ it('CK-160 replaces global performance.now', async ({ install }) => {const clock = install();const prev = performance.now();await clock.runFor(1000);@@ -1100,7 +1100,7 @@ it.describe('stubTimers', () => {expect(prev).toBe(0);});- it('replace Event.prototype.timeStamp', async ({ install }) => {+ it('CK-161 replace Event.prototype.timeStamp', async ({ install }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31924' });const clock = install();await clock.runFor(1000);@@ -1112,7 +1112,7 @@ it.describe('stubTimers', () => {expect(event1.timeStamp).toBe(1000);});- it('uninstalls global performance.now', async ({ install }) => {+ it('CK-162 uninstalls global performance.now', async ({ install }) => {const oldNow = performance.now;const clock = install();expect(performance.now).toBe(clock.performance.now);@@ -1120,7 +1120,7 @@ it.describe('stubTimers', () => {expect(performance.now).toBe(oldNow);});- it('should let performance.mark still be callable after install() (#136)', async ({ install }) => {+ it('CK-163 should let performance.mark still be callable after install() (#136)', async ({ install }) => {it.skip(nodeMajorVersion < 20);install();expect(() => {@@ -1128,7 +1128,7 @@ it.describe('stubTimers', () => {}).not.toThrow();});- it('should not alter the global performance properties and methods', async ({ install }) => {+ it('CK-164 should not alter the global performance properties and methods', async ({ install }) => {it.skip(nodeMajorVersion < 20);(Performance.prototype as any).someFunc1 = () => {};(Performance.prototype as any).someFunc2 = () => {};@@ -1144,7 +1144,7 @@ it.describe('stubTimers', () => {delete (Performance.prototype as any).someFunc3;});- it('should replace the getEntries, getEntriesByX methods with noops that return []', async ({ install }) => {+ it('CK-165 should replace the getEntries, getEntriesByX methods with noops that return []', async ({ install }) => {it.skip(nodeMajorVersion < 20);const backupDescriptors = Object.getOwnPropertyDescriptors(Performance);@@ -1179,7 +1179,7 @@ it.describe('stubTimers', () => {});});- it('should return PerformanceEntry-like objects from performance.mark and performance.measure', async ({ install }) => {+ it('CK-166 should return PerformanceEntry-like objects from performance.mark and performance.measure', async ({ install }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39816' });it.skip(nodeMajorVersion < 20);install();@@ -1199,7 +1199,7 @@ it.describe('stubTimers', () => {expect(measureEntry.duration).toBe(50);});- it('restores global property on uninstall if it was inherited onto the global object', ({}) => {+ it('CK-167 restores global property on uninstall if it was inherited onto the global object', ({}) => {// Give the global object an inherited 'setTimeout' methodconst proto = {Date,@@ -1222,7 +1222,7 @@ it.describe('stubTimers', () => {expect(myGlobal.setTimeout).toBe(proto.setTimeout);});- it('fakes Date constructor', ({ installEx }) => {+ it('CK-168 fakes Date constructor', ({ installEx }) => {const { originals } = installEx({ now: 0 });const now = new Date();@@ -1230,12 +1230,12 @@ it.describe('stubTimers', () => {expect(now.getTime()).toBe(0);});- it(`fake Date constructor should mirror Date's properties`, async ({ clock }) => {+ it(`CK-169 fake Date constructor should mirror Date's properties`, async ({ clock }) => {expect(Date).not.toBe(clock.Date);expect(Date.prototype).toEqual(clock.Date.prototype);});- it('mirrors custom Date properties', async ({ install }) => {+ it('CK-170 mirrors custom Date properties', async ({ install }) => {const f = () => {return '';};@@ -1245,19 +1245,19 @@ it.describe('stubTimers', () => {expect((Date as any).format).toEqual(f);});- it('uninstalls Date constructor', () => {+ it('CK-171 uninstalls Date constructor', () => {const { clock, originals } = rawInstall(globalThis, { now: 0 });clock.uninstall();expect(Date).toBe(originals.Date);});- it('fakes provided methods', ({ installEx }) => {+ it('CK-172 fakes provided methods', ({ installEx }) => {const { originals } = installEx({ now: 0, toFake: ['setTimeout', 'Date'] });expect(setTimeout).not.toBe(originals.setTimeout);expect(Date).not.toBe(originals.Date);});- it('resets faked methods', async ({ }) => {+ it('CK-173 resets faked methods', async ({ }) => {const { clock, originals } = rawInstall(globalThis, {now: 0,toFake: ['setTimeout', 'Date'],@@ -1268,7 +1268,7 @@ it.describe('stubTimers', () => {expect(Date).toBe(originals.Date);});- it('does not fake methods not provided', ({ installEx }) => {+ it('CK-174 does not fake methods not provided', ({ installEx }) => {const { originals } = installEx({now: 0,toFake: ['setTimeout', 'Date'],@@ -1281,25 +1281,25 @@ it.describe('stubTimers', () => {});it.describe('requestAnimationFrame', () => {- it('throws if no arguments', async ({ clock }) => {+ it('CK-175 throws if no arguments', async ({ clock }) => {expect(() => {// @ts-expect-errorclock.requestAnimationFrame();}).toThrow();});- it('returns numeric id or object with numeric id', async ({ clock }) => {+ it('CK-176 returns numeric id or object with numeric id', async ({ clock }) => {const result = clock.requestAnimationFrame(() => {});expect(result).toEqual(expect.any(Number));});- it('returns unique id', async ({ clock }) => {+ it('CK-177 returns unique id', async ({ clock }) => {const id1 = clock.requestAnimationFrame(() => {});const id2 = clock.requestAnimationFrame(() => {});expect(id2).not.toEqual(id1);});- it('should run every 16ms', async ({ clock }) => {+ it('CK-178 should run every 16ms', async ({ clock }) => {const stub = createStub();clock.requestAnimationFrame(stub);await clock.runFor(15);@@ -1308,28 +1308,28 @@ it.describe('requestAnimationFrame', () => {expect(stub.callCount).toBe(1);});- it('should be called with performance.now() when available', async ({ clock }) => {+ it('CK-179 should be called with performance.now() when available', async ({ clock }) => {const stub = createStub();clock.requestAnimationFrame(stub);await clock.runFor(20);expect(stub.calledWith(16)).toBeTruthy();});- it('should be called with performance.now() even when performance unavailable', async ({ clock }) => {+ it('CK-180 should be called with performance.now() even when performance unavailable', async ({ clock }) => {const stub = createStub();clock.requestAnimationFrame(stub);await clock.runFor(20);expect(stub.calledWith(16)).toBeTruthy();});- it('should call callback once', async ({ clock }) => {+ it('CK-181 should call callback once', async ({ clock }) => {const stub = createStub();clock.requestAnimationFrame(stub);await clock.runFor(32);expect(stub.callCount).toBe(1);});- it('should schedule two callbacks before the next frame at the same time', async ({ clock }) => {+ it('CK-182 should schedule two callbacks before the next frame at the same time', async ({ clock }) => {const stub1 = createStub();const stub2 = createStub();clock.requestAnimationFrame(stub1);@@ -1340,7 +1340,7 @@ it.describe('requestAnimationFrame', () => {expect(stub2.calledWith(16)).toBeTruthy();});- it('should properly schedule callback for 3rd frame', async ({ clock }) => {+ it('CK-183 should properly schedule callback for 3rd frame', async ({ clock }) => {const stub1 = createStub();const stub2 = createStub();clock.requestAnimationFrame(stub1);@@ -1351,7 +1351,7 @@ it.describe('requestAnimationFrame', () => {expect(stub2.calledWith(64)).toBeTruthy();});- it('should schedule for next frame if on current frame', async ({ clock }) => {+ it('CK-184 should schedule for next frame if on current frame', async ({ clock }) => {const stub = createStub();await clock.runFor(16);clock.requestAnimationFrame(stub);@@ -1361,7 +1361,7 @@ it.describe('requestAnimationFrame', () => {});it.describe('cancelAnimationFrame', () => {- it('removes animation frame', async ({ clock }) => {+ it('CK-185 removes animation frame', async ({ clock }) => {const stub = createStub();const id = clock.requestAnimationFrame(stub);clock.cancelAnimationFrame(id);@@ -1369,7 +1369,7 @@ it.describe('cancelAnimationFrame', () => {expect(stub.called).toBeFalsy();});- it('does not remove timeout', async ({ clock }) => {+ it('CK-186 does not remove timeout', async ({ clock }) => {const stub = createStub();const id = clock.setTimeout(stub, 50);expect(() => {@@ -1379,7 +1379,7 @@ it.describe('cancelAnimationFrame', () => {expect(stub.called).toBeTruthy();});- it('does not remove interval', async ({ clock }) => {+ it('CK-187 does not remove interval', async ({ clock }) => {const stub = createStub();const id = clock.setInterval(stub, 50);expect(() => {@@ -1389,20 +1389,20 @@ it.describe('cancelAnimationFrame', () => {expect(stub.called).toBeTruthy();});- it('ignores null argument', async ({ clock }) => {+ it('CK-188 ignores null argument', async ({ clock }) => {clock.cancelAnimationFrame(null);});});it.describe('fastForward', () => {- it('ignores timers which wouldn\'t be run', async ({ clock }) => {+ it('CK-189 ignores timers which wouldn\'t be run', async ({ clock }) => {const stub = createStub();clock.setTimeout(stub, 1000);await clock.fastForward(500);expect(stub.called).toBeFalsy();});- it('pushes back execution time for skipped timers', async ({ clock }) => {+ it('CK-190 pushes back execution time for skipped timers', async ({ clock }) => {const stub = createStub();clock.setTimeout(() => {stub(clock.Date.now());@@ -1412,7 +1412,7 @@ it.describe('fastForward', () => {expect(stub.calledWith(2000)).toBeTruthy();});- it('handles multiple pending timers and types', async ({ clock }) => {+ it('CK-191 handles multiple pending timers and types', async ({ clock }) => {const longTimers = [createStub(), createStub()];const shortTimers = [createStub(), createStub(), createStub()];clock.setTimeout(longTimers[0], 2000);@@ -1428,7 +1428,7 @@ it.describe('fastForward', () => {expect(shortTimers[2].callCount).toBe(1);});- it('does not rewind back in time', async ({ clock }) => {+ it('CK-192 does not rewind back in time', async ({ clock }) => {const stub = createStub();const gotTime = await new Promise<number>(done => {clock.setTimeout(() => {@@ -1451,7 +1451,7 @@ it.describe('fastForward', () => {expect(gotTime).toBeGreaterThan(1010);});- it('error does not break the clock', async ({ clock }) => {+ it('CK-193 error does not break the clock', async ({ clock }) => {const stub = createStub();clock.setTimeout(() => {stub(clock.Date.now());@@ -1463,7 +1463,7 @@ it.describe('fastForward', () => {expect(stub.calledWith(2000)).toBeTruthy();});- it('error does not pause forever', async ({ clock }) => {+ it('CK-194 error does not pause forever', async ({ clock }) => {const stub = createStub();clock.setTimeout(() => {stub(clock.Date.now());@@ -1477,13 +1477,13 @@ it.describe('fastForward', () => {});it.describe('pauseAt', () => {- it('pause at target time', async ({ clock }) => {+ it('CK-195 pause at target time', async ({ clock }) => {clock.install(0);await clock.pauseAt(1000);expect(clock.Date.now()).toBe(1000);});- it('fire target timers', async ({ clock }) => {+ it('CK-196 fire target timers', async ({ clock }) => {clock.install(0);const stub = createStub();clock.setTimeout(stub, 1000);@@ -1492,7 +1492,7 @@ it.describe('pauseAt', () => {expect(stub.callCount).toBe(1);});- it('returns consumed clicks', async ({ clock }) => {+ it('CK-197 returns consumed clicks', async ({ clock }) => {const now = Date.now();clock.install(now);const consumedTicks = await clock.pauseAt(now + 1000 * 60 * 60 * 24);@@ -1501,18 +1501,18 @@ it.describe('pauseAt', () => {});it.describe('performance.now()', () => {- it('should start at 0', async ({ clock }) => {+ it('CK-198 should start at 0', async ({ clock }) => {const result = clock.performance.now();expect(result).toBe(0);});- it('should run along with clock.tick', async ({ clock }) => {+ it('CK-199 should run along with clock.tick', async ({ clock }) => {await clock.runFor(5000);const result = clock.performance.now();expect(result).toBe(5000);});- it('should listen to multiple ticks in performance.now', async ({ clock }) => {+ it('CK-200 should listen to multiple ticks in performance.now', async ({ clock }) => {for (let i = 0; i < 10; i++) {const next = clock.performance.now();expect(next).toBe(1000 * i);@@ -1520,7 +1520,7 @@ it.describe('performance.now()', () => {}});- it('should run with ticks with timers set', async ({ clock }) => {+ it('CK-201 should run with ticks with timers set', async ({ clock }) => {clock.setTimeout(() => {const result = clock.performance.now();expect(result).toBe(2500);@@ -1530,25 +1530,25 @@ it.describe('performance.now()', () => {});it.describe('requestIdleCallback', () => {- it('throws if no arguments', async ({ clock }) => {+ it('CK-202 throws if no arguments', async ({ clock }) => {expect(() => {// @ts-expect-errorclock.requestIdleCallback();}).toThrow();});- it('returns numeric id', async ({ clock }) => {+ it('CK-203 returns numeric id', async ({ clock }) => {const result = clock.requestIdleCallback(() => {});expect(result).toEqual(expect.any(Number));});- it('returns unique id', async ({ clock }) => {+ it('CK-204 returns unique id', async ({ clock }) => {const id1 = clock.requestIdleCallback(() => {});const id2 = clock.requestIdleCallback(() => {});expect(id2).not.toEqual(id1);});- it('runs after all timers', async ({ clock }) => {+ it('CK-205 runs after all timers', async ({ clock }) => {const stub = createStub();clock.requestIdleCallback(stub);await clock.runFor(1000);@@ -1558,7 +1558,7 @@ it.describe('requestIdleCallback', () => {expect(idleCallbackArg.timeRemaining()).toBe(0);});- it('runs no later than timeout option even if there are any timers', async ({ clock }) => {+ it('CK-206 runs no later than timeout option even if there are any timers', async ({ clock }) => {const stub = createStub();clock.setTimeout(() => {}, 10);clock.setTimeout(() => {}, 30);@@ -1567,7 +1567,7 @@ it.describe('requestIdleCallback', () => {expect(stub.called).toBeTruthy();});- it(`doesn't runs if there are any timers and no timeout option`, async ({ clock }) => {+ it(`CK-207 doesn't runs if there are any timers and no timeout option`, async ({ clock }) => {const stub = createStub();clock.setTimeout(() => {}, 30);clock.requestIdleCallback(stub);@@ -1577,7 +1577,7 @@ it.describe('requestIdleCallback', () => {});it.describe('cancelIdleCallback', () => {- it('removes idle callback', async ({ clock }) => {+ it('CK-208 removes idle callback', async ({ clock }) => {const stub = createStub();const callbackId = clock.requestIdleCallback(stub, { timeout: 0 });clock.cancelIdleCallback(callbackId);@@ -1595,7 +1595,7 @@ it.describe('Intl API', () => {);}- it('Executes formatRange like normal', async ({ clock }) => {+ it('CK-209 Executes formatRange like normal', async ({ clock }) => {const start = new Date(Date.UTC(2020, 0, 1, 0, 0));const end = new Date(Date.UTC(2020, 0, 1, 0, 1));const options: Intl.DateTimeFormatOptions = {@@ -1609,7 +1609,7 @@ it.describe('Intl API', () => {).toBe('00:00–00:01');});- it('Executes formatRangeToParts like normal', async ({ clock }) => {+ it('CK-210 Executes formatRangeToParts like normal', async ({ clock }) => {const start = new Date(Date.UTC(2020, 0, 1, 0, 0));const end = new Date(Date.UTC(2020, 0, 1, 0, 1));const options: Intl.DateTimeFormatOptions = {@@ -1629,7 +1629,7 @@ it.describe('Intl API', () => {]);});- it('Executes resolvedOptions like normal', async ({ clock }) => {+ it('CK-211 Executes resolvedOptions like normal', async ({ clock }) => {const options: Intl.DateTimeFormatOptions = {timeZone: 'UTC',hour12: false,@@ -1648,17 +1648,17 @@ it.describe('Intl API', () => {});});- it('formatToParts via isFirstOfMonth -> Returns true when passed a timestamp argument that is first of the month', async ({ clock }) => {+ it('CK-212 formatToParts via isFirstOfMonth -> Returns true when passed a timestamp argument that is first of the month', async ({ clock }) => {// June 1 04:00 UTC - Toronto is June 1 00:00expect(isFirstOfMonth('America/Toronto', Date.UTC(2022, 5, 1, 4))).toBeTruthy();});- it('formatToParts via isFirstOfMonth -> Returns false when passed a timestamp argument that is not first of the month', async ({ clock }) => {+ it('CK-213 formatToParts via isFirstOfMonth -> Returns false when passed a timestamp argument that is not first of the month', async ({ clock }) => {// June 1 00:00 UTC - Toronto is May 31 20:00expect(isFirstOfMonth('America/Toronto', Date.UTC(2022, 5, 1))).toBeFalsy();});- it('formatToParts via isFirstOfMonth -> Returns true when passed no timestamp and system time is first of the month', async ({ install }) => {+ it('CK-214 formatToParts via isFirstOfMonth -> Returns true when passed no timestamp and system time is first of the month', async ({ install }) => {// June 1 04:00 UTC - Toronto is June 1 00:00install(Date.UTC(2022, 5, 1, 4));expect(isFirstOfMonth('America/Toronto')).toBeTruthy();@@ -1667,20 +1667,20 @@ it.describe('Intl API', () => {expect(isFirstOfMonth('America/Toronto', 0)).toBeFalsy();});- it('formatToParts via isFirstOfMonth -> Returns false when passed no timestamp and system time is not first of the month', async ({ install }) => {+ it('CK-215 formatToParts via isFirstOfMonth -> Returns false when passed no timestamp and system time is not first of the month', async ({ install }) => {// June 1 00:00 UTC - Toronto is May 31 20:00install(Date.UTC(2022, 5, 1));expect(isFirstOfMonth('America/Toronto')).toBeFalsy();});- it('Executes supportedLocalesOf like normal', async ({ installEx }) => {+ it('CK-216 Executes supportedLocalesOf like normal', async ({ installEx }) => {const { originals } = installEx();expect(Intl.DateTimeFormat.supportedLocalesOf([])).toEqual(originals.Intl.DateTimeFormat.supportedLocalesOf([]),);});- it('Creates a RelativeTimeFormat like normal', async ({ clock }) => {+ it('CK-217 Creates a RelativeTimeFormat like normal', async ({ clock }) => {const rtf = new Intl.RelativeTimeFormat('en-GB', {numeric: 'auto',});@@ -1688,7 +1688,7 @@ it.describe('Intl API', () => {});});-it('works with slow setTimeout in busy embedder', async ({ installEx }) => {+it('CK-218 works with slow setTimeout in busy embedder', async ({ installEx }) => {const { originals, api, clock } = installEx({ now: 0 });await clock.pauseAt(0);@@ -1718,7 +1718,7 @@ it('works with slow setTimeout in busy embedder', async ({ installEx }) => {]);});-it('works with slow setTimeout in busy embedder when not paused', async ({ installEx }) => {+it('CK-219 works with slow setTimeout in busy embedder when not paused', async ({ installEx }) => {const { originals, api, clock } = installEx({ now: 0 });clock.setSystemTime(0);diff --git a/tests/library/unit/code-frame.spec.ts b/tests/library/unit/code-frame.spec.tsindex f34545107f..678dc64d88 100644--- a/tests/library/unit/code-frame.spec.ts+++ b/tests/library/unit/code-frame.spec.ts@@ -24,7 +24,7 @@ const tagColors = Object.fromEntries(Object.keys(noColors).map(name => [name, naconst source = Array.from({ length: 12 }, (_, i) => `line${i + 1} = foo(${i + 1});`).join('\n');-test('should mark the column', () => {+test('CF-001 should mark the column', () => {expect(codeFrame(source, { line: 5, column: 3 })).toBe([' 3 | line3 = foo(3);',' 4 | line4 = foo(4);',@@ -36,7 +36,7 @@ test('should mark the column', () => {].join('\n'));});-test('should mark the line without a column', () => {+test('CF-002 should mark the line without a column', () => {expect(codeFrame(source, { line: 5 })).toBe([' 3 | line3 = foo(3);',' 4 | line4 = foo(4);',@@ -47,7 +47,7 @@ test('should mark the line without a column', () => {].join('\n'));});-test('should respect linesAbove and linesBelow', () => {+test('CF-003 should respect linesAbove and linesBelow', () => {expect(codeFrame(source, { line: 6, column: 2 }, { linesAbove: 0, linesBelow: 1 })).toBe(['> 6 | line6 = foo(6);',' | ^',@@ -55,7 +55,7 @@ test('should respect linesAbove and linesBelow', () => {].join('\n'));});-test('should clip to the source lines', () => {+test('CF-004 should clip to the source lines', () => {expect(codeFrame(source, { line: 12, column: 2 })).toBe([' 10 | line10 = foo(10);',' 11 | line11 = foo(11);',@@ -64,7 +64,7 @@ test('should clip to the source lines', () => {].join('\n'));});-test('should pad line numbers to the widest one', () => {+test('CF-005 should pad line numbers to the widest one', () => {expect(codeFrame(source, { line: 9, column: 1 })).toBe([' 7 | line7 = foo(7);',' 8 | line8 = foo(8);',@@ -76,21 +76,21 @@ test('should pad line numbers to the widest one', () => {].join('\n'));});-test('should print the message after the marker', () => {+test('CF-006 should print the message after the marker', () => {expect(codeFrame(source, { line: 5, column: 3 }, { linesAbove: 0, linesBelow: 0, message: 'Boom' })).toBe(['> 5 | line5 = foo(5);',' | ^ Boom',].join('\n'));});-test('should print the message above the frame without a column', () => {+test('CF-007 should print the message above the frame without a column', () => {expect(codeFrame(source, { line: 5 }, { linesAbove: 0, linesBelow: 0, message: 'Boom' })).toBe([' Boom','> 5 | line5 = foo(5);',].join('\n'));});-test('should keep tabs before the marker', () => {+test('CF-008 should keep tabs before the marker', () => {expect(codeFrame('a\n\t\tfoo(\tbar)\nb', { line: 2, column: 6 })).toBe([' 1 | a','> 2 | \t\tfoo(\tbar)',@@ -99,7 +99,7 @@ test('should keep tabs before the marker', () => {].join('\n'));});-test('should not add a space after the gutter for empty lines', () => {+test('CF-009 should not add a space after the gutter for empty lines', () => {expect(codeFrame('a\n\nfoo\n \nb', { line: 3, column: 1 })).toBe([' 1 | a',' 2 |',@@ -110,7 +110,7 @@ test('should not add a space after the gutter for empty lines', () => {].join('\n'));});-test('should split lines on all line terminators', () => {+test('CF-010 should split lines on all line terminators', () => {expect(codeFrame('a\r\nb\rc\u2028d\ne', { line: 3, column: 1 }, { linesAbove: 5, linesBelow: 5 })).toBe([' 1 | a',' 2 | b',@@ -121,7 +121,7 @@ test('should split lines on all line terminators', () => {].join('\n'));});-test('should highlight code', () => {+test('CF-011 should highlight code', () => {const code = `const page = new Page(/re/g, 'a', 42) + x; // comment`;expect(codeFrame(code, { line: 1, column: 7 }, { colors: tagColors, message: 'Boom' })).toBe(['<red><bold>></bold></red><gray> 1 |</gray> ' +@@ -131,7 +131,7 @@ test('should highlight code', () => {].join('\n'));});-test('should highlight multi-line tokens on each line', () => {+test('CF-012 should highlight multi-line tokens on each line', () => {expect(codeFrame('a = `x ${`y`}\nz`; /* b\nc */', { line: 1 }, { colors: tagColors })).toBe(['<red><bold>></bold></red><gray> 1 |</gray> a <yellow>=</yellow> <green>`x ${`y`}</green>',' <gray> 2 |</gray> <green>z`</green><yellow>;</yellow> <gray>/* b</gray>',@@ -139,7 +139,7 @@ test('should highlight multi-line tokens on each line', () => {].join('\n'));});-test('should highlight keywords used as property names as identifiers', () => {+test('CF-013 should highlight keywords used as property names as identifiers', () => {expect(codeFrame('promise.catch(e => e).finally(done);', { line: 1 }, { colors: tagColors })).toBe('<red><bold>></bold></red><gray> 1 |</gray> promise<yellow>.</yellow>catch(e <yellow>=></yellow> e)<yellow>.</yellow>finally(done)<yellow>;</yellow>');diff --git a/tests/library/unit/codegen.spec.ts b/tests/library/unit/codegen.spec.tsindex a4538747bd..71df7948d4 100644--- a/tests/library/unit/codegen.spec.ts+++ b/tests/library/unit/codegen.spec.ts@@ -20,7 +20,7 @@ import { getAPIRequestCodeGen } from '../../../packages/trace-viewer/src/ui/codetest.describe('javascript', () => {const impl = getAPIRequestCodeGen('javascript');- test('generatePlaywrightRequestCall', () => {+ test('CG-164 generatePlaywrightRequestCall', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo?bar=baz',@@ -63,7 +63,7 @@ await page.request.fetch('http://example.com/foo', {});`.trim());});- test('generatePlaywrightRequestCall with POST method and no body', () => {+ test('CG-165 generatePlaywrightRequestCall with POST method and no body', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'POST',@@ -82,7 +82,7 @@ await page.request.post('http://example.com/foo', {});`.trim());});- test('generatePlaywrightRequestCall with PUT method and JSON body', () => {+ test('CG-166 generatePlaywrightRequestCall with PUT method and JSON body', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'PUT',@@ -102,7 +102,7 @@ await page.request.put('http://example.com/foo', {});`.trim());});- test('generatePlaywrightRequestCall with PATCH method and form data', () => {+ test('CG-167 generatePlaywrightRequestCall with PATCH method and form data', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'PATCH',@@ -122,7 +122,7 @@ await page.request.patch('http://example.com/foo', {});`.trim());});- test('generatePlaywrightRequestCall with DELETE method and custom header', () => {+ test('CG-168 generatePlaywrightRequestCall with DELETE method and custom header', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'DELETE',@@ -141,7 +141,7 @@ await page.request.delete('http://example.com/foo', {});`.trim());});- test('generatePlaywrightRequestCall with HEAD method', () => {+ test('CG-169 generatePlaywrightRequestCall with HEAD method', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'HEAD',@@ -156,7 +156,7 @@ await page.request.delete('http://example.com/foo', {await page.request.head('http://example.com/foo');`.trim());});- test('generatePlaywrightRequestCall with complex query parameters', () => {+ test('CG-170 generatePlaywrightRequestCall with complex query parameters', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo?bar=baz&qux=quux',method: 'GET',@@ -176,7 +176,7 @@ await page.request.get('http://example.com/foo', {});`.trim());});- test('generatePlaywrightRequestCall with multiple headers', () => {+ test('CG-171 generatePlaywrightRequestCall with multiple headers', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'GET',@@ -201,7 +201,7 @@ await page.request.get('http://example.com/foo', {});`.trim());});- test('escape sequences', () => {+ test('CG-172 escape sequences', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'GET',@@ -227,7 +227,7 @@ await page.request.get('http://example.com/foo', {test.describe('python', () => {const impl = getAPIRequestCodeGen('python');- test('generatePlaywrightRequestCall', () => {+ test('CG-173 generatePlaywrightRequestCall', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo?bar=baz',method: 'GET',@@ -271,7 +271,7 @@ await page.request.fetch()`.trim());});- test('generatePlaywrightRequestCall with POST method and no body', () => {+ test('CG-174 generatePlaywrightRequestCall with POST method and no body', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'POST',@@ -291,7 +291,7 @@ await page.request.post()`.trim());});- test('generatePlaywrightRequestCall with PUT method and JSON body', () => {+ test('CG-175 generatePlaywrightRequestCall with PUT method and JSON body', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'PUT',@@ -312,7 +312,7 @@ await page.request.put()`.trim());});- test('generatePlaywrightRequestCall with PATCH method and form data', () => {+ test('CG-176 generatePlaywrightRequestCall with PATCH method and form data', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'PATCH',@@ -333,7 +333,7 @@ await page.request.patch()`.trim());});- test('generatePlaywrightRequestCall with DELETE method and custom header', () => {+ test('CG-177 generatePlaywrightRequestCall with DELETE method and custom header', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'DELETE',@@ -353,7 +353,7 @@ await page.request.delete()`.trim());});- test('generatePlaywrightRequestCall with HEAD method', () => {+ test('CG-178 generatePlaywrightRequestCall with HEAD method', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'HEAD',@@ -368,7 +368,7 @@ await page.request.delete(await page.request.head("http://example.com/foo")`.trim());});- test('generatePlaywrightRequestCall with complex query parameters', () => {+ test('CG-179 generatePlaywrightRequestCall with complex query parameters', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo?bar=baz&qux=quux',method: 'GET',@@ -389,7 +389,7 @@ await page.request.get()`.trim());});- test('generatePlaywrightRequestCall with multiple headers', () => {+ test('CG-180 generatePlaywrightRequestCall with multiple headers', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'GET',@@ -415,7 +415,7 @@ await page.request.get()`.trim());});- test('escape sequences', () => {+ test('CG-181 escape sequences', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'GET',@@ -442,7 +442,7 @@ await page.request.get(test.describe('csharp', () => {const impl = getAPIRequestCodeGen('csharp');- test('generatePlaywrightRequestCall', () => {+ test('CG-182 generatePlaywrightRequestCall', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo?bar=baz',method: 'GET',@@ -484,7 +484,7 @@ await request.FetchAsync("http://example.com/foo", new() {});`.trim());});- test('generatePlaywrightRequestCall with POST method and no body', () => {+ test('CG-183 generatePlaywrightRequestCall with POST method and no body', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'POST',@@ -503,7 +503,7 @@ await request.PostAsync("http://example.com/foo", new() {});`.trim());});- test('generatePlaywrightRequestCall with PUT method and JSON body', () => {+ test('CG-184 generatePlaywrightRequestCall with PUT method and JSON body', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'PUT',@@ -523,7 +523,7 @@ await request.PutAsync("http://example.com/foo", new() {});`.trim());});- test('escape sequences', () => {+ test('CG-185 escape sequences', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'GET',@@ -548,7 +548,7 @@ await request.GetAsync("http://example.com/foo", new() {test.describe('java', () => {const impl = getAPIRequestCodeGen('java');- test('generatePlaywrightRequestCall', () => {+ test('CG-186 generatePlaywrightRequestCall', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo?bar=baz',method: 'GET',@@ -584,7 +584,7 @@ request.fetch("http://example.com/foo", RequestOptions.create());`.trim());});- test('generatePlaywrightRequestCall with POST method and no body', () => {+ test('CG-187 generatePlaywrightRequestCall with POST method and no body', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'POST',@@ -601,7 +601,7 @@ request.post("http://example.com/foo", RequestOptions.create());`.trim());});- test('generatePlaywrightRequestCall with PUT method and JSON body', () => {+ test('CG-188 generatePlaywrightRequestCall with PUT method and JSON body', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'PUT',@@ -619,7 +619,7 @@ request.put("http://example.com/foo", RequestOptions.create());`.trim());});- test('generatePlaywrightRequestCall with PATCH method and form data', () => {+ test('CG-189 generatePlaywrightRequestCall with PATCH method and form data', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'PATCH',@@ -637,7 +637,7 @@ request.patch("http://example.com/foo", RequestOptions.create());`.trim());});- test('generatePlaywrightRequestCall with DELETE method and custom header', () => {+ test('CG-190 generatePlaywrightRequestCall with DELETE method and custom header', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'DELETE',@@ -654,7 +654,7 @@ request.delete("http://example.com/foo", RequestOptions.create());`.trim());});- test('escape sequences', () => {+ test('CG-191 escape sequences', () => {expect(impl.generatePlaywrightRequestCall({url: 'http://example.com/foo',method: 'GET',diff --git a/tests/library/unit/json-schema.spec.ts b/tests/library/unit/json-schema.spec.tsindex 50a95bd688..2e5feb8b7d 100644--- a/tests/library/unit/json-schema.spec.ts+++ b/tests/library/unit/json-schema.spec.ts@@ -21,55 +21,55 @@ import { iso as _iso } from '../../../packages/playwright-core/lib/coreBundle';const { validate } = _iso;type JsonSchema = iso.JsonSchema;-it('should validate string type', () => {+it('JS-001 should validate string type', () => {expect(validate('hello', { type: 'string' }, '$')).toEqual([]);expect(validate(123, { type: 'string' }, '$')).toEqual(['$: expected string, got number']);});-it('should validate string pattern', () => {+it('JS-002 should validate string pattern', () => {expect(validate('@tag', { type: 'string', pattern: '^@' }, '$')).toEqual([]);expect(validate('tag', { type: 'string', pattern: '^@' }, '$')).toEqual(['$: must match pattern "^@"']);});-it('should validate array type', () => {+it('JS-003 should validate array type', () => {expect(validate([], { type: 'array' }, '$')).toEqual([]);expect(validate('not-array', { type: 'array' }, '$')).toEqual(['$: expected array, got string']);});-it('should validate array items', () => {+it('JS-004 should validate array items', () => {const schema: JsonSchema = { type: 'array', items: { type: 'string' } };expect(validate(['a', 'b'], schema, '$')).toEqual([]);expect(validate(['a', 1], schema, '$')).toEqual(['$[1]: expected string, got number']);});-it('should validate object type', () => {+it('JS-005 should validate object type', () => {expect(validate({}, { type: 'object' }, '$')).toEqual([]);expect(validate(null, { type: 'object' }, '$')).toEqual(['$: expected object, got object']);expect(validate([], { type: 'object' }, '$')).toEqual(['$: expected object, got array']);expect(validate('str', { type: 'object' }, '$')).toEqual(['$: expected object, got string']);});-it('should validate required properties', () => {+it('JS-006 should validate required properties', () => {const schema: JsonSchema = { type: 'object', properties: { name: { type: 'string' } }, required: ['name'] };expect(validate({ name: 'test' }, schema, '$')).toEqual([]);expect(validate({}, schema, '$')).toEqual(['$.name: required']);});-it('should validate optional properties', () => {+it('JS-007 should validate optional properties', () => {const schema: JsonSchema = { type: 'object', properties: { name: { type: 'string' } } };expect(validate({}, schema, '$')).toEqual([]);expect(validate({ name: 'test' }, schema, '$')).toEqual([]);expect(validate({ name: 123 }, schema, '$')).toEqual(['$.name: expected string, got number']);});-it('should validate oneOf', () => {+it('JS-008 should validate oneOf', () => {const schema: JsonSchema = { oneOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }] };expect(validate('hello', schema, '$')).toEqual([]);expect(validate(['a', 'b'], schema, '$')).toEqual([]);expect(validate(123, schema, '$')).toEqual(['$: does not match any of the expected types']);});-it('should validate nested objects', () => {+it('JS-009 should validate nested objects', () => {const schema: JsonSchema = {type: 'object',properties: {@@ -85,7 +85,7 @@ it('should validate nested objects', () => {expect(validate({ annotation: { type: 123 } }, schema, '$')).toEqual(['$.annotation.type: expected string, got number']);});-it('should validate test details schema', () => {+it('JS-010 should validate test details schema', () => {const testAnnotationSchema: JsonSchema = {type: 'object',properties: { type: { type: 'string' }, description: { type: 'string' } },diff --git a/tests/library/unit/sequence.spec.ts b/tests/library/unit/sequence.spec.tsindex de236c8801..e0d1926851 100644--- a/tests/library/unit/sequence.spec.ts+++ b/tests/library/unit/sequence.spec.ts@@ -19,19 +19,19 @@ import { test as it, expect } from '@playwright/test';import { server as coreServer } from '../../../packages/playwright-core/lib/coreBundle';const { findRepeatedSubsequencesForTest: findRepeatedSubsequences } = coreServer;-it('should return an empty array when the input is empty', () => {+it('SQ-001 should return an empty array when the input is empty', () => {const input = [];const expectedOutput = [];expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should handle a single-element array', () => {+it('SQ-002 should handle a single-element array', () => {const input = ['a'];const expectedOutput = [{ sequence: ['a'], count: 1 }];expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should handle an array with no repeats', () => {+it('SQ-003 should handle an array with no repeats', () => {const input = ['a', 'b', 'c'];const expectedOutput = [{ sequence: ['a'], count: 1 },@@ -41,7 +41,7 @@ it('should handle an array with no repeats', () => {expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should handle contiguous repeats of single elements', () => {+it('SQ-004 should handle contiguous repeats of single elements', () => {const input = ['a', 'a', 'a', 'b', 'b', 'c'];const expectedOutput = [{ sequence: ['a'], count: 3 },@@ -51,13 +51,13 @@ it('should handle contiguous repeats of single elements', () => {expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should detect longer repeating substrings', () => {+it('SQ-005 should detect longer repeating substrings', () => {const input = ['a', 'b', 'a', 'b', 'a', 'b'];const expectedOutput = [{ sequence: ['a', 'b'], count: 3 }];expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should handle multiple repeating substrings', () => {+it('SQ-006 should handle multiple repeating substrings', () => {const input = ['a', 'a', 'b', 'b', 'a', 'a', 'b', 'b'];const expectedOutput = [{ sequence: ['a', 'a', 'b', 'b'], count: 2 },@@ -65,13 +65,13 @@ it('should handle multiple repeating substrings', () => {expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should handle complex cases with overlapping repeats', () => {+it('SQ-007 should handle complex cases with overlapping repeats', () => {const input = ['a', 'a', 'a', 'a'];const expectedOutput = [{ sequence: ['a'], count: 4 }];expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should handle complex acceptance cases with multiple possible repeats', () => {+it('SQ-008 should handle complex acceptance cases with multiple possible repeats', () => {const input = ['a', 'a', 'b', 'b', 'a', 'a', 'b', 'b', 'c', 'c', 'c', 'c'];const expectedOutput = [{ sequence: ['a', 'a', 'b', 'b'], count: 2 },@@ -80,7 +80,7 @@ it('should handle complex acceptance cases with multiple possible repeats', () =expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should handle non-repeating sequences correctly', () => {+it('SQ-009 should handle non-repeating sequences correctly', () => {const input = ['a', 'b', 'c', 'd', 'e'];const expectedOutput = [{ sequence: ['a'], count: 1 },@@ -92,13 +92,13 @@ it('should handle non-repeating sequences correctly', () => {expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should handle a case where the entire array is a repeating sequence', () => {+it('SQ-010 should handle a case where the entire array is a repeating sequence', () => {const input = ['x', 'y', 'x', 'y', 'x', 'y'];const expectedOutput = [{ sequence: ['x', 'y'], count: 3 }];expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should correctly identify the maximal repeating substring', () => {+it('SQ-011 should correctly identify the maximal repeating substring', () => {const input = ['a', 'b', 'a', 'b', 'a', 'b', 'c', 'c', 'c', 'c'];const expectedOutput = [{ sequence: ['a', 'b'], count: 3 },@@ -107,7 +107,7 @@ it('should correctly identify the maximal repeating substring', () => {expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should handle repeats with varying lengths', () => {+it('SQ-012 should handle repeats with varying lengths', () => {const input = ['a', 'a', 'b', 'b', 'b', 'b', 'a', 'a'];const expectedOutput = [{ sequence: ['a'], count: 2 },@@ -117,7 +117,7 @@ it('should handle repeats with varying lengths', () => {expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should correctly handle a repeat count of one (k adjustment to zero)', () => {+it('SQ-013 should correctly handle a repeat count of one (k adjustment to zero)', () => {const input = ['a', 'b', 'a', 'b', 'c'];const expectedOutput = [{ sequence: ['a', 'b'], count: 2 },@@ -126,7 +126,7 @@ it('should correctly handle a repeat count of one (k adjustment to zero)', () =>expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should correctly handle repeats at the end of the array', () => {+it('SQ-014 should correctly handle repeats at the end of the array', () => {const input = ['x', 'y', 'x', 'y', 'x', 'y', 'z'];const expectedOutput = [{ sequence: ['x', 'y'], count: 3 },@@ -135,7 +135,7 @@ it('should correctly handle repeats at the end of the array', () => {expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should not overcount repeats when the last potential repeat is incomplete', () => {+it('SQ-015 should not overcount repeats when the last potential repeat is incomplete', () => {const input = ['m', 'n', 'm', 'n', 'm'];const expectedOutput = [{ sequence: ['m', 'n'], count: 2 },@@ -144,7 +144,7 @@ it('should not overcount repeats when the last potential repeat is incomplete',expect(findRepeatedSubsequences(input)).toEqual(expectedOutput);});-it('should handle single repeats correctly when the substring length is greater than one', () => {+it('SQ-016 should handle single repeats correctly when the substring length is greater than one', () => {const input = ['a', 'b', 'c', 'a', 'b', 'd'];const expectedOutput = [{ sequence: ['a'], count: 1 },diff --git a/tests/library/unit/timeout-runner.spec.ts b/tests/library/unit/timeout-runner.spec.tsindex 36bf9a4152..8037cd59ba 100644--- a/tests/library/unit/timeout-runner.spec.ts+++ b/tests/library/unit/timeout-runner.spec.ts@@ -18,7 +18,7 @@ import { test, expect } from '@playwright/test';import { raceAgainstDeadline } from '../../../packages/isomorphic/timeoutRunner';import { monotonicTime } from '../../../packages/isomorphic/time';-test('raceAgainstDeadline should not emit TimeoutNegativeWarning for a passed deadline', async () => {+test('TO-001 raceAgainstDeadline should not emit TimeoutNegativeWarning for a passed deadline', async () => {const warnings: string[] = [];const onWarning = (w: Error) => warnings.push(w.name);process.on('warning', onWarning);diff --git a/tests/library/unroute-behavior.spec.ts b/tests/library/unroute-behavior.spec.tsindex b5c4f1010f..30a9b4c865 100644--- a/tests/library/unroute-behavior.spec.ts+++ b/tests/library/unroute-behavior.spec.ts@@ -20,7 +20,7 @@ import { iso } from '../../packages/playwright-core/lib/coreBundle';const { ManualPromise } = iso;-it('context.unroute should not wait for pending handlers to complete', async ({ page, context, server }) => {+it('RO-186 context.unroute should not wait for pending handlers to complete', async ({ page, context, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });let secondHandlerCalled = false;await context.route(/.*/, async route => {@@ -45,7 +45,7 @@ it('context.unroute should not wait for pending handlers to complete', async ({expect(secondHandlerCalled).toBe(true);});-it('context.unrouteAll removes all handlers', async ({ page, context, server }) => {+it('RO-187 context.unrouteAll removes all handlers', async ({ page, context, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });await context.route('**/*', route => {void route.abort();@@ -57,7 +57,7 @@ it('context.unrouteAll removes all handlers', async ({ page, context, server })await page.goto(server.EMPTY_PAGE);});-it('context.unrouteAll should wait for pending handlers to complete', async ({ page, context, server }) => {+it('RO-188 context.unrouteAll should wait for pending handlers to complete', async ({ page, context, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });let secondHandlerCalled = false;await context.route(/.*/, async route => {@@ -87,7 +87,7 @@ it('context.unrouteAll should wait for pending handlers to complete', async ({ pexpect(secondHandlerCalled).toBe(false);});-it('context.unrouteAll should not wait for pending handlers to complete if behavior is ignoreErrors', async ({ page, context, server }) => {+it('RO-189 context.unrouteAll should not wait for pending handlers to complete if behavior is ignoreErrors', async ({ page, context, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });let secondHandlerCalled = false;await context.route(/.*/, async route => {@@ -117,7 +117,7 @@ it('context.unrouteAll should not wait for pending handlers to complete if behavexpect(secondHandlerCalled).toBe(false);});-it('page.close should not wait for active route handlers on the owning context', async ({ page, context, server }) => {+it('RO-190 page.close should not wait for active route handlers on the owning context', async ({ page, context, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });let routeCallback;const routePromise = new Promise(f => routeCallback = f);@@ -132,7 +132,7 @@ it('page.close should not wait for active route handlers on the owning context',await page.close();});-it('context.close should not wait for active route handlers on the owned pages', async ({ page, context, server }) => {+it('RO-191 context.close should not wait for active route handlers on the owned pages', async ({ page, context, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });let routeCallback;const routePromise = new Promise(f => routeCallback = f);@@ -147,7 +147,7 @@ it('context.close should not wait for active route handlers on the owned pages',await context.close();});-it('page.unroute should not wait for pending handlers to complete', async ({ page, server }) => {+it('RO-192 page.unroute should not wait for pending handlers to complete', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });let secondHandlerCalled = false;await page.route(/.*/, async route => {@@ -172,7 +172,7 @@ it('page.unroute should not wait for pending handlers to complete', async ({ pagexpect(secondHandlerCalled).toBe(true);});-it('page.unrouteAll removes all routes', async ({ page, server }) => {+it('RO-193 page.unrouteAll removes all routes', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });await page.route('**/*', route => {void route.abort();@@ -185,7 +185,7 @@ it('page.unrouteAll removes all routes', async ({ page, server }) => {expect(response.ok()).toBe(true);});-it('page.unrouteAll should wait for pending handlers to complete', async ({ page, server }) => {+it('RO-194 page.unrouteAll should wait for pending handlers to complete', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });let secondHandlerCalled = false;await page.route(/.*/, async route => {@@ -215,7 +215,7 @@ it('page.unrouteAll should wait for pending handlers to complete', async ({ pageexpect(secondHandlerCalled).toBe(false);});-it('page.unrouteAll should not wait for pending handlers to complete if behavior is ignoreErrors', async ({ page, server }) => {+it('RO-195 page.unrouteAll should not wait for pending handlers to complete if behavior is ignoreErrors', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });let secondHandlerCalled = false;await page.route(/.*/, async route => {@@ -245,7 +245,7 @@ it('page.unrouteAll should not wait for pending handlers to complete if behaviorexpect(secondHandlerCalled).toBe(false);});-it('page.close does not wait for active route handlers', async ({ page, server }) => {+it('RO-196 page.close does not wait for active route handlers', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });let secondHandlerCalled = false;await page.route(/.*/, () => secondHandlerCalled = true);@@ -262,7 +262,7 @@ it('page.close does not wait for active route handlers', async ({ page, server }expect(secondHandlerCalled).toBe(false);});-it('route.continue should not throw if page has been closed', async ({ page, server }) => {+it('RO-197 route.continue should not throw if page has been closed', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });let routeCallback;const routePromise = new Promise<Route>(f => routeCallback = f);@@ -276,7 +276,7 @@ it('route.continue should not throw if page has been closed', async ({ page, serawait route.continue();});-it('route.fallback should not throw if page has been closed', async ({ page, server }) => {+it('RO-198 route.fallback should not throw if page has been closed', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });let routeCallback;const routePromise = new Promise<Route>(f => routeCallback = f);@@ -290,7 +290,7 @@ it('route.fallback should not throw if page has been closed', async ({ page, serawait route.fallback();});-it('route.fulfill should not throw if page has been closed', async ({ page, server }) => {+it('RO-199 route.fulfill should not throw if page has been closed', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23781' });let routeCallback;const routePromise = new Promise<Route>(f => routeCallback = f);@@ -304,7 +304,7 @@ it('route.fulfill should not throw if page has been closed', async ({ page, servawait route.fulfill();});-it('should not continue requests in flight (page)', async ({ page, server }) => {+it('RO-200 should not continue requests in flight (page)', async ({ page, server }) => {const routePromise = new ManualPromise();await page.goto(server.EMPTY_PAGE);await page.route('**/*', async route => {@@ -318,7 +318,7 @@ it('should not continue requests in flight (page)', async ({ page, server }) =>await page.unrouteAll({ behavior: 'wait' });});-it('should not continue requests in flight (context)', async ({ page, context, server }) => {+it('RO-201 should not continue requests in flight (context)', async ({ page, context, server }) => {const routePromise = new ManualPromise();await page.goto(server.EMPTY_PAGE);await context.route('**/*', async route => {diff --git a/tests/library/video.spec.ts b/tests/library/video.spec.tsindex a3577c02e6..07ea1fbe5f 100644--- a/tests/library/video.spec.ts+++ b/tests/library/video.spec.ts@@ -102,15 +102,15 @@ it.describe('screencast', () => {it.slow();it.skip(({ mode }) => mode !== 'default', 'video.path() is not available in remote mode');- it('should not have video by default', async ({ page }) => {+ it('VI-001 should not have video by default', async ({ page }) => {expect(page.video()).toBeNull();});- it('should not throw without recordVideo.dir', async ({ browser }) => {+ it('VI-002 should not throw without recordVideo.dir', async ({ browser }) => {await browser.newContext({ recordVideo: {} });});- it('should capture static page', async ({ browser, browserName, trace, headless, isWindows }, testInfo) => {+ it('VI-003 should capture static page', async ({ browser, browserName, trace, headless, isWindows }, testInfo) => {// Firefox does not have a mobile variant and has a large minimum size (500 on windows and 450 elsewhere).const size = browserName === 'firefox' ? { width: 500, height: 400 } : { width: 320, height: 240 };const context = await browser.newContext({@@ -130,7 +130,7 @@ it.describe('screencast', () => {expectRedFrames(videoFile, size);});- it('should pad a short frame to the video size', async ({ browser }, testInfo) => {+ it('VI-004 should pad a short frame to the video size', async ({ browser }, testInfo) => {const videoSize = { width: 800, height: 600 };const context = await browser.newContext({recordVideo: {@@ -149,7 +149,7 @@ it.describe('screencast', () => {expect(videoPlayer.videoHeight).toBe(videoSize.height);});- it('should continue recording main page after popup closes', async ({ browser, browserName }, testInfo) => {+ it('VI-005 should continue recording main page after popup closes', async ({ browser, browserName }, testInfo) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30837' });// Firefox does not have a mobile variant and has a large minimum size (500 on windows and 450 elsewhere).const size = browserName === 'firefox' ? { width: 500, height: 400 } : { width: 320, height: 240 };@@ -179,7 +179,7 @@ it.describe('screencast', () => {expectRedFrames(videoFile, size);});- it('should expose video path', async ({ browser }, testInfo) => {+ it('VI-006 should expose video path', async ({ browser }, testInfo) => {const videosPath = testInfo.outputPath('');const size = { width: 320, height: 240 };const context = await browser.newContext({@@ -197,7 +197,7 @@ it.describe('screencast', () => {expect(fs.existsSync(path)).toBeTruthy();});- it('should delete video', async ({ browser }, testInfo) => {+ it('VI-007 should delete video', async ({ browser }, testInfo) => {const videosPath = testInfo.outputPath('');const size = { width: 320, height: 240 };const context = await browser.newContext({@@ -218,7 +218,7 @@ it.describe('screencast', () => {expect(fs.existsSync(videoPath)).toBeFalsy();});- it('should expose video path blank page', async ({ browser }, testInfo) => {+ it('VI-008 should expose video path blank page', async ({ browser }, testInfo) => {const videosPath = testInfo.outputPath('');const size = { width: 320, height: 240 };const context = await browser.newContext({@@ -235,7 +235,7 @@ it.describe('screencast', () => {expect(fs.existsSync(path)).toBeTruthy();});- it('should work with weird screen resolution', async ({ browser }, testInfo) => {+ it('VI-009 should work with weird screen resolution', async ({ browser }, testInfo) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22069' });const videosPath = testInfo.outputPath('');const size = { width: 1904, height: 609 };@@ -253,7 +253,7 @@ it.describe('screencast', () => {expect(fs.existsSync(path)).toBeTruthy();});- it('should work with relative path for recordVideo.dir', async ({ browser }, testInfo) => {+ it('VI-010 should work with relative path for recordVideo.dir', async ({ browser }, testInfo) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27086' });const videosPath = path.relative(process.cwd(), testInfo.outputPath(''));const size = { width: 320, height: 240 };@@ -270,7 +270,7 @@ it.describe('screencast', () => {expect(fs.existsSync(videoPath)).toBeTruthy();});- it('should expose video path blank popup', async ({ browser }, testInfo) => {+ it('VI-011 should expose video path blank popup', async ({ browser }, testInfo) => {const videosPath = testInfo.outputPath('');const size = { width: 320, height: 240 };const context = await browser.newContext({@@ -291,7 +291,7 @@ it.describe('screencast', () => {expect(fs.existsSync(path)).toBeTruthy();});- it('should capture navigation', async ({ browser, browserName, server, trace }, testInfo) => {+ it('VI-012 should capture navigation', async ({ browser, browserName, server, trace }, testInfo) => {const context = await browser.newContext({recordVideo: {dir: testInfo.outputPath(''),@@ -323,7 +323,7 @@ it.describe('screencast', () => {}});- it('should capture css transformation', async ({ browser, server, headless, browserName, platform, trace }, testInfo) => {+ it('VI-013 should capture css transformation', async ({ browser, server, headless, browserName, platform, trace }, testInfo) => {it.fixme(!headless, 'Fails on headed');it.fixme(browserName === 'webkit' && platform === 'win32');@@ -353,7 +353,7 @@ it.describe('screencast', () => {}});- it('should work for popups', async ({ browser, server, browserName, isBidi }, testInfo) => {+ it('VI-014 should work for popups', async ({ browser, server, browserName, isBidi }, testInfo) => {it.fixme(browserName === 'firefox' && !isBidi, 'https://github.com/microsoft/playwright/issues/14557');const videosPath = testInfo.outputPath('');const size = { width: 600, height: 400 };@@ -387,7 +387,7 @@ it.describe('screencast', () => {expect(videoFiles.length).toBe(2);});- it('should scale frames down to the requested size ', async ({ browser, browserName, server, headless, isHeadlessShell }, testInfo) => {+ it('VI-015 should scale frames down to the requested size ', async ({ browser, browserName, server, headless, isHeadlessShell }, testInfo) => {it.fixme(!headless, 'Fails on headed');it.fixme(browserName === 'chromium' && !isHeadlessShell, 'Chromium (but not headless shell) has a min width issue');@@ -436,7 +436,7 @@ it.describe('screencast', () => {}});- it('should use viewport scaled down to fit into 800x800 as default size', async ({ browser }, testInfo) => {+ it('VI-016 should use viewport scaled down to fit into 800x800 as default size', async ({ browser }, testInfo) => {const size = { width: 1600, height: 1200 };const context = await browser.newContext({recordVideo: {@@ -455,7 +455,7 @@ it.describe('screencast', () => {expect(videoPlayer.videoHeight).toBe(600);});- it('should be 800x450 by default', async ({ browser }, testInfo) => {+ it('VI-017 should be 800x450 by default', async ({ browser }, testInfo) => {const context = await browser.newContext({recordVideo: {dir: testInfo.outputPath(''),@@ -472,7 +472,7 @@ it.describe('screencast', () => {expect(videoPlayer.videoHeight).toBe(450);});- it('should record video with the requested fps', async ({ browser }, testInfo) => {+ it('VI-018 should record video with the requested fps', async ({ browser }, testInfo) => {const context = await browser.newContext({recordVideo: {dir: testInfo.outputPath(''),@@ -488,7 +488,7 @@ it.describe('screencast', () => {expect(videoPlayer.fps).toBe(60);});- it('should throw on invalid fps', async ({ browser }, testInfo) => {+ it('VI-019 should throw on invalid fps', async ({ browser }, testInfo) => {const error = await browser.newContext({recordVideo: {dir: testInfo.outputPath(''),@@ -498,7 +498,7 @@ it.describe('screencast', () => {expect(error.message).toContain('"recordVideo.fps" must be a positive number, got 0');});- it('should be 800x600 with null viewport', async ({ browser, headless, browserName, isBidi }, testInfo) => {+ it('VI-020 should be 800x600 with null viewport', async ({ browser, headless, browserName, isBidi }, testInfo) => {it.fixme(browserName === 'firefox' && headless && !isBidi, 'Fails in headless on bots');const context = await browser.newContext({@@ -518,7 +518,7 @@ it.describe('screencast', () => {expect(videoPlayer.videoHeight).toBe(600);});- it('should capture static page in persistent context @smoke', async ({ launchPersistent, browserName, trace, isMac }, testInfo) => {+ it('VI-021 should capture static page in persistent context @smoke', async ({ launchPersistent, browserName, trace, isMac }, testInfo) => {it.skip(browserName === 'webkit' && isMac && process.arch === 'arm64', 'Is only failing on self-hosted github actions runner on M1 mac; not reproducible locally');const size = { width: 600, height: 400 };const { context, page } = await launchPersistent({@@ -547,7 +547,7 @@ it.describe('screencast', () => {}});- it('should emulate an iphone', async ({ contextFactory, playwright, browserName }, testInfo) => {+ it('VI-022 should emulate an iphone', async ({ contextFactory, playwright, browserName }, testInfo) => {const device = playwright.devices['iPhone 6'];const context = await contextFactory({...device,@@ -566,7 +566,7 @@ it.describe('screencast', () => {expect(videoPlayer.videoHeight).toBe(666);});- it('should throw on browser close', async ({ browserType }, testInfo) => {+ it('VI-023 should throw on browser close', async ({ browserType }, testInfo) => {const size = { width: 320, height: 240 };const browser = await browserType.launch();const context = await browser.newContext({@@ -586,7 +586,7 @@ it.describe('screencast', () => {expect(saveResult.message).toContain('browser has been closed');});- it('should throw if browser dies', async ({ browserType }, testInfo) => {+ it('VI-024 should throw if browser dies', async ({ browserType }, testInfo) => {const size = { width: 320, height: 240 };const browser = await browserType.launch();@@ -607,7 +607,7 @@ it.describe('screencast', () => {expect(saveResult.message).toContain('rowser has been closed');});- it('should wait for video to finish if page was closed', async ({ browserType }, testInfo) => {+ it('VI-025 should wait for video to finish if page was closed', async ({ browserType }, testInfo) => {const size = { width: 320, height: 240 };const browser = await browserType.launch();@@ -633,7 +633,7 @@ it.describe('screencast', () => {expect(videoPlayer.videoHeight).toBe(240);});- it('should close ffmpeg even if there were no frames', {+ it('VI-026 should close ffmpeg even if there were no frames', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39872' }}, async ({ browserType }, testInfo) => {const size = { width: 320, height: 240 };@@ -661,7 +661,7 @@ it.describe('screencast', () => {expect(videoFiles.length).toBe(2);});- it('should not create video for internal pages', async ({ browser, server }, testInfo) => {+ it('VI-027 should not create video for internal pages', async ({ browser, server }, testInfo) => {server.setRoute('/empty.html', (req, res) => {res.setHeader('Set-Cookie', 'name=value');res.end();@@ -687,7 +687,7 @@ it.describe('screencast', () => {expect(files.length).toBe(1);});- it('should capture full viewport', async ({ browserType, browserName, isWindows, headless, isHeadlessShell }, testInfo) => {+ it('VI-028 should capture full viewport', async ({ browserType, browserName, isWindows, headless, isHeadlessShell }, testInfo) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22411' });it.fixme(browserName === 'chromium' && !isHeadlessShell, 'The square is not on the video');it.fixme(browserName === 'firefox' && isWindows, 'https://github.com/microsoft/playwright/issues/14405');@@ -722,7 +722,7 @@ it.describe('screencast', () => {expectAll(pixels, isAlmostRed);});- it('should capture full viewport on hidpi', async ({ browserType, browserName, headless, isWindows, isLinux, isHeadlessShell, channel }, testInfo) => {+ it('VI-029 should capture full viewport on hidpi', async ({ browserType, browserName, headless, isWindows, isLinux, isHeadlessShell, channel }, testInfo) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22411' });it.fixme(browserName === 'chromium' && !isHeadlessShell, 'The square is not on the video');it.fixme(browserName === 'firefox' && isWindows, 'https://github.com/microsoft/playwright/issues/14405');@@ -759,7 +759,7 @@ it.describe('screencast', () => {expectAll(pixels, isAlmostRed);});- it('should work with video+trace', async ({ browser, trace, headless, browserName, isHeadlessShell }, testInfo) => {+ it('VI-030 should work with video+trace', async ({ browser, trace, headless, browserName, isHeadlessShell }, testInfo) => {it.skip(trace === 'on');it.fixme(!headless, 'different trace screencast image size on all browsers');it.fixme(browserName === 'chromium' && !isHeadlessShell, 'different trace screencast image size');@@ -803,7 +803,7 @@ it.describe('screencast', () => {});-it('should saveAs video', async ({ browser }, testInfo) => {+it('VI-031 should saveAs video', async ({ browser }, testInfo) => {it.slow();const videosPath = testInfo.outputPath('');diff --git a/tests/library/web-socket.spec.ts b/tests/library/web-socket.spec.tsindex 60acc51268..167b2a7a90 100644--- a/tests/library/web-socket.spec.ts+++ b/tests/library/web-socket.spec.ts@@ -19,7 +19,7 @@ import { kTargetClosedErrorMessage } from '../config/errors';import { contextTest as it, expect } from '../config/browserTest';import { WebSocketServer, type WebSocket as WsSocket } from 'ws';-it('should work @smoke', async ({ page, server }) => {+it('WS-001 should work @smoke', async ({ page, server }) => {server.sendOnWebSocketConnection('incoming');const value = await page.evaluate(host => {let cb;@@ -31,7 +31,7 @@ it('should work @smoke', async ({ page, server }) => {expect(value).toBe('incoming');});-it('should emit close events', async ({ page, server }) => {+it('WS-002 should emit close events', async ({ page, server }) => {let socketClosed;const socketClosePromise = new Promise(f => socketClosed = f);const log = [];@@ -50,7 +50,7 @@ it('should emit close events', async ({ page, server }) => {expect(webSocket.isClosed()).toBeTruthy();});-it('should emit frame events', async ({ page, server }) => {+it('WS-003 should emit frame events', async ({ page, server }) => {server.onceWebSocketConnection(ws => {ws.on('message', () => ws.send('incoming'));});@@ -73,7 +73,7 @@ it('should emit frame events', async ({ page, server }) => {expect(log).toEqual(['open', 'sent<outgoing>', 'received<incoming>', 'close']);});-it('should filter out the close events when the server closes with a message', async ({ page, server }) => {+it('WS-004 should filter out the close events when the server closes with a message', async ({ page, server }) => {server.onceWebSocketConnection(ws => {ws.send('incoming');ws.on('message', () => ws.close(1003, 'closed by Playwright test-server'));@@ -96,7 +96,7 @@ it('should filter out the close events when the server closes with a message', aexpect(log).toEqual(['open', 'received<incoming>', 'sent<outgoing>', 'close']);});-it('should pass self as argument to close event', async ({ page, server }) => {+it('WS-005 should pass self as argument to close event', async ({ page, server }) => {let socketClosed;const socketClosePromise = new Promise(f => socketClosed = f);let webSocket;@@ -112,7 +112,7 @@ it('should pass self as argument to close event', async ({ page, server }) => {expect(eventArg).toBe(webSocket);});-it('should emit binary frame events', async ({ page, server }) => {+it('WS-006 should emit binary frame events', async ({ page, server }) => {let doneCallback;const donePromise = new Promise(f => doneCallback = f);const sent = [];@@ -137,7 +137,7 @@ it('should emit binary frame events', async ({ page, server }) => {expect(sent[1][i]).toBe(i);});-it('should emit error', async ({ page, server, channel }) => {+it('WS-007 should emit error', async ({ page, server, channel }) => {let callback;const result = new Promise(f => callback = f);page.on('websocket', ws => ws.on('socketerror', callback));@@ -148,7 +148,7 @@ it('should emit error', async ({ page, server, channel }) => {expect(message).toContain(channel?.includes('msedge') ? '' : ': 400');});-it('should not have stray error events', async ({ page, server }) => {+it('WS-008 should not have stray error events', async ({ page, server }) => {server.sendOnWebSocketConnection('incoming');let error;page.on('websocket', ws => ws.on('socketerror', e => error = e));@@ -165,7 +165,7 @@ it('should not have stray error events', async ({ page, server }) => {expect(error).toBeFalsy();});-it('should reject waitForEvent on socket close', async ({ page, server }) => {+it('WS-009 should reject waitForEvent on socket close', async ({ page, server }) => {server.sendOnWebSocketConnection('incoming');const [ws] = await Promise.all([page.waitForEvent('websocket').then(async ws => {@@ -181,7 +181,7 @@ it('should reject waitForEvent on socket close', async ({ page, server }) => {expect((await error).message).toContain('Socket closed');});-it('should reject waitForEvent on page close', async ({ page, server }) => {+it('WS-010 should reject waitForEvent on page close', async ({ page, server }) => {server.sendOnWebSocketConnection('incoming');const [ws] = await Promise.all([page.waitForEvent('websocket').then(async ws => {@@ -197,7 +197,7 @@ it('should reject waitForEvent on page close', async ({ page, server }) => {expect((await error).message).toContain(kTargetClosedErrorMessage);});-it('should not tear down the page when a WebSocket is opened inside a worker', {+it('WS-011 should not tear down the page when a WebSocket is opened inside a worker', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41742' },}, async ({ page, server }) => {server.sendOnWebSocketConnection('incoming');@@ -215,7 +215,7 @@ it('should not tear down the page when a WebSocket is opened inside a worker', {expect(await page.evaluate(() => 1 + 1)).toBe(2);});-it('should turn off when offline', async ({ page }) => {+it('WS-012 should turn off when offline', async ({ page }) => {it.fixme();const webSocketServer = new WebSocketServer();@@ -244,7 +244,7 @@ it('should turn off when offline', async ({ page }) => {await new Promise(x => webSocketServer.close(x));});-it('should send extra HTTP headers on WebSocket handshake', {+it('WS-013 should send extra HTTP headers on WebSocket handshake', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28948' },}, async ({ page, server, browserName, browserMajorVersion }) => {it.fixme(browserName === 'chromium' && browserMajorVersion < 151, 'Chromium before 151 does not send extra HTTP headers on WebSocket handshake');@@ -257,7 +257,7 @@ it('should send extra HTTP headers on WebSocket handshake', {expect(req.headers['foo']).toBe('bar');});-it('should send extra HTTP headers on WebSocket handshake from a worker', {+it('WS-014 should send extra HTTP headers on WebSocket handshake from a worker', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28948' },}, async ({ page, server, browserName, browserMajorVersion }) => {it.fixme(browserName === 'chromium' && browserMajorVersion < 151, 'Chromium before 151 does not send extra HTTP headers on WebSocket handshake');diff --git a/tests/library/webmcp-disabled.spec.ts b/tests/library/webmcp-disabled.spec.tsindex a01b07501a..66e0ed41bc 100644--- a/tests/library/webmcp-disabled.spec.ts+++ b/tests/library/webmcp-disabled.spec.ts@@ -19,7 +19,7 @@ import { browserTest as test, expect } from '../config/browserTest';test.skip(({ browserName }) => browserName === 'webkit', 'WebKit does not implement WebMCP');test.skip(({ isBidi }) => isBidi, 'WebMCP is not implemented over BiDi');-test('should throw when the browser was launched without WebMCP', async ({ page, browserName }) => {+test('WM-015 should throw when the browser was launched without WebMCP', async ({ page, browserName }) => {const error = await page.webmcp.tools().catch(e => e);expect(error.message).toContain('WebMCP is not enabled.');expect(error.message).toContain(browserName === 'firefox' ? 'dom.modelcontext.enabled' : '--enable-features=WebMCP');diff --git a/tests/library/webmcp.spec.ts b/tests/library/webmcp.spec.tsindex 78d93f35ca..93f2e37d19 100644--- a/tests/library/webmcp.spec.ts+++ b/tests/library/webmcp.spec.ts@@ -62,7 +62,7 @@ function serve(server: any, path: string, body: string) {});}-test('should list tools registered by the page', async ({ page, server }) => {+test('WM-001 should list tools registered by the page', async ({ page, server }) => {serve(server, '/', registerScript(kAdd + `modelContext.registerTool({name: 'noop',@@ -88,19 +88,19 @@ test('should list tools registered by the page', async ({ page, server }) => {]);});-test('should report no tools when the page registers none', async ({ page, server }) => {+test('WM-002 should report no tools when the page registers none', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(await page.webmcp.tools()).toEqual([]);});-test('should call a tool', async ({ page, server }) => {+test('WM-003 should call a tool', async ({ page, server }) => {serve(server, '/', registerScript(kAdd));await page.goto(server.PREFIX + '/');expect(await page.webmcp.callTool('add', { a: 2, b: 40 })).toEqual({ content: [{ type: 'text', text: '42' }] });});-test('should return isError results as is', async ({ page, server }) => {+test('WM-004 should return isError results as is', async ({ page, server }) => {serve(server, '/', registerScript(`modelContext.registerTool({name: 'broken',@@ -113,7 +113,7 @@ test('should return isError results as is', async ({ page, server }) => {expect(await page.webmcp.callTool('broken')).toEqual({ content: [{ type: 'text', text: 'nope' }], isError: true });});-test('should throw when the tool throws', async ({ page, server, browserName }) => {+test('WM-005 should throw when the tool throws', async ({ page, server, browserName }) => {serve(server, '/', registerScript(`modelContext.registerTool({name: 'throwing',@@ -128,7 +128,7 @@ test('should throw when the tool throws', async ({ page, server, browserName })expect(error.message).toContain(browserName === 'chromium' ? 'the invocation failed' : 'boom');});-test('should throw for an unknown tool', async ({ page, server }) => {+test('WM-006 should throw for an unknown tool', async ({ page, server }) => {serve(server, '/', registerScript(kAdd));await page.goto(server.PREFIX + '/');@@ -137,7 +137,7 @@ test('should throw for an unknown tool', async ({ page, server }) => {expect(error.message).toContain('Available tools: add');});-test('should time out when the tool does not settle', async ({ page, server }) => {+test('WM-007 should time out when the tool does not settle', async ({ page, server }) => {serve(server, '/', registerScript(`modelContext.registerTool({name: 'stuck',@@ -151,7 +151,7 @@ test('should time out when the tool does not settle', async ({ page, server }) =expect(error.message).toContain('Timeout 500ms exceeded');});-test('should drop tools after navigation', async ({ page, server }) => {+test('WM-008 should drop tools after navigation', async ({ page, server }) => {serve(server, '/', registerScript(kAdd));await page.goto(server.PREFIX + '/');expect(await page.webmcp.tools()).toHaveLength(1);@@ -162,7 +162,7 @@ test('should drop tools after navigation', async ({ page, server }) => {expect(error.message).toContain('The frame does not register any WebMCP tools');});-test('should list a tool registered after load', async ({ page, server }) => {+test('WM-009 should list a tool registered after load', async ({ page, server }) => {serve(server, '/', registerScript(kAdd));await page.goto(server.PREFIX + '/');expect(await page.webmcp.tools()).toHaveLength(1);@@ -175,7 +175,7 @@ test('should list a tool registered after load', async ({ page, server }) => {expect(tools.map(tool => tool.name)).toEqual(['add', 'late']);});-test('should list tools while a tool is running', async ({ page, server }) => {+test('WM-010 should list tools while a tool is running', async ({ page, server }) => {serve(server, '/', registerScript(kAdd + `modelContext.registerTool({name: 'gated',@@ -192,7 +192,7 @@ test('should list tools while a tool is running', async ({ page, server }) => {expect(await result).toEqual({ content: [{ type: 'text', text: 'released' }] });});-test('should list declarative tools', async ({ page, server, browserName }) => {+test('WM-011 should list declarative tools', async ({ page, server, browserName }) => {test.skip(browserName !== 'chromium', 'Only Chromium implements declarative tools');serve(server, '/', `<form toolname="subscribe" tooldescription="Subscribes to the newsletter">@@ -213,7 +213,7 @@ test('should list declarative tools', async ({ page, server, browserName }) => {expect(error.message).toContain('Timeout 500ms exceeded');});-test('should scope tools to their frame', async ({ page, server, browserName }) => {+test('WM-012 should scope tools to their frame', async ({ page, server, browserName }) => {test.skip(browserName === 'firefox', 'Firefox does not support registering WebMCP tools in iframes yet, https://bugzilla.mozilla.org/show_bug.cgi?id=2019743');serve(server, '/', registerScript(kAdd) + `<iframe src="/frame.html"></iframe>`);serve(server, '/frame.html', registerScript(`@@ -235,7 +235,7 @@ test('should scope tools to their frame', async ({ page, server, browserName })expect(error.message).toContain('Available tools: add');});-test('should call same-name tools in their own frame', async ({ page, server, browserName }) => {+test('WM-013 should call same-name tools in their own frame', async ({ page, server, browserName }) => {test.skip(browserName === 'firefox', 'Firefox does not support registering WebMCP tools in iframes yet, https://bugzilla.mozilla.org/show_bug.cgi?id=2019743');const registerEcho = (text: string) => registerScript(`modelContext.registerTool({@@ -253,7 +253,7 @@ test('should call same-name tools in their own frame', async ({ page, server, brexpect(await childFrame.webmcp.callTool('echo')).toEqual({ content: [{ type: 'text', text: 'frame' }] });});-test('should list and call tools in cross-origin and nested frames', async ({ page, server, browserName }) => {+test('WM-014 should list and call tools in cross-origin and nested frames', async ({ page, server, browserName }) => {test.skip(browserName === 'firefox', 'Firefox does not support registering WebMCP tools in iframes yet, https://bugzilla.mozilla.org/show_bug.cgi?id=2019743');const registerEcho = (text: string) => registerScript(`modelContext.registerTool({diff --git a/tests/page/elementhandle-bounding-box.spec.ts b/tests/page/elementhandle-bounding-box.spec.tsindex 23ea6ae3df..03b96bc13a 100644--- a/tests/page/elementhandle-bounding-box.spec.ts+++ b/tests/page/elementhandle-bounding-box.spec.ts@@ -19,7 +19,7 @@ import { test as it, expect } from './pageTest';it.skip(({ isAndroid }) => isAndroid);-it('should work', async ({ page, server, browserName, headless, isLinux }) => {+it('EH-001 should work', async ({ page, server, browserName, headless, isLinux }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const elementHandle = await page.$('.box:nth-of-type(13)');@@ -27,7 +27,7 @@ it('should work', async ({ page, server, browserName, headless, isLinux }) => {expect(box).toEqual({ x: 100, y: 50, width: 50, height: 50 });});-it('should handle nested frames', async ({ page, server }) => {+it('EH-002 should handle nested frames', async ({ page, server }) => {await page.setViewportSize({ width: 616, height: 500 });await page.goto(server.PREFIX + '/frames/nested-frames.html');const nestedFrame = page.frameLocator('[name="2frames"]').frameLocator('[name=dos]');@@ -36,7 +36,7 @@ it('should handle nested frames', async ({ page, server }) => {expect(box).toEqual({ x: 24, y: 224, width: 268, height: 18 });});-it('should get frame box', async ({ page, browserName }) => {+it('EH-003 should get frame box', async ({ page, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/10977' });await page.setViewportSize({ width: 250, height: 250 });await page.setContent(`<style>@@ -59,7 +59,7 @@ it('should get frame box', async ({ page, browserName }) => {});-it('should handle scroll offset and click', async ({ page, server }) => {+it('EH-004 should handle scroll offset and click', async ({ page, server }) => {await page.setContent(`<style>* { margin: 0; padding: 0; }</style><div style="width:8000px; height:8000px;">@@ -78,13 +78,13 @@ it('should handle scroll offset and click', async ({ page, server }) => {expect(await page.evaluate(() => window['__clicked'])).toBe(true);});-it('should return null for invisible elements', async ({ page, server }) => {+it('EH-005 should return null for invisible elements', async ({ page, server }) => {await page.setContent('<div style="display:none">hi</div>');const element = await page.$('div');expect(await element.boundingBox()).toBe(null);});-it('should get bounding box of element inside a cross-origin iframe', async ({ page, server }) => {+it('EH-006 should get bounding box of element inside a cross-origin iframe', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<div style="height:120px"></div>@@ -99,7 +99,7 @@ it('should get bounding box of element inside a cross-origin iframe', async ({ pexpect(Math.round(box.y)).toBe(Math.round(iframeBox.y + inner.y));});-it('should force a layout', async ({ page, server }) => {+it('EH-007 should force a layout', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.setContent('<div style="width: 100px; height: 100px">hello</div>');const elementHandle = await page.$('div');@@ -108,7 +108,7 @@ it('should force a layout', async ({ page, server }) => {expect(box).toEqual({ x: 8, y: 8, width: 100, height: 200 });});-it('should work with SVG nodes', async ({ page, server }) => {+it('EH-008 should work with SVG nodes', async ({ page, server }) => {await page.setContent(`<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500"><rect id="theRect" x="30" y="50" width="200" height="300"></rect>@@ -123,7 +123,7 @@ it('should work with SVG nodes', async ({ page, server }) => {expect(pwBoundingBox).toEqual(webBoundingBox);});-it('should work when inline box child is outside of viewport', async ({ page, server }) => {+it('EH-009 should work when inline box child is outside of viewport', async ({ page, server }) => {await page.setContent(`<style>i {diff --git a/tests/page/elementhandle-click.spec.ts b/tests/page/elementhandle-click.spec.tsindex 211055f25a..04b7e9e39a 100644--- a/tests/page/elementhandle-click.spec.ts+++ b/tests/page/elementhandle-click.spec.ts@@ -17,14 +17,14 @@import { test as it, expect } from './pageTest';-it('should work @smoke', async ({ page, server }) => {+it('EH-010 should work @smoke', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = await page.$('button');await button.click();expect(await page.evaluate(() => window['result'])).toBe('Clicked');});-it('should work with Node removed', async ({ page, server }) => {+it('EH-011 should work with Node removed', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.evaluate(() => delete window['Node']);const button = await page.$('button');@@ -32,14 +32,14 @@ it('should work with Node removed', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('Clicked');});-it('should work for Shadow DOM v1', async ({ page, server }) => {+it('EH-012 should work for Shadow DOM v1', async ({ page, server }) => {await page.goto(server.PREFIX + '/shadow.html');const buttonHandle = await page.evaluateHandle(() => window['button'] as HTMLButtonElement);await buttonHandle.click();expect(await page.evaluate('clicked')).toBe(true);});-it('should work for TextNodes', async ({ page }) => {+it('EH-013 should work for TextNodes', async ({ page }) => {await page.setContent(`<div id='outer' onclick="window['result'] = 'Clicked ' + event.target.id;"><div id='inner' style="max-width: 50px">Lorem ipsum dolor sit amet consectetur adipiscing elit proin, integer curabitur imperdiet rhoncus cursus tincidunt bibendum, consequat sed magnis laoreet luctus mollis tellus. Nisl parturient mus accumsan feugiat sem laoreet magnis nisi, aptent per sollicitudin gravida orci ac blandit, viverra eros praesent auctor vivamus semper bibendum. Consequat sed habitasse luctus dictumst gravida platea semper phasellus, nascetur ridiculus purus est varius quisque et scelerisque, id vehicula eleifend montes sollicitudin dis velit. Pellentesque ridiculus per natoque et eleifend taciti nunc, laoreet auctor at condimentum imperdiet ante, conubia mi cubilia scelerisque sociosqu sem.</div>@@ -51,7 +51,7 @@ it('should work for TextNodes', async ({ page }) => {expect(await page.evaluate(() => window['result'])).toBe('Clicked outer');});-it('should throw for detached nodes', async ({ page, server }) => {+it('EH-014 should throw for detached nodes', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = await page.$('button');await page.evaluate(button => button.remove(), button);@@ -60,7 +60,7 @@ it('should throw for detached nodes', async ({ page, server }) => {expect(error.message).toContain('Element is not attached to the DOM');});-it('should throw for hidden nodes with force', async ({ page, server }) => {+it('EH-015 should throw for hidden nodes with force', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = await page.$('button');await page.evaluate(button => button.style.display = 'none', button);@@ -68,7 +68,7 @@ it('should throw for hidden nodes with force', async ({ page, server }) => {expect(error.message).toContain('Element is not visible');});-it('should throw for recursively hidden nodes with force', async ({ page, server }) => {+it('EH-016 should throw for recursively hidden nodes with force', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = await page.$('button');await page.evaluate(button => button.parentElement.style.display = 'none', button);@@ -76,14 +76,14 @@ it('should throw for recursively hidden nodes with force', async ({ page, serverexpect(error.message).toContain('Element is not visible');});-it('should throw for <br> elements with force', async ({ page, server }) => {+it('EH-017 should throw for <br> elements with force', async ({ page, server }) => {await page.setContent('hello<br>goodbye');const br = await page.$('br');const error = await br.click({ force: true }).catch(err => err);expect(error.message).toContain('Element is outside of the viewport');});-it('should double click the button', async ({ page, server }) => {+it('EH-018 should double click the button', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.evaluate(() => {window['double'] = false;diff --git a/tests/page/elementhandle-content-frame.spec.ts b/tests/page/elementhandle-content-frame.spec.tsindex 3ad16fe1a7..d2a899246e 100644--- a/tests/page/elementhandle-content-frame.spec.ts+++ b/tests/page/elementhandle-content-frame.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import { attachFrame } from '../config/utils';-it('should work', async ({ page, server }) => {+it('EH-019 should work', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.EMPTY_PAGE);const elementHandle = await page.$('#frame1');@@ -26,7 +26,7 @@ it('should work', async ({ page, server }) => {expect(frame).toBe(page.frames()[1]);});-it('should work for cross-process iframes', async ({ page, server }) => {+it('EH-020 should work for cross-process iframes', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.CROSS_PROCESS_PREFIX + '/empty.html');const elementHandle = await page.$('#frame1');@@ -34,7 +34,7 @@ it('should work for cross-process iframes', async ({ page, server }) => {expect(frame).toBe(page.frames()[1]);});-it('should work for cross-frame evaluations', async ({ page, server }) => {+it('EH-021 should work for cross-frame evaluations', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.EMPTY_PAGE);const frame = page.frames()[1];@@ -42,7 +42,7 @@ it('should work for cross-frame evaluations', async ({ page, server }) => {expect(await elementHandle.contentFrame()).toBe(frame);});-it('should return null for non-iframes', async ({ page, server }) => {+it('EH-022 should return null for non-iframes', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.EMPTY_PAGE);const frame = page.frames()[1];@@ -50,7 +50,7 @@ it('should return null for non-iframes', async ({ page, server }) => {expect(await elementHandle.contentFrame()).toBe(null);});-it('should return null for document.documentElement', async ({ page, server }) => {+it('EH-023 should return null for document.documentElement', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.EMPTY_PAGE);const frame = page.frames()[1];diff --git a/tests/page/elementhandle-convenience.spec.ts b/tests/page/elementhandle-convenience.spec.tsindex 8e2f4895bf..478bf57985 100644--- a/tests/page/elementhandle-convenience.spec.ts+++ b/tests/page/elementhandle-convenience.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should have a nice preview', async ({ page, server }) => {+it('EH-024 should have a nice preview', async ({ page, server }) => {await page.goto(`${server.PREFIX}/dom.html`);const outer = await page.$('#outer');const inner = await page.$('#inner');@@ -30,14 +30,14 @@ it('should have a nice preview', async ({ page, server }) => {expect(String(check)).toBe('JSHandle@<input checked id="check" foo="bar"" type="checkbox"/>');});-it('should have a nice preview for non-ascii attributes/children', async ({ page, server }) => {+it('EH-025 should have a nice preview for non-ascii attributes/children', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<div title="${'😛'.repeat(100)}">${'😛'.repeat(100)}`);const handle = await page.$('div');await expect.poll(() => String(handle)).toBe(`JSHandle@<div title=\"😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛\">😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛😛…</div>`);});-it('getAttribute should work', async ({ page, server }) => {+it('EH-026 getAttribute should work', async ({ page, server }) => {await page.goto(`${server.PREFIX}/dom.html`);const handle = await page.$('#outer');expect(await handle.getAttribute('name')).toBe('value');@@ -46,7 +46,7 @@ it('getAttribute should work', async ({ page, server }) => {expect(await page.getAttribute('#outer', 'foo')).toBe(null);});-it('inputValue should work', async ({ page, server }) => {+it('EH-027 inputValue should work', async ({ page, server }) => {await page.goto(`${server.PREFIX}/dom.html`);await page.selectOption('#select', 'foo');@@ -65,21 +65,21 @@ it('inputValue should work', async ({ page, server }) => {expect(await handle2.inputValue().catch(e => e.message)).toContain('Node is not an <input>, <textarea> or <select> element');});-it('innerHTML should work', async ({ page, server }) => {+it('EH-028 innerHTML should work', async ({ page, server }) => {await page.goto(`${server.PREFIX}/dom.html`);const handle = await page.$('#outer');expect(await handle.innerHTML()).toBe('<div id="inner">Text,\nmore text</div>');expect(await page.innerHTML('#outer')).toBe('<div id="inner">Text,\nmore text</div>');});-it('innerText should work', async ({ page, server }) => {+it('EH-029 innerText should work', async ({ page, server }) => {await page.goto(`${server.PREFIX}/dom.html`);const handle = await page.$('#inner');expect(await handle.innerText()).toBe('Text, more text');expect(await page.innerText('#inner')).toBe('Text, more text');});-it('innerText should throw', async ({ page, server }) => {+it('EH-030 innerText should throw', async ({ page, server }) => {await page.setContent(`<svg>text</svg>`);const error1 = await page.innerText('svg').catch(e => e);expect(error1.message).toContain('Node is not an HTMLElement');@@ -88,14 +88,14 @@ it('innerText should throw', async ({ page, server }) => {expect(error2.message).toContain('Node is not an HTMLElement');});-it('textContent should work', async ({ page, server }) => {+it('EH-031 textContent should work', async ({ page, server }) => {await page.goto(`${server.PREFIX}/dom.html`);const handle = await page.$('#inner');expect(await handle.textContent()).toBe('Text,\nmore text');expect(await page.textContent('#inner')).toBe('Text,\nmore text');});-it('textContent should work on ShadowRoot', async ({ page, server }) => {+it('EH-032 textContent should work on ShadowRoot', async ({ page, server }) => {await page.setContent(`<div></div><script>@@ -109,7 +109,7 @@ it('textContent should work on ShadowRoot', async ({ page, server }) => {expect(await root.$$(':scope div')).toEqual([]);});-it('isVisible and isHidden should work', async ({ page }) => {+it('EH-033 isVisible and isHidden should work', async ({ page }) => {await page.setContent(`<div>Hi</div><span></span>`);const div = await page.$('div');@@ -128,7 +128,7 @@ it('isVisible and isHidden should work', async ({ page }) => {expect(await page.isHidden('no-such-element')).toBe(true);});-it('isVisible should not throw when the DOM element is not connected', async ({ page }) => {+it('EH-034 isVisible should not throw when the DOM element is not connected', async ({ page }) => {await page.setContent(`<div id="root"></div>`);await page.evaluate(() => {function insert() {@@ -147,7 +147,7 @@ it('isVisible should not throw when the DOM element is not connected', async ({await page.isVisible('#problem');});-it('isEnabled and isDisabled should work', async ({ page }) => {+it('EH-035 isEnabled and isDisabled should work', async ({ page }) => {await page.setContent(`<button disabled>button1</button><button>button2</button>@@ -170,7 +170,7 @@ it('isEnabled and isDisabled should work', async ({ page }) => {expect(await page.isDisabled(':text("button2")')).toBe(false);});-it('isEnabled and isDisabled should work with <select/> option/optgroup correctly', async ({ page }) => {+it('EH-036 isEnabled and isDisabled should work with <select/> option/optgroup correctly', async ({ page }) => {await page.setContent(`<select name="select"><option id="enabled1" value="1">Enabled</option>@@ -193,7 +193,7 @@ it('isEnabled and isDisabled should work with <select/> option/optgroup correctlexpect((await (await page.$('optgroup >> nth=1')).isDisabled())).toBe(true);});-it('isEditable should work', async ({ page }) => {+it('EH-037 isEditable should work', async ({ page }) => {await page.setContent(`<input id=input1 disabled><textarea></textarea><input id=input2>`);await page.$eval('textarea', t => t.readOnly = true);const input1 = await page.$('#input1');@@ -207,7 +207,7 @@ it('isEditable should work', async ({ page }) => {expect(await page.isEditable('textarea')).toBe(false);});-it('isChecked should work', async ({ page }) => {+it('EH-038 isChecked should work', async ({ page }) => {await page.setContent(`<input type='checkbox' checked><div>Not a checkbox</div>`);const handle = await page.$('input');expect(await handle.isChecked()).toBe(true);diff --git a/tests/page/elementhandle-eval-on-selector.spec.ts b/tests/page/elementhandle-eval-on-selector.spec.tsindex 93faaa9cb8..902c410a39 100644--- a/tests/page/elementhandle-eval-on-selector.spec.ts+++ b/tests/page/elementhandle-eval-on-selector.spec.ts@@ -17,14 +17,14 @@import { test as it, expect } from './pageTest';-it('should work', async ({ page, server }) => {+it('EH-039 should work', async ({ page, server }) => {await page.setContent('<html><body><div class="tweet"><div class="like">100</div><div class="retweets">10</div></div></body></html>');const tweet = await page.$('.tweet');const content = await tweet.$eval('.like', node => (node as HTMLElement).innerText);expect(content).toBe('100');});-it('should retrieve content from subtree', async ({ page, server }) => {+it('EH-040 should retrieve content from subtree', async ({ page, server }) => {const htmlContent = '<div class="a">not-a-child-div</div><div id="myId"><div class="a">a-child-div</div></div>';await page.setContent(htmlContent);const elementHandle = await page.$('#myId');@@ -32,7 +32,7 @@ it('should retrieve content from subtree', async ({ page, server }) => {expect(content).toBe('a-child-div');});-it('should throw in case of missing selector', async ({ page, server }) => {+it('EH-041 should throw in case of missing selector', async ({ page, server }) => {const htmlContent = '<div class="a">not-a-child-div</div><div id="myId"></div>';await page.setContent(htmlContent);const elementHandle = await page.$('#myId');@@ -40,14 +40,14 @@ it('should throw in case of missing selector', async ({ page, server }) => {expect(errorMessage).toContain(`elementHandle.$eval: Failed to find element matching selector ".a"`);});-it('should work for all', async ({ page, server }) => {+it('EH-042 should work for all', async ({ page, server }) => {await page.setContent('<html><body><div class="tweet"><div class="like">100</div><div class="like">10</div></div></body></html>');const tweet = await page.$('.tweet');const content = await tweet.$$eval('.like', nodes => nodes.map(n => (n as HTMLElement).innerText));expect(content).toEqual(['100', '10']);});-it('should retrieve content from subtree for all', async ({ page, server }) => {+it('EH-043 should retrieve content from subtree for all', async ({ page, server }) => {const htmlContent = '<div class="a">not-a-child-div</div><div id="myId"><div class="a">a1-child-div</div><div class="a">a2-child-div</div></div>';await page.setContent(htmlContent);const elementHandle = await page.$('#myId');@@ -55,7 +55,7 @@ it('should retrieve content from subtree for all', async ({ page, server }) => {expect(content).toEqual(['a1-child-div', 'a2-child-div']);});-it('should not throw in case of missing selector for all', async ({ page, server }) => {+it('EH-044 should not throw in case of missing selector for all', async ({ page, server }) => {const htmlContent = '<div class="a">not-a-child-div</div><div id="myId"></div>';await page.setContent(htmlContent);const elementHandle = await page.$('#myId');diff --git a/tests/page/elementhandle-misc.spec.ts b/tests/page/elementhandle-misc.spec.tsindex 7224e87779..8419c40b07 100644--- a/tests/page/elementhandle-misc.spec.ts+++ b/tests/page/elementhandle-misc.spec.ts@@ -17,14 +17,14 @@import { test as it, expect } from './pageTest';-it('should hover', async ({ page, server }) => {+it('EH-045 should hover', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/scrollable.html');const button = await page.$('#button-6');await button.hover();expect(await page.evaluate(() => document.querySelector('button:hover').id)).toBe('button-6');});-it('should hover when Node is removed', async ({ page, server }) => {+it('EH-046 should hover when Node is removed', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/scrollable.html');await page.evaluate(() => delete window['Node']);const button = await page.$('#button-6');@@ -32,14 +32,14 @@ it('should hover when Node is removed', async ({ page, server }) => {expect(await page.evaluate(() => document.querySelector('button:hover').id)).toBe('button-6');});-it('should fill input', async ({ page, server }) => {+it('EH-047 should fill input', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');const handle = await page.$('input');await handle.fill('some value');expect(await page.evaluate(() => window['result'])).toBe('some value');});-it('should fill input when Node is removed', async ({ page, server }) => {+it('EH-048 should fill input when Node is removed', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.evaluate(() => delete window['Node']);const handle = await page.$('input');@@ -47,14 +47,14 @@ it('should fill input when Node is removed', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('some value');});-it('should check the box', async ({ page }) => {+it('EH-049 should check the box', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox'></input>`);const input = await page.$('input');await input.check();expect(await page.evaluate('checkbox.checked')).toBe(true);});-it('should check the box using setChecked', async ({ page }) => {+it('EH-050 should check the box using setChecked', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox'></input>`);const input = await page.$('input');await input.setChecked(true);@@ -63,14 +63,14 @@ it('should check the box using setChecked', async ({ page }) => {expect(await page.evaluate('checkbox.checked')).toBe(false);});-it('should uncheck the box', async ({ page }) => {+it('EH-051 should uncheck the box', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox' checked></input>`);const input = await page.$('input');await input.uncheck();expect(await page.evaluate('checkbox.checked')).toBe(false);});-it('should select single option', async ({ page, server }) => {+it('EH-052 should select single option', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');const select = await page.$('select');await select.selectOption('blue');@@ -78,7 +78,7 @@ it('should select single option', async ({ page, server }) => {expect(await page.evaluate(() => window['result'].onChange)).toEqual(['blue']);});-it('should focus a button', async ({ page, server }) => {+it('EH-053 should focus a button', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = await page.$('button');expect(await button.evaluate(button => document.activeElement === button)).toBe(false);@@ -86,7 +86,7 @@ it('should focus a button', async ({ page, server }) => {expect(await button.evaluate(button => document.activeElement === button)).toBe(true);});-it('should allow disposing twice', async ({ page }) => {+it('EH-054 should allow disposing twice', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29945' });await page.setContent('<section>39</section>');const element = await page.$('section');diff --git a/tests/page/elementhandle-owner-frame.spec.ts b/tests/page/elementhandle-owner-frame.spec.tsindex 38c5db0250..28509a432a 100644--- a/tests/page/elementhandle-owner-frame.spec.ts+++ b/tests/page/elementhandle-owner-frame.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import { attachFrame } from '../config/utils';-it('should work', async ({ page, server }) => {+it('EH-055 should work', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.EMPTY_PAGE);const frame = page.frames()[1];@@ -26,7 +26,7 @@ it('should work', async ({ page, server }) => {expect(await elementHandle.ownerFrame()).toBe(frame);});-it('should work for cross-process iframes', async ({ page, server }) => {+it('EH-056 should work for cross-process iframes', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.CROSS_PROCESS_PREFIX + '/empty.html');const frame = page.frames()[1];@@ -34,7 +34,7 @@ it('should work for cross-process iframes', async ({ page, server }) => {expect(await elementHandle.ownerFrame()).toBe(frame);});-it('should work for document', async ({ page, server }) => {+it('EH-057 should work for document', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.EMPTY_PAGE);const frame = page.frames()[1];@@ -42,7 +42,7 @@ it('should work for document', async ({ page, server }) => {expect(await elementHandle.ownerFrame()).toBe(frame);});-it('should work for iframe elements', async ({ page, server }) => {+it('EH-058 should work for iframe elements', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.EMPTY_PAGE);const frame = page.mainFrame();@@ -50,7 +50,7 @@ it('should work for iframe elements', async ({ page, server }) => {expect(await elementHandle.ownerFrame()).toBe(frame);});-it('should work for cross-frame evaluations', async ({ page, server }) => {+it('EH-059 should work for cross-frame evaluations', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.EMPTY_PAGE);const frame = page.mainFrame();@@ -58,7 +58,7 @@ it('should work for cross-frame evaluations', async ({ page, server }) => {expect(await elementHandle.ownerFrame()).toBe(frame.childFrames()[0]);});-it('should work for detached elements', async ({ page, server }) => {+it('EH-060 should work for detached elements', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const divHandle = await page.evaluateHandle(() => {const div = document.createElement('div');@@ -73,7 +73,7 @@ it('should work for detached elements', async ({ page, server }) => {expect(await divHandle.ownerFrame()).toBe(page.mainFrame());});-it('should work for adopted elements', async ({ page, server }) => {+it('EH-061 should work for adopted elements', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [popup] = await Promise.all([page.waitForEvent('popup'),diff --git a/tests/page/elementhandle-press.spec.ts b/tests/page/elementhandle-press.spec.tsindex e4cb023e41..2dacfb8f29 100644--- a/tests/page/elementhandle-press.spec.ts+++ b/tests/page/elementhandle-press.spec.ts@@ -17,19 +17,19 @@import { test as it, expect } from './pageTest';-it('should work', async ({ page }) => {+it('EH-062 should work', async ({ page }) => {await page.setContent(`<input type='text' />`);await page.press('input', 'h');expect(await page.$eval('input', input => input.value)).toBe('h');});-it('should not select existing value', async ({ page }) => {+it('EH-063 should not select existing value', async ({ page }) => {await page.setContent(`<input type='text' value='hello' />`);await page.press('input', 'w');expect(await page.$eval('input', input => input.value)).toBe('whello');});-it('should reset selection when not focused', async ({ page }) => {+it('EH-064 should reset selection when not focused', async ({ page }) => {await page.setContent(`<input type='text' value='hello' /><div tabIndex=2>text</div>`);await page.$eval('input', input => {input.selectionStart = 2;@@ -40,7 +40,7 @@ it('should reset selection when not focused', async ({ page }) => {expect(await page.$eval('input', input => input.value)).toBe('whello');});-it('should not modify selection when focused', async ({ page }) => {+it('EH-065 should not modify selection when focused', async ({ page }) => {await page.setContent(`<input type='text' value='hello' />`);await page.$eval('input', input => {input.focus();@@ -51,7 +51,7 @@ it('should not modify selection when focused', async ({ page }) => {expect(await page.$eval('input', input => input.value)).toBe('hewo');});-it('should work with number input', async ({ page, browserName }) => {+it('EH-066 should work with number input', async ({ page, browserName }) => {it.fail(browserName === 'webkit', 'Started failing after https://github.com/WebKit/WebKit/commit/c92a2aea185d63b5e9998608a9c0321a461c496c');await page.setContent(`<input type='number' value=2 />`);await page.press('input', '1');diff --git a/tests/page/elementhandle-query-selector.spec.ts b/tests/page/elementhandle-query-selector.spec.tsindex 2856c4185f..e70c0f8401 100644--- a/tests/page/elementhandle-query-selector.spec.ts+++ b/tests/page/elementhandle-query-selector.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should query existing element', async ({ page, server }) => {+it('EH-067 should query existing element', async ({ page, server }) => {await page.goto(server.PREFIX + '/playground.html');await page.setContent('<html><body><div class="second"><div class="inner">A</div></div></body></html>');const html = await page.$('html');@@ -27,14 +27,14 @@ it('should query existing element', async ({ page, server }) => {expect(content).toBe('A');});-it('should return null for non-existing element', async ({ page, server }) => {+it('EH-068 should return null for non-existing element', async ({ page, server }) => {await page.setContent('<html><body><div class="second"><div class="inner">B</div></div></body></html>');const html = await page.$('html');const second = await html.$('.third');expect(second).toBe(null);});-it('should work for adopted elements', async ({ page, server }) => {+it('EH-069 should work for adopted elements', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [popup] = await Promise.all([page.waitForEvent('popup'),@@ -60,7 +60,7 @@ it('should work for adopted elements', async ({ page, server }) => {expect(await divHandle.$eval('span', e => e.textContent)).toBe('hello');});-it('should query existing elements', async ({ page, server }) => {+it('EH-070 should query existing elements', async ({ page, server }) => {await page.setContent('<html><body><div>A</div><br/><div>B</div></body></html>');const html = await page.$('html');const elements = await html.$$('div');@@ -69,7 +69,7 @@ it('should query existing elements', async ({ page, server }) => {expect(await Promise.all(promises)).toEqual(['A', 'B']);});-it('should return empty array for non-existing elements', async ({ page, server }) => {+it('EH-071 should return empty array for non-existing elements', async ({ page, server }) => {await page.setContent('<html><body><span>A</span><br/><span>B</span></body></html>');const html = await page.$('html');const elements = await html.$$('div');@@ -77,7 +77,7 @@ it('should return empty array for non-existing elements', async ({ page, server});-it('xpath should query existing element', async ({ page, server }) => {+it('EH-072 xpath should query existing element', async ({ page, server }) => {await page.goto(server.PREFIX + '/playground.html');await page.setContent('<html><body><div class="second"><div class="inner">A</div></div></body></html>');const html = await page.$('html');@@ -87,7 +87,7 @@ it('xpath should query existing element', async ({ page, server }) => {expect(content).toBe('A');});-it('xpath should return null for non-existing element', async ({ page, server }) => {+it('EH-073 xpath should return null for non-existing element', async ({ page, server }) => {await page.setContent('<html><body><div class="second"><div class="inner">B</div></div></body></html>');const html = await page.$('html');const second = await html.$$(`xpath=/div[contains(@class, 'third')]`);diff --git a/tests/page/elementhandle-screenshot.spec.ts b/tests/page/elementhandle-screenshot.spec.tsindex 5738230cb6..9cb2ebb944 100644--- a/tests/page/elementhandle-screenshot.spec.ts+++ b/tests/page/elementhandle-screenshot.spec.ts@@ -26,7 +26,7 @@ it.describe('element screenshot', () => {it.skip(({ browserName, headless }) => browserName === 'firefox' && !headless);it.skip(({ isAndroid }) => isAndroid, 'Different dpr. Remove after using 1x scale for screenshots.');- it('should work', async ({ page, server }) => {+ it('EH-074 should work', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');await page.evaluate(() => window.scrollBy(50, 100));@@ -35,7 +35,7 @@ it.describe('element screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-element-bounding-box.png');});- it('should work with webp', async ({ page, server }) => {+ it('EH-075 should work with webp', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const elementHandle = await page.$('.box:nth-of-type(3)');@@ -47,7 +47,7 @@ it.describe('element screenshot', () => {expect(webpImage.data.equals(pngImage.data)).toBe(true);});- it('should work when main world busts JSON.stringify', async ({ page, server }) => {+ it('EH-076 should work when main world busts JSON.stringify', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');await page.evaluate(() => {@@ -59,7 +59,7 @@ it.describe('element screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-element-bounding-box.png');});- it('should take into account padding and border', async ({ page, isLinux, headless, browserName }) => {+ it('EH-077 should take into account padding and border', async ({ page, isLinux, headless, browserName }) => {await page.setViewportSize({ width: 500, height: 500 });await page.setContent(`<div style="height: 14px">oooo</div>@@ -77,7 +77,7 @@ it.describe('element screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-element-padding-border.png');});- it('should capture full element when larger than viewport in parallel', async ({ page, browserName }) => {+ it('EH-078 should capture full element when larger than viewport in parallel', async ({ page, browserName }) => {await page.setViewportSize({ width: 500, height: 500 });await page.setContent(`@@ -105,7 +105,7 @@ it.describe('element screenshot', () => {await verifyViewport(page, 500, 500);});- it('should capture full element when larger than viewport', async ({ page }) => {+ it('EH-079 should capture full element when larger than viewport', async ({ page }) => {await page.setViewportSize({ width: 500, height: 500 });await page.setContent(`@@ -132,7 +132,7 @@ it.describe('element screenshot', () => {await verifyViewport(page, 500, 500);});- it('should scroll element into view', async ({ page }) => {+ it('EH-080 should scroll element into view', async ({ page }) => {await page.setViewportSize({ width: 500, height: 500 });await page.setContent(`<div style="height: 14px">oooo</div>@@ -156,7 +156,7 @@ it.describe('element screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-element-scrolled-into-view.png');});- it('should scroll 15000px into view', async ({ page }) => {+ it('EH-081 should scroll 15000px into view', async ({ page }) => {await page.setViewportSize({ width: 500, height: 500 });await page.setContent(`<div style="height: 14px">oooo</div>@@ -180,7 +180,7 @@ it.describe('element screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-element-scrolled-into-view.png');});- it('should work with a rotated element', async ({ page }) => {+ it('EH-082 should work with a rotated element', async ({ page }) => {await page.setViewportSize({ width: 500, height: 500 });await page.setContent(`<div style="position:absolute;top: 100px;@@ -194,7 +194,7 @@ it.describe('element screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-element-rotate.png');});- it('should fail to screenshot a detached element', async ({ page, server }) => {+ it('EH-083 should fail to screenshot a detached element', async ({ page, server }) => {await page.setContent('<h1>remove this</h1>');const elementHandle = await page.$('h1');await page.evaluate(element => element.remove(), elementHandle);@@ -202,7 +202,7 @@ it.describe('element screenshot', () => {expect(screenshotError.message).toContain('Element is not attached to the DOM');});- it('should timeout waiting for visible', async ({ page, server }) => {+ it('EH-084 should timeout waiting for visible', async ({ page, server }) => {await page.setContent('<div style="width: 50px; height: 0"></div>');const div = await page.$('div');const error = await div.screenshot({ timeout: 3000 }).catch(e => e);@@ -210,7 +210,7 @@ it.describe('element screenshot', () => {expect(error.message).toContain('element is not visible');});- it('should wait for visible', async ({ page, server }) => {+ it('EH-085 should wait for visible', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');await page.evaluate(() => window.scrollBy(50, 100));@@ -228,21 +228,21 @@ it.describe('element screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-element-bounding-box.png');});- it('should work for an element with fractional dimensions', async ({ page }) => {+ it('EH-086 should work for an element with fractional dimensions', async ({ page }) => {await page.setContent('<div style="width:48.51px;height:19.8px;border:1px solid black;"></div>');const elementHandle = await page.$('div');const screenshot = await elementHandle.screenshot();expect(screenshot).toMatchSnapshot('screenshot-element-fractional.png');});- it('should work for an element with an offset', async ({ page }) => {+ it('EH-087 should work for an element with an offset', async ({ page }) => {await page.setContent('<div style="position:absolute; top: 10.3px; left: 20.4px;width:50.3px;height:20.2px;border:1px solid black;"></div>');const elementHandle = await page.$('div');const screenshot = await elementHandle.screenshot();expect(screenshot).toMatchSnapshot('screenshot-element-fractional-offset.png');});- it('should wait for element to stop moving', async ({ page, server }) => {+ it('EH-088 should wait for element to stop moving', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const elementHandle = await page.$('.box:nth-of-type(3)');@@ -252,7 +252,7 @@ it.describe('element screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-element-bounding-box.png');});- it('should take screenshot of disabled button', async ({ page }) => {+ it('EH-089 should take screenshot of disabled button', async ({ page }) => {await page.setViewportSize({ width: 500, height: 500 });await page.setContent(`<button disabled>Click me</button>`);const button = await page.$('button');@@ -260,7 +260,7 @@ it.describe('element screenshot', () => {expect(screenshot).toBeInstanceOf(Buffer);});- it('path option should create subdirectories', async ({ page, server }, testInfo) => {+ it('EH-090 path option should create subdirectories', async ({ page, server }, testInfo) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');await page.evaluate(() => window.scrollBy(50, 100));@@ -270,7 +270,7 @@ it.describe('element screenshot', () => {expect(await fs.promises.readFile(outputPath)).toMatchSnapshot('screenshot-element-bounding-box.png');});- it('should prefer type over extension', async ({ page, server }, testInfo) => {+ it('EH-091 should prefer type over extension', async ({ page, server }, testInfo) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');await page.evaluate(() => window.scrollBy(50, 100));@@ -280,7 +280,7 @@ it.describe('element screenshot', () => {expect([buffer[0], buffer[1], buffer[2]]).toEqual([0xFF, 0xD8, 0xFF]);});- it('should not issue resize event', async ({ page, server }) => {+ it('EH-092 should not issue resize event', async ({ page, server }) => {await page.goto(server.PREFIX + '/grid.html');let resizeTriggered = false;await page.exposeFunction('resize', () => {diff --git a/tests/page/elementhandle-scroll-into-view.spec.ts b/tests/page/elementhandle-scroll-into-view.spec.tsindex 6894b6465c..d5260ea1f9 100644--- a/tests/page/elementhandle-scroll-into-view.spec.ts+++ b/tests/page/elementhandle-scroll-into-view.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should work @smoke', async ({ page, server, isAndroid }) => {+it('EH-093 should work @smoke', async ({ page, server, isAndroid }) => {it.fixme(isAndroid);await page.goto(server.PREFIX + '/offscreenbuttons.html');@@ -36,7 +36,7 @@ it('should work @smoke', async ({ page, server, isAndroid }) => {}});-it('should throw for detached element', async ({ page, server }) => {+it('EH-094 should throw for detached element', async ({ page, server }) => {await page.setContent('<div>Hello</div>');const div = await page.$('div');await div.evaluate(div => div.remove());@@ -55,12 +55,12 @@ async function testWaiting(page, after) {expect(done).toBe(true);}-it('should wait for display:none to become visible', async ({ page, server }) => {+it('EH-095 should wait for display:none to become visible', async ({ page, server }) => {await page.setContent('<div style="display:none">Hello</div>');await testWaiting(page, div => div.style.display = 'block');});-it('should scroll display:contents into view', async ({ page, browserName, browserMajorVersion }) => {+it('EH-096 should scroll display:contents into view', async ({ page, browserName, browserMajorVersion }) => {it.skip(browserName === 'chromium' && browserMajorVersion < 105, 'Needs https://chromium-review.googlesource.com/c/chromium/src/+/3758670');it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15034' });@@ -85,24 +85,24 @@ it('should scroll display:contents into view', async ({ page, browserName, browsexpect(Math.abs(scrollTop - 350)).toBeLessThan(1);});-it('should work for visibility:hidden element', async ({ page }) => {+it('EH-097 should work for visibility:hidden element', async ({ page }) => {await page.setContent('<div style="visibility:hidden">Hello</div>');const div = await page.$('div');await div.scrollIntoViewIfNeeded();});-it('should work for zero-sized element', async ({ page }) => {+it('EH-098 should work for zero-sized element', async ({ page }) => {await page.setContent('<div style="height:0">Hello</div>');const div = await page.$('div');await div.scrollIntoViewIfNeeded();});-it('should wait for nested display:none to become visible', async ({ page, server }) => {+it('EH-099 should wait for nested display:none to become visible', async ({ page, server }) => {await page.setContent('<span style="display:none"><div>Hello</div></span>');await testWaiting(page, div => div.parentElement.style.display = 'block');});-it('should wait for element to stop moving', async ({ page, server }) => {+it('EH-100 should wait for element to stop moving', async ({ page, server }) => {await page.setContent(`<style>@keyframes move {@@ -118,7 +118,7 @@ it('should wait for element to stop moving', async ({ page, server }) => {await testWaiting(page, div => div.classList.remove('animated'));});-it('should timeout waiting for visible', async ({ page, server }) => {+it('EH-101 should timeout waiting for visible', async ({ page, server }) => {await page.setContent('<div style="display:none">Hello</div>');const div = await page.$('div');const error = await div.scrollIntoViewIfNeeded({ timeout: 3000 }).catch(e => e);diff --git a/tests/page/elementhandle-select-text.spec.ts b/tests/page/elementhandle-select-text.spec.tsindex 502657ba7b..79d203f9b6 100644--- a/tests/page/elementhandle-select-text.spec.ts+++ b/tests/page/elementhandle-select-text.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should select textarea', async ({ page, server, browserName }) => {+it('EH-102 should select textarea', async ({ page, server, browserName }) => {await page.goto(server.PREFIX + '/input/textarea.html');const textarea = await page.$('textarea');await textarea.evaluate(textarea => textarea.value = 'some value');@@ -25,7 +25,7 @@ it('should select textarea', async ({ page, server, browserName }) => {expect(await page.evaluate(() => window.getSelection().toString())).toBe('some value');});-it('should select input', async ({ page, server, browserName }) => {+it('EH-103 should select input', async ({ page, server, browserName }) => {await page.goto(server.PREFIX + '/input/textarea.html');const input = await page.$('input');await input.evaluate(input => input.value = 'some value');@@ -33,14 +33,14 @@ it('should select input', async ({ page, server, browserName }) => {expect(await page.evaluate(() => window.getSelection().toString())).toBe('some value');});-it('should select plain div', async ({ page, server }) => {+it('EH-104 should select plain div', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');const div = await page.$('div.plain');await div.selectText();expect(await page.evaluate(() => window.getSelection().toString())).toBe('Plain div');});-it('should timeout waiting for invisible element', async ({ page, server }) => {+it('EH-105 should timeout waiting for invisible element', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');const textarea = await page.$('textarea');await textarea.evaluate(e => e.style.display = 'none');@@ -48,7 +48,7 @@ it('should timeout waiting for invisible element', async ({ page, server }) => {expect(error.message).toContain('element is not visible');});-it('should wait for visible', async ({ page, server }) => {+it('EH-106 should wait for visible', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');const textarea = await page.$('textarea');await textarea.evaluate(textarea => textarea.value = 'some value');diff --git a/tests/page/elementhandle-type.spec.ts b/tests/page/elementhandle-type.spec.tsindex 1514d32f21..2612d6cfc6 100644--- a/tests/page/elementhandle-type.spec.ts+++ b/tests/page/elementhandle-type.spec.ts@@ -17,19 +17,19 @@import { test as it, expect } from './pageTest';-it('should work', async ({ page }) => {+it('EH-107 should work', async ({ page }) => {await page.setContent(`<input type='text' />`);await page.type('input', 'hello');expect(await page.$eval('input', input => input.value)).toBe('hello');});-it('should not select existing value', async ({ page }) => {+it('EH-108 should not select existing value', async ({ page }) => {await page.setContent(`<input type='text' value='hello' />`);await page.type('input', 'world');expect(await page.$eval('input', input => input.value)).toBe('worldhello');});-it('should reset selection when not focused', async ({ page }) => {+it('EH-109 should reset selection when not focused', async ({ page }) => {await page.setContent(`<input type='text' value='hello' /><div tabIndex=2>text</div>`);await page.$eval('input', input => {input.selectionStart = 2;@@ -40,7 +40,7 @@ it('should reset selection when not focused', async ({ page }) => {expect(await page.$eval('input', input => input.value)).toBe('worldhello');});-it('should not modify selection when focused', async ({ page }) => {+it('EH-110 should not modify selection when focused', async ({ page }) => {await page.setContent(`<input type='text' value='hello' />`);await page.$eval('input', input => {input.focus();@@ -51,7 +51,7 @@ it('should not modify selection when focused', async ({ page }) => {expect(await page.$eval('input', input => input.value)).toBe('heworldo');});-it('should work with number input', async ({ page, browserName }) => {+it('EH-111 should work with number input', async ({ page, browserName }) => {it.fail(browserName === 'webkit', 'Started failing after https://github.com/WebKit/WebKit/commit/c92a2aea185d63b5e9998608a9c0321a461c496c');await page.setContent(`<input type='number' value=2 />`);await page.type('input', '13');diff --git a/tests/page/elementhandle-wait-for-element-state.spec.ts b/tests/page/elementhandle-wait-for-element-state.spec.tsindex ae818339e4..30a900fc6a 100644--- a/tests/page/elementhandle-wait-for-element-state.spec.ts+++ b/tests/page/elementhandle-wait-for-element-state.spec.ts@@ -20,7 +20,7 @@ import { test as it, expect, rafraf } from './pageTest';const giveItAChanceToResolve = (page: Page) => rafraf(page, 5);-it('should wait for visible', async ({ page }) => {+it('EH-112 should wait for visible', async ({ page }) => {await page.setContent(`<div style='display:none'>content</div>`);const div = await page.$('div');let done = false;@@ -31,20 +31,20 @@ it('should wait for visible', async ({ page }) => {await promise;});-it('should wait for already visible', async ({ page }) => {+it('EH-113 should wait for already visible', async ({ page }) => {await page.setContent(`<div>content</div>`);const div = await page.$('div');await div.waitForElementState('visible');});-it('should timeout waiting for visible', async ({ page }) => {+it('EH-114 should timeout waiting for visible', async ({ page }) => {await page.setContent(`<div style='display:none'>content</div>`);const div = await page.$('div');const error = await div.waitForElementState('visible', { timeout: 1000 }).catch(e => e);expect(error.message).toContain('Timeout 1000ms exceeded');});-it('should throw waiting for visible when detached', async ({ page }) => {+it('EH-115 should throw waiting for visible when detached', async ({ page }) => {await page.setContent(`<div style='display:none'>content</div>`);const div = await page.$('div');const promise = div.waitForElementState('visible').catch(e => e);@@ -53,7 +53,7 @@ it('should throw waiting for visible when detached', async ({ page }) => {expect(error.message).toContain('Element is not attached to the DOM');});-it('should wait for hidden', async ({ page }) => {+it('EH-116 should wait for hidden', async ({ page }) => {await page.setContent(`<div>content</div>`);const div = await page.$('div');let done = false;@@ -64,13 +64,13 @@ it('should wait for hidden', async ({ page }) => {await promise;});-it('should wait for already hidden', async ({ page }) => {+it('EH-117 should wait for already hidden', async ({ page }) => {await page.setContent(`<div></div>`);const div = await page.$('div');await div.waitForElementState('hidden');});-it('should wait for hidden when detached', async ({ page }) => {+it('EH-118 should wait for hidden when detached', async ({ page }) => {await page.setContent(`<div>content</div>`);const div = await page.$('div');let done = false;@@ -81,7 +81,7 @@ it('should wait for hidden when detached', async ({ page }) => {await promise;});-it('should throw waiting for enabled when detached', async ({ page }) => {+it('EH-119 should throw waiting for enabled when detached', async ({ page }) => {await page.setContent(`<button disabled>Target</button>`);const button = await page.$('button');const promise = button.waitForElementState('enabled').catch(e => e);@@ -90,7 +90,7 @@ it('should throw waiting for enabled when detached', async ({ page }) => {expect(error.message).toContain('Element is not attached to the DOM');});-it('should wait for aria enabled button', async ({ page }) => {+it('EH-120 should wait for aria enabled button', async ({ page }) => {await page.setContent('<button aria-disabled=true><span>Target</span></button>');const span = await page.$('text=Target');let done = false;@@ -101,7 +101,7 @@ it('should wait for aria enabled button', async ({ page }) => {await promise;});-it('should wait for button with an aria-disabled parent', async ({ page }) => {+it('EH-121 should wait for button with an aria-disabled parent', async ({ page }) => {await page.setContent('<div role="group" aria-disabled=true><button><span>Target</span></button></div>');const span = await page.$('text=Target');let done = false;@@ -112,7 +112,7 @@ it('should wait for button with an aria-disabled parent', async ({ page }) => {await promise;});-it('should wait for stable position', async ({ page, server, browserName, platform }) => {+it('EH-122 should wait for stable position', async ({ page, server, browserName, platform }) => {await page.goto(server.PREFIX + '/input/button.html');const button = await page.$('button');await page.$eval('button', button => {@@ -129,7 +129,7 @@ it('should wait for stable position', async ({ page, server, browserName, platfoawait promise;});-it('should wait for editable input', async ({ page, server }) => {+it('EH-123 should wait for editable input', async ({ page, server }) => {await page.setContent('<input readonly>');const input = await page.$('input');let done = false;diff --git a/tests/page/eval-on-selector-all.spec.ts b/tests/page/eval-on-selector-all.spec.tsindex 92fae9501b..8078208ff6 100644--- a/tests/page/eval-on-selector-all.spec.ts+++ b/tests/page/eval-on-selector-all.spec.ts@@ -17,37 +17,37 @@import { test as it, expect } from './pageTest';-it('should work with css selector', async ({ page, server }) => {+it('ES-027 should work with css selector', async ({ page, server }) => {await page.setContent('<div>hello</div><div>beautiful</div><div>world!</div>');const divsCount = await page.$$eval('css=div', divs => divs.length);expect(divsCount).toBe(3);});-it('should work with text selector', async ({ page, server }) => {+it('ES-028 should work with text selector', async ({ page, server }) => {await page.setContent('<div>hello</div><div>beautiful</div><div>beautiful</div><div>world!</div>');const divsCount = await page.$$eval('text="beautiful"', divs => divs.length);expect(divsCount).toBe(2);});-it('should work with xpath selector', async ({ page, server }) => {+it('ES-029 should work with xpath selector', async ({ page, server }) => {await page.setContent('<div>hello</div><div>beautiful</div><div>world!</div>');const divsCount = await page.$$eval('xpath=/html/body/div', divs => divs.length);expect(divsCount).toBe(3);});-it('should auto-detect css selector', async ({ page, server }) => {+it('ES-030 should auto-detect css selector', async ({ page, server }) => {await page.setContent('<div>hello</div><div>beautiful</div><div>world!</div>');const divsCount = await page.$$eval('div', divs => divs.length);expect(divsCount).toBe(3);});-it('should support >> syntax', async ({ page, server }) => {+it('ES-031 should support >> syntax', async ({ page, server }) => {await page.setContent('<div><span>hello</span></div><div>beautiful</div><div><span>wo</span><span>rld!</span></div><span>Not this one</span>');const spansCount = await page.$$eval('css=div >> css=span', spans => spans.length);expect(spansCount).toBe(3);});-it('should support * capture', async ({ page, server }) => {+it('ES-032 should support * capture', async ({ page, server }) => {await page.setContent('<section><div><span>a</span></div></section><section><div><span>b</span></div></section>');expect(await page.$$eval('*css=div >> "b"', els => els.length)).toBe(1);expect(await page.$$eval('section >> *css=div >> "b"', els => els.length)).toBe(1);@@ -62,20 +62,20 @@ it('should support * capture', async ({ page, server }) => {expect(await page.$$eval('section >> *css=div >> "a"', els => els.length)).toBe(1);});-it('should support * capture when multiple paths match', async ({ page, server }) => {+it('ES-033 should support * capture when multiple paths match', async ({ page, server }) => {await page.setContent('<div><div><span></span></div></div><div></div>');expect(await page.$$eval('*css=div >> span', els => els.length)).toBe(2);await page.setContent('<div><div><span></span></div><span></span><span></span></div><div></div>');expect(await page.$$eval('*css=div >> span', els => els.length)).toBe(2);});-it('should return complex values', async ({ page, server }) => {+it('ES-034 should return complex values', async ({ page, server }) => {await page.setContent('<div>hello</div><div>beautiful</div><div>world!</div>');const texts = await page.$$eval('css=div', divs => divs.map(div => div.textContent));expect(texts).toEqual(['hello', 'beautiful', 'world!']);});-it('should work with bogus Array.from', async ({ page, server }) => {+it('ES-035 should work with bogus Array.from', async ({ page, server }) => {await page.setContent('<div>hello</div><div>beautiful</div><div>world!</div>');await page.evaluate(() => {Array.from = () => [];diff --git a/tests/page/eval-on-selector.spec.ts b/tests/page/eval-on-selector.spec.tsindex 8bc63a4273..f21fcd5a66 100644--- a/tests/page/eval-on-selector.spec.ts+++ b/tests/page/eval-on-selector.spec.ts@@ -17,116 +17,116 @@import { test as it, expect } from './pageTest';-it('should work with css selector', async ({ page, server }) => {+it('ES-001 should work with css selector', async ({ page, server }) => {await page.setContent('<section id="testAttribute">43543</section>');const idAttribute = await page.$eval('css=section', e => e.id);expect(idAttribute).toBe('testAttribute');});-it('should work with id selector', async ({ page, server }) => {+it('ES-002 should work with id selector', async ({ page, server }) => {await page.setContent('<section id="testAttribute">43543</section>');const idAttribute = await page.$eval('id=testAttribute', e => e.id);expect(idAttribute).toBe('testAttribute');});-it('should work with data-test selector', async ({ page, server }) => {+it('ES-003 should work with data-test selector', async ({ page, server }) => {await page.setContent('<section data-test=foo id="testAttribute">43543</section>');const idAttribute = await page.$eval('data-test=foo', e => e.id);expect(idAttribute).toBe('testAttribute');});-it('should work with data-testid selector', async ({ page, server }) => {+it('ES-004 should work with data-testid selector', async ({ page, server }) => {await page.setContent('<section data-testid=foo id="testAttribute">43543</section>');const idAttribute = await page.$eval('data-testid=foo', e => e.id);expect(idAttribute).toBe('testAttribute');});-it('should work with data-test-id selector', async ({ page, server }) => {+it('ES-005 should work with data-test-id selector', async ({ page, server }) => {await page.setContent('<section data-test-id=foo id="testAttribute">43543</section>');const idAttribute = await page.$eval('data-test-id=foo', e => e.id);expect(idAttribute).toBe('testAttribute');});-it('should work with text selector in quotes', async ({ page, server }) => {+it('ES-006 should work with text selector in quotes', async ({ page, server }) => {await page.setContent('<section id="testAttribute">43543</section>');const idAttribute = await page.$eval('text="43543"', e => e.id);expect(idAttribute).toBe('testAttribute');});-it('should work with xpath selector', async ({ page, server }) => {+it('ES-007 should work with xpath selector', async ({ page, server }) => {await page.setContent('<section id="testAttribute">43543</section>');const idAttribute = await page.$eval('xpath=/html/body/section', e => e.id);expect(idAttribute).toBe('testAttribute');});-it('should work with text selector', async ({ page, server }) => {+it('ES-008 should work with text selector', async ({ page, server }) => {await page.setContent('<section id="testAttribute">43543</section>');const idAttribute = await page.$eval('text=43543', e => e.id);expect(idAttribute).toBe('testAttribute');});-it('should auto-detect css selector', async ({ page, server }) => {+it('ES-009 should auto-detect css selector', async ({ page, server }) => {await page.setContent('<section id="testAttribute">43543</section>');const idAttribute = await page.$eval('section', e => e.id);expect(idAttribute).toBe('testAttribute');});-it('should auto-detect css selector with attributes', async ({ page, server }) => {+it('ES-010 should auto-detect css selector with attributes', async ({ page, server }) => {await page.setContent('<section id="testAttribute">43543</section>');const idAttribute = await page.$eval('section[id="testAttribute"]', e => e.id);expect(idAttribute).toBe('testAttribute');});-it('should auto-detect nested selectors', async ({ page, server }) => {+it('ES-011 should auto-detect nested selectors', async ({ page, server }) => {await page.setContent('<div foo=bar><section>43543<span>Hello<div id=target></div></span></section></div>');const idAttribute = await page.$eval('div[foo=bar] > section >> "Hello" >> div', e => e.id);expect(idAttribute).toBe('target');});-it('should accept arguments', async ({ page, server }) => {+it('ES-012 should accept arguments', async ({ page, server }) => {await page.setContent('<section>hello</section>');const text = await page.$eval('section', (e, suffix) => e.textContent + suffix, ' world!');expect(text).toBe('hello world!');});-it('should accept ElementHandles as arguments', async ({ page, server }) => {+it('ES-013 should accept ElementHandles as arguments', async ({ page, server }) => {await page.setContent('<section>hello</section><div> world</div>');const divHandle = await page.$('div');const text = await page.$eval('section', (e, div) => e.textContent + div.textContent, divHandle);expect(text).toBe('hello world');});-it('should throw error if no element is found', async ({ page, server }) => {+it('ES-014 should throw error if no element is found', async ({ page, server }) => {let error = null;await page.$eval('section', e => e.id).catch(e => error = e);expect(error.message).toContain('Failed to find element matching selector "section"');});-it('should support >> syntax', async ({ page, server }) => {+it('ES-015 should support >> syntax', async ({ page, server }) => {await page.setContent('<section><div>hello</div></section>');const text = await page.$eval('css=section >> css=div', (e, suffix) => e.textContent + suffix, ' world!');expect(text).toBe('hello world!');});-it('should support >> syntax with different engines', async ({ page, server }) => {+it('ES-016 should support >> syntax with different engines', async ({ page, server }) => {await page.setContent('<section><div><span>hello</span></div></section>');const text = await page.$eval('xpath=/html/body/section >> css=div >> text="hello"', (e, suffix) => e.textContent + suffix, ' world!');expect(text).toBe('hello world!');});-it('should support spaces with >> syntax', async ({ page, server }) => {+it('ES-017 should support spaces with >> syntax', async ({ page, server }) => {await page.goto(server.PREFIX + '/deep-shadow.html');const text = await page.$eval(' css = div >>css=div>>css = span ', e => e.textContent);expect(text).toBe('Hello from root2');});-it('should not stop at first failure with >> syntax', async ({ page, server }) => {+it('ES-018 should not stop at first failure with >> syntax', async ({ page, server }) => {await page.setContent('<div><span>Next</span><button>Previous</button><button>Next</button></div>');const html = await page.$eval('button >> "Next"', e => e.outerHTML);expect(html).toBe('<button>Next</button>');});-it('should support * capture', async ({ page, server }) => {+it('ES-019 should support * capture', async ({ page, server }) => {await page.setContent('<section><div><span>a</span></div></section><section><div><span>b</span></div></section>');expect(await page.$eval('*css=div >> "b"', e => e.outerHTML)).toBe('<div><span>b</span></div>');expect(await page.$eval('section >> *css=div >> "b"', e => e.outerHTML)).toBe('<div><span>b</span></div>');@@ -134,17 +134,17 @@ it('should support * capture', async ({ page, server }) => {expect(await page.$('*')).toBeTruthy();});-it('should throw on multiple * captures', async ({ page, server }) => {+it('ES-020 should throw on multiple * captures', async ({ page, server }) => {const error = await page.$eval('*css=div >> *css=span', e => e.outerHTML).catch(e => e);expect(error.message).toContain('Only one of the selectors can capture using * modifier');});-it('should throw on malformed * capture', async ({ page, server }) => {+it('ES-021 should throw on malformed * capture', async ({ page, server }) => {const error = await page.$eval('*=div', e => e.outerHTML).catch(e => e);expect(error.message).toContain('Unknown engine "" while parsing selector *=div');});-it('should work with spaces in css attributes', async ({ page, server }) => {+it('ES-022 should work with spaces in css attributes', async ({ page, server }) => {await page.setContent('<div><input placeholder="Select date"></div>');expect(await page.waitForSelector(`[placeholder="Select date"]`)).toBeTruthy();expect(await page.waitForSelector(`[placeholder='Select date']`)).toBeTruthy();@@ -166,7 +166,7 @@ it('should work with spaces in css attributes', async ({ page, server }) => {expect(await page.$eval(`div >> [placeholder='Select date']`, e => e.outerHTML)).toBe('<input placeholder="Select date">');});-it('should work with quotes in css attributes', async ({ page, server }) => {+it('ES-023 should work with quotes in css attributes', async ({ page, server }) => {await page.setContent('<div><input placeholder="Select"date"></div>');expect(await page.$(`[placeholder="Select\\"date"]`)).toBeTruthy();expect(await page.$(`[placeholder='Select"date']`)).toBeTruthy();@@ -181,21 +181,21 @@ it('should work with quotes in css attributes', async ({ page, server }) => {expect(await page.$(`[placeholder='Select \\' date']`)).toBeTruthy();});-it('should work with spaces in css attributes when missing', async ({ page, server }) => {+it('ES-024 should work with spaces in css attributes when missing', async ({ page, server }) => {const inputPromise = page.waitForSelector(`[placeholder="Select date"]`);expect(await page.$(`[placeholder="Select date"]`)).toBe(null);await page.setContent('<div><input placeholder="Select date"></div>');await inputPromise;});-it('should work with quotes in css attributes when missing', async ({ page, server }) => {+it('ES-025 should work with quotes in css attributes when missing', async ({ page, server }) => {const inputPromise = page.waitForSelector(`[placeholder="Select\\"date"]`);expect(await page.$(`[placeholder="Select\\"date"]`)).toBe(null);await page.setContent('<div><input placeholder="Select"date"></div>');await inputPromise;});-it('should return complex values', async ({ page, server }) => {+it('ES-026 should return complex values', async ({ page, server }) => {await page.setContent('<section id="testAttribute">43543</section>');const idAttribute = await page.$eval('css=section', e => [{ id: e.id }]);expect(idAttribute).toEqual([{ id: 'testAttribute' }]);diff --git a/tests/page/expect-boolean.spec.ts b/tests/page/expect-boolean.spec.tsindex 043c55f695..bebd6b55f6 100644--- a/tests/page/expect-boolean.spec.ts+++ b/tests/page/expect-boolean.spec.ts@@ -18,32 +18,32 @@ import { stripAnsi } from '../config/utils';import { test, expect } from './pageTest';test.describe('toBeChecked', () => {- test('default', async ({ page }) => {+ test('EX-001 default', async ({ page }) => {await page.setContent('<input type=checkbox checked></input>');const locator = page.locator('input');await expect(locator).toBeChecked();});- test('with checked:true', async ({ page }) => {+ test('EX-002 with checked:true', async ({ page }) => {await page.setContent('<input type=checkbox checked></input>');const locator = page.locator('input');await expect(locator).toBeChecked({ checked: true });});- test('with checked:false', async ({ page }) => {+ test('EX-003 with checked:false', async ({ page }) => {await page.setContent('<input type=checkbox checked></input>');const locator = page.locator('input');await expect(locator).not.toBeChecked({ checked: false });});- test('with indeterminate:true', async ({ page }) => {+ test('EX-004 with indeterminate:true', async ({ page }) => {await page.setContent('<input type=checkbox></input>');await page.locator('input').evaluate((e: HTMLInputElement) => e.indeterminate = true);const locator = page.locator('input');await expect(locator).toBeChecked({ indeterminate: true });});- test('with indeterminate:true and checked', async ({ page }) => {+ test('EX-005 with indeterminate:true and checked', async ({ page }) => {await page.setContent('<input type=checkbox></input>');await page.locator('input').evaluate((e: HTMLInputElement) => e.indeterminate = true);const locator = page.locator('input');@@ -51,7 +51,7 @@ test.describe('toBeChecked', () => {expect(error.message).toContain(`Can\'t assert indeterminate and checked at the same time`);});- test('fail', async ({ page }) => {+ test('EX-006 fail', async ({ page }) => {await page.setContent('<input type=checkbox></input>');const locator = page.locator('input');const error = await expect(locator).toBeChecked({ timeout: 1000 }).catch(e => e);@@ -64,19 +64,19 @@ Timeout: 1000ms`);expect(stripAnsi(error.message)).toContain(`- Expect "toBeChecked" locator('input') with timeout 1000ms`);});- test('with not', async ({ page }) => {+ test('EX-007 with not', async ({ page }) => {await page.setContent('<input type=checkbox></input>');const locator = page.locator('input');await expect(locator).not.toBeChecked();});- test('with not and checked:false', async ({ page }) => {+ test('EX-008 with not and checked:false', async ({ page }) => {await page.setContent('<input type=checkbox></input>');const locator = page.locator('input');await expect(locator).toBeChecked({ checked: false });});- test('fail with not', async ({ page }) => {+ test('EX-009 fail with not', async ({ page }) => {await page.setContent('<input type=checkbox checked></input>');const locator = page.locator('input');const error = await expect(locator).not.toBeChecked({ timeout: 1000 }).catch(e => e);@@ -90,7 +90,7 @@ Timeout: 1000ms`);expect(stripAnsi(error.message)).toContain(`locator resolved to <input checked type="checkbox"/>`);});- test('fail with checked:false', async ({ page }) => {+ test('EX-010 fail with checked:false', async ({ page }) => {await page.setContent('<input type=checkbox checked></input>');const locator = page.locator('input');const error = await expect(locator).toBeChecked({ checked: false, timeout: 1000 }).catch(e => e);@@ -104,7 +104,7 @@ Timeout: 1000ms`);expect(stripAnsi(error.message)).toContain(`locator resolved to <input checked type="checkbox"/>`);});- test('fail with indeterminate: true', async ({ page }) => {+ test('EX-011 fail with indeterminate: true', async ({ page }) => {await page.setContent('<input type=checkbox></input>');const locator = page.locator('input');const error = await expect(locator).toBeChecked({ indeterminate: true, timeout: 1000 }).catch(e => e);@@ -117,7 +117,7 @@ Timeout: 1000ms`);expect(stripAnsi(error.message)).toContain(`- Expect "toBeChecked" locator('input') with timeout 1000ms`);});- test('fail missing', async ({ page }) => {+ test('EX-012 fail missing', async ({ page }) => {await page.setContent('<div>no inputs here</div>');const locator2 = page.locator('input2');const error = await expect(locator2).not.toBeChecked({ timeout: 1000 }).catch(e => e);@@ -134,7 +134,7 @@ Call log:`);});- test('with role', async ({ page }) => {+ test('EX-013 with role', async ({ page }) => {for (const role of ['checkbox', 'menuitemcheckbox', 'option', 'radio', 'switch', 'menuitemradio', 'treeitem']) {await test.step(`role=${role}`, async () => {await page.setContent(`<div role=${role} aria-checked=true>I am checked</div>`);@@ -144,7 +144,7 @@ Call log:}});- test('friendly log', async ({ page }) => {+ test('EX-014 friendly log', async ({ page }) => {await page.setContent('<input type=checkbox></input>');const message1 = await expect(page.locator('input')).toBeChecked({ timeout: 1000 }).catch(e => e.message);expect(message1).toContain('unexpected value "unchecked"');@@ -154,49 +154,49 @@ Call log:expect(message2).toContain('unexpected value "checked"');});- test('with impossible timeout', async ({ page }) => {+ test('EX-015 with impossible timeout', async ({ page }) => {await page.setContent('<input type=checkbox checked></input>');await expect(page.locator('input')).toBeChecked({ timeout: 1 });});- test('with impossible timeout .not', async ({ page }) => {+ test('EX-016 with impossible timeout .not', async ({ page }) => {await page.setContent('<input type=checkbox></input>');await expect(page.locator('input')).not.toBeChecked({ timeout: 1 });});});test.describe('toBeEditable', () => {- test('default', async ({ page }) => {+ test('EX-017 default', async ({ page }) => {await page.setContent('<input></input>');const locator = page.locator('input');await expect(locator).toBeEditable();});- test('with not', async ({ page }) => {+ test('EX-018 with not', async ({ page }) => {await page.setContent('<input readonly></input>');const locator = page.locator('input');await expect(locator).not.toBeEditable();});- test('with editable:true', async ({ page }) => {+ test('EX-019 with editable:true', async ({ page }) => {await page.setContent('<input></input>');const locator = page.locator('input');await expect(locator).toBeEditable({ editable: true });});- test('with editable:false', async ({ page }) => {+ test('EX-020 with editable:false', async ({ page }) => {await page.setContent('<input readonly></input>');const locator = page.locator('input');await expect(locator).toBeEditable({ editable: false });});- test('with not and editable:false', async ({ page }) => {+ test('EX-021 with not and editable:false', async ({ page }) => {await page.setContent('<input></input>');const locator = page.locator('input');await expect(locator).not.toBeEditable({ editable: false });});- test('throws', async ({ page }) => {+ test('EX-022 throws', async ({ page }) => {await page.setContent('<button>');const locator = page.locator('button');const error = await expect(locator).toBeEditable().catch(e => e);@@ -205,32 +205,32 @@ test.describe('toBeEditable', () => {});test.describe('toBeEnabled', () => {- test('default', async ({ page }) => {+ test('EX-023 default', async ({ page }) => {await page.setContent('<button>Text</button>');const locator = page.locator('button');await expect(locator).toBeEnabled();});- test('with enabled:true', async ({ page }) => {+ test('EX-024 with enabled:true', async ({ page }) => {await page.setContent('<button>Text</button>');const locator = page.locator('button');await expect(locator).toBeEnabled({ enabled: true });});- test('with enabled:false', async ({ page }) => {+ test('EX-025 with enabled:false', async ({ page }) => {await page.setContent('<button disabled>Text</button>');const locator = page.locator('button');await expect(locator).toBeEnabled({ enabled: false });});- test('failed', async ({ page }) => {+ test('EX-026 failed', async ({ page }) => {await page.setContent('<button disabled>Text</button>');const locator = page.locator('button');const error = await expect(locator).toBeEnabled({ timeout: 1000 }).catch(e => e);expect(error.message).toContain(`locator resolved to <button disabled>Text</button>`);});- test('eventually', async ({ page }) => {+ test('EX-027 eventually', async ({ page }) => {await page.setContent('<button disabled>Text</button>');const locator = page.locator('button');setTimeout(() => {@@ -239,7 +239,7 @@ test.describe('toBeEnabled', () => {await expect(locator).toBeEnabled();});- test('eventually with not', async ({ page }) => {+ test('EX-028 eventually with not', async ({ page }) => {await page.setContent('<button>Text</button>');const locator = page.locator('button');setTimeout(() => {@@ -248,93 +248,93 @@ test.describe('toBeEnabled', () => {await expect(locator).not.toBeEnabled();});- test('with not and enabled:false', async ({ page }) => {+ test('EX-029 with not and enabled:false', async ({ page }) => {await page.setContent('<button>Text</button>');const locator = page.locator('button');await expect(locator).not.toBeEnabled({ enabled: false });});- test('toBeDisabled', async ({ page }) => {+ test('EX-030 toBeDisabled', async ({ page }) => {await page.setContent('<button disabled>Text</button>');const locator = page.locator('button');await expect(locator).toBeDisabled();});});-test('toBeEmpty input', async ({ page }) => {+test('EX-031 toBeEmpty input', async ({ page }) => {await page.setContent('<input></input>');const locator = page.locator('input');await expect(locator).toBeEmpty();});-test('not.toBeEmpty', async ({ page }) => {+test('EX-032 not.toBeEmpty', async ({ page }) => {await page.setContent('<input value=text></input>');const locator = page.locator('input');await expect(locator).not.toBeEmpty();});-test('toBeEmpty div', async ({ page }) => {+test('EX-033 toBeEmpty div', async ({ page }) => {await page.setContent('<div style="width: 50; height: 50px"></div>');const locator = page.locator('div');await expect(locator).toBeEmpty();});-test('toBeDisabled with value', async ({ page }) => {+test('EX-034 toBeDisabled with value', async ({ page }) => {await page.setContent('<button disabled="yes">Text</button>');const locator = page.locator('button');await expect(locator).toBeDisabled();});-test('toBeChecked with value', async ({ page }) => {+test('EX-035 toBeChecked with value', async ({ page }) => {await page.setContent('<input type=checkbox checked="yes"></input>');const locator = page.locator('input');await expect(locator).toBeChecked();});-test('toBeHidden with value', async ({ page }) => {+test('EX-036 toBeHidden with value', async ({ page }) => {await page.setContent('<input type=checkbox hidden="of course"></input>');const locator = page.locator('input');await expect(locator).toBeHidden();});-test('not.toBeDisabled div', async ({ page }) => {+test('EX-037 not.toBeDisabled div', async ({ page }) => {await page.setContent('<div disabled="yes"></div>');const locator = page.locator('div');await expect(locator).not.toBeDisabled();});test.describe('toBeVisible', () => {- test('default', async ({ page }) => {+ test('EX-038 default', async ({ page }) => {await page.setContent('<input></input>');const locator = page.locator('input');await expect(locator).toBeVisible();});- test('with not', async ({ page }) => {+ test('EX-039 with not', async ({ page }) => {await page.setContent('<button style="display: none">hello</button>');const locator = page.locator('button');await expect(locator).not.toBeVisible();});- test('with visible:true', async ({ page }) => {+ test('EX-040 with visible:true', async ({ page }) => {await page.setContent('<button>hello</button>');const locator = page.locator('button');await expect(locator).toBeVisible({ visible: true });});- test('with visible:false', async ({ page }) => {+ test('EX-041 with visible:false', async ({ page }) => {await page.setContent('<button hidden>hello</button>');const locator = page.locator('button');await expect(locator).toBeVisible({ visible: false });});- test('with not and visible:false', async ({ page }) => {+ test('EX-042 with not and visible:false', async ({ page }) => {await page.setContent('<button>hello</button>');const locator = page.locator('button');await expect(locator).not.toBeVisible({ visible: false });});- test('eventually', async ({ page }) => {+ test('EX-043 eventually', async ({ page }) => {await page.setContent('<div></div>');const locator = page.locator('span');setTimeout(() => {@@ -343,7 +343,7 @@ test.describe('toBeVisible', () => {await expect(locator).toBeVisible();});- test('eventually with not', async ({ page }) => {+ test('EX-044 eventually with not', async ({ page }) => {await page.setContent('<div><span>Hello</span></div>');const locator = page.locator('span');setTimeout(() => {@@ -352,31 +352,31 @@ test.describe('toBeVisible', () => {await expect(locator).not.toBeVisible();});- test('fail', async ({ page }) => {+ test('EX-045 fail', async ({ page }) => {await page.setContent('<button style="display: none"></button>');const locator = page.locator('button');const error = await expect(locator).toBeVisible({ timeout: 1000 }).catch(e => e);expect(error.message).toContain(`locator resolved to <button></button>`);});- test('fail with not', async ({ page }) => {+ test('EX-046 fail with not', async ({ page }) => {await page.setContent('<input></input>');const locator = page.locator('input');const error = await expect(locator).not.toBeVisible({ timeout: 1000 }).catch(e => e);expect(error.message).toContain(`locator resolved to <input/>`);});- test('with impossible timeout', async ({ page }) => {+ test('EX-047 with impossible timeout', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');await expect(page.locator('#node')).toBeVisible({ timeout: 1 });});- test('with impossible timeout .not', async ({ page }) => {+ test('EX-048 with impossible timeout .not', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');await expect(page.locator('no-such-thing')).not.toBeVisible({ timeout: 1 });});- test('with frameLocator', async ({ page }) => {+ test('EX-049 with frameLocator', async ({ page }) => {await page.setContent('<div></div>');const locator = page.frameLocator('iframe').locator('input');let done = false;@@ -388,7 +388,7 @@ test.describe('toBeVisible', () => {expect(done).toBe(true);});- test('with frameLocator 2', async ({ page }) => {+ test('EX-050 with frameLocator 2', async ({ page }) => {await page.setContent('<iframe></iframe>');const locator = page.frameLocator('iframe').locator('input');let done = false;@@ -400,7 +400,7 @@ test.describe('toBeVisible', () => {expect(done).toBe(true);});- test('over navigation', async ({ page, server }) => {+ test('EX-051 over navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let done = false;const promise = expect(page.locator('input')).toBeVisible().then(() => done = true);@@ -413,25 +413,25 @@ test.describe('toBeVisible', () => {});test.describe('toBeHidden', () => {- test('default', async ({ page }) => {+ test('EX-052 default', async ({ page }) => {await page.setContent('<button style="display: none"></button>');const locator = page.locator('button');await expect(locator).toBeHidden();});- test('when nothing matches', async ({ page }) => {+ test('EX-053 when nothing matches', async ({ page }) => {await page.setContent('<div></div>');const locator = page.locator('button');await expect(locator).toBeHidden();});- test('with not', async ({ page }) => {+ test('EX-054 with not', async ({ page }) => {await page.setContent('<input></input>');const locator = page.locator('input');await expect(locator).not.toBeHidden();});- test('eventually with not', async ({ page }) => {+ test('EX-055 eventually with not', async ({ page }) => {await page.setContent('<div></div>');const locator = page.locator('span');setTimeout(() => {@@ -440,7 +440,7 @@ test.describe('toBeHidden', () => {await expect(locator).not.toBeHidden();});- test('eventually', async ({ page }) => {+ test('EX-056 eventually', async ({ page }) => {await page.setContent('<div><span>Hello</span></div>');const locator = page.locator('span');setTimeout(() => {@@ -449,21 +449,21 @@ test.describe('toBeHidden', () => {await expect(locator).toBeHidden();});- test('fail', async ({ page }) => {+ test('EX-057 fail', async ({ page }) => {await page.setContent('<input></input>');const locator = page.locator('input');const error = await expect(locator).toBeHidden({ timeout: 3000 }).catch(e => e);expect(error.message).toContain(`locator resolved to <input/>`);});- test('fail with not', async ({ page }) => {+ test('EX-058 fail with not', async ({ page }) => {await page.setContent('<button style="display: none"></button>');const locator = page.locator('button');const error = await expect(locator).not.toBeHidden({ timeout: 3000 }).catch(e => e);expect(error.message).toContain(`locator resolved to <button></button>`);});- test('fail with not when nothing matching', async ({ page }) => {+ test('EX-059 fail with not when nothing matching', async ({ page }) => {await page.setContent('<div></div>');const locator = page.locator('button');const error = await expect(locator).not.toBeHidden({ timeout: 1000 }).catch(e => e);@@ -479,25 +479,25 @@ Call log:`);});- test('with impossible timeout .not', async ({ page }) => {+ test('EX-060 with impossible timeout .not', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');await expect(page.locator('#node')).not.toBeHidden({ timeout: 1 });});- test('with impossible timeout', async ({ page }) => {+ test('EX-061 with impossible timeout', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');await expect(page.locator('no-such-thing')).toBeHidden({ timeout: 1 });});});-test('toBeFocused', async ({ page }) => {+test('EX-062 toBeFocused', async ({ page }) => {await page.setContent('<input></input>');const locator = page.locator('input');await locator.focus();await expect(locator).toBeFocused();});-test('toBeFocused with shadow elements', async ({ page }) => {+test('EX-063 toBeFocused with shadow elements', async ({ page }) => {await page.setContent(`<div id="app"></div>@@ -516,12 +516,12 @@ test('toBeFocused with shadow elements', async ({ page }) => {await expect(page.locator('input')).toBeFocused();});-test('should print unknown engine error', async ({ page }) => {+test('EX-064 should print unknown engine error', async ({ page }) => {const error = await expect(page.locator('row="row"')).toBeVisible().catch(e => e);expect(error.message).toContain(`Unknown engine "row" while parsing selector row="row"`);});-test('should print selector syntax error', async ({ page }) => {+test('EX-065 should print selector syntax error', async ({ page }) => {const error = await expect(page.locator('row]')).toBeVisible().catch(e => e);expect(error.message).toContain(`Unexpected token "]" while parsing css selector "row]"`);});@@ -530,23 +530,23 @@ test.describe(() => {test.skip(({ isAndroid }) => isAndroid, 'server.EMPTY_PAGE is the emulator address 10.0.2.2');test.skip(({ isElectron, electronMajorVersion }) => isElectron && electronMajorVersion < 30, 'Protocol error (Storage.getCookies): Browser context management is not supported.');- test('toBeOK', async ({ page, server }) => {+ test('EX-066 toBeOK', async ({ page, server }) => {const res = await page.request.get(server.EMPTY_PAGE);await expect(res).toBeOK();});- test('not.toBeOK', async ({ page, server }) => {+ test('EX-067 not.toBeOK', async ({ page, server }) => {const res = await page.request.get(`${server.PREFIX}/unknown`);await expect(res).not.toBeOK();});- test('toBeOK fail with invalid argument', async ({ page }) => {+ test('EX-068 toBeOK fail with invalid argument', async ({ page }) => {const error = await (expect(page) as any).toBeOK().catch(e => e);expect(error.message).toContain('toBeOK can be only used with APIResponse object');});- test('toBeOK fail with promise', async ({ page, server }) => {+ test('EX-069 toBeOK fail with promise', async ({ page, server }) => {const res = page.request.get(server.EMPTY_PAGE);const error = await (expect(res) as any).toBeOK().catch(e => e);expect(error.message).toContain('toBeOK can be only used with APIResponse object');@@ -571,7 +571,7 @@ test.describe(() => {});});- test('text content type', async ({ page, server }) => {+ test('EX-070 text content type', async ({ page, server }) => {const res = await page.request.get(`${server.PREFIX}/text-content-type`);const error = await expect(res).toBeOK().catch(e => e);expect(stripAnsi(error.message)).toContain(`expect(response).toBeOK() failed`);@@ -580,7 +580,7 @@ test.describe(() => {expect(stripAnsi(error.message)).toContain(`Response text:\nText error`);});- test('no content type', async ({ page, server }) => {+ test('EX-071 no content type', async ({ page, server }) => {const res = await page.request.get(`${server.PREFIX}/no-content-type`);const error = await expect(res).toBeOK().catch(e => e);expect(error.message).toContain(`→ GET ${server.PREFIX}/no-content-type`);@@ -588,7 +588,7 @@ test.describe(() => {expect(error.message).not.toContain(`No content type error`);});- test('image content type', async ({ page, server }) => {+ test('EX-072 image content type', async ({ page, server }) => {const res = await page.request.get(`${server.PREFIX}/image-content-type`);const error = await expect(res).toBeOK().catch(e => e);expect(error.message).toContain(`→ GET ${server.PREFIX}/image-content-type`);@@ -599,43 +599,43 @@ test.describe(() => {});test.describe('toBeAttached', () => {- test('default', async ({ page }) => {+ test('EX-073 default', async ({ page }) => {await page.setContent('<input></input>');const locator = page.locator('input');await expect(locator).toBeAttached();});- test('with hidden element', async ({ page }) => {+ test('EX-074 with hidden element', async ({ page }) => {await page.setContent('<button style="display:none">hello</button>');const locator = page.locator('button');await expect(locator).toBeAttached();});- test('with not', async ({ page }) => {+ test('EX-075 with not', async ({ page }) => {await page.setContent('<button>hello</button>');const locator = page.locator('input');await expect(locator).not.toBeAttached();});- test('with attached:true', async ({ page }) => {+ test('EX-076 with attached:true', async ({ page }) => {await page.setContent('<button>hello</button>');const locator = page.locator('button');await expect(locator).toBeAttached({ attached: true });});- test('with attached:false', async ({ page }) => {+ test('EX-077 with attached:false', async ({ page }) => {await page.setContent('<button>hello</button>');const locator = page.locator('input');await expect(locator).toBeAttached({ attached: false });});- test('with not and attached:false', async ({ page }) => {+ test('EX-078 with not and attached:false', async ({ page }) => {await page.setContent('<button>hello</button>');const locator = page.locator('button');await expect(locator).not.toBeAttached({ attached: false });});- test('eventually', async ({ page }) => {+ test('EX-079 eventually', async ({ page }) => {await page.setContent('<div></div>');const locator = page.locator('span');setTimeout(() => {@@ -644,7 +644,7 @@ test.describe('toBeAttached', () => {await expect(locator).toBeAttached();});- test('eventually with not', async ({ page }) => {+ test('EX-080 eventually with not', async ({ page }) => {await page.setContent('<div><span>Hello</span></div>');const locator = page.locator('span');setTimeout(() => {@@ -653,31 +653,31 @@ test.describe('toBeAttached', () => {await expect(locator).not.toBeAttached();});- test('fail', async ({ page }) => {+ test('EX-081 fail', async ({ page }) => {await page.setContent('<button>Hello</button>');const locator = page.locator('input');const error = await expect(locator).toBeAttached({ timeout: 1000 }).catch(e => e);expect(error.message).not.toContain(`locator resolved to`);});- test('fail with not', async ({ page }) => {+ test('EX-082 fail with not', async ({ page }) => {await page.setContent('<input></input>');const locator = page.locator('input');const error = await expect(locator).not.toBeAttached({ timeout: 3000 }).catch(e => e);expect(error.message).toContain(`locator resolved to <input/>`);});- test('with impossible timeout', async ({ page }) => {+ test('EX-083 with impossible timeout', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');await expect(page.locator('#node')).toBeAttached({ timeout: 1 });});- test('with impossible timeout .not', async ({ page }) => {+ test('EX-084 with impossible timeout .not', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');await expect(page.locator('no-such-thing')).not.toBeAttached({ timeout: 1 });});- test('with frameLocator', async ({ page }) => {+ test('EX-085 with frameLocator', async ({ page }) => {await page.setContent('<div></div>');const locator = page.frameLocator('iframe').locator('input');let done = false;@@ -689,7 +689,7 @@ test.describe('toBeAttached', () => {expect(done).toBe(true);});- test('over navigation', async ({ page, server }) => {+ test('EX-086 over navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let done = false;const promise = expect(page.locator('input')).toBeAttached().then(() => done = true);diff --git a/tests/page/expect-builtins.spec.ts b/tests/page/expect-builtins.spec.tsindex a49c8ac348..2bbd78d5da 100644--- a/tests/page/expect-builtins.spec.ts+++ b/tests/page/expect-builtins.spec.ts@@ -12,7 +12,7 @@import { test, expect } from './pageTest';test.describe('.toBe()', () => {- test('does not throw', () => {+ test('EX-087 does not throw', () => {expect('a').not.toBe('b');expect('a').toBe('a');expect(1).not.toBe(2);@@ -40,24 +40,24 @@ test.describe('.toBe()', () => {[null, undefined],[-0, +0],].entries()) {- test(`fails for: ${JSON.stringify(a)} and ${JSON.stringify(b)} #${i}`, () => {+ test(`EX-088 fails for: ${JSON.stringify(a)} and ${JSON.stringify(b)} #${i}`, () => {expect(() => expect(a).toBe(b)).toThrow();});}for (const v of [false, 1, 'a', undefined, null, {}, []]) {- test(`fails for '${JSON.stringify(v)}' with '.not'`, () => {+ test(`EX-089 fails for '${JSON.stringify(v)}' with '.not'`, () => {expect(() => expect(v).not.toBe(v)).toThrow();});}- test('does not crash on circular references', () => {+ test('EX-090 does not crash on circular references', () => {const obj: any = {};obj.circular = obj;expect(() => expect(obj).toBe({})).toThrow();});- test('matcherResult property contains matcher name, expected and actual values', () => {+ test('EX-091 matcherResult property contains matcher name, expected and actual values', () => {const actual = { a: 1 };const expected = { a: 2 };try {@@ -91,29 +91,29 @@ test.describe('.toStrictEqual()', () => {}}- test('does not ignore keys with undefined values', () => {+ test('EX-092 does not ignore keys with undefined values', () => {expect({ a: undefined, b: 2 }).not.toStrictEqual({ b: 2 });});- test('does not ignore keys with undefined values inside an array', () => {+ test('EX-093 does not ignore keys with undefined values inside an array', () => {expect([{ a: undefined }]).not.toStrictEqual([{}]);});- test('passes when comparing same type', () => {+ test('EX-094 passes when comparing same type', () => {expect({ test: new TestClassA(1, 2) }).toStrictEqual({ test: new TestClassA(1, 2) });});- test('does not pass for different types', () => {+ test('EX-095 does not pass for different types', () => {expect({ test: new TestClassA(1, 2) }).not.toStrictEqual({ test: new TestClassB(1, 2) });});- test('passes for matching buffers', () => {+ test('EX-096 passes for matching buffers', () => {expect(Uint8Array.from([1]).buffer).toStrictEqual(Uint8Array.from([1]).buffer);expect(Uint8Array.from([]).buffer).toStrictEqual(Uint8Array.from([]).buffer);expect(Uint8Array.from([9, 3]).buffer).toStrictEqual(Uint8Array.from([9, 3]).buffer);});- test('does not pass when ArrayBuffers are not equal', () => {+ test('EX-097 does not pass when ArrayBuffers are not equal', () => {expect(Uint8Array.from([1, 2]).buffer).not.toStrictEqual(Uint8Array.from([0, 0]).buffer);});});@@ -138,7 +138,7 @@ test.describe('.toEqual()', () => {[undefined, expect.anything()],[undefined, expect.any(Function)],].entries()) {- test(`{pass: false} expect().toEqual() #${a}`, () => {+ test(`EX-098 {pass: false} expect().toEqual() #${a}`, () => {expect(() => expect(b[0]).toEqual(b[1])).toThrow();expect(b[0]).not.toEqual(b[1]);});@@ -164,13 +164,13 @@ test.describe('.toEqual()', () => {[true, expect.anything()],[() => {}, expect.any(Function)],].entries()) {- test(`{pass: true} expect().toEqual() #${a}`, () => {+ test(`EX-099 {pass: true} expect().toEqual() #${a}`, () => {expect(b[0]).toEqual(b[1]);expect(() => expect(b[0]).not.toEqual(b[1])).toThrow();});}- test('assertion error matcherResult property contains matcher name, expected and actual values', () => {+ test('EX-100 assertion error matcherResult property contains matcher name, expected and actual values', () => {const actual = { a: 1 };const expected = { a: 2 };try {@@ -184,7 +184,7 @@ test.describe('.toEqual()', () => {}});- test('symbol based keys in arrays are processed correctly', () => {+ test('EX-101 symbol based keys in arrays are processed correctly', () => {const mySymbol = Symbol('test');const actual1: any[] = [];actual1[mySymbol as any] = 3;@@ -197,20 +197,20 @@ test.describe('.toEqual()', () => {expect(actual2).not.toEqual(expected);});- test('non-enumerable members should be skipped during equal', () => {+ test('EX-102 non-enumerable members should be skipped during equal', () => {const actual: any = { x: 3 };Object.defineProperty(actual, 'test', { enumerable: false, value: 5 });expect(actual).toEqual({ x: 3 });});- test('objectContaining sample can be used multiple times', () => {+ test('EX-103 objectContaining sample can be used multiple times', () => {const expected = expect.objectContaining({ b: 7 });expect({ a: 1, b: 2 }).not.toEqual(expected);expect({ a: 3, b: 7 }).toEqual(expected);});test.describe('cyclic object equality', () => {- test('properties with the same circularity are equal', () => {+ test('EX-104 properties with the same circularity are equal', () => {const a: any = {};a.x = a;const b: any = {};@@ -219,7 +219,7 @@ test.describe('.toEqual()', () => {expect(b).toEqual(a);});- test('properties with different circularity are not equal', () => {+ test('EX-105 properties with different circularity are not equal', () => {const a: any = {};a.x = { y: a };const b: any = {};@@ -245,7 +245,7 @@ test.describe('.toBeInstanceOf()', () => {[new C(), B],[new E(), B],] as const).entries()) {- test(`passing instanceof #${i}`, () => {+ test(`EX-106 passing instanceof #${i}`, () => {expect(() => expect(a).not.toBeInstanceOf(b)).toThrow();expect(a).toBeInstanceOf(b);});@@ -257,20 +257,20 @@ test.describe('.toBeInstanceOf()', () => {[true, Boolean],[new A(), B],] as const).entries()) {- test(`failing instanceof #${i}`, () => {+ test(`EX-107 failing instanceof #${i}`, () => {expect(() => expect(a).toBeInstanceOf(b)).toThrow();expect(a).not.toBeInstanceOf(b);});}- test('throws if constructor is not a function', () => {+ test('EX-108 throws if constructor is not a function', () => {expect(() => expect({}).toBeInstanceOf(4 as any)).toThrow();});});test.describe('.toBeTruthy(), .toBeFalsy()', () => {for (const v of [{}, [], true, 1, 'a', 0.5, new Map(), () => {}, Infinity]) {- test(`'${String(v)}' is truthy`, () => {+ test(`EX-109 '${String(v)}' is truthy`, () => {expect(v).toBeTruthy();expect(v).not.toBeFalsy();expect(() => expect(v).not.toBeTruthy()).toThrow();@@ -279,7 +279,7 @@ test.describe('.toBeTruthy(), .toBeFalsy()', () => {}for (const v of [false, null, NaN, 0, '', undefined]) {- test(`'${String(v)}' is falsy`, () => {+ test(`EX-110 '${String(v)}' is falsy`, () => {expect(v).toBeFalsy();expect(v).not.toBeTruthy();expect(() => expect(v).toBeTruthy()).toThrow();@@ -289,14 +289,14 @@ test.describe('.toBeTruthy(), .toBeFalsy()', () => {});test.describe('.toBeNaN()', () => {- test('{pass: true}', () => {+ test('EX-111 {pass: true}', () => {for (const v of [NaN, Math.sqrt(-1), Infinity - Infinity, 0 / 0]) {expect(v).toBeNaN();expect(() => expect(v).not.toBeNaN()).toThrow();}});- test('throws', () => {+ test('EX-112 throws', () => {for (const v of [1, '', null, undefined, {}, [], 0.2, 0, Infinity, -Infinity]) {expect(() => expect(v).toBeNaN()).toThrow();expect(v).not.toBeNaN();@@ -306,24 +306,24 @@ test.describe('.toBeNaN()', () => {test.describe('.toBeNull()', () => {for (const v of [{}, [], true, 1, 'a', 0.5, new Map(), () => {}, Infinity]) {- test(`fails for '${String(v)}'`, () => {+ test(`EX-113 fails for '${String(v)}'`, () => {expect(v).not.toBeNull();expect(() => expect(v).toBeNull()).toThrow();});}- test('fails for null with .not', () => {+ test('EX-114 fails for null with .not', () => {expect(() => expect(null).not.toBeNull()).toThrow();});- test('pass for null', () => {+ test('EX-115 pass for null', () => {expect(null).toBeNull();});});test.describe('.toBeDefined(), .toBeUndefined()', () => {for (const v of [{}, [], true, 1, 'a', 0.5, new Map(), () => {}, Infinity]) {- test(`'${String(v)}' is defined`, () => {+ test(`EX-116 '${String(v)}' is defined`, () => {expect(v).toBeDefined();expect(v).not.toBeUndefined();expect(() => expect(v).not.toBeDefined()).toThrow();@@ -331,7 +331,7 @@ test.describe('.toBeDefined(), .toBeUndefined()', () => {});}- test('undefined is undefined', () => {+ test('EX-117 undefined is undefined', () => {expect(undefined).toBeUndefined();expect(undefined).not.toBeDefined();expect(() => expect(undefined).toBeDefined()).toThrow();@@ -346,7 +346,7 @@ test.describe('.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .[Number.MIN_VALUE, Number.MAX_VALUE],[0.1, 0.2],] as const) {- test(`comparing ${small} and ${big}`, () => {+ test(`EX-118 comparing ${small} and ${big}`, () => {expect(small).toBeLessThan(big);expect(big).not.toBeLessThan(small);expect(big).toBeGreaterThan(small);@@ -367,7 +367,7 @@ test.describe('.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .});}- test('can compare BigInt to Numbers', () => {+ test('EX-119 can compare BigInt to Numbers', () => {const a = BigInt(2);expect(a).toBeGreaterThan(1);expect(a).toBeGreaterThanOrEqual(2);@@ -382,7 +382,7 @@ test.describe('.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .[Infinity, Infinity],[-Infinity, -Infinity],]) {- test(`equal numbers: [${n1}, ${n2}]`, () => {+ test(`EX-120 equal numbers: [${n1}, ${n2}]`, () => {expect(n1).toBeGreaterThanOrEqual(n2);expect(n1).toBeLessThanOrEqual(n2);expect(() => expect(n1).not.toBeGreaterThanOrEqual(n2)).toThrow();@@ -396,7 +396,7 @@ test.describe('.toContain(), .toContainEqual()', () => {typedArray[0] = 0;typedArray[1] = 1;- test('iterable', () => {+ test('EX-121 iterable', () => {const iterable = {*[Symbol.iterator]() {yield 1;@@ -420,7 +420,7 @@ test.describe('.toContain(), .toContainEqual()', () => {[new Set(['abc', 'def']), 'abc'],[typedArray, 1],] as const).entries()) {- test(`contains #${i}`, () => {+ test(`EX-122 contains #${i}`, () => {expect(list).toContain(v);expect(() => expect(list).not.toContain(v)).toThrow();});@@ -432,13 +432,13 @@ test.describe('.toContain(), .toContainEqual()', () => {[[{}, []], []],[[{}, []], {}],] as const).entries()) {- test(`does not contain #${i}`, () => {+ test(`EX-123 does not contain #${i}`, () => {expect(list).not.toContain(v);expect(() => expect(list).toContain(v)).toThrow();});}- test('error cases', () => {+ test('EX-124 error cases', () => {expect(() => expect(null).toContain(1)).toThrow();});@@ -449,13 +449,13 @@ test.describe('.toContain(), .toContainEqual()', () => {[[{ a: 'b' }, { a: 'c' }], { a: 'b' }],[new Set([1, 2, 3, 4]), 1],] as const).entries()) {- test(`contains a value equal #${i}`, () => {+ test(`EX-125 contains a value equal #${i}`, () => {expect(list).toContainEqual(v);expect(() => expect(list).not.toContainEqual(v)).toThrow();});}- test('error cases for toContainEqual', () => {+ test('EX-126 error cases for toContainEqual', () => {expect(() => expect(null).toContainEqual(1)).toThrow();});});@@ -470,7 +470,7 @@ test.describe('.toBeCloseTo', () => {[Infinity, Infinity],[-Infinity, -Infinity],]) {- test(`{pass: true} expect(${n1}).toBeCloseTo(${n2})`, () => {+ test(`EX-127 {pass: true} expect(${n1}).toBeCloseTo(${n2})`, () => {expect(n1).toBeCloseTo(n2);expect(() => expect(n1).not.toBeCloseTo(n2)).toThrow();});@@ -483,7 +483,7 @@ test.describe('.toBeCloseTo', () => {[Infinity, 1.23],[-Infinity, -1.23],]) {- test(`{pass: false} expect(${n1}).toBeCloseTo(${n2})`, () => {+ test(`EX-128 {pass: false} expect(${n1}).toBeCloseTo(${n2})`, () => {expect(n1).not.toBeCloseTo(n2);expect(() => expect(n1).toBeCloseTo(n2)).toThrow();});@@ -495,7 +495,7 @@ test.describe('.toBeCloseTo', () => {[0, 0.000_004, 5],[2.000_000_2, 2, 5],]) {- test(`{pass: true} expect(${n1}).toBeCloseTo(${n2}, ${p})`, () => {+ test(`EX-129 {pass: true} expect(${n1}).toBeCloseTo(${n2}, ${p})`, () => {expect(n1).toBeCloseTo(n2, p);expect(() => expect(n1).not.toBeCloseTo(n2, p)).toThrow();});@@ -507,7 +507,7 @@ test.describe('.toMatch()', () => {['foo', 'foo'],['Foo bar', /^foo/i],] as const) {- test(`{pass: true} expect(${n1}).toMatch(${n2})`, () => {+ test(`EX-130 {pass: true} expect(${n1}).toMatch(${n2})`, () => {expect(n1).toMatch(n2);expect(() => expect(n1).not.toMatch(n2)).toThrow();});@@ -517,7 +517,7 @@ test.describe('.toMatch()', () => {['bar', 'foo'],['bar', /foo/],] as const) {- test(`throws: [${n1}, ${n2}]`, () => {+ test(`EX-131 throws: [${n1}, ${n2}]`, () => {expect(() => expect(n1).toMatch(n2)).toThrow();});}@@ -531,7 +531,7 @@ test.describe('.toMatch()', () => {[() => {}, 'foo'],[undefined, 'foo'],] as const).entries()) {- test(`throws if non String actual value passed #${i}`, () => {+ test(`EX-132 throws if non String actual value passed #${i}`, () => {expect(() => expect(n1).toMatch(n2)).toThrow();});}@@ -544,16 +544,16 @@ test.describe('.toMatch()', () => {['foo', () => {}],['foo', undefined],] as const).entries()) {- test(`throws if non String/RegExp expected value passed #${i}`, () => {+ test(`EX-133 throws if non String/RegExp expected value passed #${i}`, () => {expect(() => expect(n1).toMatch(n2 as any)).toThrow();});}- test('escapes strings properly', () => {+ test('EX-134 escapes strings properly', () => {expect('this?: throws').toMatch('this?: throws');});- test('does not maintain RegExp state between calls', () => {+ test('EX-135 does not maintain RegExp state between calls', () => {const regex = /f\d+/gi;expect('f123').toMatch(regex);expect('F456').toMatch(regex);@@ -570,7 +570,7 @@ test.describe('.toHaveLength', () => {['', 0],[() => {}, 0],] as const).entries()) {- test(`{pass: true} toHaveLength(${length}) #${i}`, () => {+ test(`EX-136 {pass: true} toHaveLength(${length}) #${i}`, () => {expect(received).toHaveLength(length);expect(() => expect(received).not.toHaveLength(length)).toThrow();});@@ -583,13 +583,13 @@ test.describe('.toHaveLength', () => {['abc', 66],['', 1],] as const).entries()) {- test(`{pass: false} toHaveLength(${length}) #${i}`, () => {+ test(`EX-137 {pass: false} toHaveLength(${length}) #${i}`, () => {expect(received).not.toHaveLength(length);expect(() => expect(received).toHaveLength(length)).toThrow();});}- test('error cases', () => {+ test('EX-138 error cases', () => {expect(() => expect({ a: 9 }).toHaveLength(1)).toThrow();expect(() => expect(0).toHaveLength(1)).toThrow();expect(() => expect(undefined).not.toHaveLength(1)).toThrow();@@ -609,7 +609,7 @@ test.describe('.toHaveProperty()', () => {[{ a: { b: [{ c: [{ d: 1 }] }] } }, 'a.b[0].c[0].d', 1],[{ '': 1 }, '', 1],] as const).entries()) {- test(`{pass: true} toHaveProperty with value #${i}`, () => {+ test(`EX-139 {pass: true} toHaveProperty with value #${i}`, () => {expect(obj).toHaveProperty(keyPath as any, value);expect(() => expect(obj).not.toHaveProperty(keyPath as any, value)).toThrow();});@@ -624,7 +624,7 @@ test.describe('.toHaveProperty()', () => {[{}, 'a', 'test'],[{ a: { b: 3 } }, 'a.b', undefined],] as const).entries()) {- test(`{pass: false} toHaveProperty with value #${i}`, () => {+ test(`EX-140 {pass: false} toHaveProperty with value #${i}`, () => {expect(() => expect(obj).toHaveProperty(keyPath, value)).toThrow();expect(obj).not.toHaveProperty(keyPath, value);});@@ -637,7 +637,7 @@ test.describe('.toHaveProperty()', () => {[{ a: 0 }, 'a'],[{ a: { b: undefined } }, 'a.b'],] as const).entries()) {- test(`{pass: true} toHaveProperty without value #${i}`, () => {+ test(`EX-141 {pass: true} toHaveProperty without value #${i}`, () => {expect(obj).toHaveProperty(keyPath as any);expect(() => expect(obj).not.toHaveProperty(keyPath as any)).toThrow();});@@ -648,7 +648,7 @@ test.describe('.toHaveProperty()', () => {[{ a: 1 }, 'a.b.c.d'],[{}, 'a'],] as const).entries()) {- test(`{pass: false} toHaveProperty without value #${i}`, () => {+ test(`EX-142 {pass: false} toHaveProperty without value #${i}`, () => {expect(() => expect(obj).toHaveProperty(keyPath)).toThrow();expect(obj).not.toHaveProperty(keyPath);});@@ -661,7 +661,7 @@ test.describe('.toHaveProperty()', () => {[{ a: { b: {} } }, null],[{ a: { b: {} } }, 1],] as const).entries()) {- test(`{error} toHaveProperty #${i}`, () => {+ test(`EX-143 {error} toHaveProperty #${i}`, () => {expect(() => expect(obj).toHaveProperty(keyPath as any)).toThrow();});}@@ -682,7 +682,7 @@ test.describe('.toMatchObject()', () => {[new Error('foo'), new Error('foo')],[new Error('bar'), { message: 'bar' }],] as const).entries()) {- test(`{pass: true} toMatchObject #${i}`, () => {+ test(`EX-144 {pass: true} toMatchObject #${i}`, () => {expect(a).toMatchObject(b as any);expect(() => expect(a).not.toMatchObject(b as any)).toThrow();});@@ -697,7 +697,7 @@ test.describe('.toMatchObject()', () => {[new Set([1, 2]), new Set([2])],[new Error('foo'), new Error('bar')],] as const).entries()) {- test(`{pass: false} toMatchObject #${i}`, () => {+ test(`EX-145 {pass: false} toMatchObject #${i}`, () => {expect(a).not.toMatchObject(b as any);expect(() => expect(a).toMatchObject(b as any)).toThrow();});@@ -712,12 +712,12 @@ test.describe('.toMatchObject()', () => {[{}, null],[{}, 4],] as const).entries()) {- test(`throws toMatchObject #${i}`, () => {+ test(`EX-146 throws toMatchObject #${i}`, () => {expect(() => expect(a).toMatchObject(b as any)).toThrow();});}- test('does not match properties up in the prototype chain', () => {+ test('EX-147 does not match properties up in the prototype chain', () => {const a: any = {};a.ref = a;const b = Object.create(a);@@ -732,14 +732,14 @@ test.describe('.toMatchObject()', () => {test.describe('.toThrow()', () => {class CustomError extends Error {}- test('to throw or not to throw', () => {+ test('EX-148 to throw or not to throw', () => {expect(() => {throw new CustomError('apple');}).toThrow();expect(() => {}).not.toThrow();});- test('substring passes', () => {+ test('EX-149 substring passes', () => {expect(() => {throw new CustomError('apple');}).toThrow('apple');@@ -749,17 +749,17 @@ test.describe('.toThrow()', () => {expect(() => {}).not.toThrow('apple');});- test('substring fails when did not throw', () => {+ test('EX-150 substring fails when did not throw', () => {expect(() => expect(() => {}).toThrow('apple')).toThrow();});- test('substring fails when message did not match', () => {+ test('EX-151 substring fails when message did not match', () => {expect(() => expect(() => {throw new CustomError('apple');}).toThrow('banana')).toThrow();});- test('regexp passes', () => {+ test('EX-152 regexp passes', () => {expect(() => {throw new CustomError('apple');}).toThrow(/apple/);@@ -769,11 +769,11 @@ test.describe('.toThrow()', () => {expect(() => {}).not.toThrow(/apple/);});- test('regexp fails when did not throw', () => {+ test('EX-153 regexp fails when did not throw', () => {expect(() => expect(() => {}).toThrow(/apple/)).toThrow();});- test('error class passes', () => {+ test('EX-154 error class passes', () => {class Err extends CustomError {}class Err2 extends CustomError {}@@ -789,7 +789,7 @@ test.describe('.toThrow()', () => {}).not.toThrow(Err2);});- test('object with message passes', () => {+ test('EX-155 object with message passes', () => {expect(() => {throw new CustomError('apple');}).toThrow({ message: 'apple' });@@ -798,13 +798,13 @@ test.describe('.toThrow()', () => {}).not.toThrow({ message: 'apple' });});- test('properly escapes strings when matching against errors', () => {+ test('EX-156 properly escapes strings when matching against errors', () => {expect(() => {throw new TypeError('"this"? throws.');}).toThrow('"this"? throws.');});- test('error message and cause properties', () => {+ test('EX-157 error message and cause properties', () => {const errorCause = new Error('cause');const error = new Error('message', { cause: errorCause });expect(() => {@@ -814,7 +814,7 @@ test.describe('.toThrow()', () => {});test.describe('asymmetric matchers', () => {- test('Any matches primitives', () => {+ test('EX-158 Any matches primitives', () => {expect('jest').toEqual(expect.any(String));expect(1).toEqual(expect.any(Number));expect(() => {}).toEqual(expect.any(Function));@@ -823,12 +823,12 @@ test.describe('asymmetric matchers', () => {expect([]).toEqual(expect.any(Array));});- test('Any throws when called with empty constructor', () => {+ test('EX-159 Any throws when called with empty constructor', () => {expect(() => (expect.any as any)()).toThrow('any() expects to be passed a constructor function. Please pass one or use anything() to match any object.');});- test('Anything matches any type', () => {+ test('EX-160 Anything matches any type', () => {expect('jest').toEqual(expect.anything());expect(1).toEqual(expect.anything());expect(() => {}).toEqual(expect.anything());@@ -837,82 +837,82 @@ test.describe('asymmetric matchers', () => {expect([]).toEqual(expect.anything());});- test('Anything does not match null and undefined', () => {+ test('EX-161 Anything does not match null and undefined', () => {expect(null).not.toEqual(expect.anything());expect(undefined).not.toEqual(expect.anything());});- test('ArrayContaining matches', () => {+ test('EX-162 ArrayContaining matches', () => {expect(['foo']).toEqual(expect.arrayContaining(['foo']));expect(['foo', 'bar']).toEqual(expect.arrayContaining(['foo']));});- test('ArrayContaining does not match', () => {+ test('EX-163 ArrayContaining does not match', () => {expect(['bar']).not.toEqual(expect.arrayContaining(['foo']));});- test('ObjectContaining matches', () => {+ test('EX-164 ObjectContaining matches', () => {expect({ foo: 'foo', jest: 'jest' }).toEqual(expect.objectContaining({ foo: 'foo' }));expect({ foo: undefined }).toEqual(expect.objectContaining({ foo: undefined }));});- test('ObjectContaining does not match', () => {+ test('EX-165 ObjectContaining does not match', () => {expect({ bar: 'bar' }).not.toEqual(expect.objectContaining({ foo: 'foo' }));expect({ foo: 'foox' }).not.toEqual(expect.objectContaining({ foo: 'foo' }));expect({}).not.toEqual(expect.objectContaining({ foo: undefined }));});- test('ObjectContaining throws for non-objects', () => {+ test('EX-166 ObjectContaining throws for non-objects', () => {expect(() => expect({}).toEqual(expect.objectContaining(1337 as any))).toThrow("You must provide an object to ObjectContaining, not 'number'.");});- test('StringContaining matches string against string', () => {+ test('EX-167 StringContaining matches string against string', () => {expect('queen*').toEqual(expect.stringContaining('en*'));expect('queue').not.toEqual(expect.stringContaining('en*'));});- test('StringMatching matches string against regexp', () => {+ test('EX-168 StringMatching matches string against regexp', () => {expect('queen').toEqual(expect.stringMatching(/en/));expect('queue').not.toEqual(expect.stringMatching(/en/));});- test('StringMatching matches string against string', () => {+ test('EX-169 StringMatching matches string against string', () => {expect('queen').toEqual(expect.stringMatching('en'));expect('queue').not.toEqual(expect.stringMatching('en'));});- test('closeTo matches', () => {+ test('EX-170 closeTo matches', () => {expect(0).toEqual(expect.closeTo(0));expect(0.001).toEqual(expect.closeTo(0));expect(1.229).toEqual(expect.closeTo(1.23));expect(Infinity).toEqual(expect.closeTo(Infinity));});- test('closeTo does not match', () => {+ test('EX-171 closeTo does not match', () => {expect(0.01).not.toEqual(expect.closeTo(0));expect(1.23).not.toEqual(expect.closeTo(1));expect(Infinity).not.toEqual(expect.closeTo(-Infinity));});- test('closeTo with precision', () => {+ test('EX-172 closeTo with precision', () => {expect(0.1).toEqual(expect.closeTo(0, 0));expect(0.0001).toEqual(expect.closeTo(0, 3));expect(0.000_004).toEqual(expect.closeTo(0, 5));});- test('closeTo throws if expected is not number', () => {+ test('EX-173 closeTo throws if expected is not number', () => {expect(() => (expect.closeTo as any)('a')).toThrow('Expected is not a Number');});- test('arrayOf matches', () => {+ test('EX-174 arrayOf matches', () => {expect([1]).toEqual(expect.arrayOf(1));expect([1, 1, 1]).toEqual(expect.arrayOf(1));expect([{ a: 1 }, { a: 1 }]).toEqual(expect.arrayOf({ a: 1 }));expect(['a', 'b', 'c']).toEqual(expect.arrayOf(expect.any(String)));});- test('arrayOf does not match', () => {+ test('EX-175 arrayOf does not match', () => {expect([2]).not.toEqual(expect.arrayOf(1));expect([1, 2]).not.toEqual(expect.arrayOf(1));expect('not an array').not.toEqual(expect.arrayOf(1));diff --git a/tests/page/expect-matcher-result.spec.ts b/tests/page/expect-matcher-result.spec.tsindex 455ac99ee4..b9d4c3cefc 100644--- a/tests/page/expect-matcher-result.spec.ts+++ b/tests/page/expect-matcher-result.spec.ts@@ -17,7 +17,7 @@import { stripAnsi } from '../config/utils';import { test, expect } from './pageTest';-test('toMatchText-based assertions should have matcher result', async ({ page }) => {+test('EX-176 toMatchText-based assertions should have matcher result', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');@@ -72,7 +72,7 @@ Call log`);});-test('toBeTruthy-based assertions should have matcher result', async ({ page }) => {+test('EX-177 toBeTruthy-based assertions should have matcher result', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');{@@ -126,7 +126,7 @@ Call log:}});-test('toEqual-based assertions should have matcher result', async ({ page }) => {+test('EX-178 toEqual-based assertions should have matcher result', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');{@@ -177,7 +177,7 @@ Call log`);}});-test('toBeChecked({ checked }) should have expected', async ({ page }) => {+test('EX-179 toBeChecked({ checked }) should have expected', async ({ page }) => {await page.setContent(`<input id=checked type=checkbox checked></input><input id=unchecked type=checkbox></input>@@ -309,7 +309,7 @@ Call log`);}});-test('toHaveScreenshot should populate matcherResult', async ({ page, server, isAndroid }) => {+test('EX-180 toHaveScreenshot should populate matcherResult', async ({ page, server, isAndroid }) => {test.skip(isAndroid);await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.EMPTY_PAGE);diff --git a/tests/page/expect-misc.spec.ts b/tests/page/expect-misc.spec.tsindex d0b12b8c8d..c8d55d8c53 100644--- a/tests/page/expect-misc.spec.ts+++ b/tests/page/expect-misc.spec.ts@@ -18,7 +18,7 @@ import { stripAnsi } from '../config/utils';import { test, expect } from './pageTest';test.describe('toHaveCount', () => {- test('toHaveCount pass', async ({ page }) => {+ test('EX-181 toHaveCount pass', async ({ page }) => {await page.setContent('<select><option>One</option></select>');const locator = page.locator('option');let done = false;@@ -30,14 +30,14 @@ test.describe('toHaveCount', () => {expect(done).toBe(true);});- test('pass zero', async ({ page }) => {+ test('EX-182 pass zero', async ({ page }) => {await page.setContent('<div></div>');const locator = page.locator('span');await expect(locator).toHaveCount(0);await expect(locator).not.toHaveCount(1);});- test('eventually pass zero', async ({ page }) => {+ test('EX-183 eventually pass zero', async ({ page }) => {await page.setContent('<div><span>hello</span></div>');const locator = page.locator('span');setTimeout(() => page.evaluate(() => document.querySelector('div').textContent = '').catch(() => {}), 200);@@ -45,7 +45,7 @@ test.describe('toHaveCount', () => {await expect(locator).not.toHaveCount(1);});- test('eventually pass non-zero', async ({ page }) => {+ test('EX-184 eventually pass non-zero', async ({ page }) => {await page.setContent('<ul></ul>');setTimeout(async () => {await page.setContent('<ul><li>one</li><li>two</li></ul>');@@ -54,7 +54,7 @@ test.describe('toHaveCount', () => {await expect(locator).toHaveCount(2);});- test('eventually pass not non-zero', async ({ page }) => {+ test('EX-185 eventually pass not non-zero', async ({ page }) => {await page.setContent('<ul><li>one</li><li>two</li></ul>');setTimeout(async () => {await page.setContent('<ul></ul>');@@ -63,7 +63,7 @@ test.describe('toHaveCount', () => {await expect(locator).not.toHaveCount(2);});- test('fail zero', async ({ page }) => {+ test('EX-186 fail zero', async ({ page }) => {await page.setContent('<div><span></span></div>');const locator = page.locator('span');const error = await expect(locator).toHaveCount(0, { timeout: 1000 }).catch(e => e);@@ -76,7 +76,7 @@ Timeout: 1000ms`);expect(stripAnsi(error.message)).toContain(`- Expect "toHaveCount" locator('span') with timeout 1000ms`);});- test('fail zero 2', async ({ page }) => {+ test('EX-187 fail zero 2', async ({ page }) => {await page.setContent('<div><span></span></div>');const locator = page.locator('span');const error = await expect(locator).not.toHaveCount(1, { timeout: 1000 }).catch(e => e);@@ -91,14 +91,14 @@ Timeout: 1000ms`);});test.describe('toHaveJSProperty', () => {- test('pass', async ({ page }) => {+ test('EX-188 pass', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = { a: 1, b: 'string', c: new Date(1627503992000) });const locator = page.locator('div');await expect(locator).toHaveJSProperty('foo', { a: 1, b: 'string', c: new Date(1627503992000) });});- test('fail', async ({ page }) => {+ test('EX-189 fail', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = { a: 1, b: 'string', c: new Date(1627503992000) });const locator = page.locator('div');@@ -106,14 +106,14 @@ test.describe('toHaveJSProperty', () => {expect(error.message).toContain(`- "c"`);});- test('pass string', async ({ page }) => {+ test('EX-190 pass string', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = 'string');const locator = page.locator('div');await expect(locator).toHaveJSProperty('foo', 'string');});- test('fail string', async ({ page }) => {+ test('EX-191 fail string', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = 'string');const locator = page.locator('div');@@ -127,14 +127,14 @@ Timeout: 200ms`);expect(stripAnsi(error.message)).toContain(`- Expect "toHaveJSProperty" locator('div') with timeout 200ms`);});- test('pass number', async ({ page }) => {+ test('EX-192 pass number', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = 2021);const locator = page.locator('div');await expect(locator).toHaveJSProperty('foo', 2021);});- test('fail number', async ({ page }) => {+ test('EX-193 fail number', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = 2021);const locator = page.locator('div');@@ -148,14 +148,14 @@ Timeout: 200ms`);expect(stripAnsi(error.message)).toContain(`- Expect "toHaveJSProperty" locator('div') with timeout 200ms`);});- test('pass boolean', async ({ page }) => {+ test('EX-194 pass boolean', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = true);const locator = page.locator('div');await expect(locator).toHaveJSProperty('foo', true);});- test('fail boolean', async ({ page }) => {+ test('EX-195 fail boolean', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = false);const locator = page.locator('div');@@ -169,14 +169,14 @@ Timeout: 200ms`);expect(stripAnsi(error.message)).toContain(`- Expect "toHaveJSProperty" locator('div') with timeout 200ms`);});- test('pass boolean 2', async ({ page }) => {+ test('EX-196 pass boolean 2', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = false);const locator = page.locator('div');await expect(locator).toHaveJSProperty('foo', false);});- test('fail boolean 2', async ({ page }) => {+ test('EX-197 fail boolean 2', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = false);const locator = page.locator('div');@@ -190,20 +190,20 @@ Timeout: 200ms`);expect(stripAnsi(error.message)).toContain(`- Expect "toHaveJSProperty" locator('div') with timeout 200ms`);});- test('pass undefined', async ({ page }) => {+ test('EX-198 pass undefined', async ({ page }) => {await page.setContent('<div></div>');const locator = page.locator('div');await expect(locator).toHaveJSProperty('foo', undefined);});- test('pass null', async ({ page }) => {+ test('EX-199 pass null', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = null);const locator = page.locator('div');await expect(locator).toHaveJSProperty('foo', null);});- test('pass nested', async ({ page }) => {+ test('EX-200 pass nested', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = { nested: { a: 1, b: 'string', c: new Date(1627503992000) } });const locator = page.locator('div');@@ -213,7 +213,7 @@ Timeout: 200ms`);await expect(locator).toHaveJSProperty('foo.nested.c', new Date(1627503992000));});- test('fail nested', async ({ page }) => {+ test('EX-201 fail nested', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', e => (e as any).foo = { nested: { a: 1, b: 'string', c: new Date(1627503992000) } });const locator = page.locator('div');@@ -225,18 +225,18 @@ Timeout: 200ms`);});test.describe('toHaveClass', () => {- test('pass', async ({ page }) => {+ test('EX-202 pass', async ({ page }) => {await page.setContent('<div class="foo bar baz"></div>');const locator = page.locator('div');await expect(locator).toHaveClass('foo bar baz');});- test('pass with SVGs', async ({ page }) => {+ test('EX-203 pass with SVGs', async ({ page }) => {await page.setContent(`<svg class="c1 c2" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"></svg>`);await expect(page.locator('svg')).toHaveClass(/c1/);});- test('fail', async ({ page }) => {+ test('EX-204 fail', async ({ page }) => {await page.setContent('<div class="bar baz"></div>');const locator = page.locator('div');const error = await expect(locator).toHaveClass('foo bar baz', { timeout: 1000 }).catch(e => e);@@ -252,13 +252,13 @@ Call log:expect(stripAnsi(error.message)).toContain(`- Expect "toHaveClass" locator('div') with timeout 1000ms`);});- test('pass with array', async ({ page }) => {+ test('EX-205 pass with array', async ({ page }) => {await page.setContent('<div class="foo"></div><div class="bar"></div><div class="baz"></div>');const locator = page.locator('div');await expect(locator).toHaveClass(['foo', 'bar', /[a-z]az/]);});- test('fail with array', async ({ page }) => {+ test('EX-206 fail with array', async ({ page }) => {await page.setContent('<div class="foo"></div><div class="bar"></div><div class="bar"></div>');const locator = page.locator('div');const error = await expect(locator).toHaveClass(['foo', 'bar', /[a-z]az/], { timeout: 1000 }).catch(e => e);@@ -269,7 +269,7 @@ Call log:});test.describe('toContainClass', () => {- test('pass', async ({ page }) => {+ test('EX-207 pass', async ({ page }) => {await page.setContent('<div class="foo bar baz"></div>');const locator = page.locator('div');await expect(locator).toContainClass('');@@ -280,12 +280,12 @@ test.describe('toContainClass', () => {expect(() => expect(locator).toContainClass(/foo|bar/ as any)).toThrow(/"expected\" argument in toContainClass cannot be a RegExp value/);});- test('pass with SVGs', async ({ page }) => {+ test('EX-208 pass with SVGs', async ({ page }) => {await page.setContent(`<svg class="c1 c2" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"></svg>`);await expect(page.locator('svg')).toContainClass('c1');});- test('fail', async ({ page }) => {+ test('EX-209 fail', async ({ page }) => {await page.setContent('<div class="bar baz"></div>');const locator = page.locator('div');const error = await expect(locator).toContainClass('does-not-exist', { timeout: 1000 }).catch(e => e);@@ -301,7 +301,7 @@ Call log:expect(stripAnsi(error.message)).toContain(`- Expect "toContainClass" locator('div') with timeout 1000ms`);});- test('pass with array', async ({ page }) => {+ test('EX-210 pass with array', async ({ page }) => {await page.setContent('<div class="foo"></div><div class="hello bar"></div><div class="baz"></div>');const locator = page.locator('div');await expect(locator).toContainClass(['foo', 'hello', 'baz']);@@ -310,7 +310,7 @@ Call log:await expect(locator).not.toHaveClass(['foo', 'hello']); // Length mismatch});- test('fail with array', async ({ page }) => {+ test('EX-211 fail with array', async ({ page }) => {await page.setContent('<div class="foo"></div><div class="bar"></div><div class="bar"></div>');const locator = page.locator('div');const error = await expect(locator).toContainClass(['foo', 'bar', 'baz'], { timeout: 1000 }).catch(e => e);@@ -321,12 +321,12 @@ Call log:});test.describe('toHaveTitle', () => {- test('pass', async ({ page }) => {+ test('EX-212 pass', async ({ page }) => {await page.setContent('<title> Hello world</title>');await expect(page).toHaveTitle('Hello world');});- test('fail', async ({ page }) => {+ test('EX-213 fail', async ({ page }) => {await page.setContent('<title>Bye</title>');const error = await expect(page).toHaveTitle('Hello', { timeout: 1000 }).catch(e => e);expect(stripAnsi(error.message)).toContain(`expect(page).toHaveTitle(expected) failed@@ -342,12 +342,12 @@ Call log:});test.describe('toHaveURL', () => {- test('pass', async ({ page }) => {+ test('EX-214 pass', async ({ page }) => {await page.goto('data:text/html,<div>A</div>');await expect(page).toHaveURL('data:text/html,<div>A</div>');});- test('fail string', async ({ page }) => {+ test('EX-215 fail string', async ({ page }) => {await page.goto('data:text/html,<div>A</div>');const error = await expect(page).toHaveURL('wrong', { timeout: 1000 }).catch(e => e);expect(stripAnsi(error.message)).toContain(`expect(page).toHaveURL(expected) failed@@ -360,7 +360,7 @@ Call log:`);});- test('fail with invalid argument', async ({ page }) => {+ test('EX-216 fail with invalid argument', async ({ page }) => {await page.goto('data:text/html,<div>A</div>');// @ts-expect-errorconst error = await expect(page).toHaveURL({}).catch(e => e);@@ -372,7 +372,7 @@ Expected has value: {}`);});- test('fail with positive predicate', async ({ page }) => {+ test('EX-217 fail with positive predicate', async ({ page }) => {await page.goto('data:text/html,<div>A</div>');const error = await expect(page).toHaveURL(_url => false).catch(e => e);expect(stripAnsi(error.message)).toContain(`expect(page).toHaveURL(expected) failed@@ -383,7 +383,7 @@ Timeout: 10000ms`);});- test('fail with negative predicate', async ({ page }) => {+ test('EX-218 fail with negative predicate', async ({ page }) => {await page.goto('data:text/html,<div>A</div>');const error = await expect(page).not.toHaveURL(_url => true).catch(e => e);expect(stripAnsi(error.message)).toContain(`expect(page).not.toHaveURL(expected) failed@@ -394,24 +394,24 @@ Timeout: 10000ms`);});- test('resolve predicate on initial call', async ({ page }) => {+ test('EX-219 resolve predicate on initial call', async ({ page }) => {await page.goto('data:text/html,<div>A</div>');await expect(page).toHaveURL(url => url.href === 'data:text/html,<div>A</div>', { timeout: 1000 });});- test('resolve predicate after retries', async ({ page }) => {+ test('EX-220 resolve predicate after retries', async ({ page }) => {await page.goto('data:text/html,<div>A</div>');const expectPromise = expect(page).toHaveURL(url => url.href === 'data:text/html,<div>B</div>', { timeout: 1000 });setTimeout(() => page.goto('data:text/html,<div>B</div>'), 500);await expectPromise;});- test('support ignoreCase', async ({ page }) => {+ test('EX-221 support ignoreCase', async ({ page }) => {await page.goto('data:text/html,<div>A</div>');await expect(page).toHaveURL('DATA:teXT/HTml,<div>a</div>', { ignoreCase: true });});- test('support URLPattern', async ({ page }) => {+ test('EX-222 support URLPattern', async ({ page }) => {test.skip(globalThis.URLPattern === undefined, 'URLPattern is not supported in this environment');await page.goto('data:text/html,<div>A</div>');// @ts-ignore URLPattern is not in @types/node yet@@ -422,13 +422,13 @@ Timeout: 10000ms});test.describe('toHaveAttribute', () => {- test('pass', async ({ page }) => {+ test('EX-223 pass', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');await expect(locator).toHaveAttribute('id', 'node');});- test('should not match missing attribute', async ({ page }) => {+ test('EX-224 should not match missing attribute', async ({ page }) => {await page.setContent('<div checked id=node>Text content</div>');const locator = page.locator('#node');{@@ -461,7 +461,7 @@ Call log:await expect(locator).not.toHaveAttribute('disabled', /.*/);});- test('should match boolean attribute', async ({ page }) => {+ test('EX-225 should match boolean attribute', async ({ page }) => {await page.setContent('<div checked id=node>Text content</div>');const locator = page.locator('#node');await expect(locator).toHaveAttribute('checked', '');@@ -491,7 +491,7 @@ Timeout: 1000ms`);}});- test('should match attribute without value', async ({ page }) => {+ test('EX-226 should match attribute without value', async ({ page }) => {await page.setContent('<div checked id=node>Text content</div>');const locator = page.locator('#node');await expect(locator).toHaveAttribute('id');@@ -499,7 +499,7 @@ Timeout: 1000ms`);await expect(locator).not.toHaveAttribute('open');});- test('should support boolean attribute with options', async ({ page }) => {+ test('EX-227 should support boolean attribute with options', async ({ page }) => {await page.setContent('<div checked id=node>Text content</div>');const locator = page.locator('#node');await expect(locator).toHaveAttribute('id', { timeout: 5000 });@@ -507,7 +507,7 @@ Timeout: 1000ms`);await expect(locator).not.toHaveAttribute('open', { timeout: 5000 });});- test('support ignoreCase', async ({ page }) => {+ test('EX-228 support ignoreCase', async ({ page }) => {await page.setContent('<div id=NoDe>Text content</div>');const locator = page.locator('#NoDe');await expect(locator).toHaveAttribute('id', 'node', { ignoreCase: true });@@ -516,13 +516,13 @@ Timeout: 1000ms`);});test.describe('toHaveCSS', () => {- test('pass', async ({ page }) => {+ test('EX-229 pass', async ({ page }) => {await page.setContent('<div id=node style="color: rgb(255, 0, 0)">Text content</div>');const locator = page.locator('#node');await expect(locator).toHaveCSS('color', 'rgb(255, 0, 0)');});- test('should support pseudo element', async ({ page }) => {+ test('EX-230 should support pseudo element', async ({ page }) => {await page.setContent(`<style>#node::before {@@ -536,7 +536,7 @@ test.describe('toHaveCSS', () => {await expect(locator).toHaveCSS('color', 'rgb(255, 0, 0)', { pseudo: 'before' });});- test('custom css properties', async ({ page }) => {+ test('EX-231 custom css properties', async ({ page }) => {await page.setContent('<div id=node style="--custom-color-property:#FF00FF;">Text content</div>');const locator = page.locator('#node');await expect(locator).toHaveCSS('--custom-color-property', '#FF00FF');@@ -544,7 +544,7 @@ test.describe('toHaveCSS', () => {});test.describe('toHaveId', () => {- test('pass', async ({ page }) => {+ test('EX-232 pass', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');await expect(locator).toHaveId('node');@@ -552,7 +552,7 @@ test.describe('toHaveId', () => {});test.describe('toBeInViewport', () => {- test('should work', async ({ page }) => {+ test('EX-233 should work', async ({ page }) => {await page.setContent(`<div id=big style="height: 10000px;"></div><div id=small>foo</div>@@ -564,7 +564,7 @@ test.describe('toBeInViewport', () => {await expect(page.locator('#small')).toBeInViewport({ ratio: 1 });});- test('should respect ratio option', async ({ page, isAndroid }) => {+ test('EX-234 should respect ratio option', async ({ page, isAndroid }) => {test.fixme(isAndroid, 'ratio 0.24 is not in viewport for unknown reason');await page.setContent(`@@ -585,7 +585,7 @@ test.describe('toBeInViewport', () => {await expect(page.locator('div')).not.toBeInViewport({ ratio: 0.8 });});- test('should have good stack', async ({ page }) => {+ test('EX-235 should have good stack', async ({ page }) => {let error;try {await expect(page.locator('body')).not.toBeInViewport({ timeout: 3000 });@@ -599,7 +599,7 @@ test.describe('toBeInViewport', () => {expect(stackFrames[0]).toContain(__filename);});- test('should report intersection even if fully covered by other element', async ({ page }) => {+ test('EX-236 should report intersection even if fully covered by other element', async ({ page }) => {await page.setContent(`<h1>hello</h1><div style="position: relative; height: 10000px; top: -5000px;></div>@@ -608,7 +608,7 @@ test.describe('toBeInViewport', () => {});});-test('toHaveCount should not produce logs twice', async ({ page }) => {+test('EX-237 toHaveCount should not produce logs twice', async ({ page }) => {await page.setContent('<select><option>One</option></select>');const error = await expect(page.locator('option')).toHaveCount(2, { timeout: 2000 }).catch(e => e);const waitingForMessage = `waiting for locator('option')`;@@ -618,7 +618,7 @@ test('toHaveCount should not produce logs twice', async ({ page }) => {expect(error.message.replace(waitingForMessage, '<redacted>')).not.toContain(waitingForMessage);});-test('toHaveText should not produce logs twice', async ({ page }) => {+test('EX-238 toHaveText should not produce logs twice', async ({ page }) => {await page.setContent('<div>hello</div>');const error = await expect(page.locator('div')).toHaveText('world', { timeout: 2000 }).catch(e => e);const waitingForMessage = `waiting for locator('div')`;@@ -628,7 +628,7 @@ test('toHaveText should not produce logs twice', async ({ page }) => {expect(error.message.replace(waitingForMessage, '<redacted>')).not.toContain(waitingForMessage);});-test('toHaveText that does not match should not produce logs twice', async ({ page }) => {+test('EX-239 toHaveText that does not match should not produce logs twice', async ({ page }) => {await page.setContent('<div>hello</div>');const error = await expect(page.locator('span')).toHaveText('world', { timeout: 2000 }).catch(e => e);const waitingForMessage = `waiting for locator('span')`;@@ -637,7 +637,7 @@ test('toHaveText that does not match should not produce logs twice', async ({ paexpect(error.message.replace(waitingForMessage, '<redacted>')).not.toContain(waitingForMessage);});-test('strict mode violation error format', async ({ page }) => {+test('EX-240 strict mode violation error format', async ({ page }) => {await page.setContent('<div>a</div><div>b</div>');const error = await expect(page.locator('div')).toHaveText('foo').catch(e => e);expect(stripAnsi(error.message)).toContain(`expect(locator).toHaveText(expected) failed@@ -652,7 +652,7 @@ Call log:`);});-test('invalid selector error format', async ({ page }) => {+test('EX-241 invalid selector error format', async ({ page }) => {await page.setContent('<div>a</div><div>b</div>');const error = await expect(page.locator('##')).toBeVisible().catch(e => e);expect(stripAnsi(error.message)).toContain(`expect(locator).toBeVisible() failed@@ -665,7 +665,7 @@ Call log:`);});-test('should report expect error details when page closes during expect', async ({ page }) => {+test('EX-242 should report expect error details when page closes during expect', async ({ page }) => {await page.setContent(`<div>hello</div>`);const promise = expect(page.locator('div')).toHaveText('world', { timeout: 10000 }).catch((e: Error) => e);await page.waitForTimeout(1000);@@ -676,7 +676,7 @@ test('should report expect error details when page closes during expect', asyncexpect(stripAnsi(error.message)).toContain('Received: "hello"');});-test('should report page close reason when page closes during expect', async ({ page }) => {+test('EX-243 should report page close reason when page closes during expect', async ({ page }) => {await page.setContent(`<div>hello</div>`);const promise = expect(page.locator('non-existent')).toHaveText('world', { timeout: 10000 }).catch((e: Error) => e);await page.close({ reason: 'Bye bye.' });diff --git a/tests/page/expect-timeout.spec.ts b/tests/page/expect-timeout.spec.tsindex 04f8b6544d..53f6b4f1ea 100644--- a/tests/page/expect-timeout.spec.ts+++ b/tests/page/expect-timeout.spec.ts@@ -17,7 +17,7 @@import { stripAnsi } from '../config/utils';import { test, expect } from './pageTest';-test('should print element not found', async ({ page }) => {+test('EX-244 should print element not found', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const error = await expect(page.locator('no-such-thing')).toHaveText('hey', { timeout: 1000 }).catch(e => e);expect(stripAnsi(error.message)).toContain(`expect(locator).toHaveText(expected) failed@@ -31,7 +31,7 @@ Call log:`);});-test('should print timed out error message when value does not match', async ({ page }) => {+test('EX-245 should print timed out error message when value does not match', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const error = await expect(page.locator('div')).toHaveText('hey', { timeout: 1000 }).catch(e => e);expect(stripAnsi(error.message)).toContain(`expect(locator).toHaveText(expected) failed@@ -45,7 +45,7 @@ Call log:`);});-test('should print timed out error message with impossible timeout', async ({ page }) => {+test('EX-246 should print timed out error message with impossible timeout', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const error = await expect(page.locator('no-such-thing')).toHaveText('hey', { timeout: 1 }).catch(e => e);expect(stripAnsi(error.message)).toContain(`expect(locator).toHaveText(expected) failed@@ -58,7 +58,7 @@ Error: element(s) not foundCall log:`);});-test('should print timed out error message when value does not match with impossible timeout', async ({ page }) => {+test('EX-247 should print timed out error message when value does not match with impossible timeout', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const error = await expect(page.locator('div')).toHaveText('hey', { timeout: 1 }).catch(e => e);expect(stripAnsi(error.message)).toContain(`expect(locator).toHaveText(expected) failed@@ -72,12 +72,12 @@ Call log:`);});-test('should have timeout error name', async ({ page }) => {+test('EX-248 should have timeout error name', async ({ page }) => {const error = await page.waitForSelector('#not-found', { timeout: 1 }).catch(e => e);expect(error.name).toBe('TimeoutError');});-test('should not throw when navigating during one-shot check', async ({ page, server }) => {+test('EX-249 should not throw when navigating during one-shot check', async ({ page, server }) => {await page.setContent(`<div>hello</div>`);const promise = expect(page.locator('div')).toHaveText('bye');await page.goto(server.EMPTY_PAGE);@@ -85,7 +85,7 @@ test('should not throw when navigating during one-shot check', async ({ page, seawait promise;});-test('should not throw when navigating during first locator handler check', async ({ page, server }) => {+test('EX-250 should not throw when navigating during first locator handler check', async ({ page, server }) => {await page.addLocatorHandler(page.locator('span'), async locator => {});await page.setContent(`<div>hello</div>`);const promise = expect(page.locator('div')).toHaveText('bye');@@ -94,7 +94,7 @@ test('should not throw when navigating during first locator handler check', asynawait promise;});-test('should timeout during first locator handler check', async ({ page, server }) => {+test('EX-251 should timeout during first locator handler check', async ({ page, server }) => {await page.addLocatorHandler(page.locator('div'), async locator => {});await page.setContent(`<div>hello</div><span>bye</span>`);const error = await expect(page.locator('span')).toHaveText('bye', { timeout: 3000 }).catch(e => e);@@ -111,7 +111,7 @@ Call log:expect(error.message).toContain(`locator resolved to visible <div>hello</div>`);});-test('should not miss element that appears between retries before the deadline', async ({ page }) => {+test('EX-252 should not miss element that appears between retries before the deadline', async ({ page }) => {await page.setContent(`<div id="target" style="display:none">content</div>`);await page.evaluate(() => {window.builtins.setTimeout(() => {@@ -121,7 +121,7 @@ test('should not miss element that appears between retries before the deadline',await expect(page.locator('#target')).toBeVisible({ timeout: 1800 });});-test('should fail like a timeout when the signal is aborted mid-assertion', async ({ page }) => {+test('EX-253 should fail like a timeout when the signal is aborted mid-assertion', async ({ page }) => {await page.setContent('<div>content</div>');const controller = new AbortController();const promise = expect(page.locator('span')).toBeVisible({ timeout: 5000, signal: controller.signal }).catch(e => e);@@ -141,7 +141,7 @@ Call log:- operation was aborted: stop it`);});-test('should fail like a timeout when toHaveText is aborted mid-assertion', async ({ page }) => {+test('EX-254 should fail like a timeout when toHaveText is aborted mid-assertion', async ({ page }) => {await page.setContent('<div>content</div>');const controller = new AbortController();const promise = expect(page.locator('span')).toHaveText('missing', { timeout: 5000, signal: controller.signal }).catch(e => e);@@ -152,7 +152,7 @@ test('should fail like a timeout when toHaveText is aborted mid-assertion', asynexpect(stripAnsi(error.message)).toContain(`expect(locator).toHaveText(expected) failed`);});-test('should fail like a timeout when toHaveCount is aborted mid-assertion', async ({ page }) => {+test('EX-255 should fail like a timeout when toHaveCount is aborted mid-assertion', async ({ page }) => {await page.setContent('<div>content</div>');const controller = new AbortController();const promise = expect(page.locator('span')).toHaveCount(3, { timeout: 5000, signal: controller.signal }).catch(e => e);@@ -163,7 +163,7 @@ test('should fail like a timeout when toHaveCount is aborted mid-assertion', asyexpect(stripAnsi(error.message)).toContain(`expect(locator).toHaveCount(expected) failed`);});-test('should fail like a timeout when toMatchAriaSnapshot is aborted mid-assertion', async ({ page }) => {+test('EX-256 should fail like a timeout when toMatchAriaSnapshot is aborted mid-assertion', async ({ page }) => {await page.setContent('<div>content</div>');const controller = new AbortController();const promise = expect(page.locator('body')).toMatchAriaSnapshot(`- list`, { timeout: 5000, signal: controller.signal }).catch(e => e);@@ -174,7 +174,7 @@ test('should fail like a timeout when toMatchAriaSnapshot is aborted mid-assertiexpect(stripAnsi(error.message)).toContain(`expect(locator).toMatchAriaSnapshot(expected) failed`);});-test('should fail like a timeout when toHaveURL is aborted mid-assertion', async ({ page }) => {+test('EX-257 should fail like a timeout when toHaveURL is aborted mid-assertion', async ({ page }) => {await page.setContent('<div>content</div>');const controller = new AbortController();const promise = expect(page).toHaveURL('https://example.com/', { timeout: 5000, signal: controller.signal }).catch(e => e);@@ -185,7 +185,7 @@ test('should fail like a timeout when toHaveURL is aborted mid-assertion', asyncexpect(stripAnsi(error.message)).toContain(`expect(page).toHaveURL(expected) failed`);});-test('should fail the assertion when the signal is already aborted', async ({ page, server }) => {+test('EX-258 should fail the assertion when the signal is already aborted', async ({ page, server }) => {await page.setContent('<div>content</div>');{const controller = new AbortController();diff --git a/tests/page/expect-to-have-accessible.spec.ts b/tests/page/expect-to-have-accessible.spec.tsindex 32a7798780..69bf6dc59e 100644--- a/tests/page/expect-to-have-accessible.spec.ts+++ b/tests/page/expect-to-have-accessible.spec.ts@@ -16,7 +16,7 @@import { test, expect } from './pageTest';-test('toHaveAccessibleName', async ({ page }) => {+test('EX-259 toHaveAccessibleName', async ({ page }) => {await page.setContent(`<div role="button" aria-label="Hello"></div>`);@@ -38,7 +38,7 @@ test('toHaveAccessibleName', async ({ page }) => {await expect(page.locator('option')).toHaveAccessibleName('HTML');});-test('toHaveAccessibleDescription', async ({ page }) => {+test('EX-260 toHaveAccessibleDescription', async ({ page }) => {await page.setContent(`<div role="button" aria-description="Hello"></div>`);@@ -56,7 +56,7 @@ test('toHaveAccessibleDescription', async ({ page }) => {await expect(page.locator('div')).toHaveAccessibleDescription('foo bar baz');});-test('toHaveAccessibleErrorMessage', async ({ page }) => {+test('EX-261 toHaveAccessibleErrorMessage', async ({ page }) => {await page.setContent(`<form><input role="textbox" aria-invalid="true" aria-errormessage="error-message" />@@ -75,7 +75,7 @@ test('toHaveAccessibleErrorMessage', async ({ page }) => {await expect(locator).not.toHaveAccessibleErrorMessage('This should not be considered.');});-test('toHaveAccessibleErrorMessage should handle multiple aria-errormessage references', async ({ page }) => {+test('EX-262 toHaveAccessibleErrorMessage should handle multiple aria-errormessage references', async ({ page }) => {await page.setContent(`<form><input role="textbox" aria-invalid="true" aria-errormessage="error1 error2" />@@ -108,25 +108,25 @@ test.describe('toHaveAccessibleErrorMessage should handle aria-invalid attribute}test.describe('evaluated in false', () => {- test('no aria-invalid attribute', async ({ page }) => {+ test('EX-263 no aria-invalid attribute', async ({ page }) => {const locator = await setupPage(page, null);await expect(locator).not.toHaveAccessibleErrorMessage(errorMessageText);});- test('aria-invalid="false"', async ({ page }) => {+ test('EX-264 aria-invalid="false"', async ({ page }) => {const locator = await setupPage(page, 'false');await expect(locator).not.toHaveAccessibleErrorMessage(errorMessageText);});- test('aria-invalid="" (empty string)', async ({ page }) => {+ test('EX-265 aria-invalid="" (empty string)', async ({ page }) => {const locator = await setupPage(page, '');await expect(locator).not.toHaveAccessibleErrorMessage(errorMessageText);});});test.describe('evaluated in true', () => {- test('aria-invalid="true"', async ({ page }) => {+ test('EX-266 aria-invalid="true"', async ({ page }) => {const locator = await setupPage(page, 'true');await expect(locator).toHaveAccessibleErrorMessage(errorMessageText);});- test('aria-invalid="foo" (unrecognized value)', async ({ page }) => {+ test('EX-267 aria-invalid="foo" (unrecognized value)', async ({ page }) => {const locator = await setupPage(page, 'foo');await expect(locator).toHaveAccessibleErrorMessage(errorMessageText);});@@ -135,7 +135,7 @@ test.describe('toHaveAccessibleErrorMessage should handle aria-invalid attributeconst errorMessageText = 'Error message';-test('should show error message when validity is false and aria-invalid is true', async ({ page }) => {+test('EX-268 should show error message when validity is false and aria-invalid is true', async ({ page }) => {await page.setContent(`<form><input id="node" role="textbox" type="number" min="1" max="100" aria-invalid="true" aria-errormessage="error-msg" />@@ -147,7 +147,7 @@ test('should show error message when validity is false and aria-invalid is true'await expect(locator).toHaveAccessibleErrorMessage(errorMessageText);});-test('should show error message when validity is true and aria-invalid is true', async ({ page }) => {+test('EX-269 should show error message when validity is true and aria-invalid is true', async ({ page }) => {await page.setContent(`<form><input id="node" role="textbox" type="number" min="1" max="100" aria-invalid="true" aria-errormessage="error-msg" />@@ -159,7 +159,7 @@ test('should show error message when validity is true and aria-invalid is true',await expect(locator).toHaveAccessibleErrorMessage(errorMessageText);});-test('should show error message when validity is false and aria-invalid is false', async ({ page }) => {+test('EX-270 should show error message when validity is false and aria-invalid is false', async ({ page }) => {await page.setContent(`<form><input id="node" role="textbox" type="number" min="1" max="100" aria-invalid="false" aria-errormessage="error-msg" />@@ -171,7 +171,7 @@ test('should show error message when validity is false and aria-invalid is falseawait expect(locator).toHaveAccessibleErrorMessage(errorMessageText);});-test('should not show error message when validity is true and aria-invalid is false', async ({ page }) => {+test('EX-271 should not show error message when validity is true and aria-invalid is false', async ({ page }) => {await page.setContent(`<form><input id="node" role="textbox" type="number" min="1" max="100" aria-invalid="false" aria-errormessage="error-msg" />@@ -183,7 +183,7 @@ test('should not show error message when validity is true and aria-invalid is faawait expect(locator).not.toHaveAccessibleErrorMessage(errorMessageText);});-test('should show error message for all roles', async ({ page }) => {+test('EX-272 should show error message for all roles', async ({ page }) => {await page.setContent(`<label for="file">File input</label><input id="file" aria-invalid="true" aria-errormessage="file-error-id" type="file" />@@ -193,7 +193,7 @@ test('should show error message for all roles', async ({ page }) => {await expect(locator).toHaveAccessibleErrorMessage('File is incorrect');});-test('toHaveRole', async ({ page }) => {+test('EX-273 toHaveRole', async ({ page }) => {await page.setContent(`<div role="button">Button!</div>`);await expect(page.locator('div')).toHaveRole('button');await expect(page.locator('div')).not.toHaveRole('checkbox');diff --git a/tests/page/expect-to-have-text.spec.ts b/tests/page/expect-to-have-text.spec.tsindex e11e7d813c..414316b888 100644--- a/tests/page/expect-to-have-text.spec.ts+++ b/tests/page/expect-to-have-text.spec.ts@@ -18,7 +18,7 @@ import { stripAnsi } from '../config/utils';import { test, expect } from './pageTest';test.describe('toHaveText with regex', () => {- test('pass', async ({ page }) => {+ test('EX-274 pass', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');await expect(locator).toHaveText(/Text/);@@ -31,7 +31,7 @@ test.describe('toHaveText with regex', () => {await expect(locator).not.toHaveText(/text content/i, { ignoreCase: false });});- test('fail', async ({ page }) => {+ test('EX-275 fail', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');const error = await expect(locator).toHaveText(/Text 2/, { timeout: 1000 }).catch(e => e);@@ -48,7 +48,7 @@ Call log:});test.describe('toContainText with regex', () => {- test('pass', async ({ page }) => {+ test('EX-276 pass', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');await expect(locator).toContainText(/ex/);@@ -57,7 +57,7 @@ test.describe('toContainText with regex', () => {await expect(locator).toContainText(/ext cont/);});- test('fail', async ({ page }) => {+ test('EX-277 fail', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');const error = await expect(locator).toContainText(/ex2/, { timeout: 1000 }).catch(e => e);@@ -67,13 +67,13 @@ test.describe('toContainText with regex', () => {});test.describe('toContainText with string', () => {- test('pass', async ({ page }) => {+ test('EX-278 pass', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');await expect(locator).toContainText('content');});- test('fail', async ({ page }) => {+ test('EX-279 fail', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');const error = await expect(locator).toContainText('foo', { timeout: 1000 }).catch(e => e);@@ -90,7 +90,7 @@ Call log:});test.describe('toHaveText with text', () => {- test('pass', async ({ page }) => {+ test('EX-280 pass', async ({ page }) => {await page.setContent('<div id=node><span></span>Text \ncontent </div>');const locator = page.locator('#node');// Should normalize whitespace.@@ -105,7 +105,7 @@ test.describe('toHaveText with text', () => {await expect(locator).toHaveText('T\u00ade\u00adxt content');});- test('pass contain', async ({ page }) => {+ test('EX-281 pass contain', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');await expect(locator).toContainText('Text');@@ -117,7 +117,7 @@ test.describe('toHaveText with text', () => {await expect(locator).not.toContainText('TEXT', { ignoreCase: false });});- test('fail', async ({ page }) => {+ test('EX-282 fail', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');const error = await expect(locator).toHaveText('Text', { timeout: 1000 }).catch(e => e);@@ -125,7 +125,7 @@ test.describe('toHaveText with text', () => {expect(stripAnsi(error.message)).toContain('Received: "Text content"');});- test('pass eventually', async ({ page }) => {+ test('EX-283 pass eventually', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');await Promise.all([@@ -134,13 +134,13 @@ test.describe('toHaveText with text', () => {]);});- test('with userInnerText', async ({ page }) => {+ test('EX-284 with userInnerText', async ({ page }) => {await page.setContent('<div id=node>Text <span hidden>garbage</span> content</div>');const locator = page.locator('#node');await expect(locator).toHaveText('Text content', { useInnerText: true });});- test('in shadow dom', async ({ page }) => {+ test('EX-285 in shadow dom', async ({ page }) => {await page.setContent(`<div></div><script>@@ -161,14 +161,14 @@ test.describe('toHaveText with text', () => {await expect(page.locator('div')).not.toContainText('text', { useInnerText: true });});- test('fail with impossible timeout', async ({ page }) => {+ test('EX-286 fail with impossible timeout', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const error = await expect(page.locator('#node')).toHaveText('Text', { timeout: 1 }).catch(e => e);expect(stripAnsi(error.message)).toContain('Expected: "Text"');expect(stripAnsi(error.message)).toContain('Received: "Text content"');});- test('do not show "element(s) not found" when the real failure is a string mismatch', async ({ page }) => {+ test('EX-287 do not show "element(s) not found" when the real failure is a string mismatch', async ({ page }) => {test.skip(process.env.PW_CLOCK === 'frozen', 'The element is attached after 1 second.');await page.setContent(`<div>Initial</div>@@ -189,7 +189,7 @@ test.describe('toHaveText with text', () => {});test.describe('not.toHaveText', () => {- test('pass', async ({ page }) => {+ test('EX-288 pass', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');await expect(locator).not.toHaveText('Text2');@@ -197,7 +197,7 @@ test.describe('not.toHaveText', () => {await expect(locator).not.toHaveText('TEXT');});- test('fail', async ({ page }) => {+ test('EX-289 fail', async ({ page }) => {await page.setContent('<div id=node>Text content</div>');const locator = page.locator('#node');const error = await expect(locator).not.toHaveText('Text content', { timeout: 1000 }).catch(e => e);@@ -205,7 +205,7 @@ test.describe('not.toHaveText', () => {expect(stripAnsi(error.message)).toContain('Received: "Text content');});- test('should work when selector does not match', async ({ page }) => {+ test('EX-290 should work when selector does not match', async ({ page }) => {await page.setContent('<div>hello</div>');const error = await expect(page.locator('span')).not.toHaveText('hello', { timeout: 1000 }).catch(e => e);expect(stripAnsi(error.message)).toContain('Expected: not "hello"');@@ -215,7 +215,7 @@ test.describe('not.toHaveText', () => {});test.describe('toHaveText with array', () => {- test('pass', async ({ page }) => {+ test('EX-291 pass', async ({ page }) => {await page.setContent('<div>Text \n1</div><div>Text 2a</div>');const locator = page.locator('div');// Should only normalize whitespace in the first item.@@ -224,7 +224,7 @@ test.describe('toHaveText with array', () => {await expect(locator).toHaveText(['tEXT 1', 'TExt 2A'], { ignoreCase: true });});- test('pass lazy', async ({ page }) => {+ test('EX-292 pass lazy', async ({ page }) => {await page.setContent('<div id=div></div>');const locator = page.locator('p');setTimeout(() => {@@ -235,25 +235,25 @@ test.describe('toHaveText with array', () => {await expect(locator).toHaveText(['Text 1', 'Text 2']);});- test('pass empty', async ({ page }) => {+ test('EX-293 pass empty', async ({ page }) => {await page.setContent('<div></div>');const locator = page.locator('p');await expect(locator).toHaveText([]);});- test('pass not empty', async ({ page }) => {+ test('EX-294 pass not empty', async ({ page }) => {await page.setContent('<div><p>Test</p></div>');const locator = page.locator('p');await expect(locator).not.toHaveText([]);});- test('pass on empty', async ({ page }) => {+ test('EX-295 pass on empty', async ({ page }) => {await page.setContent('<div></div>');const locator = page.locator('p');await expect(locator).not.toHaveText(['Test']);});- test('fail on not+empty', async ({ page }) => {+ test('EX-296 fail on not+empty', async ({ page }) => {await page.setContent('<div></div>');const locator = page.locator('p');const error = await expect(locator).not.toHaveText([], { timeout: 1000 }).catch(e => e);@@ -262,7 +262,7 @@ test.describe('toHaveText with array', () => {expect(stripAnsi(error.message)).toContain(`- Expect "not toHaveText" locator('p') with timeout 1000ms`);});- test('pass eventually empty', async ({ page }) => {+ test('EX-297 pass eventually empty', async ({ page }) => {await page.setContent('<div id=div><p>Text</p></div>');const locator = page.locator('p');setTimeout(() => {@@ -271,7 +271,7 @@ test.describe('toHaveText with array', () => {await expect(locator).not.toHaveText([]);});- test('fail', async ({ page }) => {+ test('EX-298 fail', async ({ page }) => {await page.setContent('<div>Text 1</div><div>Text 3</div>');const locator = page.locator('div');const error = await expect(locator).toHaveText(['Text 1', /Text \d/, 'Extra'], { timeout: 1000 }).catch(e => e);@@ -295,7 +295,7 @@ Call log:expect(stripAnsi(error.message)).toContain('locator resolved to 2 elements');});- test('fail on repeating array matchers', async ({ page }) => {+ test('EX-299 fail on repeating array matchers', async ({ page }) => {await page.setContent('<div>KekFoo</div>');const locator = page.locator('div');const error = await expect(locator).toContainText(['KekFoo', 'KekFoo', 'KekFoo'], { timeout: 1000 }).catch(e => e);@@ -304,7 +304,7 @@ Call log:});test.describe('toContainText with array', () => {- test('pass', async ({ page }) => {+ test('EX-300 pass', async ({ page }) => {await page.setContent('<div>Text \n1</div><div>Text2</div><div>Text3</div>');const locator = page.locator('div');await expect(locator).toContainText(['ext 1', /ext3/]);@@ -312,7 +312,7 @@ test.describe('toContainText with array', () => {await expect(locator).toContainText(['EXT 1', 'eXt3'], { ignoreCase: true });});- test('fail', async ({ page }) => {+ test('EX-301 fail', async ({ page }) => {await page.setContent('<div>Text 1</div><div>Text 3</div>');const locator = page.locator('div');const error = await expect(locator).toContainText(['Text 2'], { timeout: 1000 }).catch(e => e);diff --git a/tests/page/expect-to-have-value.spec.ts b/tests/page/expect-to-have-value.spec.tsindex 0518eac725..369c993857 100644--- a/tests/page/expect-to-have-value.spec.ts+++ b/tests/page/expect-to-have-value.spec.ts@@ -17,27 +17,27 @@import { stripAnsi } from '../config/utils';import { test, expect } from './pageTest';-test('should work', async ({ page }) => {+test('EX-302 should work', async ({ page }) => {await page.setContent('<input id=node></input>');const locator = page.locator('#node');await locator.fill('Text content');await expect(locator).toHaveValue('Text content');});-test('should work with label', async ({ page }) => {+test('EX-303 should work with label', async ({ page }) => {await page.setContent('<label><input></input></label>');await page.locator('label input').fill('Text content');await expect(page.locator('label')).toHaveValue('Text content');});-test('should work with regex', async ({ page }) => {+test('EX-304 should work with regex', async ({ page }) => {await page.setContent('<input id=node></input>');const locator = page.locator('#node');await locator.fill('Text content');await expect(locator).toHaveValue(/Text/);});-test('should support failure', async ({ page }) => {+test('EX-305 should support failure', async ({ page }) => {await page.setContent('<input id=node></input>');const locator = page.locator('#node');await locator.fill('Text content');@@ -46,7 +46,7 @@ test('should support failure', async ({ page }) => {});test.describe('toHaveValues with multi-select', () => {- test('works with text', async ({ page }) => {+ test('EX-306 works with text', async ({ page }) => {await page.setContent(`<select multiple><option value="R">Red</option>@@ -59,7 +59,7 @@ test.describe('toHaveValues with multi-select', () => {await expect(locator).toHaveValues(['R', 'G']);});- test('follows labels', async ({ page }) => {+ test('EX-307 follows labels', async ({ page }) => {await page.setContent(`<label for="colors">Pick a Color</label><select id="colors" multiple>@@ -73,7 +73,7 @@ test.describe('toHaveValues with multi-select', () => {await expect(locator).toHaveValues(['R', 'G']);});- test('exact match with text failure', async ({ page }) => {+ test('EX-308 exact match with text failure', async ({ page }) => {await page.setContent(`<select multiple><option value="RR">Red</option>@@ -87,7 +87,7 @@ test.describe('toHaveValues with multi-select', () => {expect(stripAnsi(error.message)).toContain('+ "RR"');});- test('works with regex', async ({ page }) => {+ test('EX-309 works with regex', async ({ page }) => {await page.setContent(`<select multiple><option value="R">Red</option>@@ -100,7 +100,7 @@ test.describe('toHaveValues with multi-select', () => {await expect(locator).toHaveValues([/R/, /G/]);});- test('fails when items not selected', async ({ page }) => {+ test('EX-310 fails when items not selected', async ({ page }) => {await page.setContent(`<select multiple><option value="R">Red</option>@@ -114,7 +114,7 @@ test.describe('toHaveValues with multi-select', () => {expect(stripAnsi(error.message)).toContain('+ "B"');});- test('fails when multiple not specified', async ({ page }) => {+ test('EX-311 fails when multiple not specified', async ({ page }) => {await page.setContent(`<select><option value="R">Red</option>@@ -128,7 +128,7 @@ test.describe('toHaveValues with multi-select', () => {expect(error.message).toContain('Not a select element with a multiple attribute');});- test('fails when not a select element', async ({ page }) => {+ test('EX-312 fails when not a select element', async ({ page }) => {await page.setContent(`<input value="foo" />`);diff --git a/tests/page/expect-with-snapshot.spec.ts b/tests/page/expect-with-snapshot.spec.tsindex 8c02d2158b..ba153e03e2 100644--- a/tests/page/expect-with-snapshot.spec.ts+++ b/tests/page/expect-with-snapshot.spec.ts@@ -17,7 +17,7 @@import { test, expect } from './pageTest';test.describe('containment matchers print full element subtree', () => {- test('toHaveText failure includes full element subtree', async ({ page }) => {+ test('EX-313 toHaveText failure includes full element subtree', async ({ page }) => {await page.setContent(`<section id=node><h1>Title</h1><p>Body</p></section>`);const error = await expect(page.locator('#node')).toHaveText('nope', { timeout: 1000 }).catch(e => e);const snapshot = error.matcherResult.ariaSnapshot;@@ -26,7 +26,7 @@ test.describe('containment matchers print full element subtree', () => {expect(snapshot).toContain('Body');});- test('toContainText failure includes full element subtree', async ({ page }) => {+ test('EX-314 toContainText failure includes full element subtree', async ({ page }) => {await page.setContent(`<section id=node><h1>Title</h1><p>Body</p></section>`);const error = await expect(page.locator('#node')).toContainText('nope', { timeout: 1000 }).catch(e => e);const snapshot = error.matcherResult.ariaSnapshot;@@ -36,14 +36,14 @@ test.describe('containment matchers print full element subtree', () => {});test.describe('property matchers print only the element line', () => {- test('toBeChecked failure prints just the input', async ({ page }) => {+ test('EX-315 toBeChecked failure prints just the input', async ({ page }) => {await page.setContent(`<label><input id=cb type=checkbox> a checkbox</label>`);const error = await expect(page.locator('#cb')).toBeChecked({ timeout: 1000 }).catch(e => e);const snapshot = error.matcherResult.ariaSnapshot;expect(snapshot).toContain('checkbox');});- test('toHaveAttribute failure clips descendant subtree', async ({ page }) => {+ test('EX-316 toHaveAttribute failure clips descendant subtree', async ({ page }) => {await page.setContent(`<ul id=lst><li><h2>HeadingMarker</h2><p>BodyMarker</p></li></ul>`);const error = await expect(page.locator('#lst')).toHaveAttribute('data-x', 'yes', { timeout: 1000 }).catch(e => e);const snapshot = error.matcherResult.ariaSnapshot;@@ -54,21 +54,21 @@ test.describe('property matchers print only the element line', () => {expect(snapshot).not.toContain('BodyMarker');});- test('toHaveRole failure prints just the element line', async ({ page }) => {+ test('EX-317 toHaveRole failure prints just the element line', async ({ page }) => {await page.setContent(`<button id=btn>Hi<span>nested</span></button>`);const error = await expect(page.locator('#btn')).toHaveRole('link', { timeout: 1000 }).catch(e => e);const snapshot = error.matcherResult.ariaSnapshot;expect(snapshot).toContain('button');});- test('toHaveValue failure prints the input element', async ({ page }) => {+ test('EX-318 toHaveValue failure prints the input element', async ({ page }) => {await page.setContent(`<input id=inp value="actual">`);const error = await expect(page.locator('#inp')).toHaveValue('expected', { timeout: 1000 }).catch(e => e);const snapshot = error.matcherResult.ariaSnapshot;expect(snapshot).toContain('textbox');});- test('toHaveCSS failure prints the element line', async ({ page }) => {+ test('EX-319 toHaveCSS failure prints the element line', async ({ page }) => {await page.setContent(`<button id=btn style="color: red">Press</button>`);const error = await expect(page.locator('#btn')).toHaveCSS('color', 'rgb(0, 0, 0)', { timeout: 1000 }).catch(e => e);const snapshot = error.matcherResult.ariaSnapshot;@@ -77,7 +77,7 @@ test.describe('property matchers print only the element line', () => {});test.describe('hidden or missing elements print full page snapshot', () => {- test('toBeVisible on hidden element prints full page snapshot', async ({ page }) => {+ test('EX-320 toBeVisible on hidden element prints full page snapshot', async ({ page }) => {await page.setContent(`<div id=hidden style="display: none"><span>secret</span></div><main><h1>Page Heading</h1></main>@@ -88,21 +88,21 @@ test.describe('hidden or missing elements print full page snapshot', () => {expect(snapshot).toContain('heading "Page Heading"');});- test('toBeVisible on missing element prints full page snapshot', async ({ page }) => {+ test('EX-321 toBeVisible on missing element prints full page snapshot', async ({ page }) => {await page.setContent(`<header><h1>Hello</h1></header>`);const error = await expect(page.locator('#nope')).toBeVisible({ timeout: 1000 }).catch(e => e);const snapshot = error.matcherResult.ariaSnapshot;expect(snapshot).toContain('heading "Hello"');});- test('toHaveText on missing element prints full page snapshot', async ({ page }) => {+ test('EX-322 toHaveText on missing element prints full page snapshot', async ({ page }) => {await page.setContent(`<main><h1>Hello</h1></main>`);const error = await expect(page.locator('#missing')).toHaveText('x', { timeout: 1000 }).catch(e => e);const snapshot = error.matcherResult.ariaSnapshot;expect(snapshot).toContain('heading "Hello"');});- test('toHaveTitle failure prints full page snapshot', async ({ page }) => {+ test('EX-323 toHaveTitle failure prints full page snapshot', async ({ page }) => {await page.setContent(`<title>Right</title><main><h1>Body Heading</h1></main>`);const error = await expect(page).toHaveTitle('Wrong', { timeout: 1000 }).catch(e => e);const snapshot = error.matcherResult.ariaSnapshot;@@ -111,19 +111,19 @@ test.describe('hidden or missing elements print full page snapshot', () => {});test.describe('matchers that should not include an aria snapshot', () => {- test('toHaveCount failure has no aria snapshot', async ({ page }) => {+ test('EX-324 toHaveCount failure has no aria snapshot', async ({ page }) => {await page.setContent(`<ul><li>a</li><li>b</li></ul>`);const error = await expect(page.locator('li')).toHaveCount(5, { timeout: 1000 }).catch(e => e);expect(error.matcherResult.ariaSnapshot).toBeUndefined();});- test('toHaveText with array has no aria snapshot', async ({ page }) => {+ test('EX-325 toHaveText with array has no aria snapshot', async ({ page }) => {await page.setContent(`<ul><li>x</li><li>y</li></ul>`);const error = await expect(page.locator('li')).toHaveText(['a', 'b', 'c'], { timeout: 1000 }).catch(e => e);expect(error.matcherResult.ariaSnapshot).toBeUndefined();});- test('toMatchAriaSnapshot failure has no extra aria snapshot', async ({ page }) => {+ test('EX-326 toMatchAriaSnapshot failure has no extra aria snapshot', async ({ page }) => {await page.setContent(`<button id=btn>Y</button>`);const error = await expect(page.locator('#btn')).toMatchAriaSnapshot(`- button "X"`, { timeout: 1000 }).catch(e => e);expect(error.matcherResult.ariaSnapshot).toBeUndefined();diff --git a/tests/page/firefox-network-response.spec.ts b/tests/page/firefox-network-response.spec.tsindex d8d8bcba05..c531e0e374 100644--- a/tests/page/firefox-network-response.spec.ts+++ b/tests/page/firefox-network-response.spec.ts@@ -47,7 +47,7 @@ async function fetchResponse(page: Page, url: string) {}for (const status of [200, 302]) {- it(`should preserve original response header fields for ${status} responses`, async ({ page, server }) => {+ it(`FF-005 should preserve original response header fields for ${status} responses`, async ({ page, server }) => {const headers = [{ name: 'Date', value: 'Wed, 21 Oct 2037 07:28:00 GMT' },{ name: 'X-Literal', value: 'first, "second, third"' },@@ -77,7 +77,7 @@ for (const status of [200, 302]) {});}-it('should preserve synthesized response header fields', async ({ page, server }) => {+it('FF-006 should preserve synthesized response header fields', async ({ page, server }) => {const cookies = ['a=b; Expires=Wed, 21 Oct 2037 07:28:00 GMT','c=d; Expires=Wed, 21 Oct 2037 07:28:00 GMT; Path=/',@@ -102,7 +102,7 @@ it('should preserve synthesized response header fields', async ({ page, server }]);});-it('should report current effective fields after cache revalidation', async ({ page, server }) => {+it('FF-007 should report current effective fields after cache revalidation', async ({ page, server }) => {const validators: (string | undefined)[] = [];server.setRoute('/cached-headers', (request, response) => {validators.push(request.headers['if-none-match']);@@ -155,7 +155,7 @@ it('should report current effective fields after cache revalidation', async ({ pexpect(await cached.response.headerValues(name)).toEqual([]);});-it('should report a standalone 304 response without waiting for a cache merge', async ({ page, server }) => {+it('FF-008 should report a standalone 304 response without waiting for a cache merge', async ({ page, server }) => {server.setRoute('/standalone-304', (request, response) => {response.writeHead(304, {'X-Literal': 'standalone, value',diff --git a/tests/page/frame-evaluate.spec.ts b/tests/page/frame-evaluate.spec.tsindex 03df78897e..7b657e614a 100644--- a/tests/page/frame-evaluate.spec.ts+++ b/tests/page/frame-evaluate.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import { attachFrame, detachFrame } from '../config/utils';-it('should have different execution contexts', async ({ page, server }) => {+it('FR-001 should have different execution contexts', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.EMPTY_PAGE);expect(page.frames().length).toBe(2);@@ -28,7 +28,7 @@ it('should have different execution contexts', async ({ page, server }) => {expect(await page.frames()[1].evaluate(() => window['FOO'])).toBe('bar');});-it('should have correct execution contexts @smoke', async ({ page, server }) => {+it('FR-002 should have correct execution contexts @smoke', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');expect(page.frames().length).toBe(2);expect(await page.frames()[0].evaluate(() => document.body.textContent.trim())).toBe('');@@ -42,7 +42,7 @@ function expectContexts(pageImpl, count, browserName) {expect(pageImpl.delegate._contextIdToContext.size).toBe(count);}-it('should dispose context on navigation', async ({ page, server, toImpl, browserName, isElectron }) => {+it('FR-003 should dispose context on navigation', async ({ page, server, toImpl, browserName, isElectron }) => {it.skip(isElectron);await page.goto(server.PREFIX + '/frames/one-frame.html');@@ -52,7 +52,7 @@ it('should dispose context on navigation', async ({ page, server, toImpl, browseexpectContexts(toImpl(page), 2, browserName);});-it('should dispose context on cross-origin navigation', async ({ page, server, toImpl, browserName, isElectron }) => {+it('FR-004 should dispose context on cross-origin navigation', async ({ page, server, toImpl, browserName, isElectron }) => {it.skip(isElectron);await page.goto(server.PREFIX + '/frames/one-frame.html');@@ -62,7 +62,7 @@ it('should dispose context on cross-origin navigation', async ({ page, server, texpectContexts(toImpl(page), 2, browserName);});-it('should execute after cross-site navigation', async ({ page, server }) => {+it('FR-005 should execute after cross-site navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const mainFrame = page.mainFrame();expect(await mainFrame.evaluate(() => window.location.href)).toContain(server.EMPTY_PAGE);@@ -70,7 +70,7 @@ it('should execute after cross-site navigation', async ({ page, server }) => {expect(await mainFrame.evaluate(() => window.location.href)).toContain(server.CROSS_PROCESS_PREFIX);});-it('should not allow cross-frame js handles', async ({ page, server }) => {+it('FR-006 should not allow cross-frame js handles', async ({ page, server }) => {// TODO: this should actually be possible because frames script each other,// but protocol implementations do not support this. For now, assume current// behavior.@@ -88,14 +88,14 @@ it('should not allow cross-frame js handles', async ({ page, server }) => {expect(error.message).toContain('JSHandles can be evaluated only in the context they were created!');});-it('should allow cross-frame element handles', async ({ page, server }) => {+it('FR-007 should allow cross-frame element handles', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');const bodyHandle = await page.mainFrame().childFrames()[0].$('body');const result = await page.evaluate(body => body.innerHTML, bodyHandle);expect(result.trim()).toBe('<div>Hi, I\'m frame</div>');});-it('should not allow cross-frame element handles when frames do not script each other', async ({ page, server, isAndroid }) => {+it('FR-008 should not allow cross-frame element handles when frames do not script each other', async ({ page, server, isAndroid }) => {it.skip(isAndroid, 'No cross-process on Android');await page.goto(server.EMPTY_PAGE);@@ -105,7 +105,7 @@ it('should not allow cross-frame element handles when frames do not script eachexpect(error.message).toContain('Unable to adopt element handle from a different document');});-it('should throw for detached frames', async ({ page, server }) => {+it('FR-009 should throw for detached frames', async ({ page, server }) => {const frame1 = await attachFrame(page, 'frame1', server.EMPTY_PAGE);await detachFrame(page, 'frame1');let error = null;@@ -113,7 +113,7 @@ it('should throw for detached frames', async ({ page, server }) => {expect(error.message).toContain('frame.evaluate: Frame was detached');});-it('should be isolated between frames', async ({ page, server }) => {+it('FR-010 should be isolated between frames', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.EMPTY_PAGE);expect(page.frames().length).toBe(2);@@ -132,7 +132,7 @@ it('should be isolated between frames', async ({ page, server }) => {expect(a2).toBe(2);});-it('should work in iframes that failed initial navigation', async ({ page, browserName }) => {+it('FR-011 should work in iframes that failed initial navigation', async ({ page, browserName }) => {await page.setContent(`<meta http-equiv="Content-Security-Policy" content="script-src 'none';"><iframe src='javascript:""'></iframe>@@ -149,7 +149,7 @@ it('should work in iframes that failed initial navigation', async ({ page, browsexpect(await page.frames()[1].$('div')).toBeTruthy();});-it('should work in iframes that interrupted initial javascript url navigation', async ({ page, server, browserName }) => {+it('FR-012 should work in iframes that interrupted initial javascript url navigation', async ({ page, server, browserName }) => {// Chromium does not report isolated world for the iframe.await page.goto(server.EMPTY_PAGE);await page.evaluate(() => {@@ -166,7 +166,7 @@ it('should work in iframes that interrupted initial javascript url navigation',expect(await page.frames()[1].$('div')).toBeTruthy();});-it('evaluateHandle should work', async ({ page, server }) => {+it('FR-013 evaluateHandle should work', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const mainFrame = page.mainFrame();const windowHandle = await mainFrame.evaluateHandle(() => window);diff --git a/tests/page/frame-frame-element.spec.ts b/tests/page/frame-frame-element.spec.tsindex 92e330037c..504706bb2a 100644--- a/tests/page/frame-frame-element.spec.ts+++ b/tests/page/frame-frame-element.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import { attachFrame } from '../config/utils';-it('should work @smoke', async ({ page, server }) => {+it('FR-014 should work @smoke', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const frame1 = await attachFrame(page, 'frame1', server.EMPTY_PAGE);await attachFrame(page, 'frame2', server.EMPTY_PAGE);@@ -32,7 +32,7 @@ it('should work @smoke', async ({ page, server }) => {expect(await frame1handle1.evaluate((a, b) => a === b, frame3handle1)).toBe(false);});-it('should work with contentFrame', async ({ page, server }) => {+it('FR-015 should work with contentFrame', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const frame = await attachFrame(page, 'frame1', server.EMPTY_PAGE);const handle = await frame.frameElement();@@ -40,7 +40,7 @@ it('should work with contentFrame', async ({ page, server }) => {expect(contentFrame).toBe(frame);});-it('should work with frameset', async ({ page, server }) => {+it('FR-016 should work with frameset', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/frameset.html');const frameElement1 = await page.$('frame');const frame = await frameElement1.contentFrame();@@ -48,7 +48,7 @@ it('should work with frameset', async ({ page, server }) => {expect(await frameElement1.evaluate((a, b) => a === b, frameElement2)).toBe(true);});-it('should throw when detached', async ({ page, server }) => {+it('FR-017 should throw when detached', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const frame1 = await attachFrame(page, 'frame1', server.EMPTY_PAGE);await page.$eval('#frame1', e => e.remove());@@ -56,7 +56,7 @@ it('should throw when detached', async ({ page, server }) => {expect(error.message).toContain('Frame has been detached.');});-it('should work inside closed shadow root', async ({ page, server, browserName }) => {+it('FR-018 should work inside closed shadow root', async ({ page, server, browserName }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<div id=framecontainer>@@ -76,7 +76,7 @@ it('should work inside closed shadow root', async ({ page, server, browserName }expect(await element.getAttribute('name')).toBe('myframe');});-it('should work inside declarative shadow root', async ({ page, server, browserName }) => {+it('FR-019 should work inside declarative shadow root', async ({ page, server, browserName }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<div>diff --git a/tests/page/frame-goto.spec.ts b/tests/page/frame-goto.spec.tsindex 0b737d1491..084b5d3528 100644--- a/tests/page/frame-goto.spec.ts+++ b/tests/page/frame-goto.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import { attachFrame } from '../config/utils';-it('should navigate subframes @smoke', async ({ page, server }) => {+it('FR-020 should navigate subframes @smoke', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');expect(page.frames()[0].url()).toContain('/frames/one-frame.html');expect(page.frames()[1].url()).toContain('/frames/frame.html');@@ -28,7 +28,7 @@ it('should navigate subframes @smoke', async ({ page, server }) => {expect(response.frame()).toBe(page.frames()[1]);});-it('should reject when frame detaches', async ({ page, server, browserName }) => {+it('FR-021 should reject when frame detaches', async ({ page, server, browserName }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');server.setRoute('/one-style.css', () => {});@@ -43,7 +43,7 @@ it('should reject when frame detaches', async ({ page, server, browserName }) =>expect(error.message.toLowerCase()).toContain('frame was detached');});-it('should continue after client redirect', async ({ page, server, isAndroid, browserName, isBidi }) => {+it('FR-022 should continue after client redirect', async ({ page, server, isAndroid, browserName, isBidi }) => {it.fixme(isAndroid);it.fixme(browserName === 'firefox' && !isBidi, 'script.js is requested before navigationCommitted arrives');@@ -54,7 +54,7 @@ it('should continue after client redirect', async ({ page, server, isAndroid, brexpect(error.message).toContain(`navigating to "${url}", waiting until "networkidle"`);});-it('should return matching responses', async ({ page, server }) => {+it('FR-023 should return matching responses', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);// Attach three frames.const frames = [diff --git a/tests/page/frame-hierarchy.spec.ts b/tests/page/frame-hierarchy.spec.tsindex 1b072f491a..5fa4d22857 100644--- a/tests/page/frame-hierarchy.spec.ts+++ b/tests/page/frame-hierarchy.spec.ts@@ -35,7 +35,7 @@ function dumpFrames(frame: Frame, indentation: string = ''): string[] {return result;}-it('should handle nested frames @smoke', async ({ page, server, isAndroid, isBidi }) => {+it('FR-024 should handle nested frames @smoke', async ({ page, server, isAndroid, isBidi }) => {it.skip(isAndroid, 'No cross-process on Android');it.skip(isBidi, 'frame.name() is racy with BiDi');@@ -49,7 +49,7 @@ it('should handle nested frames @smoke', async ({ page, server, isAndroid, isBid]);});-it('should send events when frames are manipulated dynamically', async ({ page, server }) => {+it('FR-025 should send events when frames are manipulated dynamically', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);// validate frameattached eventsconst attachedFrames = [];@@ -77,7 +77,7 @@ it('should send events when frames are manipulated dynamically', async ({ page,expect(detachedFrames[0].isDetached()).toBe(true);});-it('should send "framenavigated" when navigating on anchor URLs', async ({ page, server }) => {+it('FR-026 should send "framenavigated" when navigating on anchor URLs', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await Promise.all([page.goto(server.EMPTY_PAGE + '#foo'),@@ -86,14 +86,14 @@ it('should send "framenavigated" when navigating on anchor URLs', async ({ page,expect(page.url()).toBe(server.EMPTY_PAGE + '#foo');});-it('should persist mainFrame on cross-process navigation', async ({ page, server }) => {+it('FR-027 should persist mainFrame on cross-process navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const mainFrame = page.mainFrame();await page.goto(server.CROSS_PROCESS_PREFIX + '/empty.html');expect(page.mainFrame() === mainFrame).toBeTruthy();});-it('should not send attach/detach events for main frame', async ({ page, server }) => {+it('FR-028 should not send attach/detach events for main frame', async ({ page, server }) => {let hasEvents = false;page.on('frameattached', frame => hasEvents = true);page.on('framedetached', frame => hasEvents = true);@@ -101,7 +101,7 @@ it('should not send attach/detach events for main frame', async ({ page, serverexpect(hasEvents).toBe(false);});-it('should detach child frames on navigation', async ({ page, server }) => {+it('FR-029 should detach child frames on navigation', async ({ page, server }) => {let attachedFrames = [];let detachedFrames = [];let navigatedFrames = [];@@ -122,7 +122,7 @@ it('should detach child frames on navigation', async ({ page, server }) => {expect(navigatedFrames.length).toBe(1);});-it('should support framesets', async ({ page, server }) => {+it('FR-030 should support framesets', async ({ page, server }) => {let attachedFrames = [];let detachedFrames = [];let navigatedFrames = [];@@ -143,7 +143,7 @@ it('should support framesets', async ({ page, server }) => {expect(navigatedFrames.length).toBe(1);});-it('should report frame from-inside shadow DOM', async ({ page, server }) => {+it('FR-031 should report frame from-inside shadow DOM', async ({ page, server }) => {await page.goto(server.PREFIX + '/shadow.html');await page.evaluate(async url => {const frame = document.createElement('iframe');@@ -155,7 +155,7 @@ it('should report frame from-inside shadow DOM', async ({ page, server }) => {expect(page.frames()[1].url()).toBe(server.EMPTY_PAGE);});-it('should report frame.name()', async ({ page, server, isBidi }) => {+it('FR-032 should report frame.name()', async ({ page, server, isBidi }) => {it.skip(isBidi, 'frame.name() is racy with BiDi');await attachFrame(page, 'theFrameId', server.EMPTY_PAGE);@@ -171,7 +171,7 @@ it('should report frame.name()', async ({ page, server, isBidi }) => {expect(page.frames()[2].name()).toBe('theFrameName');});-it('should report frame.parent()', async ({ page, server }) => {+it('FR-033 should report frame.parent()', async ({ page, server }) => {await attachFrame(page, 'frame1', server.EMPTY_PAGE);await attachFrame(page, 'frame2', server.EMPTY_PAGE);expect(page.frames()[0].parentFrame()).toBe(null);@@ -179,7 +179,7 @@ it('should report frame.parent()', async ({ page, server }) => {expect(page.frames()[2].parentFrame()).toBe(page.mainFrame());});-it('should report different frame instance when frame re-attaches', async ({ page, server }) => {+it('FR-034 should report different frame instance when frame re-attaches', async ({ page, server }) => {const frame1 = await attachFrame(page, 'frame1', server.EMPTY_PAGE);await page.evaluate(() => {@@ -195,7 +195,7 @@ it('should report different frame instance when frame re-attaches', async ({ pagexpect(frame1).not.toBe(frame2);});-it('should refuse to display x-frame-options:deny iframe', async ({ page, server, browserName }) => {+it('FR-035 should refuse to display x-frame-options:deny iframe', async ({ page, server, browserName }) => {it.skip(browserName === 'firefox');server.setRoute('/x-frame-options-deny.html', async (req, res) => {@@ -214,7 +214,7 @@ it('should refuse to display x-frame-options:deny iframe', async ({ page, serverexpect(await refusalText).toMatch(/Refused to display .* in a frame because it set 'X-Frame-Options' to 'deny'./i);});-it('should return frame.page()', async ({ page, server }) => {+it('FR-036 should return frame.page()', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');expect(page.mainFrame().page()).toBe(page);expect(page.mainFrame().childFrames()[0].page()).toBe(page);diff --git a/tests/page/interception.spec.ts b/tests/page/interception.spec.tsindex 7bbce34b61..206abb5b4b 100644--- a/tests/page/interception.spec.ts+++ b/tests/page/interception.spec.ts@@ -21,7 +21,7 @@ import vm from 'vm';const { globToRegexPattern, urlMatches } = iso;-it('should work with navigation @smoke', async ({ page, server }) => {+it('RO-151 should work with navigation @smoke', async ({ page, server }) => {const requests = new Map();await page.route('**/*', route => {requests.set(route.request().url().split('/').pop(), route.request());@@ -35,7 +35,7 @@ it('should work with navigation @smoke', async ({ page, server }) => {expect(requests.get('style.css').isNavigationRequest()).toBe(false);});-it('should intercept after a service worker', async ({ page, server, browserName, isAndroid, isBidi }) => {+it('RO-152 should intercept after a service worker', async ({ page, server, browserName, isAndroid, isBidi }) => {it.skip(isAndroid);await page.goto(server.PREFIX + '/serviceworkers/fetchdummy/sw.html');@@ -72,7 +72,7 @@ it('should intercept after a service worker', async ({ page, server, browserName}});-it('should work with glob', async () => {+it('RO-153 should work with glob', async () => {function globToRegex(glob: string): RegExp {return new RegExp(globToRegexPattern(glob));}@@ -180,7 +180,7 @@ it('should work with glob', async () => {}});-it('should throw on unbalanced glob braces', async () => {+it('RO-154 should throw on unbalanced glob braces', async () => {expect(() => globToRegexPattern('{foo')).toThrow(`Invalid glob pattern "{foo": unmatched '{'`);expect(() => globToRegexPattern('}foo')).toThrow(`Invalid glob pattern "}foo": unmatched '}'`);expect(() => globToRegexPattern('http://*/foo{')).toThrow(`unmatched '{'`);@@ -192,11 +192,11 @@ it('should throw on unbalanced glob braces', async () => {expect(() => globToRegexPattern('foo\\}')).not.toThrow();});-it('should throw on page.route with invalid glob', async ({ page }) => {+it('RO-155 should throw on page.route with invalid glob', async ({ page }) => {await expect(page.route('http://*/foo{', route => route.continue())).rejects.toThrow(`unmatched '{'`);});-it('should intercept by glob', async function({ page, server, isAndroid }) {+it('RO-156 should intercept by glob', async function({ page, server, isAndroid }) {it.skip(isAndroid);await page.goto(server.EMPTY_PAGE);@@ -210,7 +210,7 @@ it('should intercept by glob', async function({ page, server, isAndroid }) {expect(result).toBe('intercepted');});-it('should intercept network activity from worker', async function({ page, server, isAndroid }) {+it('RO-157 should intercept network activity from worker', async function({ page, server, isAndroid }) {it.skip(isAndroid);await page.goto(server.EMPTY_PAGE);@@ -231,7 +231,7 @@ it('should intercept network activity from worker', async function({ page, serveexpect(msg.text()).toBe('intercepted');});-it('should intercept worker requests when enabled after worker creation', {+it('RO-158 should intercept worker requests when enabled after worker creation', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32355' }}, async ({ page, server, isAndroid, browserName, browserMajorVersion }) => {it.skip(isAndroid);@@ -264,7 +264,7 @@ it('should intercept worker requests when enabled after worker creation', {expect(msg.text()).toBe('intercepted');});-it('should intercept network activity from worker 2', {+it('RO-159 should intercept network activity from worker 2', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31747' }}, async ({ page, server, isAndroid }) => {it.skip(isAndroid);@@ -284,7 +284,7 @@ it('should intercept network activity from worker 2', {expect(msg.text()).toBe('intercepted');});-it('should work with regular expression passed from a different context', async ({ page, server }) => {+it('RO-160 should work with regular expression passed from a different context', async ({ page, server }) => {const ctx = vm.createContext();const regexp = vm.runInContext('new RegExp("empty\\.html")', ctx);let intercepted = false;@@ -308,7 +308,7 @@ it('should work with regular expression passed from a different context', asyncexpect(intercepted).toBe(true);});-it('should intercept every request matching a global regexp', async ({ page, server }) => {+it('RO-161 should intercept every request matching a global regexp', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let intercepted = 0;await page.route(/\/intercept-me/g, async route => {@@ -321,7 +321,7 @@ it('should intercept every request matching a global regexp', async ({ page, serexpect(intercepted).toBe(3);});-it('should not break remote worker importScripts', async ({ page, server }) => {+it('RO-162 should not break remote worker importScripts', async ({ page, server }) => {await page.route('**', async route => {await route.continue();});@@ -329,7 +329,7 @@ it('should not break remote worker importScripts', async ({ page, server }) => {await page.waitForSelector("#status:has-text('finished')");});-it('should disable memory cache when intercepting', async ({ page, server }) => {+it('RO-163 should disable memory cache when intercepting', async ({ page, server }) => {let interceted = 0;await page.route('**/page.html', route => {++interceted;@@ -347,7 +347,7 @@ it('should disable memory cache when intercepting', async ({ page, server }) =>expect(interceted).toBe(2);});-it('should intercept blob url requests', async function({ page, server, browserName }) {+it('RO-164 should intercept blob url requests', async function({ page, server, browserName }) {it.skip(browserName !== 'webkit');await page.goto(server.EMPTY_PAGE);await page.route('**/*', route => {diff --git a/tests/page/jshandle-as-element.spec.ts b/tests/page/jshandle-as-element.spec.tsindex 1f37f8b633..9109954bad 100644--- a/tests/page/jshandle-as-element.spec.ts+++ b/tests/page/jshandle-as-element.spec.ts@@ -17,19 +17,19 @@import { test, expect } from './pageTest';-test('should work @smoke', async ({ page }) => {+test('JH-001 should work @smoke', async ({ page }) => {const aHandle = await page.evaluateHandle(() => document.body);const element = aHandle.asElement();expect(element).toBeTruthy();});-test('should return null for non-elements', async ({ page }) => {+test('JH-002 should return null for non-elements', async ({ page }) => {const aHandle = await page.evaluateHandle(() => 2);const element = aHandle.asElement();expect(element).toBeFalsy();});-test('should return ElementHandle for TextNodes', async ({ page }) => {+test('JH-003 should return ElementHandle for TextNodes', async ({ page }) => {await page.setContent('<div>ee!</div>');const aHandle = await page.evaluateHandle(() => document.querySelector('div').firstChild);const element = aHandle.asElement();@@ -37,7 +37,7 @@ test('should return ElementHandle for TextNodes', async ({ page }) => {expect(await page.evaluate(e => e.nodeType === Node.TEXT_NODE, element)).toBeTruthy();});-test('should work with nullified Node', async ({ page }) => {+test('JH-004 should work with nullified Node', async ({ page }) => {await page.setContent('<section>test</section>');await page.evaluate('delete Node');const handle = await page.evaluateHandle(() => document.querySelector('section'));diff --git a/tests/page/jshandle-evaluate.spec.ts b/tests/page/jshandle-evaluate.spec.tsindex bf58dea913..75e894de05 100644--- a/tests/page/jshandle-evaluate.spec.ts+++ b/tests/page/jshandle-evaluate.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should work with function @smoke', async ({ page }) => {+it('JH-005 should work with function @smoke', async ({ page }) => {const windowHandle = await page.evaluateHandle(() => {window['foo'] = [1, 2];return window;@@ -25,7 +25,7 @@ it('should work with function @smoke', async ({ page }) => {expect(await windowHandle.evaluate(w => w['foo'])).toEqual([1, 2]);});-it('should work with expression', async ({ page }) => {+it('JH-006 should work with expression', async ({ page }) => {const windowHandle = await page.evaluateHandle(() => {window['foo'] = [1, 2];return window;diff --git a/tests/page/jshandle-json-value.spec.ts b/tests/page/jshandle-json-value.spec.tsindex 53ceb74702..5eca338aec 100644--- a/tests/page/jshandle-json-value.spec.ts+++ b/tests/page/jshandle-json-value.spec.ts@@ -17,19 +17,19 @@import { test as it, expect } from './pageTest';-it('should work @smoke', async ({ page }) => {+it('JH-007 should work @smoke', async ({ page }) => {const aHandle = await page.evaluateHandle(() => ({ foo: 'bar' }));const json = await aHandle.jsonValue();expect(json).toEqual({ foo: 'bar' });});-it('should work with dates', async ({ page }) => {+it('JH-008 should work with dates', async ({ page }) => {const dateHandle = await page.evaluateHandle(() => new Date('2017-09-26T00:00:00.000Z'));const date = await dateHandle.jsonValue();expect(date.toJSON()).toBe('2017-09-26T00:00:00.000Z');});-it('should handle circular objects', async ({ page }) => {+it('JH-009 should handle circular objects', async ({ page }) => {const handle = await page.evaluateHandle('const a = {}; a.b = a; a');const a: any = {};a.b = a;diff --git a/tests/page/jshandle-properties.spec.ts b/tests/page/jshandle-properties.spec.tsindex 8819cc7704..4c88064866 100644--- a/tests/page/jshandle-properties.spec.ts+++ b/tests/page/jshandle-properties.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import type { ElementHandle } from 'playwright-core';-it('should work @smoke', async ({ page }) => {+it('JH-010 should work @smoke', async ({ page }) => {const aHandle = await page.evaluateHandle(() => ({one: 1,two: 2,@@ -28,7 +28,7 @@ it('should work @smoke', async ({ page }) => {expect(await twoHandle.jsonValue()).toEqual(2);});-it('should work with undefined, null, and empty', async ({ page }) => {+it('JH-011 should work with undefined, null, and empty', async ({ page }) => {const aHandle = await page.evaluateHandle(() => ({undefined: undefined,null: null,@@ -41,7 +41,7 @@ it('should work with undefined, null, and empty', async ({ page }) => {expect(String(await emptyhandle.jsonValue())).toEqual('undefined');});-it('should work with unserializable values', async ({ page }) => {+it('JH-012 should work with unserializable values', async ({ page }) => {const aHandle = await page.evaluateHandle(() => ({infinity: Infinity,nInfinity: -Infinity,@@ -58,7 +58,7 @@ it('should work with unserializable values', async ({ page }) => {expect(await nzeroHandle.jsonValue()).toEqual(-0);});-it('getProperties should work', async ({ page }) => {+it('JH-013 getProperties should work', async ({ page }) => {const aHandle = await page.evaluateHandle(() => ({foo: 'bar'}));@@ -68,13 +68,13 @@ it('getProperties should work', async ({ page }) => {expect(await foo.jsonValue()).toBe('bar');});-it('getProperties should return empty map for non-objects', async ({ page }) => {+it('JH-014 getProperties should return empty map for non-objects', async ({ page }) => {const aHandle = await page.evaluateHandle(() => 123);const properties = await aHandle.getProperties();expect(properties.size).toBe(0);});-it('getProperties should return properties inhertied from super class', async ({ page }) => {+it('JH-015 getProperties should return properties inhertied from super class', async ({ page }) => {const aHandle = await page.evaluateHandle(() => {class A {a: string;@@ -96,7 +96,7 @@ it('getProperties should return properties inhertied from super class', async ({expect(await properties.get('b').jsonValue()).toBe('2');});-it('getProperties should return own enumerable properties only', {+it('JH-016 getProperties should return own enumerable properties only', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42651' },}, async ({ page }) => {const aHandle = await page.evaluateHandle(() => {@@ -116,7 +116,7 @@ it('getProperties should return own enumerable properties only', {expect([...(await collection.getProperties()).keys()]).toEqual(['0', '1']);});-it('getProperties should work with elements', async ({ page }) => {+it('JH-017 getProperties should work with elements', async ({ page }) => {await page.setContent(`<div>Hello</div>`);const handle = await page.evaluateHandle(() => ({ body: document.body }));const properties = await handle.getProperties();diff --git a/tests/page/jshandle-to-string.spec.ts b/tests/page/jshandle-to-string.spec.tsindex cd3eeb3480..8a84f31b61 100644--- a/tests/page/jshandle-to-string.spec.ts+++ b/tests/page/jshandle-to-string.spec.ts@@ -17,14 +17,14 @@import { test as it, expect } from './pageTest';-it('should work for primitives', async ({ page }) => {+it('JH-018 should work for primitives', async ({ page }) => {const numberHandle = await page.evaluateHandle(() => 2);expect(numberHandle.toString()).toBe('2');const stringHandle = await page.evaluateHandle(() => 'a');expect(stringHandle.toString()).toBe('a');});-it('should work for complicated objects', async ({ page, browserName, channel }) => {+it('JH-019 should work for complicated objects', async ({ page, browserName, channel }) => {const aHandle = await page.evaluateHandle(() => window);if (browserName !== 'firefox' || channel?.startsWith('moz-firefox'))expect(aHandle.toString()).toBe('Window');@@ -32,7 +32,7 @@ it('should work for complicated objects', async ({ page, browserName, channel })expect(aHandle.toString()).toBe('JSHandle@object');});-it('should beautifully render sparse arrays', async ({ page, browserName }) => {+it('JH-020 should beautifully render sparse arrays', async ({ page, browserName }) => {const [msg] = await Promise.all([page.waitForEvent('console'),page.evaluateHandle(() => {@@ -49,14 +49,14 @@ it('should beautifully render sparse arrays', async ({ page, browserName }) => {expect(msg.text()).toBe('[empty, 1, empty x 8, 2, empty x 89, 3]');});-it('should work for promises', async ({ page }) => {+it('JH-021 should work for promises', async ({ page }) => {// wrap the promise in an object, otherwise we will await.const wrapperHandle = await page.evaluateHandle(() => ({ b: Promise.resolve(123) }));const bHandle = await wrapperHandle.getProperty('b');expect(bHandle.toString()).toBe('Promise');});-it('should work with different subtypes @smoke', async ({ page, browserName, channel }) => {+it('JH-022 should work with different subtypes @smoke', async ({ page, browserName, channel }) => {const isBiDi = channel?.startsWith('bidi-chrom') || channel?.startsWith('moz-firefox');if (!isBiDi)expect((await page.evaluateHandle('(function(){})')).toString()).toContain('function');@@ -79,7 +79,7 @@ it('should work with different subtypes @smoke', async ({ page, browserName, chaexpect((await page.evaluateHandle('new Proxy({}, {})')).toString()).toBe((browserName === 'chromium' && !isBiDi) ? 'Proxy(Object)' : 'Proxy');});-it('should work with previewable subtypes', async ({ page, browserName, channel }) => {+it('JH-023 should work with previewable subtypes', async ({ page, browserName, channel }) => {const isBiDi = channel?.startsWith('bidi-chrom') || channel?.startsWith('moz-firefox');it.skip(browserName === 'firefox' && !isBiDi);expect((await page.evaluateHandle('/foo/')).toString()).toBe('/foo/');diff --git a/tests/page/locator-any-frame.spec.ts b/tests/page/locator-any-frame.spec.tsindex 847aa72b83..3be17978f6 100644--- a/tests/page/locator-any-frame.spec.ts+++ b/tests/page/locator-any-frame.spec.ts@@ -33,7 +33,7 @@ async function waitForAllFrames(page: Page, frameCount: number, selector: string}}-it('should click a button inside an iframe', async ({ page, server }) => {+it('LO-001 should click a button inside an iframe', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<button onclick="window.__clicked = true">Click me</button>`);await page.goto(server.EMPTY_PAGE);@@ -41,7 +41,7 @@ it('should click a button inside an iframe', async ({ page, server }) => {expect(await page.frames()[1].evaluate(() => (window as any).__clicked)).toBe(true);});-it('should click a button in the main frame', async ({ page, server }) => {+it('LO-002 should click a button in the main frame', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><button onclick="window.__clicked = true">Click me</button>`);await routePage(page, 'a.html', `<div>No buttons here</div>`);await page.goto(server.EMPTY_PAGE);@@ -49,7 +49,7 @@ it('should click a button in the main frame', async ({ page, server }) => {expect(await page.evaluate(() => (window as any).__clicked)).toBe(true);});-it('should fail click when elements match in multiple frames', async ({ page, server }) => {+it('LO-003 should fail click when elements match in multiple frames', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><iframe src="b.html"></iframe>`);await routePage(page, 'a.html', `<button>one</button>`);await routePage(page, 'b.html', `<button>two</button>`);@@ -60,7 +60,7 @@ it('should fail click when elements match in multiple frames', async ({ page, seexpect(error.message).toContain(`waiting for frameLocator().locator('button')`);});-it('should fail click upon strict mode violation inside a single frame', async ({ page, server }) => {+it('LO-004 should fail click upon strict mode violation inside a single frame', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<button>one</button><button>two</button>`);await page.goto(server.EMPTY_PAGE);@@ -70,7 +70,7 @@ it('should fail click upon strict mode violation inside a single frame', async (expect(error.message).toContain(`waiting for frameLocator().locator('button')`);});-it('should time out on click when there are no matches', async ({ page, server }) => {+it('LO-005 should time out on click when there are no matches', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div>Nothing here</div>`);await page.goto(server.EMPTY_PAGE);@@ -79,7 +79,7 @@ it('should time out on click when there are no matches', async ({ page, server }expect(error.message).toContain(`waiting for frameLocator().locator('button')`);});-it('should count elements in a single frame', async ({ page, server }) => {+it('LO-006 should count elements in a single frame', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div>1</div><div>2</div><div>3</div>`);await page.goto(server.EMPTY_PAGE);@@ -88,7 +88,7 @@ it('should count elements in a single frame', async ({ page, server }) => {expect(await page.frameLocator().locator('button').count()).toBe(0);});-it('should fail count when elements match in multiple frames', async ({ page, server }) => {+it('LO-007 should fail count when elements match in multiple frames', async ({ page, server }) => {await routePage(page, 'empty.html', `<div>main</div><iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div>child</div>`);await page.goto(server.EMPTY_PAGE);@@ -97,7 +97,7 @@ it('should fail count when elements match in multiple frames', async ({ page, seexpect(error.message).toContain('frameLocator() matched elements in multiple frames');});-it('should support toHaveCount', async ({ page, server }) => {+it('LO-008 should support toHaveCount', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<span>one</span><span>two</span>`);await page.goto(server.EMPTY_PAGE);@@ -105,7 +105,7 @@ it('should support toHaveCount', async ({ page, server }) => {await expect(page.frameLocator().locator('button')).toHaveCount(0);});-it('should wait for a frame to appear with toHaveCount', async ({ page, server }) => {+it('LO-009 should wait for a frame to appear with toHaveCount', async ({ page, server }) => {await routePage(page, 'empty.html', `<div>No frames yet</div>`);await routePage(page, 'a.html', `<span>one</span><span>two</span>`);await page.goto(server.EMPTY_PAGE);@@ -119,7 +119,7 @@ it('should wait for a frame to appear with toHaveCount', async ({ page, server }await expect(page.frameLocator().locator('span')).toHaveCount(2);});-it('should fail toHaveCount when elements match in multiple frames', async ({ page, server }) => {+it('LO-010 should fail toHaveCount when elements match in multiple frames', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><iframe src="b.html"></iframe>`);await routePage(page, 'a.html', `<span>one</span>`);await routePage(page, 'b.html', `<span>two</span>`);@@ -130,21 +130,21 @@ it('should fail toHaveCount when elements match in multiple frames', async ({ paexpect(error.message).toContain(`Locator: frameLocator().locator('span')`);});-it('should support toHaveText', async ({ page, server }) => {+it('LO-011 should support toHaveText', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div>Hello iframe</div>`);await page.goto(server.EMPTY_PAGE);await expect(page.frameLocator().locator('div')).toHaveText('Hello iframe');});-it('should support toHaveText with an array', async ({ page, server }) => {+it('LO-012 should support toHaveText with an array', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<span>one</span><span>two</span>`);await page.goto(server.EMPTY_PAGE);await expect(page.frameLocator().locator('span')).toHaveText(['one', 'two']);});-it('should fail toHaveText when elements match in multiple frames', async ({ page, server }) => {+it('LO-013 should fail toHaveText when elements match in multiple frames', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><iframe src="b.html"></iframe>`);await routePage(page, 'a.html', `<div>one</div>`);await routePage(page, 'b.html', `<div>two</div>`);@@ -155,7 +155,7 @@ it('should fail toHaveText when elements match in multiple frames', async ({ pagexpect(error.message).toContain(`Locator: frameLocator().locator('div')`);});-it('should fail toHaveText with an array when elements match in multiple frames', async ({ page, server }) => {+it('LO-014 should fail toHaveText with an array when elements match in multiple frames', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><iframe src="b.html"></iframe>`);await routePage(page, 'a.html', `<span>one</span>`);await routePage(page, 'b.html', `<span>two</span>`);@@ -165,7 +165,7 @@ it('should fail toHaveText with an array when elements match in multiple frames'expect(error.message).toContain('frameLocator() matched elements in multiple frames');});-it('should fail toHaveText upon strict mode violation inside a single frame', async ({ page, server }) => {+it('LO-015 should fail toHaveText upon strict mode violation inside a single frame', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div>one</div><div>two</div>`);await page.goto(server.EMPTY_PAGE);@@ -175,14 +175,14 @@ it('should fail toHaveText upon strict mode violation inside a single frame', asexpect(error.message).toContain(`Locator: frameLocator().locator('div')`);});-it('should support evaluate', async ({ page, server }) => {+it('LO-016 should support evaluate', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div data-foo="bar">Hello</div>`);await page.goto(server.EMPTY_PAGE);expect(await page.frameLocator().locator('div').evaluate(e => e.getAttribute('data-foo'))).toBe('bar');});-it('should fail evaluate when elements match in multiple frames', async ({ page, server }) => {+it('LO-017 should fail evaluate when elements match in multiple frames', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><iframe src="b.html"></iframe>`);await routePage(page, 'a.html', `<div>one</div>`);await routePage(page, 'b.html', `<div>two</div>`);@@ -192,7 +192,7 @@ it('should fail evaluate when elements match in multiple frames', async ({ page,expect(error.message).toContain('frameLocator() matched elements in multiple frames');});-it('should time out on evaluate when there are no matches', async ({ page, server }) => {+it('LO-018 should time out on evaluate when there are no matches', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div>Nothing here</div>`);await page.goto(server.EMPTY_PAGE);@@ -201,7 +201,7 @@ it('should time out on evaluate when there are no matches', async ({ page, serveexpect(error.message).toContain(`waiting for frameLocator().locator('button')`);});-it('should support evaluateAll', async ({ page, server }) => {+it('LO-019 should support evaluateAll', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<span>one</span><span>two</span>`);await page.goto(server.EMPTY_PAGE);@@ -210,7 +210,7 @@ it('should support evaluateAll', async ({ page, server }) => {expect(await page.frameLocator().locator('button').evaluateAll(els => els.length)).toBe(0);});-it('should fail evaluateAll when elements match in multiple frames', async ({ page, server }) => {+it('LO-020 should fail evaluateAll when elements match in multiple frames', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><iframe src="b.html"></iframe>`);await routePage(page, 'a.html', `<span>one</span>`);await routePage(page, 'b.html', `<span>two</span>`);@@ -220,14 +220,14 @@ it('should fail evaluateAll when elements match in multiple frames', async ({ paexpect(error.message).toContain('frameLocator() matched elements in multiple frames');});-it('should support hasText filter', async ({ page, server }) => {+it('LO-021 should support hasText filter', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div>foo</div><div>bar</div>`);await page.goto(server.EMPTY_PAGE);await expect(page.frameLocator().locator('div', { hasText: 'bar' })).toHaveText('bar');});-it('should support first/last/nth', async ({ page, server }) => {+it('LO-022 should support first/last/nth', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<span>one</span><span>two</span><span>three</span>`);await page.goto(server.EMPTY_PAGE);@@ -237,28 +237,28 @@ it('should support first/last/nth', async ({ page, server }) => {await expect(page.frameLocator().locator('span').nth(1)).toHaveText('two');});-it('should support nth in the middle of the chain', async ({ page, server }) => {+it('LO-023 should support nth in the middle of the chain', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div><span>one</span></div><div><span>two</span></div>`);await page.goto(server.EMPTY_PAGE);await expect(page.frameLocator().locator('div').nth(1).locator('span')).toHaveText('two');});-it('should support composite locators', async ({ page, server }) => {+it('LO-024 should support composite locators', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div><span>foo</span></div><div><i>bar</i></div>`);await page.goto(server.EMPTY_PAGE);await expect(page.frameLocator().locator('div', { has: page.locator('span') })).toHaveText('foo');});-it('should support capture', async ({ page, server }) => {+it('LO-025 should support capture', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div id="target"><span>hello</span></div>`);await page.goto(server.EMPTY_PAGE);await expect(page.frameLocator().locator('*css=div >> span')).toHaveAttribute('id', 'target');});-it('should find a frame inside the scope', async ({ page, server }) => {+it('LO-026 should find a frame inside the scope', async ({ page, server }) => {await routePage(page, 'empty.html', `<section><iframe src="a.html"></iframe></section><button>outside</button>`);await routePage(page, 'a.html', `<button>inside</button>`);await page.goto(server.EMPTY_PAGE);@@ -269,7 +269,7 @@ it('should find a frame inside the scope', async ({ page, server }) => {expect(await buttons[0].textContent()).toBe('inside');});-it('should find a nested frame inside the scope', async ({ page, server }) => {+it('LO-027 should find a nested frame inside the scope', async ({ page, server }) => {await routePage(page, 'empty.html', `<section><iframe src="a.html"></iframe></section><iframe src="b.html"></iframe>`);await routePage(page, 'a.html', `<iframe src="c.html"></iframe>`);await routePage(page, 'b.html', `<button>outside</button>`);@@ -286,7 +286,7 @@ it('should find a nested frame inside the scope', async ({ page, server }) => {expect(await buttons[0].textContent()).toBe('deep');});-it('should find a frame inside the scope while another iframe is stalled', async ({ page, server }) => {+it('LO-028 should find a frame inside the scope while another iframe is stalled', async ({ page, server }) => {await routePage(page, 'empty.html', `<section><iframe src="a.html"></iframe><iframe src="stall.html"></iframe></section>`);await routePage(page, 'a.html', `<button>inside</button>`);await page.route('**/stall.html', () => {});@@ -298,7 +298,7 @@ it('should find a frame inside the scope while another iframe is stalled', asyncexpect(await buttons[0].textContent()).toBe('inside');});-it('should respect the scope without a frame inside the scope', async ({ page, server }) => {+it('LO-029 should respect the scope without a frame inside the scope', async ({ page, server }) => {await routePage(page, 'empty.html', `<section><button>target</button></section><iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<button>in-frame</button>`);await page.goto(server.EMPTY_PAGE);@@ -309,7 +309,7 @@ it('should respect the scope without a frame inside the scope', async ({ page, sexpect(await buttons[0].textContent()).toBe('target');});-it('should not match a chain across a frame boundary', async ({ page, server }) => {+it('LO-030 should not match a chain across a frame boundary', async ({ page, server }) => {await routePage(page, 'empty.html', `<section><iframe src="a.html"></iframe></section>`);await routePage(page, 'a.html', `<iframe src="b.html"></iframe>`);await routePage(page, 'b.html', `<button>deep</button>`);@@ -322,7 +322,7 @@ it('should not match a chain across a frame boundary', async ({ page, server })await expect(page.frameLocator().locator('button')).toHaveText('deep');});-it('should only search frames inside the starting frame', async ({ page, server }) => {+it('LO-031 should only search frames inside the starting frame', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><button>main</button>`);await routePage(page, 'a.html', `<iframe src="b.html"></iframe>`);await routePage(page, 'b.html', `<button>deep</button>`);@@ -334,7 +334,7 @@ it('should only search frames inside the starting frame', async ({ page, serverawait expect(middleFrame.frameLocator().locator('button')).toHaveText('deep');});-it('should enter a frame found in a nested frame', async ({ page, server }) => {+it('LO-032 should enter a frame found in a nested frame', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><button>main</button>`);await routePage(page, 'a.html', `<iframe id="target" src="b.html"></iframe><button>decoy</button>`);await routePage(page, 'b.html', `<button>inside</button>`);@@ -342,7 +342,7 @@ it('should enter a frame found in a nested frame', async ({ page, server }) => {await expect(page.frameLocator().frameLocator('#target').locator('button')).toHaveText('inside');});-it('should click inside an entered frame', async ({ page, server }) => {+it('LO-033 should click inside an entered frame', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<iframe id="target" src="b.html"></iframe><button>Click me</button>`);await routePage(page, 'b.html', `<button onclick="window.__clicked = true">Click me</button>`);@@ -352,7 +352,7 @@ it('should click inside an entered frame', async ({ page, server }) => {expect(await frame.evaluate(() => (window as any).__clicked)).toBe(true);});-it('should not search nested frames after entering a frame', async ({ page, server }) => {+it('LO-034 should not search nested frames after entering a frame', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe id="target" src="a.html"></iframe><button>main</button>`);await routePage(page, 'a.html', `<iframe src="b.html"></iframe>`);await routePage(page, 'b.html', `<button>deep</button>`);@@ -362,7 +362,7 @@ it('should not search nested frames after entering a frame', async ({ page, servawait expect(page.frameLocator().frameLocator('#target').locator('button')).toHaveCount(0);});-it('should support two frameLocators', async ({ page, server }) => {+it('LO-035 should support two frameLocators', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<iframe id="x" src="b.html"></iframe>`);await routePage(page, 'b.html', `<iframe id="y" src="c.html"></iframe><button>decoy</button>`);@@ -371,7 +371,7 @@ it('should support two frameLocators', async ({ page, server }) => {await expect(page.frameLocator().frameLocator('#x').frameLocator('#y').locator('button')).toHaveText('bottom');});-it('should support locator before frameLocator', async ({ page, server }) => {+it('LO-036 should support locator before frameLocator', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<section><iframe src="b.html"></iframe></section><iframe src="c.html"></iframe>`);await routePage(page, 'b.html', `<button>in-section</button>`);@@ -380,7 +380,7 @@ it('should support locator before frameLocator', async ({ page, server }) => {await expect(page.frameLocator().locator('section').frameLocator('iframe').locator('button')).toHaveText('in-section');});-it('should support owner of a frameLocator', async ({ page, server }) => {+it('LO-037 should support owner of a frameLocator', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<iframe id="target" src="b.html"></iframe>`);await routePage(page, 'b.html', `<button>inside</button>`);@@ -388,7 +388,7 @@ it('should support owner of a frameLocator', async ({ page, server }) => {expect(await page.frameLocator().frameLocator('#target').owner().getAttribute('id')).toBe('target');});-it('should wait for the frame to enter to appear', async ({ page, server }) => {+it('LO-038 should wait for the frame to enter to appear', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div>Nothing yet</div>`);await routePage(page, 'b.html', `<button>late</button>`);@@ -405,7 +405,7 @@ it('should wait for the frame to enter to appear', async ({ page, server }) => {await expect(page.frameLocator().frameLocator('#late').locator('button')).toHaveText('late');});-it('should fail when the frame to enter matches in multiple frames', async ({ page, server }) => {+it('LO-039 should fail when the frame to enter matches in multiple frames', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><iframe src="b.html"></iframe>`);await routePage(page, 'a.html', `<iframe class="inner" src="c.html"></iframe>`);await routePage(page, 'b.html', `<iframe class="inner" src="c.html"></iframe>`);@@ -420,7 +420,7 @@ it('should fail when the frame to enter matches in multiple frames', async ({ paexpect(error.message).toContain('frameLocator() matched elements in multiple frames');});-it('should support contentFrame', async ({ page, server }) => {+it('LO-040 should support contentFrame', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<iframe id="target" src="b.html"></iframe><button>decoy</button>`);await routePage(page, 'b.html', `<button>inside</button>`);@@ -428,12 +428,12 @@ it('should support contentFrame', async ({ page, server }) => {await expect(page.frameLocator().locator('#target').contentFrame().locator('button')).toHaveText('inside');});-it('should render frameLocator() in the locator description', async ({ page }) => {+it('LO-041 should render frameLocator() in the locator description', async ({ page }) => {expect(String(page.frameLocator().frameLocator('#x').locator('button'))).toBe(`frameLocator().locator('#x').contentFrame().locator('button')`);expect(String(page.frameLocator().locator('section').frameLocator('iframe').getByText('foo'))).toBe(`frameLocator().locator('section').locator('iframe').contentFrame().getByText('foo')`);});-it('should not allow frameLocator() inside a composite locator', async ({ page, server }) => {+it('LO-042 should not allow frameLocator() inside a composite locator', async ({ page, server }) => {await routePage(page, 'empty.html', `<button>main</button><iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<a href="#">link</a>`);await page.goto(server.EMPTY_PAGE);@@ -458,7 +458,7 @@ it('should not allow frameLocator() inside a composite locator', async ({ page,expect(error5.message).toContain(`frameLocator() matched elements in multiple frames`);});-it('should support a composite locator under frameLocator()', async ({ page, server }) => {+it('LO-043 should support a composite locator under frameLocator()', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<div class="classname">first</div><button>second</button>`);await page.goto(server.EMPTY_PAGE);@@ -466,7 +466,7 @@ it('should support a composite locator under frameLocator()', async ({ page, serawait expect(page.frameLocator().locator('.classname').or(page.getByRole('button'))).toHaveText(['first', 'second']);});-it('should support a composite locator under frameLocator() and a frame locator', async ({ page, server }) => {+it('LO-044 should support a composite locator under frameLocator() and a frame locator', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<iframe id="f" src="b.html"></iframe>`);await routePage(page, 'b.html', `<div class="classname">first</div><button>second</button>`);@@ -475,18 +475,18 @@ it('should support a composite locator under frameLocator() and a frame locator'await expect(page.frameLocator().frameLocator('#f').locator('.classname').or(page.frameLocator('#f').getByRole('button'))).toHaveText(['first', 'second']);});-it('should not allow first/last/nth on frameLocator()', async ({ page }) => {+it('LO-045 should not allow first/last/nth on frameLocator()', async ({ page }) => {expect(() => page.frameLocator().first()).toThrow('Selecting the nth frame is not allowed on frameLocator()');expect(() => page.frameLocator().last()).toThrow('Selecting the nth frame is not allowed on frameLocator()');expect(() => page.frameLocator().nth(1)).toThrow('Selecting the nth frame is not allowed on frameLocator()');});-it('should not allow owner on frameLocator()', async ({ page }) => {+it('LO-046 should not allow owner on frameLocator()', async ({ page }) => {const error = await page.frameLocator().owner().count().catch(e => e);expect(error.message).toContain('Selector cannot be empty after frameLocator()');});-it('should resolve aria-ref selectors', async ({ page, server }) => {+it('LO-047 should resolve aria-ref selectors', async ({ page, server }) => {await routePage(page, 'empty.html', `<button>main</button><iframe src="a.html"></iframe>`);await routePage(page, 'a.html', `<button>inside</button>`);await page.goto(server.EMPTY_PAGE);@@ -498,7 +498,7 @@ it('should resolve aria-ref selectors', async ({ page, server }) => {await expect(page.frameLocator().locator(`aria-ref=${insideMatch![1]}`)).toHaveText('inside');});-it('should click while another iframe is stalled', async ({ page, server }) => {+it('LO-048 should click while another iframe is stalled', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><iframe src="stall.html"></iframe>`);await routePage(page, 'a.html', `<button onclick="window.__clicked = true">Click me</button>`);await page.route('**/stall.html', () => {});@@ -509,7 +509,7 @@ it('should click while another iframe is stalled', async ({ page, server }) => {expect(await frame.evaluate(() => (window as any).__clicked)).toBe(true);});-it('should support toBeVisible while another iframe is stalled', async ({ page, server }) => {+it('LO-049 should support toBeVisible while another iframe is stalled', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><iframe src="stall.html"></iframe>`);await routePage(page, 'a.html', `<button>Click me</button>`);await page.route('**/stall.html', () => {});@@ -518,7 +518,7 @@ it('should support toBeVisible while another iframe is stalled', async ({ page,await expect(page.frameLocator().locator('button')).toBeVisible();});-it('should support toHaveCount while another iframe is stalled', async ({ page, server }) => {+it('LO-050 should support toHaveCount while another iframe is stalled', async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html"></iframe><iframe src="stall.html"></iframe>`);await routePage(page, 'a.html', `<button>Click me</button>`);await page.route('**/stall.html', () => {});@@ -527,7 +527,7 @@ it('should support toHaveCount while another iframe is stalled', async ({ page,await expect(page.frameLocator().locator('button')).toHaveCount(1);});-it('should treat elements inside hidden iframe as hidden', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42719' } }, async ({ page, server }) => {+it('LO-051 should treat elements inside hidden iframe as hidden', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42719' } }, async ({ page, server }) => {await routePage(page, 'empty.html', `<iframe src="a.html" style="visibility: hidden"></iframe>`);await routePage(page, 'a.html', `<button onclick="window.__clicked = true">Click me</button>`);await page.goto(server.EMPTY_PAGE);diff --git a/tests/page/locator-click.spec.ts b/tests/page/locator-click.spec.tsindex 7554e7f0a6..28a6c50866 100644--- a/tests/page/locator-click.spec.ts+++ b/tests/page/locator-click.spec.ts@@ -17,14 +17,14 @@import { test as it, expect } from './pageTest';-it('should work @smoke', async ({ page, server }) => {+it('LO-052 should work @smoke', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = page.locator('button');await button.click();expect(await page.evaluate(() => window['result'])).toBe('Clicked');});-it('should work with Node removed', async ({ page, server }) => {+it('LO-053 should work with Node removed', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.evaluate(() => delete window['Node']);const button = page.locator('button');@@ -32,7 +32,7 @@ it('should work with Node removed', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('Clicked');});-it('should double click the button', async ({ page, server }) => {+it('LO-054 should double click the button', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.evaluate(() => {window['double'] = false;@@ -47,14 +47,14 @@ it('should double click the button', async ({ page, server }) => {expect(await page.evaluate('result')).toBe('Clicked');});-it('should click if the target element is removed in pointerup event', async ({ page }) => {+it('LO-055 should click if the target element is removed in pointerup event', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21995' });await page.setContent(`<button id=clickme>Clickable</button>`);await page.$eval('#clickme', element => element.addEventListener('pointerup', () => element.remove(), false));await page.locator('#clickme').click();});-it('should click if the target element is removed in pointerdown event', async ({ page }) => {+it('LO-056 should click if the target element is removed in pointerdown event', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21995' });await page.setContent(`<button id=clickme>Clickable</button>`);await page.$eval('#clickme', element => element.addEventListener('pointerdown', () => element.remove(), false));diff --git a/tests/page/locator-convenience.spec.ts b/tests/page/locator-convenience.spec.tsindex 015c037781..8cdc462f29 100644--- a/tests/page/locator-convenience.spec.ts+++ b/tests/page/locator-convenience.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should have a nice preview', async ({ page, server }) => {+it('LO-057 should have a nice preview', async ({ page, server }) => {await page.goto(`${server.PREFIX}/dom.html`);const outer = page.locator('#outer');const inner = outer.locator('#inner');@@ -30,7 +30,7 @@ it('should have a nice preview', async ({ page, server }) => {expect.soft(String(check)).toBe(`locator('#check')`);});-it('getAttribute should work', async ({ page, server }) => {+it('LO-058 getAttribute should work', async ({ page, server }) => {await page.goto(`${server.PREFIX}/dom.html`);const locator = page.locator('#outer');expect(await locator.getAttribute('name')).toBe('value');@@ -39,7 +39,7 @@ it('getAttribute should work', async ({ page, server }) => {expect(await page.getAttribute('#outer', 'foo')).toBe(null);});-it('inputValue should work', async ({ page, server }) => {+it('LO-059 inputValue should work', async ({ page, server }) => {await page.goto(`${server.PREFIX}/dom.html`);await page.selectOption('#select', 'foo');@@ -58,21 +58,21 @@ it('inputValue should work', async ({ page, server }) => {expect(await locator2.inputValue().catch(e => e.message)).toContain('Node is not an <input>, <textarea> or <select> element');});-it('innerHTML should work', async ({ page, server }) => {+it('LO-060 innerHTML should work', async ({ page, server }) => {await page.goto(`${server.PREFIX}/dom.html`);const locator = page.locator('#outer');expect(await locator.innerHTML()).toBe('<div id="inner">Text,\nmore text</div>');expect(await page.innerHTML('#outer')).toBe('<div id="inner">Text,\nmore text</div>');});-it('innerText should work', async ({ page, server }) => {+it('LO-061 innerText should work', async ({ page, server }) => {await page.goto(`${server.PREFIX}/dom.html`);const locator = page.locator('#inner');expect(await locator.innerText()).toBe('Text, more text');expect(await page.innerText('#inner')).toBe('Text, more text');});-it('innerText should throw', async ({ page, server }) => {+it('LO-062 innerText should throw', async ({ page, server }) => {await page.setContent(`<svg>text</svg>`);const error1 = await page.innerText('svg').catch(e => e);expect(error1.message).toContain('Node is not an HTMLElement');@@ -81,21 +81,21 @@ it('innerText should throw', async ({ page, server }) => {expect(error2.message).toContain('Node is not an HTMLElement');});-it('innerText should produce log', async ({ page, server }) => {+it('LO-063 innerText should produce log', async ({ page, server }) => {await page.setContent(`<div>Hello</div>`);const locator = page.locator('span');const error = await locator.innerText({ timeout: 1000 }).catch(e => e);expect(error.message).toContain('waiting for locator(\'span\')');});-it('textContent should work', async ({ page, server }) => {+it('LO-064 textContent should work', async ({ page, server }) => {await page.goto(`${server.PREFIX}/dom.html`);const locator = page.locator('#inner');expect(await locator.textContent()).toBe('Text,\nmore text');expect(await page.textContent('#inner')).toBe('Text,\nmore text');});-it('isEnabled and isDisabled should work', async ({ page }) => {+it('LO-065 isEnabled and isDisabled should work', async ({ page }) => {await page.setContent(`<button disabled>button1</button><button>button2</button>@@ -118,7 +118,7 @@ it('isEnabled and isDisabled should work', async ({ page }) => {expect(await page.isDisabled(':text("button2")')).toBe(false);});-it('isEditable should work', async ({ page }) => {+it('LO-066 isEditable should work', async ({ page }) => {await page.setContent(`<input id=input1 disabled><textarea></textarea>@@ -145,7 +145,7 @@ it('isEditable should work', async ({ page }) => {expect(error.message).toContain('Element is not an <input>, <textarea>, <select> or [contenteditable] and does not have a role allowing [aria-readonly]');});-it('isChecked should work', async ({ page }) => {+it('LO-067 isChecked should work', async ({ page }) => {await page.setContent(`<input type='checkbox' checked><div>Not a checkbox</div>`);const element = page.locator('input');expect(await element.isChecked()).toBe(true);@@ -157,7 +157,7 @@ it('isChecked should work', async ({ page }) => {expect(error.message).toContain('Not a checkbox or radio button');});-it('isChecked should work for indeterminate input', async ({ page }) => {+it('LO-068 isChecked should work for indeterminate input', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/20190' });await page.setContent(`<input type="checkbox" checked>`);@@ -172,17 +172,17 @@ it('isChecked should work for indeterminate input', async ({ page }) => {await expect(page.locator('input')).not.toBeChecked();});-it('allTextContents should work', async ({ page }) => {+it('LO-069 allTextContents should work', async ({ page }) => {await page.setContent(`<div>A</div><div>B</div><div>C</div>`);expect(await page.locator('div').allTextContents()).toEqual(['A', 'B', 'C']);});-it('allInnerTexts should work', async ({ page }) => {+it('LO-070 allInnerTexts should work', async ({ page }) => {await page.setContent(`<div>A</div><div>B</div><div>C</div>`);expect(await page.locator('div').allInnerTexts()).toEqual(['A', 'B', 'C']);});-it('should return page', async ({ page, server }) => {+it('LO-071 should return page', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/two-frames.html');const outer = page.locator('#outer');expect(outer.page()).toBe(page);@@ -194,27 +194,27 @@ it('should return page', async ({ page, server }) => {expect(inFrame.page()).toBe(page);});-it('description should return null for locator without description', async ({ page }) => {+it('LO-072 description should return null for locator without description', async ({ page }) => {const locator = page.locator('button');expect(locator.description()).toBe(null);});-it('description should return description for locator with simple description', async ({ page }) => {+it('LO-073 description should return description for locator with simple description', async ({ page }) => {const locator = page.locator('button').describe('Submit button');expect(locator.description()).toBe('Submit button');});-it('description should return description with special characters', async ({ page }) => {+it('LO-074 description should return description with special characters', async ({ page }) => {const locator = page.locator('div').describe('Button with "quotes" and \'apostrophes\'');expect(locator.description()).toBe('Button with "quotes" and \'apostrophes\'');});-it('description should return description for chained locators', async ({ page }) => {+it('LO-075 description should return description for chained locators', async ({ page }) => {const locator = page.locator('form').locator('input').describe('Form input field');expect(locator.description()).toBe('Form input field');});-it('description should return description for locator with multiple describe calls', async ({ page }) => {+it('LO-076 description should return description for locator with multiple describe calls', async ({ page }) => {const locator1 = page.locator('foo').describe('First description');expect(locator1.description()).toBe('First description');const locator2 = locator1.locator('button').describe('Second description');@@ -223,13 +223,13 @@ it('description should return description for locator with multiple describe calexpect(locator3.description()).toBe(null);});-it('toString() returns formatted locator', async ({ page }) => {+it('LO-077 toString() returns formatted locator', async ({ page }) => {const locator = page.getByRole('button', { name: 'Submit' });expect(locator.toString()).toBe(`getByRole('button', { name: 'Submit' })`);expect(locator.description()).toBe(null);});-it('toString() prefers description', async ({ page }) => {+it('LO-078 toString() prefers description', async ({ page }) => {const locator = page.getByRole('button', { name: 'Submit' }).describe('Submit button');expect(locator.toString()).toBe(`Submit button`);expect(locator.toString()).toBe(locator.description());diff --git a/tests/page/locator-element-handle.spec.ts b/tests/page/locator-element-handle.spec.tsindex 68ff979266..d98c02be60 100644--- a/tests/page/locator-element-handle.spec.ts+++ b/tests/page/locator-element-handle.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should query existing element @smoke', async ({ page, server }) => {+it('LO-079 should query existing element @smoke', async ({ page, server }) => {await page.goto(server.PREFIX + '/playground.html');await page.setContent('<html><body><div class="second"><div class="inner">A</div></div></body></html>');const html = page.locator('html');@@ -27,7 +27,7 @@ it('should query existing element @smoke', async ({ page, server }) => {expect(content).toBe('A');});-it('should query existing elements', async ({ page, server }) => {+it('LO-080 should query existing elements', async ({ page, server }) => {await page.setContent('<html><body><div>A</div><br/><div>B</div></body></html>');const html = page.locator('html');const elements = await html.locator('div').elementHandles();@@ -36,7 +36,7 @@ it('should query existing elements', async ({ page, server }) => {expect(await Promise.all(promises)).toEqual(['A', 'B']);});-it('should return empty array for non-existing elements', async ({ page, server }) => {+it('LO-081 should return empty array for non-existing elements', async ({ page, server }) => {await page.setContent('<html><body><span>A</span><br/><span>B</span></body></html>');const html = page.locator('html');const elements = await html.locator('div').elementHandles();@@ -44,7 +44,7 @@ it('should return empty array for non-existing elements', async ({ page, server});-it('xpath should query existing element', async ({ page, server }) => {+it('LO-082 xpath should query existing element', async ({ page, server }) => {await page.goto(server.PREFIX + '/playground.html');await page.setContent('<html><body><div class="second"><div class="inner">A</div></div></body></html>');const html = page.locator('html');@@ -54,7 +54,7 @@ it('xpath should query existing element', async ({ page, server }) => {expect(content).toBe('A');});-it('xpath should return null for non-existing element', async ({ page, server }) => {+it('LO-083 xpath should return null for non-existing element', async ({ page, server }) => {await page.setContent('<html><body><div class="second"><div class="inner">B</div></div></body></html>');const html = page.locator('html');const second = await html.locator(`xpath=/div[contains(@class, 'third')]`).elementHandles();diff --git a/tests/page/locator-evaluate.spec.ts b/tests/page/locator-evaluate.spec.tsindex 4f8a044ea9..0befc0b400 100644--- a/tests/page/locator-evaluate.spec.ts+++ b/tests/page/locator-evaluate.spec.ts@@ -17,14 +17,14 @@import { test as it, expect } from './pageTest';-it('should work @smoke', async ({ page, server }) => {+it('LO-084 should work @smoke', async ({ page, server }) => {await page.setContent('<html><body><div class="tweet"><div class="like">100</div><div class="retweets">10</div></div></body></html>');const tweet = page.locator('.tweet .like');const content = await tweet.evaluate(node => (node as HTMLElement).innerText);expect(content).toBe('100');});-it('should retrieve content from subtree', async ({ page, server }) => {+it('LO-085 should retrieve content from subtree', async ({ page, server }) => {const htmlContent = '<div class="a">not-a-child-div</div><div id="myId"><div class="a">a-child-div</div></div>';await page.setContent(htmlContent);const elementHandle = page.locator('#myId .a');@@ -32,14 +32,14 @@ it('should retrieve content from subtree', async ({ page, server }) => {expect(content).toBe('a-child-div');});-it('should work for all', async ({ page, server }) => {+it('LO-086 should work for all', async ({ page, server }) => {await page.setContent('<html><body><div class="tweet"><div class="like">100</div><div class="like">10</div></div></body></html>');const tweet = page.locator('.tweet .like');const content = await tweet.evaluateAll(nodes => nodes.map(n => (n as HTMLElement).innerText));expect(content).toEqual(['100', '10']);});-it('should retrieve content from subtree for all', async ({ page, server }) => {+it('LO-087 should retrieve content from subtree for all', async ({ page, server }) => {const htmlContent = '<div class="a">not-a-child-div</div><div id="myId"><div class="a">a1-child-div</div><div class="a">a2-child-div</div></div>';await page.setContent(htmlContent);const element = page.locator('#myId .a');@@ -47,7 +47,7 @@ it('should retrieve content from subtree for all', async ({ page, server }) => {expect(content).toEqual(['a1-child-div', 'a2-child-div']);});-it('should not throw in case of missing selector for all', async ({ page, server }) => {+it('LO-088 should not throw in case of missing selector for all', async ({ page, server }) => {const htmlContent = '<div class="a">not-a-child-div</div><div id="myId"></div>';await page.setContent(htmlContent);const element = page.locator('#myId .a');diff --git a/tests/page/locator-frame.spec.ts b/tests/page/locator-frame.spec.tsindex e39e63f403..bc8f1eaca3 100644--- a/tests/page/locator-frame.spec.ts+++ b/tests/page/locator-frame.spec.ts@@ -66,7 +66,7 @@ async function routeAmbiguous(page: Page) {});}-it('should work for iframe @smoke', async ({ page, server }) => {+it('LO-089 should work for iframe @smoke', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.frameLocator('iframe').locator('button');@@ -76,7 +76,7 @@ it('should work for iframe @smoke', async ({ page, server }) => {await button.click();});-it('should work for nested iframe', async ({ page, server }) => {+it('LO-090 should work for nested iframe', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.frameLocator('iframe').frameLocator('iframe').locator('button');@@ -86,7 +86,7 @@ it('should work for nested iframe', async ({ page, server }) => {await button.click();});-it('should work for $ and $$', async ({ page, server }) => {+it('LO-091 should work for $ and $$', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const locator = page.frameLocator('iframe').locator('button');@@ -95,19 +95,19 @@ it('should work for $ and $$', async ({ page, server }) => {await expect(spans).toHaveCount(2);});-it('should wait for frame', async ({ page, server }) => {+it('LO-092 should wait for frame', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const error = await page.locator('body').frameLocator('iframe').locator('span').click({ timeout: 1000 }).catch(e => e);expect(error.message).toContain(`waiting for locator('body').locator('iframe').contentFrame()`);});-it('should wait for frame 2', async ({ page, server }) => {+it('LO-093 should wait for frame 2', async ({ page, server }) => {await routeIframe(page);setTimeout(() => page.goto(server.EMPTY_PAGE).catch(() => {}), 300);await page.frameLocator('iframe').locator('button').click();});-it('should wait for frame to go', async ({ page, server, isAndroid }) => {+it('LO-094 should wait for frame to go', async ({ page, server, isAndroid }) => {it.fixme(isAndroid);await routeIframe(page);@@ -116,22 +116,22 @@ it('should wait for frame to go', async ({ page, server, isAndroid }) => {await expect(page.frameLocator('iframe').locator('button')).toBeHidden();});-it('should not wait for frame', async ({ page, server }) => {+it('LO-095 should not wait for frame', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await expect(page.frameLocator('iframe').locator('span')).toBeHidden();});-it('should not wait for frame 2', async ({ page, server }) => {+it('LO-096 should not wait for frame 2', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await expect(page.frameLocator('iframe').locator('span')).not.toBeVisible();});-it('should not wait for frame 3', async ({ page, server }) => {+it('LO-097 should not wait for frame 3', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await expect(page.frameLocator('iframe').locator('span')).toHaveCount(0);});-it('should click in lazy iframe', async ({ page, server }) => {+it('LO-098 should click in lazy iframe', async ({ page, server }) => {await page.route('**/iframe.html', route => {route.fulfill({body: '<html><button>Hello iframe</button></html>',@@ -164,7 +164,7 @@ it('should click in lazy iframe', async ({ page, server }) => {expect(text).toBe('Hello iframe');});-it('waitFor should survive frame reattach', async ({ page, server }) => {+it('LO-099 waitFor should survive frame reattach', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.frameLocator('iframe').locator('button:has-text("Hello nested iframe")');@@ -178,7 +178,7 @@ it('waitFor should survive frame reattach', async ({ page, server }) => {await promise;});-it('click should survive frame reattach', async ({ page, server }) => {+it('LO-100 click should survive frame reattach', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.frameLocator('iframe').locator('button:has-text("Hello nested iframe")');@@ -192,7 +192,7 @@ it('click should survive frame reattach', async ({ page, server }) => {await promise;});-it('click should survive iframe navigation', async ({ page, server }) => {+it('LO-101 click should survive iframe navigation', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.frameLocator('iframe').locator('button:has-text("Hello nested iframe")');@@ -201,7 +201,7 @@ it('click should survive iframe navigation', async ({ page, server }) => {await promise;});-it('should non work for non-frame', async ({ page, server }) => {+it('LO-102 should non work for non-frame', async ({ page, server }) => {await routeIframe(page);await page.setContent('<div></div>');const button = page.frameLocator('div').locator('button');@@ -210,7 +210,7 @@ it('should non work for non-frame', async ({ page, server }) => {expect(error.message).toContain('<iframe> was expected');});-it('locator.frameLocator should work for iframe', async ({ page, server }) => {+it('LO-103 locator.frameLocator should work for iframe', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.locator('body').frameLocator('iframe').locator('button');@@ -220,7 +220,7 @@ it('locator.frameLocator should work for iframe', async ({ page, server }) => {await button.click();});-it('locator.frameLocator should throw on ambiguity', async ({ page, server }) => {+it('LO-104 locator.frameLocator should throw on ambiguity', async ({ page, server }) => {await routeAmbiguous(page);await page.goto(server.EMPTY_PAGE);const button = page.locator('body').frameLocator('iframe').locator('button');@@ -228,7 +228,7 @@ it('locator.frameLocator should throw on ambiguity', async ({ page, server }) =>expect(error.message).toContain(`Error: strict mode violation: locator('body').locator('iframe') resolved to 3 elements`);});-it('locator.frameLocator should not throw on first/last/nth', async ({ page, server }) => {+it('LO-105 locator.frameLocator should not throw on first/last/nth', async ({ page, server }) => {await routeAmbiguous(page);await page.goto(server.EMPTY_PAGE);const button1 = page.locator('body').frameLocator('iframe').first().locator('button');@@ -239,7 +239,7 @@ it('locator.frameLocator should not throw on first/last/nth', async ({ page, serawait expect(button3).toHaveText('Hello from iframe-3.html');});-it('getBy coverage', async ({ page, server }) => {+it('LO-106 getBy coverage', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button1 = page.frameLocator('iframe').getByRole('button');@@ -258,7 +258,7 @@ it('getBy coverage', async ({ page, server }) => {await expect(input4).toHaveValue('');});-it('wait for hidden should succeed when frame is not in dom', async ({ page }) => {+it('LO-107 wait for hidden should succeed when frame is not in dom', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21879' });await page.goto('about:blank');const button = page.frameLocator('iframe1').locator('button');@@ -269,7 +269,7 @@ it('wait for hidden should succeed when frame is not in dom', async ({ page }) =expect(error.message).toContain('Timeout 1000ms exceeded');});-it('should work with COEP/COOP/CORP isolated iframe', async ({ page, server, browserName }) => {+it('LO-108 should work with COEP/COOP/CORP isolated iframe', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28082' });it.fixme(browserName === 'firefox');await page.route('**/empty.html', route => {@@ -299,7 +299,7 @@ it('should work with COEP/COOP/CORP isolated iframe', async ({ page, server, broexpect(await page.frames()[1].evaluate(() => window['__clicked'])).toBe(true);});-it('locator.contentFrame should work', async ({ page, server }) => {+it('LO-109 locator.contentFrame should work', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const locator = page.locator('iframe');@@ -310,7 +310,7 @@ it('locator.contentFrame should work', async ({ page, server }) => {await button.click();});-it('frameLocator.owner should work', async ({ page, server }) => {+it('LO-110 frameLocator.owner should work', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const frameLocator = page.frameLocator('iframe');@@ -319,7 +319,7 @@ it('frameLocator.owner should work', async ({ page, server }) => {expect(await locator.getAttribute('name')).toBe('frame1');});-it('should treat elements inside hidden iframe as hidden', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42719' } }, async ({ page }) => {+it('LO-111 should treat elements inside hidden iframe as hidden', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42719' } }, async ({ page }) => {await page.setContent(`<iframe name="hidden" style="visibility: hidden" srcdoc="<button>Hidden</button>"></iframe><div style="visibility: hidden">@@ -348,7 +348,7 @@ it('should treat elements inside hidden iframe as hidden', { annotation: { type:await button.waitFor({ state: 'visible' });});-it('should wait for hidden iframe to become visible', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42719' } }, async ({ page }) => {+it('LO-112 should wait for hidden iframe to become visible', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42719' } }, async ({ page }) => {await page.setContent(`<iframe name="frame" style="visibility: hidden" srcdoc="<button onclick='window.__clicked = true'>Button</button>"></iframe>`);const button = page.frameLocator('[name=frame]').locator('button');await expect(button).toBeHidden();@@ -368,7 +368,7 @@ it('should wait for hidden iframe to become visible', { annotation: { type: 'issexpect(await button.isVisible()).toBe(false);});-it('should treat elements inside hidden cross-origin iframe as hidden', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42719' } }, async ({ page, server }) => {+it('LO-113 should treat elements inside hidden cross-origin iframe as hidden', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42719' } }, async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<iframe style="visibility: hidden" src="${server.CROSS_PROCESS_PREFIX}/frames/frame.html"></iframe>`);const div = page.frameLocator('iframe').locator('div');diff --git a/tests/page/locator-highlight.spec.ts b/tests/page/locator-highlight.spec.tsindex 4e52ce9c26..fd4f93dc52 100644--- a/tests/page/locator-highlight.spec.ts+++ b/tests/page/locator-highlight.spec.ts@@ -19,7 +19,7 @@ import { roundBox } from '../config/utils';it.skip(({ mode }) => mode !== 'default', 'Highlight element has a closed shadow-root on != default');-it('should highlight locator', async ({ page }) => {+it('LO-114 should highlight locator', async ({ page }) => {await page.setContent(`<input type='text' />`);await page.locator('input').highlight();await expect(page.locator('x-pw-tooltip')).toHaveText('locator(\'input\')');diff --git a/tests/page/locator-is-visible.spec.ts b/tests/page/locator-is-visible.spec.tsindex b182f8e479..82438f9736 100644--- a/tests/page/locator-is-visible.spec.ts+++ b/tests/page/locator-is-visible.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('isVisible and isHidden should work', async ({ page }) => {+it('LO-115 isVisible and isHidden should work', async ({ page }) => {await page.setContent(`<div>Hi</div><span></span>`);const div = page.locator('div');@@ -36,17 +36,17 @@ it('isVisible and isHidden should work', async ({ page }) => {expect(await page.isHidden('no-such-element')).toBe(true);});-it('isVisible should be true for opacity:0', async ({ page }) => {+it('LO-116 isVisible should be true for opacity:0', async ({ page }) => {await page.setContent(`<div style="opacity:0">Hi</div>`);await expect(page.locator('div')).toBeVisible();});-it('isVisible should be true for element outside view', async ({ page }) => {+it('LO-117 isVisible should be true for element outside view', async ({ page }) => {await page.setContent(`<div style="position: absolute; left: -1000px">Hi</div>`);await expect(page.locator('div')).toBeVisible();});-it('isVisible and isHidden should work with details', async ({ page }) => {+it('LO-118 isVisible and isHidden should work with details', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/10674' });await page.setContent(`<details><summary>click to open</summary>@@ -60,7 +60,7 @@ it('isVisible and isHidden should work with details', async ({ page }) => {await expect(page.locator('ul')).toBeHidden();});-it('isVisible and isHidden should work with nested details', async ({ page }) => {+it('LO-119 isVisible and isHidden should work with nested details', async ({ page }) => {await page.setContent(`<details><summary>outer</summary><details open>@@ -75,7 +75,7 @@ it('isVisible and isHidden should work with nested details', async ({ page }) =>await expect(page.getByRole('button')).toHaveCount(0);});-it('isVisible and isHidden should work with unslotted content', async ({ page }) => {+it('LO-120 isVisible and isHidden should work with unslotted content', async ({ page }) => {await page.setContent(`<div id=unslotted><span>hidden 1</span><div><span>hidden 2</span></div></div><div id=slotted><span>visible</span></div>@@ -90,7 +90,7 @@ it('isVisible and isHidden should work with unslotted content', async ({ page })await expect(page.locator('span', { hasText: 'visible' })).toBeVisible();});-it('isVisible and isHidden should work with list box options', async ({ page, isAndroid }) => {+it('LO-121 isVisible and isHidden should work with list box options', async ({ page, isAndroid }) => {it.skip(isAndroid, 'Android Chrome renders list boxes as popups, so options are not visible in the page');await page.setContent(`<select multiple>@@ -109,7 +109,7 @@ it('isVisible and isHidden should work with list box options', async ({ page, isawait expect(page.locator('option', { hasText: text })).toBeHidden();});-it('isVisible inside a button', async ({ page }) => {+it('LO-122 isVisible inside a button', async ({ page }) => {await page.setContent(`<button><span></span>a button</button>`);const span = page.locator('span');expect(await span.isVisible()).toBe(false);@@ -122,7 +122,7 @@ it('isVisible inside a button', async ({ page }) => {await page.locator('button').waitFor({ state: 'visible' });});-it('isVisible inside a role=button', async ({ page }) => {+it('LO-123 isVisible inside a role=button', async ({ page }) => {await page.setContent(`<div role=button><span></span>a button</div>`);const span = page.locator('span');expect(await span.isVisible()).toBe(false);@@ -135,7 +135,7 @@ it('isVisible inside a role=button', async ({ page }) => {await page.locator('[role=button]').waitFor({ state: 'visible' });});-it('isVisible during navigation should not throw', async ({ page, server }) => {+it('LO-124 isVisible during navigation should not throw', async ({ page, server }) => {for (let i = 0; i < 20; i++) {await page.setContent(`<script>@@ -148,7 +148,7 @@ it('isVisible during navigation should not throw', async ({ page, server }) => {}});-it('isVisible with invalid selector should throw', async ({ page }) => {+it('LO-125 isVisible with invalid selector should throw', async ({ page }) => {const error = await page.locator('hey=what').isVisible().catch(e => e);expect(error.message).toContain('Unknown engine "hey" while parsing selector hey=what');});diff --git a/tests/page/locator-list.spec.ts b/tests/page/locator-list.spec.tsindex 876bd0c473..ac04319578 100644--- a/tests/page/locator-list.spec.ts+++ b/tests/page/locator-list.spec.ts@@ -16,7 +16,7 @@import { test as it, expect } from './pageTest';-it('locator.all should work', async ({ page }) => {+it('LO-126 locator.all should work', async ({ page }) => {await page.setContent(`<div><p>A</p><p>B</p><p>C</p></div>`);const texts = [];for (const p of await page.locator('div >> p').all())diff --git a/tests/page/locator-misc-1.spec.ts b/tests/page/locator-misc-1.spec.tsindex eaa0375c32..f22973bed4 100644--- a/tests/page/locator-misc-1.spec.ts+++ b/tests/page/locator-misc-1.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import path from 'path';-it('should hover @smoke', async ({ page, server, headless }) => {+it('LO-127 should hover @smoke', async ({ page, server, headless }) => {it.skip(!headless, 'headed messes up with hover');await page.goto(server.PREFIX + '/input/scrollable.html');@@ -27,7 +27,7 @@ it('should hover @smoke', async ({ page, server, headless }) => {expect(await page.evaluate(() => document.querySelector('button:hover').id)).toBe('button-6');});-it('should hover when Node is removed', async ({ page, server, headless }) => {+it('LO-128 should hover when Node is removed', async ({ page, server, headless }) => {it.skip(!headless, 'headed messes up with hover');await page.goto(server.PREFIX + '/input/scrollable.html');@@ -37,14 +37,14 @@ it('should hover when Node is removed', async ({ page, server, headless }) => {expect(await page.evaluate(() => document.querySelector('button:hover').id)).toBe('button-6');});-it('should fill input', async ({ page, server }) => {+it('LO-129 should fill input', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');const handle = page.locator('input');await handle.fill('some value');expect(await page.evaluate(() => window['result'])).toBe('some value');});-it('should fill input when Node is removed', async ({ page, server }) => {+it('LO-130 should fill input when Node is removed', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.evaluate(() => delete window['Node']);const handle = page.locator('input');@@ -52,7 +52,7 @@ it('should fill input when Node is removed', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('some value');});-it('should clear input', async ({ page, server }) => {+it('LO-131 should clear input', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');const handle = page.locator('input');await handle.fill('some value');@@ -61,14 +61,14 @@ it('should clear input', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('');});-it('should check the box', async ({ page }) => {+it('LO-132 should check the box', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox'></input>`);const input = page.locator('input');await input.check();expect(await page.evaluate('checkbox.checked')).toBe(true);});-it('should check the box using setChecked', async ({ page }) => {+it('LO-133 should check the box using setChecked', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox'></input>`);const input = page.locator('input');await input.setChecked(true);@@ -77,14 +77,14 @@ it('should check the box using setChecked', async ({ page }) => {expect(await page.evaluate('checkbox.checked')).toBe(false);});-it('should uncheck the box', async ({ page }) => {+it('LO-134 should uncheck the box', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox' checked></input>`);const input = page.locator('input');await input.uncheck();expect(await page.evaluate('checkbox.checked')).toBe(false);});-it('should select single option', async ({ page, server }) => {+it('LO-135 should select single option', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');const select = page.locator('select');await select.selectOption('blue');@@ -92,7 +92,7 @@ it('should select single option', async ({ page, server }) => {expect(await page.evaluate(() => window['result'].onChange)).toEqual(['blue']);});-it('should focus and blur a button', async ({ page, server }) => {+it('LO-136 should focus and blur a button', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = page.locator('button');expect(await button.evaluate(button => document.activeElement === button)).toBe(false);@@ -117,20 +117,20 @@ it('should focus and blur a button', async ({ page, server }) => {expect(await button.evaluate(button => document.activeElement === button)).toBe(false);});-it('focus should respect strictness', async ({ page, server }) => {+it('LO-137 focus should respect strictness', async ({ page, server }) => {await page.setContent('<div>A</div><div>B</div>');const error = await page.locator('div').focus().catch(e => e);expect(error.message).toContain('strict mode violation');});-it('should dispatch click event via ElementHandles', async ({ page, server }) => {+it('LO-138 should dispatch click event via ElementHandles', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = page.locator('button');await button.dispatchEvent('click');expect(await page.evaluate(() => window['result'])).toBe('Clicked');});-it('should upload the file', async ({ page, server, asset }) => {+it('LO-139 should upload the file', async ({ page, server, asset }) => {await page.goto(server.PREFIX + '/input/fileupload.html');const filePath = path.relative(process.cwd(), asset('file-to-upload.txt'));const input = page.locator('input[type=file]');diff --git a/tests/page/locator-misc-2.spec.ts b/tests/page/locator-misc-2.spec.tsindex 0b921928bf..6c9aea5f07 100644--- a/tests/page/locator-misc-2.spec.ts+++ b/tests/page/locator-misc-2.spec.ts@@ -17,13 +17,13 @@import { test as it, expect } from './pageTest';-it('should press @smoke', async ({ page }) => {+it('LO-140 should press @smoke', async ({ page }) => {await page.setContent(`<input type='text' />`);await page.locator('input').press('h');expect(await page.$eval('input', input => input.value)).toBe('h');});-it('should scroll into view', async ({ page, server, isAndroid }) => {+it('LO-141 should scroll into view', async ({ page, server, isAndroid }) => {it.fixme(isAndroid);await page.goto(server.PREFIX + '/offscreenbuttons.html');@@ -42,7 +42,7 @@ it('should scroll into view', async ({ page, server, isAndroid }) => {}});-it('should scroll zero-sized element into view', async ({ page, isAndroid, isElectron }) => {+it('LO-142 should scroll zero-sized element into view', async ({ page, isAndroid, isElectron }) => {it.fixme(isAndroid || isElectron);await page.setContent(`@@ -73,7 +73,7 @@ it('should scroll zero-sized element into view', async ({ page, isAndroid, isEleexpect(await page.locator('#lazyload').boundingBox()).toEqual({ x: 0, y: 720, width: 1280, height: 20 });});-it('should select textarea', async ({ page, server, browserName }) => {+it('LO-143 should select textarea', async ({ page, server, browserName }) => {await page.goto(server.PREFIX + '/input/textarea.html');const textarea = page.locator('textarea');await textarea.evaluate(textarea => (textarea as HTMLTextAreaElement).value = 'some value');@@ -81,19 +81,19 @@ it('should select textarea', async ({ page, server, browserName }) => {expect(await page.evaluate(() => window.getSelection().toString())).toBe('some value');});-it('should type', async ({ page }) => {+it('LO-144 should type', async ({ page }) => {await page.setContent(`<input type='text' />`);await page.locator('input').type('hello');expect(await page.$eval('input', input => input.value)).toBe('hello');});-it('should pressSequentially', async ({ page }) => {+it('LO-145 should pressSequentially', async ({ page }) => {await page.setContent(`<input type='text' />`);await page.locator('input').pressSequentially('hello');expect(await page.$eval('input', input => input.value)).toBe('hello');});-it('should take screenshot', async ({ page, server, browserName, headless, isAndroid, mode }) => {+it('LO-146 should take screenshot', async ({ page, server, browserName, headless, isAndroid, mode }) => {it.skip(browserName === 'firefox' && !headless);it.skip(isAndroid, 'Different dpr. Remove after using 1x scale for screenshots.');await page.setViewportSize({ width: 500, height: 500 });@@ -104,7 +104,7 @@ it('should take screenshot', async ({ page, server, browserName, headless, isAndexpect(screenshot).toMatchSnapshot('screenshot-element-bounding-box.png');});-it('should return bounding box', async ({ page, server, browserName, headless, isAndroid, isLinux }) => {+it('LO-147 should return bounding box', async ({ page, server, browserName, headless, isAndroid, isLinux }) => {it.skip(isAndroid);await page.setViewportSize({ width: 500, height: 500 });@@ -114,7 +114,7 @@ it('should return bounding box', async ({ page, server, browserName, headless, iexpect(box).toEqual({ x: 100, y: 50, width: 50, height: 50 });});-it('should waitFor', async ({ page }) => {+it('LO-148 should waitFor', async ({ page }) => {await page.setContent(`<div></div>`);const locator = page.locator('span');const promise = locator.waitFor();@@ -123,7 +123,7 @@ it('should waitFor', async ({ page }) => {await expect(locator).toHaveText('target');});-it('should waitFor hidden', async ({ page }) => {+it('LO-149 should waitFor hidden', async ({ page }) => {await page.setContent(`<div><span>target</span></div>`);const locator = page.locator('span');const promise = locator.waitFor({ state: 'hidden' });@@ -131,7 +131,7 @@ it('should waitFor hidden', async ({ page }) => {await promise;});-it('should combine visible with other selectors', async ({ page }) => {+it('LO-150 should combine visible with other selectors', async ({ page }) => {await page.setContent(`<div><div class="item" style="display: none">Hidden data0</div><div class="item">visible data1</div>@@ -145,7 +145,7 @@ it('should combine visible with other selectors', async ({ page }) => {await expect(page.locator('.item >> visible=true >> text=data3')).toHaveText('visible data3');});-it('should support filter(visible)', async ({ page }) => {+it('LO-151 should support filter(visible)', async ({ page }) => {await page.setContent(`<div><div class="item" style="display: none">Hidden data0</div><div class="item">visible data1</div>@@ -161,7 +161,7 @@ it('should support filter(visible)', async ({ page }) => {await expect(page.locator('.item').filter({ visible: false }).getByText('data1')).toHaveText('Hidden data1');});-it('should support visible()', async ({ page }) => {+it('LO-152 should support visible()', async ({ page }) => {await page.setContent(`<div><div class="item" style="display: none">Hidden data0</div><div class="item">visible data1</div>@@ -177,14 +177,14 @@ it('should support visible()', async ({ page }) => {await expect(page.locator('.item').visible()).toHaveCount(3);});-it('locator.count should work with deleted Map in main world', async ({ page }) => {+it('LO-153 locator.count should work with deleted Map in main world', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/11254' });await page.evaluate('Map = 1');await page.locator('#searchResultTableDiv .x-grid3-row').count();await expect(page.locator('#searchResultTableDiv .x-grid3-row')).toHaveCount(0);});-it('Locator.locator() and FrameLocator.locator() should accept locator', async ({ page }) => {+it('LO-154 Locator.locator() and FrameLocator.locator() should accept locator', async ({ page }) => {await page.setContent(`<div><input value=outer></div><iframe srcdoc="<div><input value=inner></div>"></iframe>@@ -201,7 +201,7 @@ it('Locator.locator() and FrameLocator.locator() should accept locator', async (expect(await page.frameLocator('iframe').locator(divLocator).locator('input').inputValue()).toBe('inner');});-it('should fill programmatically enabled textarea', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36307' } }, async ({ page }) => {+it('LO-155 should fill programmatically enabled textarea', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36307' } }, async ({ page }) => {await page.setContent(`<button>Enable</button><form>@@ -218,7 +218,7 @@ it('should fill programmatically enabled textarea', { annotation: { type: 'issueawait expect(page.locator('#text')).toHaveValue('Hello');});-it('press should throw on unknown keys', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36697' } }, async ({ page, server }) => {+it('LO-156 press should throw on unknown keys', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36697' } }, async ({ page, server }) => {await page.setContent(`<input type='text' value='hello' />`);const locator = page.getByRole('textbox');await expect(locator.press('NotARealKey')).rejects.toThrowError(/Unknown key: "NotARealKey"/);diff --git a/tests/page/locator-query.spec.ts b/tests/page/locator-query.spec.tsindex 9430fd0570..42bcf37079 100644--- a/tests/page/locator-query.spec.ts+++ b/tests/page/locator-query.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should respect first() and last() @smoke', async ({ page }) => {+it('LO-157 should respect first() and last() @smoke', async ({ page }) => {await page.setContent(`<section><div><p>A</p></div>@@ -30,7 +30,7 @@ it('should respect first() and last() @smoke', async ({ page }) => {expect(await page.locator('div').last().locator('p').count()).toBe(3);});-it('should respect nth()', async ({ page }) => {+it('LO-158 should respect nth()', async ({ page }) => {await page.setContent(`<section><div><p>A</p></div>@@ -42,50 +42,50 @@ it('should respect nth()', async ({ page }) => {expect(await page.locator('div').nth(2).locator('p').count()).toBe(3);});-it('should throw on capture w/ nth()', async ({ page }) => {+it('LO-159 should throw on capture w/ nth()', async ({ page }) => {await page.setContent(`<section><div><p>A</p></div></section>`);const e = await page.locator('*css=div >> p').nth(1).click().catch(e => e);expect(e.message).toContain(`Can't query n-th element`);});-it('should throw on due to strictness', async ({ page }) => {+it('LO-160 should throw on due to strictness', async ({ page }) => {await page.setContent(`<div>A</div><div>B</div>`);const e = await page.locator('div').isVisible().catch(e => e);expect(e.message).toContain(`strict mode violation`);});-it('should throw on due to strictness 2', async ({ page }) => {+it('LO-161 should throw on due to strictness 2', async ({ page }) => {await page.setContent(`<select><option>One</option><option>Two</option></select>`);const e = await page.locator('option').evaluate(e => {}).catch(e => e);expect(e.message).toContain(`strict mode violation`);});-it('should filter by text', async ({ page }) => {+it('LO-162 should filter by text', async ({ page }) => {await page.setContent(`<div>Foobar</div><div>Bar</div>`);await expect(page.locator('div', { hasText: 'Foo' })).toHaveText('Foobar');});-it('should filter by text 2', async ({ page }) => {+it('LO-163 should filter by text 2', async ({ page }) => {await page.setContent(`<div>foo <span>hello world</span> bar</div>`);await expect(page.locator('div', { hasText: 'hello world' })).toHaveText('foo hello world bar');});-it('should filter by regex', async ({ page }) => {+it('LO-164 should filter by regex', async ({ page }) => {await page.setContent(`<div>Foobar</div><div>Bar</div>`);await expect(page.locator('div', { hasText: /Foo.*/ })).toHaveText('Foobar');});-it('should filter by text with quotes', async ({ page }) => {+it('LO-165 should filter by text with quotes', async ({ page }) => {await page.setContent(`<div>Hello "world"</div><div>Hello world</div>`);await expect(page.locator('div', { hasText: 'Hello "world"' })).toHaveText('Hello "world"');});-it('should filter by regex with quotes', async ({ page }) => {+it('LO-166 should filter by regex with quotes', async ({ page }) => {await page.setContent(`<div>Hello "world"</div><div>Hello world</div>`);await expect(page.locator('div', { hasText: /Hello "world"/ })).toHaveText('Hello "world"');});-it('should filter by regex with a single quote', async ({ page }) => {+it('LO-167 should filter by regex with a single quote', async ({ page }) => {await page.setContent(`<button>let's let's<span>hello</span></button>`);await expect.soft(page.locator('button', { hasText: /let's/i }).locator('span')).toHaveText('hello');await expect.soft(page.getByRole('button', { name: /let's/i }).locator('span')).toHaveText('hello');@@ -121,30 +121,30 @@ it('should filter by regex with a single quote', async ({ page }) => {await expect.soft(page.getByRole('button', { name: /let's/iu })).toHaveText(`let's hello`);});-it('should filter by regex and regexp flags', async ({ page }) => {+it('LO-168 should filter by regex and regexp flags', async ({ page }) => {await page.setContent(`<div>Hello "world"</div><div>Hello world</div>`);await expect(page.locator('div', { hasText: /hElLo "world"/i })).toHaveText('Hello "world"');});-it('should filter by case-insensitive regex in a child', async ({ page }) => {+it('LO-169 should filter by case-insensitive regex in a child', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15348' });await page.setContent(`<div class="test"><h5>Title Text</h5></div>`);await expect(page.locator('div', { hasText: /^title text$/i })).toHaveText('Title Text');});-it('should filter by case-insensitive regex in multiple children', async ({ page }) => {+it('LO-170 should filter by case-insensitive regex in multiple children', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15348' });await page.setContent(`<div class="test"><h5>Title</h5> <h2><i>Text</i></h2></div>`);await expect(page.locator('div', { hasText: /^title text$/i })).toHaveClass('test');});-it('should filter by regex with special symbols', async ({ page }) => {+it('LO-171 should filter by regex with special symbols', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15348' });await page.setContent(`<div class="test"><h5>First/"and"</h5><h2><i>Second\\</i></h2></div>`);await expect(page.locator('div', { hasText: /^first\/".*"second\\$/si })).toHaveClass('test');});-it('should support has:locator', async ({ page, trace }) => {+it('LO-172 should support has:locator', async ({ page, trace }) => {it.skip(trace === 'on');await page.setContent(`<div><span>hello</span></div><div><span>world</span></div>`);@@ -178,7 +178,7 @@ it('should support has:locator', async ({ page, trace }) => {})).toHaveCount(1);});-it('should support locator.filter', async ({ page, trace }) => {+it('LO-173 should support locator.filter', async ({ page, trace }) => {it.skip(trace === 'on');await page.setContent(`<section><div><span>hello</span></div><div><span>world</span></div></section>`);@@ -200,7 +200,7 @@ it('should support locator.filter', async ({ page, trace }) => {await expect(page.locator(`div`).filter({ hasNotText: 'foo' })).toHaveCount(2);});-it('should support locator.and', async ({ page }) => {+it('LO-174 should support locator.and', async ({ page }) => {await page.setContent(`<div data-testid=foo>hello</div><div data-testid=bar>world</div><span data-testid=foo>hello2</span><span data-testid=bar>world2</span>@@ -213,7 +213,7 @@ it('should support locator.and', async ({ page }) => {await expect(page.locator('span').and(page.getByTestId(/bar|foo/))).toHaveCount(2);});-it('should support locator.or', async ({ page }) => {+it('LO-175 should support locator.or', async ({ page }) => {await page.setContent(`<div>hello</div><span>world</span>`);await expect(page.locator('div').or(page.locator('span'))).toHaveCount(2);await expect(page.locator('div').or(page.locator('span'))).toHaveText(['hello', 'world']);@@ -225,7 +225,7 @@ it('should support locator.or', async ({ page }) => {await expect(page.locator('span').or(page.locator('article'))).toHaveText('world');});-it('should support locator.locator with and/or', async ({ page }) => {+it('LO-176 should support locator.locator with and/or', async ({ page }) => {await page.setContent(`<div>one <span>two</span> <button>three</button> </div><span>four</span>@@ -240,7 +240,7 @@ it('should support locator.locator with and/or', async ({ page }) => {await expect(page.locator('button').and(page.getByRole('button'))).toHaveText(['three', 'five']);});-it('should support locator.within', async ({ page }) => {+it('LO-177 should support locator.within', async ({ page }) => {await page.setContent(`<table><tr><td>a1</td><td>a2</td><td>a3</td></tr>@@ -258,7 +258,7 @@ it('should support locator.within', async ({ page }) => {await expect(page.getByRole('cell').nth(1).within(page.getByRole('row')).nth(1)).toHaveText('b2');});-it('should allow some, but not all nested frameLocators', async ({ page }) => {+it('LO-178 should allow some, but not all nested frameLocators', async ({ page }) => {await page.setContent(`<iframe srcdoc="<span id=target>world</span>"></iframe><span>hello</span>`);await expect(page.frameLocator('iframe').locator('span').or(page.frameLocator('iframe').locator('article'))).toHaveText('world');await expect(page.frameLocator('iframe').locator('article').or(page.frameLocator('iframe').locator('span'))).toHaveText('world');@@ -269,7 +269,7 @@ it('should allow some, but not all nested frameLocators', async ({ page }) => {expect(error2.message).toContain(`Frame locators are not allowed inside composite locators, while querying "locator('iframe').contentFrame().locator('div').and(locator('#iframe').contentFrame().locator('span'))`);});-it('should keep the capture when removing a common frame prefix', async ({ page }) => {+it('LO-179 should keep the capture when removing a common frame prefix', async ({ page }) => {await page.setContent(`<iframe id=f srcdoc="<section id=target><span>hi</span></section>"></iframe>`);const inner = page.frameLocator('#f').locator('*css=section >> span');await expect(page.frameLocator('#f').locator('body').locator(inner)).toHaveAttribute('id', 'target');@@ -279,7 +279,7 @@ it('should keep the capture when removing a common frame prefix', async ({ pageexpect(error.message).toContain('Can not capture the selector before diving into the frame');});-it('should enforce same frame for has/leftOf/rightOf/above/below/near', async ({ page, server }) => {+it('LO-180 should enforce same frame for has/leftOf/rightOf/above/below/near', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/two-frames.html');const child = page.frames()[1];for (const option of ['has']) {@@ -293,7 +293,7 @@ it('should enforce same frame for has/leftOf/rightOf/above/below/near', async ({}});-it('alias methods coverage', async ({ page }) => {+it('LO-181 alias methods coverage', async ({ page }) => {await page.setContent(`<div><button>Submit</button></div>`);await expect(page.locator('button')).toHaveCount(1);await expect(page.locator('div').locator('button')).toHaveCount(1);@@ -301,7 +301,7 @@ it('alias methods coverage', async ({ page }) => {await expect(page.mainFrame().locator('button')).toHaveCount(1);});-it('count() should not throw during navigation', async ({ playwright, page, server }) => {+it('LO-182 count() should not throw during navigation', async ({ playwright, page, server }) => {const createDummySelector = () => ({query(root, selector) {window.location.href = './frames/one-frame.html';diff --git a/tests/page/locator-wait-for-function.spec.ts b/tests/page/locator-wait-for-function.spec.tsindex fd5730ad54..99948d59fc 100644--- a/tests/page/locator-wait-for-function.spec.ts+++ b/tests/page/locator-wait-for-function.spec.ts@@ -16,34 +16,34 @@import { test as it, expect } from './pageTest';-it('should wait for an attribute to appear', async ({ page }) => {+it('LO-183 should wait for an attribute to appear', async ({ page }) => {await page.setContent('<button id=toggle>Menu</button>');await page.evaluate(() => window.builtins.setTimeout(() => document.querySelector('#toggle')!.setAttribute('aria-expanded', 'true'), 1000));await page.locator('#toggle').waitForFunction(element => element.hasAttribute('aria-expanded'));});-it('should return immediately when already truthy', async ({ page }) => {+it('LO-184 should return immediately when already truthy', async ({ page }) => {await page.setContent('<div id=target>yes</div>');expect(await page.locator('#target').waitForFunction(element => element.textContent === 'yes')).toBe(undefined);});-it('should accept ElementHandle arguments', async ({ page }) => {+it('LO-185 should accept ElementHandle arguments', async ({ page }) => {await page.setContent('<div id=a></div><div id=b>value</div>');const handle = await page.$('#b');await page.locator('#a').waitForFunction((element, other) => other.textContent === 'value', handle);});-it('should accept string expression', async ({ page }) => {+it('LO-186 should accept string expression', async ({ page }) => {await page.setContent('<div id=target>yes</div>');await page.locator('#target').waitForFunction(`element => element.textContent === 'yes'`);});-it('should resolve a promise returned by the predicate', async ({ page }) => {+it('LO-187 should resolve a promise returned by the predicate', async ({ page }) => {await page.setContent('<div id=target>yes</div>');await page.locator('#target').waitForFunction(async element => element.textContent === 'yes');});-it('should wait for element to appear and survive rerender', async ({ page }) => {+it('LO-188 should wait for element to appear and survive rerender', async ({ page }) => {await page.setContent('<span>nothing here</span>');await page.evaluate(() => {let count = 0;@@ -65,7 +65,7 @@ it('should wait for element to appear and survive rerender', async ({ page }) =>await page.locator('#target').waitForFunction(element => element.textContent === '3');});-it('should throw when predicate throws', async ({ page }) => {+it('LO-189 should throw when predicate throws', async ({ page }) => {await page.setContent('<div id=target>no</div>');const error = await page.locator('#target').waitForFunction(() => {throw new Error('oh my');@@ -73,13 +73,13 @@ it('should throw when predicate throws', async ({ page }) => {expect(error.message).toContain('oh my');});-it('should throw on strict mode violation', async ({ page }) => {+it('LO-190 should throw on strict mode violation', async ({ page }) => {await page.setContent('<div class=x>1</div><div class=x>2</div>');const error = await page.locator('div.x').waitForFunction(() => true).catch(e => e);expect(error.message).toContain('strict mode violation');});-it('should abort via signal', async ({ page }) => {+it('LO-191 should abort via signal', async ({ page }) => {await page.setContent('<div id=target>no</div>');const controller = new AbortController();const promise = page.locator('#target').waitForFunction(element => element.textContent === 'yes', undefined, { timeout: 0, signal: controller.signal }).catch(e => e);@@ -91,7 +91,7 @@ it('should abort via signal', async ({ page }) => {expect(error.cause).toBe(reason);});-it('should abort via already-aborted signal', async ({ page }) => {+it('LO-192 should abort via already-aborted signal', async ({ page }) => {await page.setContent('<div id=target>no</div>');const controller = new AbortController();controller.abort('already aborted');diff --git a/tests/page/matchers.misc.spec.ts b/tests/page/matchers.misc.spec.tsindex eb3b092a1e..2fee61ff15 100644--- a/tests/page/matchers.misc.spec.ts+++ b/tests/page/matchers.misc.spec.ts@@ -17,7 +17,7 @@import { stripAnsi } from '../config/utils';import { test as it, expect } from './pageTest';-it('should outlive frame navigation', async ({ page, server }) => {+it('EX-327 should outlive frame navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);setTimeout(async () => {await page.goto(server.PREFIX + '/grid.html').catch(() => {});@@ -25,7 +25,7 @@ it('should outlive frame navigation', async ({ page, server }) => {await expect(page.locator('.box').first()).toBeEmpty();});-it('should print no-locator-resolved error when locator matcher did not resolve to any element', async ({ page, server }) => {+it('EX-328 should print no-locator-resolved error when locator matcher did not resolve to any element', async ({ page, server }) => {const myLocator = page.locator('.nonexisting');const expectWithShortLivingTimeout = expect.configure({ timeout: 10 });const locatorMatchers = [diff --git a/tests/page/network-post-data.spec.ts b/tests/page/network-post-data.spec.tsindex 6746ed07cd..0b6bc1fc88 100644--- a/tests/page/network-post-data.spec.ts+++ b/tests/page/network-post-data.spec.ts@@ -16,7 +16,7 @@import { test as it, expect } from './pageTest';-it('should return correct postData buffer for utf-8 body', async ({ page, server }) => {+it('NE-108 should return correct postData buffer for utf-8 body', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const value = 'baẞ';const [request] = await Promise.all([@@ -34,7 +34,7 @@ it('should return correct postData buffer for utf-8 body', async ({ page, serverexpect(request.postDataJSON()).toBe(value);});-it('should return post data w/o content-type @smoke', async ({ page, server }) => {+it('NE-109 should return post data w/o content-type @smoke', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [request] = await Promise.all([page.waitForRequest('**'),@@ -50,7 +50,7 @@ it('should return post data w/o content-type @smoke', async ({ page, server }) =expect(request.postDataJSON()).toEqual({ value: 42 });});-it('should throw on invalid JSON in post data', async ({ page, server }) => {+it('NE-110 should throw on invalid JSON in post data', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [request] = await Promise.all([page.waitForRequest('**'),@@ -71,7 +71,7 @@ it('should throw on invalid JSON in post data', async ({ page, server }) => {expect(error.message).toContain('POST data is not a valid JSON object: <not a json>');});-it('should return post data for PUT requests', async ({ page, server }) => {+it('NE-111 should return post data for PUT requests', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [request] = await Promise.all([page.waitForRequest('**'),@@ -86,7 +86,7 @@ it('should return post data for PUT requests', async ({ page, server }) => {expect(request.postDataJSON()).toEqual({ value: 42 });});-it('should get post data for file/blob', async ({ page, server, browserName }) => {+it('NE-112 should get post data for file/blob', async ({ page, server, browserName }) => {it.fail(browserName === 'webkit' || browserName === 'chromium');await page.goto(server.EMPTY_PAGE);const [request] = await Promise.all([@@ -106,7 +106,7 @@ it('should get post data for file/blob', async ({ page, server, browserName }) =expect(request.postData()).toBe('file-contents');});-it('should get post data for navigator.sendBeacon api calls', async ({ page, server, browserName }) => {+it('NE-113 should get post data for navigator.sendBeacon api calls', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/12231' });it.fail(browserName === 'chromium', 'postData is empty');it.fail(browserName === 'webkit', 'postData is empty');diff --git a/tests/page/page-add-init-script-callback.spec.ts b/tests/page/page-add-init-script-callback.spec.tsindex a44e9f84f9..f93d567bf0 100644--- a/tests/page/page-add-init-script-callback.spec.ts+++ b/tests/page/page-add-init-script-callback.spec.ts@@ -16,7 +16,7 @@import { test as it, expect } from './pageTest';-it('should drop functions without the exposeFunctions option', async ({ page, server }) => {+it('IS-012 should drop functions without the exposeFunctions option', async ({ page, server }) => {await page.addInitScript(({ cb }) => {(window as any).cbType = typeof cb;}, { cb: () => {} });@@ -24,12 +24,12 @@ it('should drop functions without the exposeFunctions option', async ({ page, seexpect(await page.evaluate(() => (window as any).cbType)).toBe('undefined');});-it('should throw when the script is not a function', async ({ page }) => {+it('IS-013 should throw when the script is not a function', async ({ page }) => {await expect(page.addInitScript({ content: 'window.foo = 1;' }, undefined, { exposeFunctions: true })).rejects.toThrow('Passing functions requires the init script to be a function');});-it('should call a function passed as an argument', async ({ page, server }) => {+it('IS-014 should call a function passed as an argument', async ({ page, server }) => {const received: number[] = [];await page.addInitScript(async ({ cb }) => {await cb(1);@@ -39,7 +39,7 @@ it('should call a function passed as an argument', async ({ page, server }) => {await expect.poll(() => received).toEqual([1, 2]);});-it('should accept a function as the whole argument', async ({ page, server }) => {+it('IS-015 should accept a function as the whole argument', async ({ page, server }) => {await page.addInitScript(async cb => {(window as any).result = await cb('a');}, async (s: string) => s + 'b', { exposeFunctions: true });@@ -47,7 +47,7 @@ it('should accept a function as the whole argument', async ({ page, server }) =>await expect.poll(() => page.evaluate(() => (window as any).result)).toBe('ab');});-it('should pass arguments to the callback', async ({ page, server }) => {+it('IS-016 should pass arguments to the callback', async ({ page, server }) => {const argsPromise = new Promise<any[]>(resolve => {void page.addInitScript(({ cb }) => cb(1, 'two', { three: 3 }, [4]), {cb: (...a: any[]) => resolve(a),@@ -56,7 +56,7 @@ it('should pass arguments to the callback', async ({ page, server }) => {expect(await argsPromise).toEqual([1, 'two', { three: 3 }, [4]]);});-it('should return the callback result to the page', async ({ page, server }) => {+it('IS-017 should return the callback result to the page', async ({ page, server }) => {await page.addInitScript(async ({ double }) => {(window as any).result = await double(21);}, { double: async (n: number) => n * 2 }, { exposeFunctions: true });@@ -64,7 +64,7 @@ it('should return the callback result to the page', async ({ page, server }) =>await expect.poll(() => page.evaluate(() => (window as any).result)).toBe(42);});-it('should propagate callback errors to the page', async ({ page, server }) => {+it('IS-018 should propagate callback errors to the page', async ({ page, server }) => {await page.addInitScript(async ({ cb }) => {try {await cb();@@ -77,7 +77,7 @@ it('should propagate callback errors to the page', async ({ page, server }) => {await expect.poll(() => page.evaluate(() => (window as any).result)).toContain('boom');});-it('should support multiple callbacks', async ({ page, server }) => {+it('IS-019 should support multiple callbacks', async ({ page, server }) => {await page.addInitScript(async ({ add, mul }) => {(window as any).result = (await add(2, 3)) + (await mul(2, 3));}, {@@ -88,7 +88,7 @@ it('should support multiple callbacks', async ({ page, server }) => {await expect.poll(() => page.evaluate(() => (window as any).result)).toBe(11);});-it('should survive a navigation and keep working', async ({ page, server }) => {+it('IS-020 should survive a navigation and keep working', async ({ page, server }) => {const received: number[] = [];await page.addInitScript(({ cb }) => {(window as any).cb = cb;@@ -100,7 +100,7 @@ it('should survive a navigation and keep working', async ({ page, server }) => {expect(received).toEqual([1, 2]);});-it('should work in a child frame', async ({ page, server }) => {+it('IS-021 should work in a child frame', async ({ page, server }) => {const received: number[] = [];await page.addInitScript(async ({ cb }) => {await cb(42);@@ -110,7 +110,7 @@ it('should work in a child frame', async ({ page, server }) => {await expect.poll(() => received).toEqual([42, 42]);});-it('should not register the callback on the global object', async ({ page, server }) => {+it('IS-022 should not register the callback on the global object', async ({ page, server }) => {await page.addInitScript(async ({ cb }) => {await cb();(window as any).result = Object.getOwnPropertyNames(globalThis).filter(name => name.startsWith('__pw_fn_'));@@ -119,7 +119,7 @@ it('should not register the callback on the global object', async ({ page, serveawait expect.poll(() => page.evaluate(() => (window as any).result)).toEqual([]);});-it('should remove exposed functions after dispose', async ({ page, server }) => {+it('IS-023 should remove exposed functions after dispose', async ({ page, server }) => {const received: number[] = [];const disposable = await page.addInitScript(({ cb }) => {(window as any).cb = cb;diff --git a/tests/page/page-add-init-script.spec.ts b/tests/page/page-add-init-script.spec.tsindex 5e569f922f..0c5196211c 100644--- a/tests/page/page-add-init-script.spec.ts+++ b/tests/page/page-add-init-script.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should evaluate before anything else on the page', async ({ page, server }) => {+it('IS-001 should evaluate before anything else on the page', async ({ page, server }) => {await page.addInitScript(function() {window['injected'] = 123;});@@ -25,32 +25,32 @@ it('should evaluate before anything else on the page', async ({ page, server })expect(await page.evaluate(() => window['result'])).toBe(123);});-it('should work with a path', async ({ page, server, asset }) => {+it('IS-002 should work with a path', async ({ page, server, asset }) => {await page.addInitScript({ path: asset('injectedfile.js') });await page.goto(server.PREFIX + '/tamperable.html');expect(await page.evaluate(() => window['result'])).toBe(123);});-it('should work with content @smoke', async ({ page, server }) => {+it('IS-003 should work with content @smoke', async ({ page, server }) => {await page.addInitScript({ content: 'window["injected"] = 123' });await page.goto(server.PREFIX + '/tamperable.html');expect(await page.evaluate(() => window['result'])).toBe(123);});-it('should throw without path and content', async ({ page }) => {+it('IS-004 should throw without path and content', async ({ page }) => {// @ts-expect-error foo is not a real option of addInitScriptconst error = await page.addInitScript({ foo: 'bar' }).catch(e => e);expect(error.message).toContain('Either path or content property must be present');});-it('should work with trailing comments', async ({ page, asset }) => {+it('IS-005 should work with trailing comments', async ({ page, asset }) => {await page.addInitScript({ content: '// comment' });await page.addInitScript({ content: 'window.secret = 42;' });await page.goto('data:text/html,<html></html>');expect(await page.evaluate('secret')).toBe(42);});-it('should support multiple scripts', async ({ page, server }) => {+it('IS-006 should support multiple scripts', async ({ page, server }) => {await page.addInitScript(function() {window['script1'] = 1;});@@ -62,7 +62,7 @@ it('should support multiple scripts', async ({ page, server }) => {expect(await page.evaluate(() => window['script2'])).toBe(2);});-it('should work with CSP', async ({ page, server }) => {+it('IS-007 should work with CSP', async ({ page, server }) => {server.setCSP('/empty.html', 'script-src ' + server.PREFIX);await page.addInitScript(function() {window['injected'] = 123;@@ -75,7 +75,7 @@ it('should work with CSP', async ({ page, server }) => {expect(await page.evaluate(() => window['e'])).toBe(undefined);});-it('should work after a cross origin navigation', async ({ page, server }) => {+it('IS-008 should work after a cross origin navigation', async ({ page, server }) => {await page.goto(server.CROSS_PROCESS_PREFIX);await page.addInitScript(function() {window['injected'] = 123;@@ -84,7 +84,7 @@ it('should work after a cross origin navigation', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe(123);});-it('should remove init script after dispose', async ({ page, server }) => {+it('IS-009 should remove init script after dispose', async ({ page, server }) => {const disposable = await page.addInitScript(function() {window['injected'] = 123;});@@ -96,7 +96,7 @@ it('should remove init script after dispose', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe(undefined);});-it('should remove one of multiple init scripts after dispose', async ({ page, server }) => {+it('IS-010 should remove one of multiple init scripts after dispose', async ({ page, server }) => {const disposable1 = await page.addInitScript(function() {window['script1'] = 1;});@@ -113,7 +113,7 @@ it('should remove one of multiple init scripts after dispose', async ({ page, seexpect(await page.evaluate(() => window['script2'])).toBe(2);});-it('init script should run only once in iframe', async ({ page, server, browserName, isBidi }) => {+it('IS-011 init script should run only once in iframe', async ({ page, server, browserName, isBidi }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/26992' });const messages = [];page.on('console', event => {diff --git a/tests/page/page-add-locator-handler.spec.ts b/tests/page/page-add-locator-handler.spec.tsindex 069dde0241..dcb1f04eb3 100644--- a/tests/page/page-add-locator-handler.spec.ts+++ b/tests/page/page-add-locator-handler.spec.ts@@ -16,7 +16,7 @@import { test, expect } from './pageTest';-test('should work', async ({ page, server }) => {+test('LH-001 should work', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/handle-locator.html');let beforeCount = 0;@@ -59,7 +59,7 @@ test('should work', async ({ page, server }) => {}});-test('should work with a custom check', async ({ page, server }) => {+test('LH-002 should work with a custom check', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/handle-locator.html');await page.addLocatorHandler(page.locator('body'), async () => {@@ -86,7 +86,7 @@ test('should work with a custom check', async ({ page, server }) => {}});-test('should work with locator.hover()', async ({ page, server, headless }) => {+test('LH-003 should work with locator.hover()', async ({ page, server, headless }) => {test.skip(!headless, 'Stray hovers in headed mode');await page.goto(server.PREFIX + '/input/handle-locator.html');@@ -104,7 +104,7 @@ test('should work with locator.hover()', async ({ page, server, headless }) => {expect(await page.$eval('#target', e => window.getComputedStyle(e).backgroundColor)).toBe('rgb(255, 255, 0)');});-test('should not work with force:true', async ({ page, server }) => {+test('LH-004 should not work with force:true', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/handle-locator.html');await page.addLocatorHandler(page.getByText('This interstitial covers the button'), async () => {@@ -120,7 +120,7 @@ test('should not work with force:true', async ({ page, server }) => {expect(await page.evaluate('window.clicked')).toBe(undefined);});-test('should throw when handler times out', async ({ page, server }) => {+test('LH-005 should throw when handler times out', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/handle-locator.html');let called = 0;@@ -145,7 +145,7 @@ test('should throw when handler times out', async ({ page, server }) => {expect(called).toBe(1);});-test('should work with toBeVisible', async ({ page, server }) => {+test('LH-006 should work with toBeVisible', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/handle-locator.html');let called = 0;@@ -163,7 +163,7 @@ test('should work with toBeVisible', async ({ page, server }) => {expect(called).toBe(1);});-test('should work with locator.waitFor', async ({ page, server }) => {+test('LH-007 should work with locator.waitFor', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/handle-locator.html');let called = 0;@@ -181,7 +181,7 @@ test('should work with locator.waitFor', async ({ page, server }) => {expect(called).toBe(1);});-test('should work with toHaveScreenshot', async ({ page, server, isAndroid }) => {+test('LH-008 should work with toHaveScreenshot', async ({ page, server, isAndroid }) => {test.fixme(isAndroid, 'Screenshots are cut off on Android');await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');@@ -209,7 +209,7 @@ test('should work with toHaveScreenshot', async ({ page, server, isAndroid }) =>await expect(page).toHaveScreenshot('screenshot-grid.png');});-test('should work when owner frame detaches', async ({ page, server }) => {+test('LH-009 should work when owner frame detaches', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.evaluate(() => {@@ -239,7 +239,7 @@ test('should work when owner frame detaches', async ({ page, server }) => {expect(await page.evaluate('window._clicked')).toBe(true);});-test('should work with times: option', async ({ page, server }) => {+test('LH-010 should work with times: option', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/handle-locator.html');let called = 0;@@ -260,7 +260,7 @@ test('should work with times: option', async ({ page, server }) => {expect(error.message).toContain(`<div>This interstitial covers the button</div> from <div class="visible" id="interstitial">…</div> subtree intercepts pointer events`);});-test('should wait for hidden by default', async ({ page, server }) => {+test('LH-011 should wait for hidden by default', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/handle-locator.html');let called = 0;@@ -280,7 +280,7 @@ test('should wait for hidden by default', async ({ page, server }) => {expect(called).toBe(1);});-test('should wait for hidden by default 2', async ({ page, server }) => {+test('LH-012 should wait for hidden by default 2', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/handle-locator.html');let called = 0;@@ -300,7 +300,7 @@ test('should wait for hidden by default 2', async ({ page, server }) => {expect(error.message).toContain(`locator handler has finished, waiting for getByRole('button', { name: 'close' }) to be hidden`);});-test('should work with noWaitAfter', async ({ page, server }) => {+test('LH-013 should work with noWaitAfter', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/handle-locator.html');let called = 0;@@ -323,7 +323,7 @@ test('should work with noWaitAfter', async ({ page, server }) => {expect(called).toBe(2);});-test('should removeLocatorHandler', async ({ page, server }) => {+test('LH-014 should removeLocatorHandler', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/handle-locator.html');let called = 0;diff --git a/tests/page/page-add-script-tag.spec.ts b/tests/page/page-add-script-tag.spec.tsindex 699408716d..ff83c211a5 100644--- a/tests/page/page-add-script-tag.spec.ts+++ b/tests/page/page-add-script-tag.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import path from 'path';-it('should throw an error if no options are provided', async ({ page, server }) => {+it('AT-001 should throw an error if no options are provided', async ({ page, server }) => {let error = null;try {// @ts-ignore@@ -29,34 +29,34 @@ it('should throw an error if no options are provided', async ({ page, server })expect(error.message).toContain('Provide an object with a `url`, `path` or `content` property');});-it('should work with a url', async ({ page, server }) => {+it('AT-002 should work with a url', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const scriptHandle = await page.addScriptTag({ url: '/injectedfile.js' });expect(scriptHandle.asElement()).not.toBeNull();expect(await page.evaluate(() => window['__injected'])).toBe(42);});-it('should work with a url and type=module', async ({ page, server }) => {+it('AT-003 should work with a url and type=module', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.addScriptTag({ url: '/es6/es6import.js', type: 'module' });expect(await page.evaluate(() => window['__es6injected'])).toBe(42);});-it('should work with a path and type=module', async ({ page, server, asset }) => {+it('AT-004 should work with a path and type=module', async ({ page, server, asset }) => {await page.goto(server.EMPTY_PAGE);await page.addScriptTag({ path: asset('es6/es6pathimport.js'), type: 'module' });await page.waitForFunction('window.__es6injected');expect(await page.evaluate(() => window['__es6injected'])).toBe(42);});-it('should work with a content and type=module', async ({ page, server }) => {+it('AT-005 should work with a content and type=module', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.addScriptTag({ content: `import num from '/es6/es6module.js';window.__es6injected = num;`, type: 'module' });await page.waitForFunction('window.__es6injected');expect(await page.evaluate(() => window['__es6injected'])).toBe(42);});-it('should throw an error if loading from url fail', async ({ page, server }) => {+it('AT-006 should throw an error if loading from url fail', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let error = null;try {@@ -67,14 +67,14 @@ it('should throw an error if loading from url fail', async ({ page, server }) =>expect(error).not.toBe(null);});-it('should work with a path', async ({ page, server, asset }) => {+it('AT-007 should work with a path', async ({ page, server, asset }) => {await page.goto(server.EMPTY_PAGE);const scriptHandle = await page.addScriptTag({ path: asset('injectedfile.js') });expect(scriptHandle.asElement()).not.toBeNull();expect(await page.evaluate(() => window['__injected'])).toBe(42);});-it('should include sourceURL when path is provided', async ({ page, server, browserName, asset }) => {+it('AT-008 should include sourceURL when path is provided', async ({ page, server, browserName, asset }) => {it.skip(browserName === 'webkit');await page.goto(server.EMPTY_PAGE);@@ -83,14 +83,14 @@ it('should include sourceURL when path is provided', async ({ page, server, browexpect(result).toContain(path.join('assets', 'injectedfile.js'));});-it('should work with content', async ({ page, server }) => {+it('AT-009 should work with content', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const scriptHandle = await page.addScriptTag({ content: 'window["__injected"] = 35;' });expect(scriptHandle.asElement()).not.toBeNull();expect(await page.evaluate(() => window['__injected'])).toBe(35);});-it('should throw when added with content to the CSP page', async ({ page, server }) => {+it('AT-010 should throw when added with content to the CSP page', async ({ page, server }) => {// Firefox fires onload for blocked script before it issues the CSP console error.await page.goto(server.PREFIX + '/csp.html');let error = null;@@ -98,7 +98,7 @@ it('should throw when added with content to the CSP page', async ({ page, serverexpect(error).toBeTruthy();});-it('should throw when added with URL to the CSP page', async ({ page, server, isAndroid }) => {+it('AT-011 should throw when added with URL to the CSP page', async ({ page, server, isAndroid }) => {it.skip(isAndroid, 'No cross-process on Android');await page.goto(server.PREFIX + '/csp.html');@@ -107,7 +107,7 @@ it('should throw when added with URL to the CSP page', async ({ page, server, isexpect(error).toBeTruthy();});-it('should throw a nice error when the request fails', async ({ page, server }) => {+it('AT-012 should throw a nice error when the request fails', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const url = server.PREFIX + '/this_does_not_exist.js';const error = await page.addScriptTag({ url }).catch(e => e);diff --git a/tests/page/page-add-style-tag.spec.ts b/tests/page/page-add-style-tag.spec.tsindex 57446ac9ec..e9ddb7c720 100644--- a/tests/page/page-add-style-tag.spec.ts+++ b/tests/page/page-add-style-tag.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import path from 'path';-it('should throw an error if no options are provided', async ({ page, server }) => {+it('AT-013 should throw an error if no options are provided', async ({ page, server }) => {let error = null;try {// @ts-ignore@@ -29,14 +29,14 @@ it('should throw an error if no options are provided', async ({ page, server })expect(error.message).toContain('Provide an object with a `url`, `path` or `content` property');});-it('should work with a url @smoke', async ({ page, server }) => {+it('AT-014 should work with a url @smoke', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const styleHandle = await page.addStyleTag({ url: '/injectedstyle.css' });expect(styleHandle.asElement()).not.toBeNull();expect(await page.evaluate(`window.getComputedStyle(document.querySelector('body')).getPropertyValue('background-color')`)).toBe('rgb(255, 0, 0)');});-it('should throw an error if loading from url fail', async ({ page, server }) => {+it('AT-015 should throw an error if loading from url fail', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let error = null;try {@@ -47,14 +47,14 @@ it('should throw an error if loading from url fail', async ({ page, server }) =>expect(error).not.toBe(null);});-it('should work with a path', async ({ page, server, asset }) => {+it('AT-016 should work with a path', async ({ page, server, asset }) => {await page.goto(server.EMPTY_PAGE);const styleHandle = await page.addStyleTag({ path: asset('injectedstyle.css') });expect(styleHandle.asElement()).not.toBeNull();expect(await page.evaluate(`window.getComputedStyle(document.querySelector('body')).getPropertyValue('background-color')`)).toBe('rgb(255, 0, 0)');});-it('should include sourceURL when path is provided', async ({ page, server, asset }) => {+it('AT-017 should include sourceURL when path is provided', async ({ page, server, asset }) => {await page.goto(server.EMPTY_PAGE);await page.addStyleTag({ path: asset('injectedstyle.css') });const styleHandle = await page.$('style');@@ -62,21 +62,21 @@ it('should include sourceURL when path is provided', async ({ page, server, asseexpect(styleContent).toContain(path.join('assets', 'injectedstyle.css'));});-it('should work with content', async ({ page, server }) => {+it('AT-018 should work with content', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const styleHandle = await page.addStyleTag({ content: 'body { background-color: green; }' });expect(styleHandle.asElement()).not.toBeNull();expect(await page.evaluate(`window.getComputedStyle(document.querySelector('body')).getPropertyValue('background-color')`)).toBe('rgb(0, 128, 0)');});-it('should throw when added with content to the CSP page', async ({ page, server }) => {+it('AT-019 should throw when added with content to the CSP page', async ({ page, server }) => {await page.goto(server.PREFIX + '/csp.html');let error = null;await page.addStyleTag({ content: 'body { background-color: green; }' }).catch(e => error = e);expect(error).toBeTruthy();});-it('should throw when added with URL to the CSP page', async ({ page, server, isAndroid }) => {+it('AT-020 should throw when added with URL to the CSP page', async ({ page, server, isAndroid }) => {it.skip(isAndroid, 'No cross-process on Android');await page.goto(server.PREFIX + '/csp.html');diff --git a/tests/page/page-aria-snapshot-ai.spec.ts b/tests/page/page-aria-snapshot-ai.spec.tsindex fad95eea72..a11fc4a838 100644--- a/tests/page/page-aria-snapshot-ai.spec.ts+++ b/tests/page/page-aria-snapshot-ai.spec.ts@@ -23,7 +23,7 @@ async function snapshotForAI(page: Page, options?: Omit<Parameters<Page['ariaSnareturn await page.ariaSnapshot({ ...options, mode: 'ai' });}-it('should generate refs', async ({ page }) => {+it('AR-048 should generate refs', async ({ page }) => {await page.setContent(`<button>One</button><button>Two</button>@@ -54,7 +54,7 @@ it('should generate refs', async ({ page }) => {`);});-it('should list iframes', async ({ page }) => {+it('AR-049 should list iframes', async ({ page }) => {await page.setContent(`<h1>Hello</h1><iframe name="foo" src="data:text/html,<h1>World</h1>">@@ -67,7 +67,7 @@ it('should list iframes', async ({ page }) => {expect(frameSnapshot).toEqual('- heading "World" [level=1]');});-it('should snapshot a locator inside an iframe', async ({ page }) => {+it('AR-050 should snapshot a locator inside an iframe', async ({ page }) => {await page.setContent(`<h1>Main Page</h1><iframe srcdoc="<ul><li>Item 1</li><li>Item 2</li></ul>"></iframe>@@ -82,7 +82,7 @@ it('should snapshot a locator inside an iframe', async ({ page }) => {`);});-it('should limit depth across iframe boundary', async ({ page }) => {+it('AR-051 should limit depth across iframe boundary', async ({ page }) => {await page.setContent(`<nav><iframe srcdoc="<ul><li><button>Deep</button></li></ul>"></iframe>@@ -99,7 +99,7 @@ it('should limit depth across iframe boundary', async ({ page }) => {expect(snapshot).not.toContain('button');});-it('should stitch all frame snapshots', async ({ page, server }) => {+it('AR-052 should stitch all frame snapshots', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/nested-frames.html');const snapshot = await snapshotForAI(page);expect(snapshot).toContainYaml(`@@ -142,7 +142,7 @@ it('should stitch all frame snapshots', async ({ page, server }) => {}});-it('should re-number refs across navigations but not same-document navigations', async ({ page, server }) => {+it('AR-053 should re-number refs across navigations but not same-document navigations', async ({ page, server }) => {server.setRoute('/one.html', (req, res) => {res.setHeader('Content-Type', 'text/html');res.end('<button>One</button>');@@ -172,7 +172,7 @@ it('should re-number refs across navigations but not same-document navigations',await expect(page.getByRef(twoRef)).toHaveText('Two');});-it('should persist iframe references', async ({ page }) => {+it('AR-054 should persist iframe references', async ({ page }) => {await page.setContent(`<ul><li><iframe srcdoc="<button>button1</button>"></iframe></li>@@ -217,7 +217,7 @@ it('should persist iframe references', async ({ page }) => {await expect(page.getByRef('f2e2')).toHaveText('button2');});-it('should not generate refs for elements with pointer-events:none', async ({ page }) => {+it('AR-055 should not generate refs for elements with pointer-events:none', async ({ page }) => {await page.setContent(`<button style="pointer-events: none">no-ref</button><div style="pointer-events: none">@@ -253,7 +253,7 @@ it('should not generate refs for elements with pointer-events:none', async ({ pa`);});-it('emit generic roles for nodes w/o roles', async ({ page }) => {+it('AR-056 emit generic roles for nodes w/o roles', async ({ page }) => {await page.setContent(`<style>input {@@ -303,7 +303,7 @@ it('emit generic roles for nodes w/o roles', async ({ page }) => {`);});-it('should collapse generic nodes', async ({ page }) => {+it('AR-057 should collapse generic nodes', async ({ page }) => {await page.setContent(`<div><div>@@ -320,7 +320,7 @@ it('should collapse generic nodes', async ({ page }) => {`);});-it('should include cursor pointer hint', async ({ page }) => {+it('AR-058 should include cursor pointer hint', async ({ page }) => {await page.setContent(`<button style="cursor: pointer">Button</button>`);@@ -331,7 +331,7 @@ it('should include cursor pointer hint', async ({ page }) => {`);});-it('should not nest cursor pointer hints', async ({ page }) => {+it('AR-059 should not nest cursor pointer hints', async ({ page }) => {await page.setContent(`<a style="cursor: pointer" href="about:blank">Link with a button@@ -350,7 +350,7 @@ it('should not nest cursor pointer hints', async ({ page }) => {`);});-it('should omit names that just repeat printed descendant nodes', async ({ page }) => {+it('AR-060 should omit names that just repeat printed descendant nodes', async ({ page }) => {await page.setContent(`<h3><a style="cursor: pointer" href="/issues/1">Clipboard API</a></h3>`);@@ -363,7 +363,7 @@ it('should omit names that just repeat printed descendant nodes', async ({ page`);});-it('should omit redundant name when a contributing wrapper is collapsed', async ({ page }) => {+it('AR-061 should omit redundant name when a contributing wrapper is collapsed', async ({ page }) => {// The flex span contributes to the heading's name, but is then removed from the tree as a// single-child generic wrapper. Its contribution is fully represented by the link, so the// heading's name is still redundant.@@ -379,7 +379,7 @@ it('should omit redundant name when a contributing wrapper is collapsed', async`);});-it('should omit redundant name when a contributor is a skipped leaf generic', async ({ page }) => {+it('AR-062 should omit redundant name when a contributor is a skipped leaf generic', async ({ page }) => {// The outer span is not collapsed (its child is an element, not text), so it becomes a leaf// generic node that contributes to both names. The link's rendered name covers it, which in turn// makes the heading's name redundant.@@ -395,7 +395,7 @@ it('should omit redundant name when a contributor is a skipped leaf generic', as`);});-it('should keep the name when the contributing wrapper collapses into repeating text', async ({ page }) => {+it('AR-063 should keep the name when the contributing wrapper collapses into repeating text', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41985' });it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43315' });// The outer span is marked as represented while it still wraps the icon. Once the nameless@@ -427,7 +427,7 @@ it('should keep the name when the contributing wrapper collapses into repeating`);});-it('should keep names not derived from printed nodes', async ({ page }) => {+it('AR-064 should keep names not derived from printed nodes', async ({ page }) => {await page.setContent(`<h3 aria-label="Clipboard API issue"><a style="cursor: pointer" href="/issues/1">Clipboard API</a></h3>`);@@ -440,7 +440,7 @@ it('should keep names not derived from printed nodes', async ({ page }) => {`);});-it('should omit images without an accessible name', async ({ page }) => {+it('AR-065 should omit images without an accessible name', async ({ page }) => {await page.setContent(`<img src="data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA="><img alt="A cat" src="data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA=">@@ -457,7 +457,7 @@ it('should omit images without an accessible name', async ({ page }) => {expect(snapshot).not.toContain('[ref=e2]');});-it('should omit a nameless image nested inside a link', async ({ page }) => {+it('AR-066 should omit a nameless image nested inside a link', async ({ page }) => {// The decorative image has no name, so it is dropped even though it sits inside a clickable link.await page.setContent(`<a style="cursor: pointer" href="/issue/1">Open issue <img src="data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA="></a>@@ -471,7 +471,7 @@ it('should omit a nameless image nested inside a link', async ({ page }) => {expect(snapshot).not.toContain('img');});-it('should keep icon-only clickable elements', {+it('AR-067 should keep icon-only clickable elements', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42013' },}, async ({ page }) => {const icon = `<svg viewBox="0 0 1024 1024"><use xlink:href="#icon"></use></svg>`;@@ -492,7 +492,7 @@ it('should keep icon-only clickable elements', {`);});-it('should omit leaf generic whose text is already in an ancestor name', async ({ page }) => {+it('AR-068 should omit leaf generic whose text is already in an ancestor name', async ({ page }) => {// The inner element is block so it survives as its own generic node (an inline single-text span// would be collapsed into the link instead). It inherits the link's pointer cursor.await page.setContent(`@@ -509,7 +509,7 @@ it('should omit leaf generic whose text is already in an ancestor name', async (expect(snapshot).not.toContain('[ref=e3]');});-it('should omit name-repeating generic behind a wrapper', async ({ page }) => {+it('AR-069 should omit name-repeating generic behind a wrapper', async ({ page }) => {// The leaf generic that repeats the link's name sits inside a nameless wrapper. Its text is// first inlined into the wrapper, which then faces the link and removes itself.await page.setContent(`@@ -524,7 +524,7 @@ it('should omit name-repeating generic behind a wrapper', async ({ page }) => {expect(snapshot.split('P3-collecting-feedback')).toHaveLength(2);});-it('should resolve refs of distilled-away nodes', async ({ page }) => {+it('AR-070 should resolve refs of distilled-away nodes', async ({ page }) => {await page.setContent(`<a style="cursor: pointer" href="/issues/15860"><div>[Feature] a dedicated clipboard API</div></a>`);@@ -535,7 +535,7 @@ it('should resolve refs of distilled-away nodes', async ({ page }) => {await expect(page.getByRef('e3')).toHaveText('[Feature] a dedicated clipboard API');});-it('should not distill snapshots outside of ai mode', async ({ page }) => {+it('AR-071 should not distill snapshots outside of ai mode', async ({ page }) => {await page.setContent(`<h3><a href="/issues/1">Clipboard API</a></h3>`);@@ -548,7 +548,7 @@ it('should not distill snapshots outside of ai mode', async ({ page }) => {`);});-it('should truncate data url in link', async ({ page }) => {+it('AR-072 should truncate data url in link', async ({ page }) => {const base64 = Buffer.from('<p>hello</p>').toString('base64');await page.setContent(`<a href="data:text/html;base64,${base64}">a link</a>`);const snapshot = await snapshotForAI(page);@@ -556,7 +556,7 @@ it('should truncate data url in link', async ({ page }) => {expect(snapshot).not.toContain(base64);});-it('should gracefully fallback when child frame cant be captured', async ({ page, server }) => {+it('AR-073 should gracefully fallback when child frame cant be captured', async ({ page, server }) => {await page.setContent(`<p>Test</p><iframe src="${server.PREFIX}/redirectloop1.html#depth=100000"></iframe>@@ -569,7 +569,7 @@ it('should gracefully fallback when child frame cant be captured', async ({ page`);});-it('should auto-wait for navigation', async ({ page, server }) => {+it('AR-074 should auto-wait for navigation', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/frame.html');const [, snapshot] = await Promise.all([page.evaluate(() => window.location.reload()),@@ -579,7 +579,7 @@ it('should auto-wait for navigation', async ({ page, server }) => {expect(snapshot).toMatch(/- generic \[active\] \[ref=(?:f\d+)?e\d+\]: Hi, I'm frame/);});-it('should auto-wait for blocking CSS', async ({ page, server }) => {+it('AR-075 should auto-wait for blocking CSS', async ({ page, server }) => {server.setRoute('/css', (req, res) => {res.setHeader('Content-Type', 'text/css');setTimeout(() => res.end(`body { monospace }`), 1000);@@ -591,7 +591,7 @@ it('should auto-wait for blocking CSS', async ({ page, server }) => {expect(await snapshotForAI(page)).toContainYaml('Hello World');});-it('should show visible children of hidden elements', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36296' } }, async ({ page }) => {+it('AR-076 should show visible children of hidden elements', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36296' } }, async ({ page }) => {await page.setContent(`<div style="visibility: hidden"><div style="visibility: visible">@@ -616,7 +616,7 @@ it('should show visible children of hidden elements', { annotation: { type: 'iss`));});-it('should include active element information', async ({ page }) => {+it('AR-077 should include active element information', async ({ page }) => {await page.setContent(`<button id="btn1">Button 1</button><button id="btn2" autofocus>Button 2</button>@@ -636,7 +636,7 @@ it('should include active element information', async ({ page }) => {`);});-it('should update active element on focus', async ({ page }) => {+it('AR-078 should update active element on focus', async ({ page }) => {await page.setContent(`<input id="input1" placeholder="First input"><input id="input2" placeholder="Second input">@@ -663,7 +663,7 @@ it('should update active element on focus', async ({ page }) => {`);});-it('should mark iframe as active when it contains focused element', async ({ page }) => {+it('AR-079 should mark iframe as active when it contains focused element', async ({ page }) => {// Create a simple HTML file for the iframeawait page.setContent(`<input id="regular-input" placeholder="Regular input">@@ -683,7 +683,7 @@ it('should mark iframe as active when it contains focused element', async ({ pag`);});-it('return empty snapshot when iframe is not loaded', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/pull/36710' } }, async ({ page, server }) => {+it('AR-080 return empty snapshot when iframe is not loaded', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/pull/36710' } }, async ({ page, server }) => {await page.setContent(`<div style="height: 5000px;">Test</div><iframe loading="lazy" src="${server.PREFIX}/frame.html"></iframe>@@ -703,7 +703,7 @@ it('return empty snapshot when iframe is not loaded', { annotation: { type: 'iss`);});-it('should support many properties on iframes', async ({ page }) => {+it('AR-081 should support many properties on iframes', async ({ page }) => {await page.setContent(`<input id="regular-input" placeholder="Regular input"><iframe style='cursor: pointer' src="data:text/html,<input id='iframe-input' placeholder='Input in iframe'/>" tabindex="0"></iframe>@@ -721,7 +721,7 @@ it('should support many properties on iframes', async ({ page }) => {`);});-it('should snapshot frameset pages', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41784' } }, async ({ page, server }) => {+it('AR-082 should snapshot frameset pages', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41784' } }, async ({ page, server }) => {server.setRoute('/frameset.html', (req, res) => {res.setHeader('Content-Type', 'text/html');res.end(`<frameset rows="50%,50%"><frameset cols="50%,50%"><frame src="/frame-one.html"><frame src="/frame-two.html"></frameset><frame src="/frame-three.html"></frameset>`);@@ -748,7 +748,7 @@ it('should snapshot frameset pages', { annotation: { type: 'issue', description:await expect(page.getByRef('f2e2')).toHaveText('Button two');});-it('should snapshot a locator inside a frameset frame', async ({ page, server }) => {+it('AR-083 should snapshot a locator inside a frameset frame', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/frameset.html');const snapshot = await page.frames()[1].locator('body').ariaSnapshot({ mode: 'ai' });@@ -761,7 +761,7 @@ it('should snapshot a locator inside a frameset frame', async ({ page, server })expect(resolved.toString()).toBe(`locator('frame').first().contentFrame().locator('body')`);});-it('should stitch iframes inside a frameset frame', async ({ page, server }) => {+it('AR-084 should stitch iframes inside a frameset frame', async ({ page, server }) => {server.setRoute('/frameset-with-iframe.html', (req, res) => {res.setHeader('Content-Type', 'text/html');res.end(`<frameset><frame src="/frame-with-iframe.html"></frameset>`);@@ -786,7 +786,7 @@ it('should stitch iframes inside a frameset frame', async ({ page, server }) =>expect(resolved.toString()).toBe(`locator('frame').contentFrame().locator('iframe').contentFrame().getByRole('button', { name: 'In iframe' })`);});-it('should stitch nested frameset documents', async ({ page, server }) => {+it('AR-085 should stitch nested frameset documents', async ({ page, server }) => {server.setRoute('/outer-frameset.html', (req, res) => {res.setHeader('Content-Type', 'text/html');res.end(`<frameset><frame src="/inner-frameset.html"></frameset>`);@@ -809,7 +809,7 @@ it('should stitch nested frameset documents', async ({ page, server }) => {await expect(page.getByRef('f2e2')).toHaveText('Leaf button');});-it('should collapse inline generic nodes', async ({ page }) => {+it('AR-086 should collapse inline generic nodes', async ({ page }) => {await page.setContent(`<ul><li><b>3</b> <abbr>bds</abbr></li>@@ -839,7 +839,7 @@ it('should collapse inline generic nodes', async ({ page }) => {`);});-it('should inline single leaf generic child into parent generic', async ({ page }) => {+it('AR-087 should inline single leaf generic child into parent generic', async ({ page }) => {// The nameless images are distilled away, so each wrapper is left with a single leaf generic// child, whose text is inlined into the wrapper - recursively for the second one.await page.setContent(`@@ -855,7 +855,7 @@ it('should inline single leaf generic child into parent generic', async ({ page`);});-it('should inline a deeply nested generic', async ({ page }) => {+it('AR-088 should inline a deeply nested generic', async ({ page }) => {// Every wrapper contains a nameless image (distilled away) plus a single generic child, so the// text bubbles up the whole chain - all the way into the body.const img = `<img src="data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA=">`;@@ -870,7 +870,7 @@ it('should inline a deeply nested generic', async ({ page }) => {expect(snapshot).not.toContain('img');});-it('should not remove generic nodes with title', async ({ page }) => {+it('AR-089 should not remove generic nodes with title', async ({ page }) => {await page.setContent(`<div title="Element title">Element content</div>`);const snapshot = await snapshotForAI(page);@@ -879,7 +879,7 @@ it('should not remove generic nodes with title', async ({ page }) => {`);});-it('should limit depth', async ({ page }) => {+it('AR-090 should limit depth', async ({ page }) => {await page.setContent(`<ul><li>item1</li>@@ -940,7 +940,7 @@ it('should limit depth', async ({ page }) => {`);});-it('should annotate aria-hidden elements', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42223' } }, async ({ page }) => {+it('AR-091 should annotate aria-hidden elements', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42223' } }, async ({ page }) => {await page.setContent(`<h2>Visible heading</h2><div aria-hidden="true">@@ -964,7 +964,7 @@ it('should annotate aria-hidden elements', { annotation: { type: 'issue', descriexpect(defaultSnapshot).not.toContain('Hidden content');});-it('should only annotate the top element in a hidden subtree', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42223' } }, async ({ page }) => {+it('AR-092 should only annotate the top element in a hidden subtree', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42223' } }, async ({ page }) => {await page.setContent(`<div aria-hidden="true"><h1>Heading</h1>@@ -980,7 +980,7 @@ it('should only annotate the top element in a hidden subtree', { annotation: { t`);});-it('should not include hidden iframes', async ({ page }) => {+it('AR-093 should not include hidden iframes', async ({ page }) => {await page.setContent(`<iframe name="visible" srcdoc="<button>Visible</button>"></iframe><iframe name="hidden" style="visibility: hidden" srcdoc="<button>Hidden</button>"></iframe>@@ -995,7 +995,7 @@ it('should not include hidden iframes', async ({ page }) => {expect(snapshot).not.toContain('None');});-it('should not generate refs for inert elements', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36938' } }, async ({ page }) => {+it('AR-094 should not generate refs for inert elements', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36938' } }, async ({ page }) => {await page.setContent(`<button>with-ref</button><button inert>no-ref</button>@@ -1014,7 +1014,7 @@ it('should not generate refs for inert elements', { annotation: { type: 'issue',`);});-it('should not generate refs for elements outside of a modal dialog', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36938' } }, async ({ page }) => {+it('AR-095 should not generate refs for elements outside of a modal dialog', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36938' } }, async ({ page }) => {await page.setContent(`<button>Outside</button><dialog id=dialog>diff --git a/tests/page/page-aria-snapshot-json.spec.ts b/tests/page/page-aria-snapshot-json.spec.tsindex d8b4ea8fe4..c13d7ce472 100644--- a/tests/page/page-aria-snapshot-json.spec.ts+++ b/tests/page/page-aria-snapshot-json.spec.ts@@ -31,7 +31,7 @@ function findNode(nodes: (NodeJSON | string)[], predicate: (node: NodeJSON) => breturn undefined;}-it('should snapshot roles, names and text', async ({ page }) => {+it('AR-096 should snapshot roles, names and text', async ({ page }) => {await page.setContent(`<h1>title</h1><ul aria-label="my list">@@ -52,7 +52,7 @@ it('should snapshot roles, names and text', async ({ page }) => {]);});-it('should snapshot flags as properties', async ({ page }) => {+it('AR-097 should snapshot flags as properties', async ({ page }) => {await page.setContent(`<input type="checkbox" title="Check" checked><button disabled>Click</button>@@ -63,7 +63,7 @@ it('should snapshot flags as properties', async ({ page }) => {]);});-it('should snapshot link url and textbox value', async ({ page }) => {+it('AR-098 should snapshot link url and textbox value', async ({ page }) => {await page.setContent(`<a href="https://example.com/">Link</a><input title="Input" value="hello">@@ -74,7 +74,7 @@ it('should snapshot link url and textbox value', async ({ page }) => {]);});-it('should snapshot text fragments in children', async ({ page }) => {+it('AR-099 should snapshot text fragments in children', async ({ page }) => {await page.setContent(`<p>Hello <a href="/link">world</a> again</p>`);expect(await page.ariaSnapshotJSON()).toEqual([{@@ -88,7 +88,7 @@ it('should snapshot text fragments in children', async ({ page }) => {]);});-it('should snapshot top-level text fragments as text nodes', async ({ page }) => {+it('AR-100 should snapshot top-level text fragments as text nodes', async ({ page }) => {await page.setContent(`Hello <button>One</button> again`);expect(await page.ariaSnapshotJSON()).toEqual([{ role: 'text', text: 'Hello' },@@ -97,7 +97,7 @@ it('should snapshot top-level text fragments as text nodes', async ({ page }) =>]);});-it('should generate refs in ai mode', async ({ page }) => {+it('AR-101 should generate refs in ai mode', async ({ page }) => {await page.setContent(`<button>One</button><button>Two</button>@@ -116,14 +116,14 @@ it('should generate refs in ai mode', async ({ page }) => {await expect(page.getByRef('e2')).toHaveText('One');});-it('should mark clickable elements with cursor in ai mode', async ({ page }) => {+it('AR-102 should mark clickable elements with cursor in ai mode', async ({ page }) => {await page.setContent(`<button style="cursor: pointer">One</button>`);const json = await page.ariaSnapshotJSON({ mode: 'ai' }) as NodeJSON[];const button = findNode(json, node => node.role === 'button');expect(button?.cursor).toBe('pointer');});-it('should snapshot iframes in ai mode', async ({ page }) => {+it('AR-103 should snapshot iframes in ai mode', async ({ page }) => {await page.setContent(`<h1>Hello</h1><iframe srcdoc="<button>In frame</button>"></iframe>@@ -136,7 +136,7 @@ it('should snapshot iframes in ai mode', async ({ page }) => {expect(button?.ref).toMatch(/^f\d+e\d+$/);});-it('should limit depth', async ({ page }) => {+it('AR-104 should limit depth', async ({ page }) => {await page.setContent(`<ul><li><button>One</button></li></ul>`);expect(await page.ariaSnapshotJSON({ depth: 1 })).toEqual([{@@ -148,7 +148,7 @@ it('should limit depth', async ({ page }) => {]);});-it('should include boxes when requested', async ({ page }) => {+it('AR-105 should include boxes when requested', async ({ page }) => {await page.setContent(`<button>One</button>`);const json = await page.ariaSnapshotJSON({ boxes: true }) as NodeJSON[];const button = findNode(json, node => node.role === 'button');@@ -162,7 +162,7 @@ it('should include boxes when requested', async ({ page }) => {expect(button!.box.height).toBeGreaterThan(0);});-it('should snapshot a locator', async ({ page }) => {+it('AR-106 should snapshot a locator', async ({ page }) => {await page.setContent(`<h1>title</h1><ul>diff --git a/tests/page/page-aria-snapshot.spec.ts b/tests/page/page-aria-snapshot.spec.tsindex c3bebc8d97..917c39b655 100644--- a/tests/page/page-aria-snapshot.spec.ts+++ b/tests/page/page-aria-snapshot.spec.ts@@ -23,14 +23,14 @@ async function checkAndMatchSnapshot(locator: Locator, snapshot: string) {await expect.soft(locator).toMatchAriaSnapshot(snapshot);}-it('should snapshot', async ({ page }) => {+it('AR-001 should snapshot', async ({ page }) => {await page.setContent(`<h1>title</h1>`);await checkAndMatchSnapshot(page.locator('body'), `- heading "title" [level=1]`);});-it('should snapshot list', async ({ page }) => {+it('AR-002 should snapshot list', async ({ page }) => {await page.setContent(`<h1>title</h1><h1>title 2</h1>@@ -41,7 +41,7 @@ it('should snapshot list', async ({ page }) => {`);});-it('should snapshot list with accessible name', async ({ page }) => {+it('AR-003 should snapshot list with accessible name', async ({ page }) => {await page.setContent(`<ul aria-label="my list"><li>one</li>@@ -55,7 +55,7 @@ it('should snapshot list with accessible name', async ({ page }) => {`);});-it('should quote names that look like regexes', async ({ page }) => {+it('AR-004 should quote names that look like regexes', async ({ page }) => {await page.setContent(`<nav><a href="/">/</a>@@ -74,7 +74,7 @@ it('should quote names that look like regexes', async ({ page }) => {`);});-it('should snapshot complex', async ({ page }) => {+it('AR-005 should snapshot complex', async ({ page }) => {await page.setContent(`<ul><li>@@ -90,7 +90,7 @@ it('should snapshot complex', async ({ page }) => {`);});-it('should allow text nodes', async ({ page }) => {+it('AR-006 should allow text nodes', async ({ page }) => {await page.setContent(`<h1>Microsoft</h1><div>Open source projects and samples from Microsoft</div>@@ -102,7 +102,7 @@ it('should allow text nodes', async ({ page }) => {`);});-it('should snapshot details visibility', async ({ page }) => {+it('AR-007 should snapshot details visibility', async ({ page }) => {await page.setContent(`<details><summary>Summary</summary>@@ -115,7 +115,7 @@ it('should snapshot details visibility', async ({ page }) => {`);});-it('should not snapshot text directly inside closed details', async ({ page }) => {+it('AR-008 should not snapshot text directly inside closed details', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43019' });await page.setContent(`@@ -135,7 +135,7 @@ it('should not snapshot text directly inside closed details', async ({ page }) =`);});-it('should not snapshot text that is not assigned to a slot', async ({ page }) => {+it('AR-009 should not snapshot text that is not assigned to a slot', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43019' });await page.setContent(`@@ -152,7 +152,7 @@ it('should not snapshot text that is not assigned to a slot', async ({ page }) =await expect(page.getByRole('button', { name: 'Shadow', exact: true })).toBeVisible();});-it('should snapshot integration', async ({ page }) => {+it('AR-010 should snapshot integration', async ({ page }) => {await page.setContent(`<h1>Microsoft</h1><div>Open source projects and samples from Microsoft</div>@@ -198,7 +198,7 @@ it('should snapshot integration', async ({ page }) => {`);});-it('should support multiline text', async ({ page }) => {+it('AR-011 should support multiline text', async ({ page }) => {await page.setContent(`<p>Line 1@@ -218,7 +218,7 @@ it('should support multiline text', async ({ page }) => {`);});-it('should concatenate span text', async ({ page }) => {+it('AR-012 should concatenate span text', async ({ page }) => {await page.setContent(`<span>One</span> <span>Two</span> <span>Three</span>`);@@ -228,7 +228,7 @@ it('should concatenate span text', async ({ page }) => {`);});-it('should concatenate span text 2', async ({ page }) => {+it('AR-013 should concatenate span text 2', async ({ page }) => {await page.setContent(`<span>One </span><span>Two </span><span>Three</span>`);@@ -238,7 +238,7 @@ it('should concatenate span text 2', async ({ page }) => {`);});-it('should concatenate div text with spaces', async ({ page }) => {+it('AR-014 should concatenate div text with spaces', async ({ page }) => {await page.setContent(`<div>One</div><div>Two</div><div>Three</div>`);@@ -248,7 +248,7 @@ it('should concatenate div text with spaces', async ({ page }) => {`);});-it('should include pseudo in text', async ({ page }) => {+it('AR-015 should include pseudo in text', async ({ page }) => {await page.setContent(`<style>span:before {@@ -270,7 +270,7 @@ it('should include pseudo in text', async ({ page }) => {`);});-it('should not include hidden pseudo in text', async ({ page }) => {+it('AR-016 should not include hidden pseudo in text', async ({ page }) => {await page.setContent(`<style>span:before {@@ -294,7 +294,7 @@ it('should not include hidden pseudo in text', async ({ page }) => {`);});-it('should include new line for block pseudo', async ({ page }) => {+it('AR-017 should include new line for block pseudo', async ({ page }) => {await page.setContent(`<style>span:before {@@ -318,7 +318,7 @@ it('should include new line for block pseudo', async ({ page }) => {`);});-it('should work with slots', async ({ page }) => {+it('AR-018 should work with slots', async ({ page }) => {// Text "foo" is assigned to the slot, should not be used twice.await page.setContent(`<button><div>foo</div></button>@@ -378,7 +378,7 @@ it('should work with slots', async ({ page }) => {`);});-it('should snapshot inner text', async ({ page }) => {+it('AR-019 should snapshot inner text', async ({ page }) => {await page.setContent(`<div role="listitem"><div>@@ -421,7 +421,7 @@ it('should snapshot inner text', async ({ page }) => {`);});-it('should include pseudo codepoints', async ({ page, server }) => {+it('AR-020 should include pseudo codepoints', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<link href="codicon.css" rel="stylesheet" />@@ -433,7 +433,7 @@ it('should include pseudo codepoints', async ({ page, server }) => {`);});-it('check aria-hidden text', async ({ page }) => {+it('AR-021 check aria-hidden text', async ({ page }) => {await page.setContent(`<p><span>hello</span>@@ -446,7 +446,7 @@ it('check aria-hidden text', async ({ page }) => {`);});-it('should ignore presentation and none roles', async ({ page }) => {+it('AR-022 should ignore presentation and none roles', async ({ page }) => {await page.setContent(`<ul><li role='presentation'>hello</li>@@ -459,7 +459,7 @@ it('should ignore presentation and none roles', async ({ page }) => {`);});-it('should treat input value as text in templates, but not for checkbox/radio/file', async ({ page }) => {+it('AR-023 should treat input value as text in templates, but not for checkbox/radio/file', async ({ page }) => {await page.setContent(`<input value='hello world'><input type=file>@@ -475,7 +475,7 @@ it('should treat input value as text in templates, but not for checkbox/radio/fi`);});-it('should not use on as checkbox value', async ({ page }) => {+it('AR-024 should not use on as checkbox value', async ({ page }) => {await page.setContent(`<input type='checkbox'><input type='radio'>@@ -487,7 +487,7 @@ it('should not use on as checkbox value', async ({ page }) => {`);});-it('should respect aria-owns', async ({ page }) => {+it('AR-025 should respect aria-owns', async ({ page }) => {await page.setContent(`<a href='about:blank' aria-owns='input p'><div role='region'>Link 1</div>@@ -514,7 +514,7 @@ it('should respect aria-owns', async ({ page }) => {`);});-it('should be ok with circular ownership', async ({ page }) => {+it('AR-026 should be ok with circular ownership', async ({ page }) => {await page.setContent(`<a href='about:blank' id='parent'><div role='region' aria-owns='parent'>Hello</div>@@ -528,7 +528,7 @@ it('should be ok with circular ownership', async ({ page }) => {`);});-it('should escape yaml text in text nodes', async ({ page }) => {+it('AR-027 should escape yaml text in text nodes', async ({ page }) => {await page.setContent(`<details><summary>one: <a href="#">link1</a> "two <a href="#">link2</a> 'three <a href="#">link3</a> \`four</summary>@@ -574,7 +574,7 @@ it('should escape yaml text in text nodes', async ({ page }) => {`);});-it('should normalize whitespace', async ({ page }) => {+it('AR-028 should normalize whitespace', async ({ page }) => {await page.setContent(`<details><summary> one \n two <a href="#"> link \n 1 </a> </summary>@@ -605,7 +605,7 @@ it('should normalize whitespace', async ({ page }) => {`);});-it('should handle long strings', async ({ page }) => {+it('AR-029 should handle long strings', async ({ page }) => {const s = 'a'.repeat(10000);await page.setContent(`<a href='about:blank'>@@ -620,7 +620,7 @@ it('should handle long strings', async ({ page }) => {`);});-it('should escape special yaml characters', async ({ page }) => {+it('AR-030 should escape special yaml characters', async ({ page }) => {await page.setContent(`<a href="#">@hello</a>@hello<a href="#">]hello</a>]hello@@ -648,7 +648,7 @@ it('should escape special yaml characters', async ({ page }) => {`);});-it('should escape special yaml values', {+it('AR-031 should escape special yaml values', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43451' },}, async ({ page }) => {await page.setContent(`@@ -700,7 +700,7 @@ it('should escape special yaml values', {`);});-it('should not report textarea textContent', async ({ page }) => {+it('AR-032 should not report textarea textContent', async ({ page }) => {await page.setContent(`<textarea>Before</textarea>`);await checkAndMatchSnapshot(page.locator('body'), `- textbox: Before@@ -713,7 +713,7 @@ it('should not report textarea textContent', async ({ page }) => {`);});-it('should not show visible children of hidden elements', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36296' } }, async ({ page }) => {+it('AR-033 should not show visible children of hidden elements', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36296' } }, async ({ page }) => {await page.setContent(`<div style="visibility: hidden;"><div style="visibility: visible;">@@ -725,7 +725,7 @@ it('should not show visible children of hidden elements', { annotation: { type:expect(await page.locator('body').ariaSnapshot()).toBe('');});-it('should not show unhidden children of aria-hidden elements', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36296' } }, async ({ page }) => {+it('AR-034 should not show unhidden children of aria-hidden elements', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36296' } }, async ({ page }) => {await page.setContent(`<div aria-hidden="true"><div aria-hidden="false">@@ -737,7 +737,7 @@ it('should not show unhidden children of aria-hidden elements', { annotation: {expect(await page.locator('body').ariaSnapshot()).toBe('');});-it('should snapshot placeholder when different from the name', async ({ page }) => {+it('AR-035 should snapshot placeholder when different from the name', async ({ page }) => {await page.setContent(`<input placeholder="Placeholder">`);@@ -754,7 +754,7 @@ it('should snapshot placeholder when different from the name', async ({ page })`);});-it('match values both against regex and string', async ({ page }) => {+it('AR-036 match values both against regex and string', async ({ page }) => {await page.setContent(`<a href="/auth?r=/">Log in</a>`);await checkAndMatchSnapshot(page.locator('body'), `- link "Log in":@@ -762,7 +762,7 @@ it('match values both against regex and string', async ({ page }) => {`);});-it('auto-waits the locator and does not include iframes', async ({ page }) => {+it('AR-037 auto-waits the locator and does not include iframes', async ({ page }) => {await page.setContent(`<div>Hello</div>`);@@ -780,7 +780,7 @@ it('auto-waits the locator and does not include iframes', async ({ page }) => {`);});-it('should limit depth', async ({ page }) => {+it('AR-038 should limit depth', async ({ page }) => {await page.setContent(`<ul id=target><li>item2</li>@@ -800,7 +800,7 @@ it('should limit depth', async ({ page }) => {`);});-it('should snapshot a locator inside an iframe', async ({ page }) => {+it('AR-039 should snapshot a locator inside an iframe', async ({ page }) => {await page.setContent(`<h1>Main Page</h1><iframe srcdoc="<ul><li>Item 1</li><li>Item 2</li></ul>"></iframe>@@ -815,7 +815,7 @@ it('should snapshot a locator inside an iframe', async ({ page }) => {`);});-it('should include frames on frameset pages', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41784' } }, async ({ page, server }) => {+it('AR-040 should include frames on frameset pages', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41784' } }, async ({ page, server }) => {server.setRoute('/frameset.html', (req, res) => {res.setHeader('Content-Type', 'text/html');res.end(`<frameset cols="50%,50%"><frame src="/frames/frame.html"><frame src="/frames/frame.html"></frameset>`);@@ -828,14 +828,14 @@ it('should include frames on frameset pages', { annotation: { type: 'issue', des`));});-it('should snapshot a locator inside a frameset frame', async ({ page, server }) => {+it('AR-041 should snapshot a locator inside a frameset frame', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/frameset.html');await checkAndMatchSnapshot(page.frameLocator('frame').first().locator('body'), `- text: Hi, I'm frame`);});-it('should snapshot with box from page', async ({ page }) => {+it('AR-042 should snapshot with box from page', async ({ page }) => {await page.setContent(`<button style="position:absolute;left:100px;top:50px;width:80px;height:40px;margin:0;padding:0;border:0;">click</button>`);@@ -844,7 +844,7 @@ it('should snapshot with box from page', async ({ page }) => {expect(snapshot).toBe(`- button "click" [box=100,50,80,40]`);});-it('should snapshot with box from locator', async ({ page }) => {+it('AR-043 should snapshot with box from locator', async ({ page }) => {await page.setContent(`<div style="position:absolute;left:10px;top:20px;width:200px;height:100px;"><button style="position:absolute;left:5px;top:5px;width:60px;height:30px;margin:0;padding:0;border:0;">ok</button>@@ -855,13 +855,13 @@ it('should snapshot with box from locator', async ({ page }) => {expect(snapshot).toBe(`- button "ok" [box=15,25,60,30]`);});-it('should not include box when option is omitted', async ({ page }) => {+it('AR-044 should not include box when option is omitted', async ({ page }) => {await page.setContent(`<button>click</button>`);const snapshot = await page.ariaSnapshot();expect(snapshot).not.toMatch(/\[box=/);});-it('should not include hidden iframes', async ({ page }) => {+it('AR-045 should not include hidden iframes', async ({ page }) => {await page.setContent(`<iframe name="visible" srcdoc="<button>Visible</button>"></iframe><iframe name="hidden" style="visibility: hidden" srcdoc="<button>Hidden</button>"></iframe>@@ -872,7 +872,7 @@ it('should not include hidden iframes', async ({ page }) => {`));});-it('should not include inert elements', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36938' } }, async ({ page }) => {+it('AR-046 should not include inert elements', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36938' } }, async ({ page }) => {await page.setContent(`<button>Hi</button><button inert>Hello</button>@@ -891,7 +891,7 @@ it('should not include inert elements', { annotation: { type: 'issue', descripti`);});-it('should only include the modal dialog content', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36938' } }, async ({ page }) => {+it('AR-047 should only include the modal dialog content', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36938' } }, async ({ page }) => {await page.setContent(`<h1>Title</h1><button>Outside</button>diff --git a/tests/page/page-autowaiting-basic.spec.ts b/tests/page/page-autowaiting-basic.spec.tsindex 5e680461d5..78773e37de 100644--- a/tests/page/page-autowaiting-basic.spec.ts+++ b/tests/page/page-autowaiting-basic.spec.ts@@ -29,7 +29,7 @@ function initServer(server: TestServer): string[] {return messages;}-it('should await navigation when clicking anchor', async ({ page, server }) => {+it('AW-001 should await navigation when clicking anchor', async ({ page, server }) => {const messages = initServer(server);await page.setContent(`<a id="anchor" href="${server.EMPTY_PAGE}">empty.html</a>`);await Promise.all([@@ -39,12 +39,12 @@ it('should await navigation when clicking anchor', async ({ page, server }) => {expect(messages.join('|')).toBe('route|navigated|click');});-it('should not stall on JS navigation link', async ({ page, browserName }) => {+it('AW-002 should not stall on JS navigation link', async ({ page, browserName }) => {await page.setContent(`<a href="javascript:console.log(1)">console.log</a>`);await page.click('a');});-it('should await cross-process navigation when clicking anchor', async ({ page, server }) => {+it('AW-003 should await cross-process navigation when clicking anchor', async ({ page, server }) => {const messages = initServer(server);await page.setContent(`<a href="${server.CROSS_PROCESS_PREFIX + '/empty.html'}">empty.html</a>`);@@ -55,7 +55,7 @@ it('should await cross-process navigation when clicking anchor', async ({ page,expect(messages.join('|')).toBe('route|navigated|click');});-it('should await form-get on click', async ({ page, server }) => {+it('AW-004 should await form-get on click', async ({ page, server }) => {const messages = [];server.setRoute('/empty.html?foo=bar', async (req, res) => {messages.push('route');@@ -76,7 +76,7 @@ it('should await form-get on click', async ({ page, server }) => {expect(messages.join('|')).toBe('route|navigated|click');});-it('should await form-post on click', async ({ page, server }) => {+it('AW-005 should await form-post on click', async ({ page, server }) => {const messages = initServer(server);await page.setContent(`<form action="${server.EMPTY_PAGE}" method="post">@@ -91,19 +91,19 @@ it('should await form-post on click', async ({ page, server }) => {expect(messages.join('|')).toBe('route|navigated|click');});-it('should work with noWaitAfter: true', async ({ page, server }) => {+it('AW-006 should work with noWaitAfter: true', async ({ page, server }) => {server.setRoute('/empty.html', async () => {});await page.setContent(`<a id="anchor" href="${server.EMPTY_PAGE}">empty.html</a>`);await page.click('a', { noWaitAfter: true });});-it('should work with dblclick without noWaitAfter when navigation is stalled', async ({ page, server }) => {+it('AW-007 should work with dblclick without noWaitAfter when navigation is stalled', async ({ page, server }) => {server.setRoute('/empty.html', async () => {});await page.setContent(`<a id="anchor" href="${server.EMPTY_PAGE}">empty.html</a>`);await page.dblclick('a');});-it('should work with waitForLoadState(load)', async ({ page, server }) => {+it('AW-008 should work with waitForLoadState(load)', async ({ page, server }) => {const messages = initServer(server);await page.setContent(`<a id="anchor" href="${server.EMPTY_PAGE}">empty.html</a>`);await Promise.all([@@ -113,7 +113,7 @@ it('should work with waitForLoadState(load)', async ({ page, server }) => {expect(messages.join('|')).toBe('route|load|clickload');});-it('should work with goto following click', async ({ page, server }) => {+it('AW-009 should work with goto following click', async ({ page, server }) => {server.setRoute('/login.html', async (req, res) => {res.setHeader('Content-Type', 'text/html');res.end(`You are logged in`);@@ -130,7 +130,7 @@ it('should work with goto following click', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);});-it('should report navigation in the log when clicking anchor', async ({ page, server, mode }) => {+it('AW-010 should report navigation in the log when clicking anchor', async ({ page, server, mode }) => {it.skip(mode !== 'default');await page.setContent(`<a href="${server.PREFIX + '/frames/one-frame.html'}">click me</a>`);@@ -141,7 +141,7 @@ it('should report navigation in the log when clicking anchor', async ({ page, seexpect(error.message).toContain(`navigated to "${server.PREFIX + '/frames/one-frame.html'}"`);});-it('should report and collapse log in action', async ({ page, server, mode }) => {+it('AW-011 should report and collapse log in action', async ({ page, server, mode }) => {await page.setContent(`<input id='checkbox' type='checkbox' style="visibility: hidden"></input>`);const error = await page.locator('input').click({ timeout: 5000 }).catch(e => e);const message = stripAnsi(error.message);@@ -151,7 +151,7 @@ it('should report and collapse log in action', async ({ page, server, mode }) =>expect(logLines.length).toBeLessThan(30);});-it('should report and collapse log in expect', async ({ page, server, mode }) => {+it('AW-012 should report and collapse log in expect', async ({ page, server, mode }) => {await page.setContent(`<input id='checkbox' type='checkbox' style="visibility: hidden"></input>`);const error = await expect(page.locator('input')).toBeVisible({ timeout: 5000 }).catch(e => e);const message = stripAnsi(error.message);diff --git a/tests/page/page-autowaiting-no-hang.spec.ts b/tests/page/page-autowaiting-no-hang.spec.tsindex 8fdca96cec..78957d9558 100644--- a/tests/page/page-autowaiting-no-hang.spec.ts+++ b/tests/page/page-autowaiting-no-hang.spec.ts@@ -17,13 +17,13 @@import { test as it, expect } from './pageTest';-it('clicking on links which do not commit navigation', async ({ page, server, httpsServer }) => {+it('AW-013 clicking on links which do not commit navigation', async ({ page, server, httpsServer }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<a href='${httpsServer.EMPTY_PAGE}'>foobar</a>`);await page.click('a');});-it('calling window.stop async', async ({ page, server }) => {+it('AW-014 calling window.stop async', async ({ page, server }) => {server.setRoute('/empty.html', async (req, res) => {});await page.evaluate(url => {window.location.href = url;@@ -31,26 +31,26 @@ it('calling window.stop async', async ({ page, server }) => {}, server.EMPTY_PAGE);});-it('calling window.stop sync', async ({ page, server, browserName }) => {+it('AW-015 calling window.stop sync', async ({ page, server, browserName }) => {await page.evaluate(url => {window.location.href = url;window.stop();}, server.EMPTY_PAGE);});-it('assigning location to about:blank', async ({ page, server }) => {+it('AW-016 assigning location to about:blank', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.evaluate(`window.location.href = "about:blank";`);});-it('assigning location to about:blank after non-about:blank', async ({ page, server }) => {+it('AW-017 assigning location to about:blank after non-about:blank', async ({ page, server }) => {server.setRoute('/empty.html', async (req, res) => {});await page.evaluate(`window.location.href = "${server.EMPTY_PAGE}";window.location.href = "about:blank";`);});-it('calling window.open and window.close', async function({ page, server }) {+it('AW-018 calling window.open and window.close', async function({ page, server }) {await page.goto(server.EMPTY_PAGE);await page.evaluate(() => {const popup = window.open(window.location.href);@@ -58,7 +58,7 @@ it('calling window.open and window.close', async function({ page, server }) {});});-it('opening a popup', async function({ page, server }) {+it('AW-019 opening a popup', async function({ page, server }) {await page.goto(server.EMPTY_PAGE);await Promise.all([page.waitForEvent('popup'),@@ -66,7 +66,7 @@ it('opening a popup', async function({ page, server }) {]);});-it('clicking in the middle of navigation that aborts', async ({ page, server }) => {+it('AW-020 clicking in the middle of navigation that aborts', async ({ page, server }) => {let abortCallback;const abortPromise = new Promise(f => abortCallback = f);@@ -90,7 +90,7 @@ it('clicking in the middle of navigation that aborts', async ({ page, server })await clickPromise;});-it('clicking in the middle of navigation that commits', async ({ page, server }) => {+it('AW-021 clicking in the middle of navigation that commits', async ({ page, server }) => {let commitCallback;const abortPromise = new Promise(f => commitCallback = f);@@ -116,7 +116,7 @@ it('clicking in the middle of navigation that commits', async ({ page, server })await expect(page.locator('body')).toContainText('hello world');});-it('clicking a link intercepted by the Navigation API same-document', {+it('AW-022 clicking a link intercepted by the Navigation API same-document', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41125' },}, async ({ page, server }) => {server.setRoute('/intercept.html', (req, res) => {@@ -149,7 +149,7 @@ it('clicking a link intercepted by the Navigation API same-document', {expect(new URL(page.url()).pathname).toBe('/other');});-it('goBack in the middle of navigation that commits', async ({ page, server }) => {+it('AW-023 goBack in the middle of navigation that commits', async ({ page, server }) => {let commitCallback;const abortPromise = new Promise(f => commitCallback = f);diff --git a/tests/page/page-basic.spec.ts b/tests/page/page-basic.spec.tsindex 4f5fa4ab7b..33be262c2e 100644--- a/tests/page/page-basic.spec.ts+++ b/tests/page/page-basic.spec.ts@@ -17,14 +17,14 @@import { test as it, expect } from './pageTest';-it('should fire load when expected', async ({ page }) => {+it('PA-001 should fire load when expected', async ({ page }) => {await Promise.all([page.goto('about:blank'),page.waitForEvent('load'),]);});-it('async stacks should work', async ({ page, server }) => {+it('PA-002 async stacks should work', async ({ page, server }) => {server.setRoute('/empty.html', (req, res) => {req.socket.end();});@@ -34,7 +34,7 @@ it('async stacks should work', async ({ page, server }) => {expect(error.stack).toContain(__filename);});-it('should provide access to the opener page', async ({ page }) => {+it('PA-003 should provide access to the opener page', async ({ page }) => {const [popup] = await Promise.all([page.waitForEvent('popup'),page.evaluate(() => window.open('about:blank')),@@ -43,13 +43,13 @@ it('should provide access to the opener page', async ({ page }) => {expect(opener).toBe(page);});-it('should fire domcontentloaded when expected', async ({ page }) => {+it('PA-004 should fire domcontentloaded when expected', async ({ page }) => {const navigatedPromise = page.goto('about:blank');await page.waitForEvent('domcontentloaded');await navigatedPromise;});-it('should pass self as argument to domcontentloaded event', async ({ page }) => {+it('PA-005 should pass self as argument to domcontentloaded event', async ({ page }) => {const [eventArg] = await Promise.all([new Promise(f => page.on('domcontentloaded', f)),page.goto('about:blank')@@ -57,7 +57,7 @@ it('should pass self as argument to domcontentloaded event', async ({ page }) =>expect(eventArg).toBe(page);});-it('should pass self as argument to load event', async ({ page }) => {+it('PA-006 should pass self as argument to load event', async ({ page }) => {const [eventArg] = await Promise.all([new Promise(f => page.on('load', f)),page.goto('about:blank')@@ -65,13 +65,13 @@ it('should pass self as argument to load event', async ({ page }) => {expect(eventArg).toBe(page);});-it('page.url should work', async ({ page, server }) => {+it('PA-007 page.url should work', async ({ page, server }) => {expect(page.url()).toBe('about:blank');await page.goto(server.EMPTY_PAGE);expect(page.url()).toBe(server.EMPTY_PAGE);});-it('page.url should include hashes', async ({ page, server }) => {+it('PA-008 page.url should include hashes', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE + '#hash');expect(page.url()).toBe(server.EMPTY_PAGE + '#hash');await page.evaluate(() => {@@ -80,12 +80,12 @@ it('page.url should include hashes', async ({ page, server }) => {expect(page.url()).toBe(server.EMPTY_PAGE + '#dynamic');});-it('page.title should return the page title', async ({ page, server }) => {+it('PA-009 page.title should return the page title', async ({ page, server }) => {await page.goto(server.PREFIX + '/title.html');expect(await page.title()).toBe('Woof-Woof');});-it('page.title should not throw during navigation', async ({ page, server }) => {+it('PA-010 page.title should not throw during navigation', async ({ page, server }) => {await page.setContent('<title>hello</title>');const promise = page.goto(server.PREFIX + '/title.html');const [titleOrError] = await Promise.all([@@ -97,7 +97,7 @@ it('page.title should not throw during navigation', async ({ page, server }) =>await expect(page).toHaveTitle('Woof-Woof');});-it('page.close should work with window.close', async function({ page }) {+it('PA-011 page.close should work with window.close', async function({ page }) {const newPagePromise = page.waitForEvent('popup');await page.evaluate(() => window['newPage'] = window.open('about:blank'));const newPage = await newPagePromise;@@ -106,7 +106,7 @@ it('page.close should work with window.close', async function({ page }) {await closedPromise;});-it('page.frame should respect name', async function({ page, isBidi }) {+it('PA-012 page.frame should respect name', async function({ page, isBidi }) {it.skip(isBidi, 'page.frame({ name }) is racy with BiDi');await page.setContent(`<iframe name=target></iframe>`);@@ -116,13 +116,13 @@ it('page.frame should respect name', async function({ page, isBidi }) {expect(frame === page.mainFrame().childFrames()[0]).toBeTruthy();});-it('page.frame should respect url', async function({ page, server }) {+it('PA-013 page.frame should respect url', async function({ page, server }) {await page.setContent(`<iframe src="${server.EMPTY_PAGE}"></iframe>`);expect(page.frame({ url: /bogus/ })).toBe(null);expect(page.frame({ url: /empty/ }).url()).toBe(server.EMPTY_PAGE);});-it('should have sane user agent', async ({ page, browserName, isElectron, isAndroid }) => {+it('PA-014 should have sane user agent', async ({ page, browserName, isElectron, isAndroid }) => {it.skip(isAndroid);it.skip(isElectron);@@ -161,13 +161,13 @@ it('should have sane user agent', async ({ page, browserName, isElectron, isAndrexpect(engine.startsWith('Version/')).toBe(true);});-it('page.press should work', async ({ page, server }) => {+it('PA-015 page.press should work', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.press('textarea', 'a');expect(await page.evaluate(() => document.querySelector('textarea').value)).toBe('a');});-it('page.press should work for Enter', async ({ page }) => {+it('PA-016 page.press should work for Enter', async ({ page }) => {await page.setContent(`<input onkeypress="console.log('press')"></input>`);const messages = [];page.on('console', message => messages.push(message));@@ -175,20 +175,20 @@ it('page.press should work for Enter', async ({ page }) => {expect(messages[0].text()).toBe('press');});-it('frame.press should work', async ({ page, server }) => {+it('PA-017 frame.press should work', async ({ page, server }) => {await page.setContent(`<iframe name=inner src="${server.PREFIX}/input/textarea.html"></iframe>`);const frame = page.frame('inner');await frame.press('textarea', 'a');expect(await frame.evaluate(() => document.querySelector('textarea').value)).toBe('a');});-it('has navigator.webdriver set to true', async ({ page, isAndroid }) => {+it('PA-018 has navigator.webdriver set to true', async ({ page, isAndroid }) => {it.fixme(isAndroid);expect(await page.evaluate(() => navigator.webdriver)).toBe(true);});-it('should iterate over page properties', async ({ page }) => {+it('PA-019 should iterate over page properties', async ({ page }) => {const props = [];for (const prop in page) {if (page[prop] && typeof page[prop] === 'object')diff --git a/tests/page/page-cache-storage.spec.ts b/tests/page/page-cache-storage.spec.tsindex b8ff90f91c..6cae41914c 100644--- a/tests/page/page-cache-storage.spec.ts+++ b/tests/page/page-cache-storage.spec.ts@@ -16,7 +16,7 @@import { test, expect } from './pageTest';-test('CacheStorage entry should survive page.reload()', {+test('ST-032 CacheStorage entry should survive page.reload()', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41618' }}, async ({ page, server, browserName, isAndroid }) => {test.fail(browserName === 'webkit', 'Ephemeral CacheStorage is not persisted across reload in WebKit, consistent with Safari');diff --git a/tests/page/page-check.spec.ts b/tests/page/page-check.spec.tsindex 73fe05acb4..60882d363a 100644--- a/tests/page/page-check.spec.ts+++ b/tests/page/page-check.spec.ts@@ -17,31 +17,31 @@import { test as it, expect } from './pageTest';-it('should check the box @smoke', async ({ page }) => {+it('CH-001 should check the box @smoke', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox'></input>`);await page.check('input');expect(await page.evaluate(() => window['checkbox'].checked)).toBe(true);});-it('should not check the checked box', async ({ page }) => {+it('CH-002 should not check the checked box', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox' checked></input>`);await page.check('input');expect(await page.evaluate(() => window['checkbox'].checked)).toBe(true);});-it('should uncheck the box', async ({ page }) => {+it('CH-003 should uncheck the box', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox' checked></input>`);await page.uncheck('input');expect(await page.evaluate(() => window['checkbox'].checked)).toBe(false);});-it('should not uncheck the unchecked box', async ({ page }) => {+it('CH-004 should not uncheck the unchecked box', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox'></input>`);await page.uncheck('input');expect(await page.evaluate(() => window['checkbox'].checked)).toBe(false);});-it('should check radio', async ({ page }) => {+it('CH-005 should check radio', async ({ page }) => {await page.setContent(`<input type='radio'>one</input><input id='two' type='radio'>two</input>@@ -50,7 +50,7 @@ it('should check radio', async ({ page }) => {expect(await page.evaluate(() => window['two'].checked)).toBe(true);});-it('should check radio by aria role', async ({ page }) => {+it('CH-006 should check radio by aria role', async ({ page }) => {await page.setContent(`<div role='radio' id='checkbox'>CHECKBOX</div><script>checkbox.addEventListener('click', () => checkbox.setAttribute('aria-checked', 'true'));@@ -59,7 +59,7 @@ it('should check radio by aria role', async ({ page }) => {expect(await page.evaluate(() => window['checkbox'].getAttribute('aria-checked'))).toBe('true');});-it('should uncheck radio by aria role', async ({ page }) => {+it('CH-007 should uncheck radio by aria role', async ({ page }) => {await page.setContent(`<div role='radio' id='checkbox' aria-checked="true">CHECKBOX</div><script>checkbox.addEventListener('click', () => checkbox.setAttribute('aria-checked', 'false'));@@ -68,7 +68,7 @@ it('should uncheck radio by aria role', async ({ page }) => {expect(await page.evaluate(() => window['checkbox'].getAttribute('aria-checked'))).toBe('false');});-it('should check the box by aria role', async ({ page }) => {+it('CH-008 should check the box by aria role', async ({ page }) => {for (const role of ['checkbox', 'menuitemcheckbox', 'option', 'radio', 'switch', 'menuitemradio', 'treeitem']) {await it.step(`role=${role}`, async () => {await page.setContent(`<div role='${role}' id='checkbox'>CHECKBOX</div>@@ -81,7 +81,7 @@ it('should check the box by aria role', async ({ page }) => {}});-it('should uncheck the box by aria role', async ({ page }) => {+it('CH-009 should uncheck the box by aria role', async ({ page }) => {for (const role of ['checkbox', 'menuitemcheckbox', 'option', 'radio', 'switch', 'menuitemradio', 'treeitem']) {await it.step(`role=${role}`, async () => {await page.setContent(`<div role='${role}' id='checkbox' aria-checked="true">CHECKBOX</div>@@ -94,19 +94,19 @@ it('should uncheck the box by aria role', async ({ page }) => {}});-it('should throw when not a checkbox', async ({ page }) => {+it('CH-010 should throw when not a checkbox', async ({ page }) => {await page.setContent(`<div>Check me</div>`);const error = await page.check('div').catch(e => e);expect(error.message).toContain('Not a checkbox or radio button');});-it('should throw when not a checkbox 2', async ({ page }) => {+it('CH-011 should throw when not a checkbox 2', async ({ page }) => {await page.setContent(`<div role=button>Check me</div>`);const error = await page.check('div').catch(e => e);expect(error.message).toContain('Not a checkbox or radio button');});-it('should check the box inside a button', async ({ page }) => {+it('CH-012 should check the box inside a button', async ({ page }) => {await page.setContent(`<div role='button'><input type='checkbox'></div>`);await page.check('input');expect(await page.$eval('input', input => input.checked)).toBe(true);@@ -114,7 +114,7 @@ it('should check the box inside a button', async ({ page }) => {expect(await (await page.$('input')).isChecked()).toBe(true);});-it('should check the label with position', async ({ page, server }) => {+it('CH-013 should check the label with position', async ({ page, server }) => {await page.setContent(`<input id='checkbox' type='checkbox' style='width: 5px; height: 5px;'><label for='checkbox'>@@ -126,19 +126,19 @@ it('should check the label with position', async ({ page, server }) => {expect(await page.$eval('input', input => input.checked)).toBe(true);});-it('trial run should not check', async ({ page }) => {+it('CH-014 trial run should not check', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox'></input>`);await page.check('input', { trial: true });expect(await page.evaluate(() => window['checkbox'].checked)).toBe(false);});-it('trial run should not uncheck', async ({ page }) => {+it('CH-015 trial run should not uncheck', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox' checked></input>`);await page.uncheck('input', { trial: true });expect(await page.evaluate(() => window['checkbox'].checked)).toBe(true);});-it('should check the box using setChecked', async ({ page }) => {+it('CH-016 should check the box using setChecked', async ({ page }) => {await page.setContent(`<input id='checkbox' type='checkbox'></input>`);await page.setChecked('input', true);expect(await page.evaluate(() => window['checkbox'].checked)).toBe(true);@@ -146,7 +146,7 @@ it('should check the box using setChecked', async ({ page }) => {expect(await page.evaluate(() => window['checkbox'].checked)).toBe(false);});-it('should throw when trying to uncheck radio button', async ({ page }) => {+it('CH-017 should throw when trying to uncheck radio button', async ({ page }) => {await page.setContent(`<input type='radio' name='test' checked id='radio'>`);const error = await page.uncheck('#radio').catch(e => e);expect(error.message).toContain('Cannot uncheck radio button');diff --git a/tests/page/page-click-during-navigation.spec.ts b/tests/page/page-click-during-navigation.spec.tsindex f3550fbb49..0bf079ebc3 100644--- a/tests/page/page-click-during-navigation.spec.ts+++ b/tests/page/page-click-during-navigation.spec.ts@@ -17,7 +17,7 @@import { test as it } from './pageTest';-it('should not fail with internal error upon navigation', async ({ page, server }) => {+it('CL-109 should not fail with internal error upon navigation', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');let triggered = false;const __testHookAfterStable = () => {diff --git a/tests/page/page-click-react.spec.ts b/tests/page/page-click-react.spec.tsindex f1ee9af3da..88b99b60d6 100644--- a/tests/page/page-click-react.spec.ts+++ b/tests/page/page-click-react.spec.ts@@ -21,7 +21,7 @@ declare const renderComponent;declare const e;declare const MyButton;-it('should timeout when click opens alert', async ({ page, server }) => {+it('CL-106 should timeout when click opens alert', async ({ page, server }) => {const dialogPromise = page.waitForEvent('dialog');await page.setContent(`<div onclick='window.alert(123)'>Click me</div>`);const error = await page.click('div', { timeout: 3000 }).catch(e => e);@@ -30,7 +30,7 @@ it('should timeout when click opens alert', async ({ page, server }) => {await dialog.dismiss();});-it('should not retarget when element changes on hover', async ({ page, server }) => {+it('CL-107 should not retarget when element changes on hover', async ({ page, server }) => {await page.goto(server.PREFIX + '/react.html');await page.evaluate(() => {renderComponent(e('div', {}, [e(MyButton, { name: 'button1', renameOnHover: true }), e(MyButton, { name: 'button2' })]));@@ -40,7 +40,7 @@ it('should not retarget when element changes on hover', async ({ page, server })expect(await page.evaluate('window.button2')).toBe(undefined);});-it('should not retarget when element is recycled on hover', async ({ page, server }) => {+it('CL-108 should not retarget when element is recycled on hover', async ({ page, server }) => {await page.goto(server.PREFIX + '/react.html');await page.evaluate(() => {function shuffle() {diff --git a/tests/page/page-click-scroll.spec.ts b/tests/page/page-click-scroll.spec.tsindex 43ebcf6012..0d9e607382 100644--- a/tests/page/page-click-scroll.spec.ts+++ b/tests/page/page-click-scroll.spec.ts@@ -16,7 +16,7 @@import { expect, test as it } from './pageTest';-it('should not hit scroll bar', async ({ page, browserName, platform }) => {+it('CL-094 should not hit scroll bar', async ({ page, browserName, platform }) => {await page.setContent(`<style>.categories { width: 180px; display: flex; overflow-x: scroll; }@@ -35,7 +35,7 @@ it('should not hit scroll bar', async ({ page, browserName, platform }) => {await page.click('text=Story', { timeout: 2000 });});-it('should scroll into view display:contents', async ({ page, browserName, browserMajorVersion }) => {+it('CL-095 should scroll into view display:contents', async ({ page, browserName, browserMajorVersion }) => {it.skip(browserName === 'chromium' && browserMajorVersion < 105, 'Needs https://chromium-review.googlesource.com/c/chromium/src/+/3758670');await page.setContent(`@@ -49,7 +49,7 @@ it('should scroll into view display:contents', async ({ page, browserName, browsexpect(await page.evaluate('window._clicked')).toBe(true);});-it('should scroll into view display:contents with a child', async ({ page, browserName, browserMajorVersion }) => {+it('CL-096 should scroll into view display:contents with a child', async ({ page, browserName, browserMajorVersion }) => {it.skip(browserName === 'chromium' && browserMajorVersion < 105, 'Needs https://chromium-review.googlesource.com/c/chromium/src/+/3758670');await page.setContent(`@@ -61,7 +61,7 @@ it('should scroll into view display:contents with a child', async ({ page, browsexpect(await page.evaluate('window._clicked')).toBe(true);});-it('should scroll into view display:contents with position', async ({ page, browserName }) => {+it('CL-097 should scroll into view display:contents with position', async ({ page, browserName }) => {it.fixme(browserName === 'chromium', 'DOM.getBoxModel does not work for display:contents');await page.setContent(`@@ -75,7 +75,7 @@ it('should scroll into view display:contents with position', async ({ page, browexpect(await page.evaluate('window._clicked')).toBe(true);});-it('should not crash when force-clicking hidden input', async ({ page }) => {+it('CL-098 should not crash when force-clicking hidden input', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18183' });await page.setContent(`<input type=hidden>`);@@ -83,7 +83,7 @@ it('should not crash when force-clicking hidden input', async ({ page }) => {expect(error.message).toContain('Element is not visible');});-it('should scroll into view span element', async ({ page, isAndroid }) => {+it('CL-099 should scroll into view span element', async ({ page, isAndroid }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/20165' });it.fixme(isAndroid);await page.setContent(`@@ -94,7 +94,7 @@ it('should scroll into view span element', async ({ page, isAndroid }) => {expect(await page.evaluate(() => window.scrollY)).toBeGreaterThan(9000);});-it('should scroll into view element in iframe', async ({ page, isAndroid, server, browserName }) => {+it('CL-100 should scroll into view element in iframe', async ({ page, isAndroid, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27196' });it.fixme(isAndroid);await page.goto(server.EMPTY_PAGE);@@ -105,7 +105,7 @@ it('should scroll into view element in iframe', async ({ page, isAndroid, serverawait page.frameLocator('iframe').getByRole('button').click({ timeout: 5000 });});-it('should not scroll the page when scroll is "none"', async ({ page }) => {+it('CL-101 should not scroll the page when scroll is "none"', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41421' });await page.setContent(`<div style="height: 2000px;"></div>@@ -117,7 +117,7 @@ it('should not scroll the page when scroll is "none"', async ({ page }) => {expect(await page.evaluate(() => window.scrollY)).toBe(0);});-it('should click in-viewport element when scroll is "none"', async ({ page }) => {+it('CL-102 should click in-viewport element when scroll is "none"', async ({ page }) => {await page.setContent(`<button onclick="window._clicked=true">click me</button><div style="height: 2000px;"></div>@@ -127,7 +127,7 @@ it('should click in-viewport element when scroll is "none"', async ({ page }) =>expect(await page.evaluate(() => window.scrollY)).toBe(0);});-it('should not scroll nested container when scroll is "none"', async ({ page }) => {+it('CL-103 should not scroll nested container when scroll is "none"', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41421' });await page.setContent(`<div style="height: 100px; width: 100px; overflow-y: scroll;">@@ -146,7 +146,7 @@ it('should not scroll nested container when scroll is "none"', async ({ page })expect(await page.evaluate('window._clicked')).toBe(true);});-it('should not scroll on hover when scroll is "none"', async ({ page }) => {+it('CL-104 should not scroll on hover when scroll is "none"', async ({ page }) => {await page.setContent(`<div style="height: 2000px;"></div><div onmouseover="window._hovered=true" style="width: 50px; height: 50px;">hover me</div>@@ -157,7 +157,7 @@ it('should not scroll on hover when scroll is "none"', async ({ page }) => {expect(await page.evaluate(() => window.scrollY)).toBe(0);});-it('should scroll instantly on retry when scroll-behavior is smooth', async ({ page }) => {+it('CL-105 should scroll instantly on retry when scroll-behavior is smooth', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42625' });// The fixed header covers everything but the bottom strip of the viewport.// The first attempt centers the button under the header, so the click isdiff --git a/tests/page/page-click-timeout-1.spec.ts b/tests/page/page-click-timeout-1.spec.tsindex 561348743b..70305fe89c 100644--- a/tests/page/page-click-timeout-1.spec.ts+++ b/tests/page/page-click-timeout-1.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should avoid side effects after timeout', async ({ page, server, mode }) => {+it('CL-110 should avoid side effects after timeout', async ({ page, server, mode }) => {it.skip(mode !== 'default');await page.goto(server.PREFIX + '/input/button.html');@@ -27,7 +27,7 @@ it('should avoid side effects after timeout', async ({ page, server, mode }) =>expect(error.message).toContain('page.click: Timeout 2000ms exceeded.');});-it('should timeout waiting for button to be enabled', async ({ page }) => {+it('CL-111 should timeout waiting for button to be enabled', async ({ page }) => {await page.setContent('<button onclick="javascript:window.__CLICKED=true;" disabled><span>Click target</span></button>');const error = await page.click('text=Click target', { timeout: 3000 }).catch(e => e);expect(await page.evaluate('window.__CLICKED')).toBe(undefined);@@ -36,7 +36,7 @@ it('should timeout waiting for button to be enabled', async ({ page }) => {expect(error.message).toContain('retrying click action');});-it('should timeout waiting for inert element to become non-inert', async ({ page }) => {+it('CL-112 should timeout waiting for inert element to become non-inert', async ({ page }) => {await page.setContent('<div inert><button onclick="javascript:window.__CLICKED=true;">Click target</button></div>');const error = await page.click('text=Click target', { timeout: 3000 }).catch(e => e);expect(await page.evaluate('window.__CLICKED')).toBe(undefined);@@ -45,7 +45,7 @@ it('should timeout waiting for inert element to become non-inert', async ({ pageexpect(error.message).toContain('retrying click action');});-it('should timeout waiting for element outside of a modal dialog', async ({ page }) => {+it('CL-113 should timeout waiting for element outside of a modal dialog', async ({ page }) => {await page.setContent(`<button onclick="javascript:window.__CLICKED=true;">Click target</button><dialog id=dialog><button>Inside</button></dialog>diff --git a/tests/page/page-click-timeout-2.spec.ts b/tests/page/page-click-timeout-2.spec.tsindex b3e4f12974..674225e640 100644--- a/tests/page/page-click-timeout-2.spec.ts+++ b/tests/page/page-click-timeout-2.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should timeout waiting for display:none to be gone', async ({ page, server }) => {+it('CL-114 should timeout waiting for display:none to be gone', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', b => b.style.display = 'none');const error = await page.click('button', { timeout: 5000 }).catch(e => e);@@ -27,7 +27,7 @@ it('should timeout waiting for display:none to be gone', async ({ page, server }expect(error.message).toContain('retrying click action');});-it('should timeout waiting for visibility:hidden to be gone', async ({ page, server }) => {+it('CL-115 should timeout waiting for visibility:hidden to be gone', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', b => b.style.visibility = 'hidden');const error = await page.click('button', { timeout: 5000 }).catch(e => e);diff --git a/tests/page/page-click-timeout-3.spec.ts b/tests/page/page-click-timeout-3.spec.tsindex e07f69edfe..ea07a4782c 100644--- a/tests/page/page-click-timeout-3.spec.ts+++ b/tests/page/page-click-timeout-3.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should fail when element jumps during hit testing', async ({ page, mode }) => {+it('CL-116 should fail when element jumps during hit testing', async ({ page, mode }) => {it.skip(mode !== 'default');await page.setContent('<button>Click me</button>');@@ -36,7 +36,7 @@ it('should fail when element jumps during hit testing', async ({ page, mode }) =expect(error.message).toContain('retrying click action');});-it('should timeout waiting for hit target', async ({ page, server }) => {+it('CL-117 should timeout waiting for hit target', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = await page.$('button');await page.evaluate(() => {@@ -57,7 +57,7 @@ it('should timeout waiting for hit target', async ({ page, server }) => {expect(error.message).toContain('waiting 500ms');});-it('should still click when force but hit target is obscured', async ({ page, server }) => {+it('CL-118 should still click when force but hit target is obscured', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = await page.$('button');await page.evaluate(() => {@@ -74,7 +74,7 @@ it('should still click when force but hit target is obscured', async ({ page, seawait button.click({ force: true });});-it('should report wrong hit target subtree', async ({ page, server }) => {+it('CL-119 should report wrong hit target subtree', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = await page.$('button');await page.evaluate(() => {diff --git a/tests/page/page-click-timeout-4.spec.ts b/tests/page/page-click-timeout-4.spec.tsindex 695f7b63cb..59855721ae 100644--- a/tests/page/page-click-timeout-4.spec.ts+++ b/tests/page/page-click-timeout-4.spec.ts@@ -17,7 +17,7 @@import { test as it, expect, rafraf } from './pageTest';-it('should timeout waiting for stable position', async ({ page, server }) => {+it('CL-120 should timeout waiting for stable position', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = await page.$('button');await button.evaluate(button => {@@ -33,7 +33,7 @@ it('should timeout waiting for stable position', async ({ page, server }) => {expect(error.message).toContain('retrying click action');});-it('should click for the second time after first timeout', async ({ page, server, mode }) => {+it('CL-121 should click for the second time after first timeout', async ({ page, server, mode }) => {it.skip(mode !== 'default');await page.goto(server.PREFIX + '/input/button.html');@@ -49,7 +49,7 @@ it('should click for the second time after first timeout', async ({ page, serverexpect(await page.evaluate('result')).toBe('Clicked');});-it('should fail to click the button behind a large header after scrolling around', async ({ page, isAndroid }) => {+it('CL-122 should fail to click the button behind a large header after scrolling around', async ({ page, isAndroid }) => {it.skip(isAndroid, 'Different viewport size');await page.setViewportSize({ width: 500, height: 240 });await page.setContent(`diff --git a/tests/page/page-click.spec.ts b/tests/page/page-click.spec.tsindex 160d1868fd..5ad6f62615 100644--- a/tests/page/page-click.spec.ts+++ b/tests/page/page-click.spec.ts@@ -21,13 +21,13 @@ import type { Page } from '@playwright/test';const giveItAChanceToClick = (page: Page) => rafraf(page, 5);-it('should click the button @smoke', async ({ page, server }) => {+it('CL-001 should click the button @smoke', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.click('button');expect(await page.evaluate('result')).toBe('Clicked');});-it('should click button inside frameset', async ({ page, server }) => {+it('CL-002 should click button inside frameset', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/frameset.html');const frameElement = await page.$('frame');await frameElement.evaluate((frame: HTMLFrameElement) => frame.src = '/input/button.html');@@ -36,7 +36,7 @@ it('should click button inside frameset', async ({ page, server }) => {expect(await frame.evaluate('result')).toBe('Clicked');});-it('should issue clicks in parallel in page and popup', async ({ page, server }) => {+it('CL-003 should issue clicks in parallel in page and popup', async ({ page, server }) => {await page.goto(server.PREFIX + '/counter.html');const [popup] = await Promise.all([page.waitForEvent('popup'),@@ -54,7 +54,7 @@ it('should issue clicks in parallel in page and popup', async ({ page, server })expect(await popup.evaluate(() => window['count'])).toBe(7);});-it('should click svg', async ({ page }) => {+it('CL-004 should click svg', async ({ page }) => {await page.setContent(`<svg height="100" width="100"><circle onclick="window.__CLICKED=42" cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />@@ -64,7 +64,7 @@ it('should click svg', async ({ page }) => {expect(await page.evaluate('__CLICKED')).toBe(42);});-it('should click the button if window.Node is removed', async ({ page, server }) => {+it('CL-005 should click the button if window.Node is removed', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.evaluate(() => delete window.Node);await page.click('button');@@ -72,7 +72,7 @@ it('should click the button if window.Node is removed', async ({ page, server })});// @see https://github.com/GoogleChrome/puppeteer/issues/4281-it('should click on a span with an inline element inside', async ({ page }) => {+it('CL-006 should click on a span with an inline element inside', async ({ page }) => {await page.setContent(`<style>span::before {@@ -85,43 +85,43 @@ it('should click on a span with an inline element inside', async ({ page }) => {expect(await page.evaluate('CLICKED')).toBe(42);});-it('should click the aligned 1x1 div', async ({ page }) => {+it('CL-007 should click the aligned 1x1 div', async ({ page }) => {await page.setContent(`<div style="width: 1px; height: 1px;" onclick="window.__clicked = true"></div>`);await page.click('div');expect(await page.evaluate('window.__clicked')).toBe(true);});-it('should click the half-aligned 1x1 div', async ({ page }) => {+it('CL-008 should click the half-aligned 1x1 div', async ({ page }) => {await page.setContent(`<div style="margin-left: 20.5px; margin-top: 11.5px; width: 1px; height: 1px;" onclick="window.__clicked = true"></div>`);await page.click('div');expect(await page.evaluate('window.__clicked')).toBe(true);});-it('should click the unaligned 1x1 div v1', async ({ page }) => {+it('CL-009 should click the unaligned 1x1 div v1', async ({ page }) => {await page.setContent(`<div style="margin-left: 20.23px; margin-top: 11.65px; width: 1px; height: 1px;" onclick="window.__clicked = true"></div>`);await page.click('div');expect(await page.evaluate('window.__clicked')).toBe(true);});-it('should click the unaligned 1x1 div v2', async ({ page }) => {+it('CL-010 should click the unaligned 1x1 div v2', async ({ page }) => {await page.setContent(`<div style="margin-left: 20.68px; margin-top: 11.13px; width: 1px; height: 1px;" onclick="window.__clicked = true"></div>`);await page.click('div');expect(await page.evaluate('window.__clicked')).toBe(true);});-it('should click the unaligned 1x1 div v3', async ({ page }) => {+it('CL-011 should click the unaligned 1x1 div v3', async ({ page }) => {await page.setContent(`<div style="margin-left: 20.68px; margin-top: 11.52px; width: 1px; height: 1px;" onclick="window.__clicked = true"></div>`);await page.click('div');expect(await page.evaluate('window.__clicked')).toBe(true);});-it('should click the unaligned 1x1 div v4', async ({ page }) => {+it('CL-012 should click the unaligned 1x1 div v4', async ({ page }) => {await page.setContent(`<div style="margin-left: 20.15px; margin-top: 11.24px; width: 1px; height: 1px;" onclick="window.__clicked = true"></div>`);await page.click('div');expect(await page.evaluate('window.__clicked')).toBe(true);});-it('should click the button after navigation ', async ({ page, server }) => {+it('CL-013 should click the button after navigation ', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.click('button');await page.goto(server.PREFIX + '/input/button.html');@@ -129,7 +129,7 @@ it('should click the button after navigation ', async ({ page, server }) => {expect(await page.evaluate('result')).toBe('Clicked');});-it('should click the button after a cross origin navigation ', async ({ page, server }) => {+it('CL-014 should click the button after a cross origin navigation ', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.click('button');await page.goto(server.CROSS_PROCESS_PREFIX + '/input/button.html');@@ -137,7 +137,7 @@ it('should click the button after a cross origin navigation ', async ({ page, seexpect(await page.evaluate('result')).toBe('Clicked');});-it('should click when one of inline box children is outside of viewport', async ({ page }) => {+it('CL-015 should click when one of inline box children is outside of viewport', async ({ page }) => {await page.setContent(`<style>i {@@ -151,7 +151,7 @@ it('should click when one of inline box children is outside of viewport', asyncexpect(await page.evaluate('CLICKED')).toBe(42);});-it('should select the text by triple clicking', async ({ page, server }) => {+it('CL-016 should select the text by triple clicking', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');const text = 'This is the text that we are going to try to select. Let\'s see how it goes.';await page.fill('textarea', text);@@ -162,7 +162,7 @@ it('should select the text by triple clicking', async ({ page, server }) => {})).toBe(text);});-it('should click offscreen buttons', async ({ page, server, browserName, headless }) => {+it('CL-017 should click offscreen buttons', async ({ page, server, browserName, headless }) => {await page.goto(server.PREFIX + '/offscreenbuttons.html');const messages = [];page.on('console', msg => messages.push(msg.text()));@@ -186,13 +186,13 @@ it('should click offscreen buttons', async ({ page, server, browserName, headles]);});-it('should waitFor visible when already visible', async ({ page, server }) => {+it('CL-018 should waitFor visible when already visible', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.click('button');expect(await page.evaluate('result')).toBe('Clicked');});-it('should not wait with force', async ({ page, server }) => {+it('CL-019 should not wait with force', async ({ page, server }) => {let error = null;await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', b => b.style.display = 'none');@@ -201,7 +201,7 @@ it('should not wait with force', async ({ page, server }) => {expect(await page.evaluate('result')).toBe('Was not clicked');});-it('should waitFor display:none to be gone', async ({ page, server }) => {+it('CL-020 should waitFor display:none to be gone', async ({ page, server }) => {let done = false;await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', b => b.style.display = 'none');@@ -215,7 +215,7 @@ it('should waitFor display:none to be gone', async ({ page, server }) => {expect(await page.evaluate('result')).toBe('Clicked');});-it('should waitFor visibility:hidden to be gone', async ({ page, server }) => {+it('CL-021 should waitFor visibility:hidden to be gone', async ({ page, server }) => {let done = false;await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', b => b.style.visibility = 'hidden');@@ -229,7 +229,7 @@ it('should waitFor visibility:hidden to be gone', async ({ page, server }) => {expect(await page.evaluate('result')).toBe('Clicked');});-it('should waitFor visible when parent is hidden', async ({ page, server }) => {+it('CL-022 should waitFor visible when parent is hidden', async ({ page, server }) => {let done = false;await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', b => b.parentElement.style.display = 'none');@@ -242,13 +242,13 @@ it('should waitFor visible when parent is hidden', async ({ page, server }) => {expect(await page.evaluate('result')).toBe('Clicked');});-it('should click wrapped links', async ({ page, server }) => {+it('CL-023 should click wrapped links', async ({ page, server }) => {await page.goto(server.PREFIX + '/wrappedlink.html');await page.click('a');expect(await page.evaluate('__clicked')).toBe(true);});-it('should click on checkbox input and toggle', async ({ page, server, headless }) => {+it('CL-024 should click on checkbox input and toggle', async ({ page, server, headless }) => {await page.goto(server.PREFIX + '/input/checkbox.html');expect(await page.evaluate(() => window['result'].check)).toBe(null);await page.click('input#agree');@@ -270,7 +270,7 @@ it('should click on checkbox input and toggle', async ({ page, server, headlessexpect(await page.evaluate(() => window['result'].check)).toBe(false);});-it('should click on checkbox label and toggle', async ({ page, server }) => {+it('CL-025 should click on checkbox label and toggle', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/checkbox.html');expect(await page.evaluate(() => window['result'].check)).toBe(null);await page.click('label[for="agree"]');@@ -284,7 +284,7 @@ it('should click on checkbox label and toggle', async ({ page, server }) => {expect(await page.evaluate(() => window['result'].check)).toBe(false);});-it('should scroll and click the button', async ({ page, server }) => {+it('CL-026 should scroll and click the button', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/scrollable.html');await page.click('#button-5');expect(await page.evaluate(() => document.querySelector('#button-5').textContent)).toBe('clicked');@@ -292,7 +292,7 @@ it('should scroll and click the button', async ({ page, server }) => {expect(await page.evaluate(() => document.querySelector('#button-80').textContent)).toBe('clicked');});-it('should scroll and click the button with smooth scroll behavior', async ({ page, server }) => {+it('CL-027 should scroll and click the button with smooth scroll behavior', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/12370' });await page.goto(server.PREFIX + '/input/scrollable.html');await page.addStyleTag({ content: 'html { scroll-behavior: smooth; }' });@@ -304,7 +304,7 @@ it('should scroll and click the button with smooth scroll behavior', async ({ pa}});-it('should double click the button', async ({ page, server }) => {+it('CL-028 should double click the button', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.evaluate(() => {window['double'] = false;@@ -318,7 +318,7 @@ it('should double click the button', async ({ page, server }) => {expect(await page.evaluate('result')).toBe('Clicked');});-it('should click a partially obscured button', async ({ page, server }) => {+it('CL-029 should click a partially obscured button', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.evaluate(() => {const button = document.querySelector('button');@@ -330,26 +330,26 @@ it('should click a partially obscured button', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('Clicked');});-it('should click a rotated button', async ({ page, server }) => {+it('CL-030 should click a rotated button', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/rotatedButton.html');await page.click('button');expect(await page.evaluate('result')).toBe('Clicked');});-it('should fire contextmenu event on right click', async ({ page, server }) => {+it('CL-031 should fire contextmenu event on right click', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/scrollable.html');await page.click('#button-8', { button: 'right' });expect(await page.evaluate(() => document.querySelector('#button-8').textContent)).toBe('context menu');});-it('should click links which cause navigation', async ({ page, server }) => {+it('CL-032 should click links which cause navigation', async ({ page, server }) => {// @see https://github.com/GoogleChrome/puppeteer/issues/206await page.setContent(`<a href="${server.EMPTY_PAGE}">empty.html</a>`);// This await should not hang.await page.click('a');});-it('should not wait for navigation after clicking a link answered with 204', {+it('CL-033 should not wait for navigation after clicking a link answered with 204', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43279' },}, async ({ page, server }) => {server.setRoute('/204', (req, res) => {@@ -362,7 +362,7 @@ it('should not wait for navigation after clicking a link answered with 204', {expect(page.url()).toBe(server.EMPTY_PAGE);});-it('should click the button inside an iframe', async ({ page, server }) => {+it('CL-034 should click the button inside an iframe', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent('<div style="width:100px;height:100px">spacer</div>');await attachFrame(page, 'button-test', server.PREFIX + '/input/button.html');@@ -372,7 +372,7 @@ it('should click the button inside an iframe', async ({ page, server }) => {expect(await frame.evaluate(() => window['result'])).toBe('Clicked');});-it('should click the button with fixed position inside an iframe', async ({ page, server, browserName }) => {+it('CL-035 should click the button with fixed position inside an iframe', async ({ page, server, browserName }) => {it.fixme(browserName === 'chromium');// @see https://github.com/GoogleChrome/puppeteer/issues/4110@@ -388,7 +388,7 @@ it('should click the button with fixed position inside an iframe', async ({ pageexpect(await frame.evaluate(() => window['result'])).toBe('Clicked');});-it('should click the button behind sticky header', async ({ page }) => {+it('CL-036 should click the button behind sticky header', async ({ page }) => {await page.setViewportSize({ width: 500, height: 240 });await page.setContent(`<style>@@ -425,7 +425,7 @@ it('should click the button behind sticky header', async ({ page }) => {expect(await page.evaluate(() => window['__clicked'])).toBe(true);});-it('should click the button behind position:absolute header', {+it('CL-037 should click the button behind position:absolute header', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36339' },}, async ({ page }) => {await page.setViewportSize({ width: 500, height: 240 });@@ -473,7 +473,7 @@ it('should click the button behind position:absolute header', {expect(await page.evaluate(() => window['__clicked'])).toBe(true);});-it('should click the button with px border with offset', async ({ page, server, isFrozenWebkit }) => {+it('CL-038 should click the button with px border with offset', async ({ page, server, isFrozenWebkit }) => {it.skip(isFrozenWebkit, 'needs recent webkit');await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', button => button.style.borderWidth = '8px');@@ -484,7 +484,7 @@ it('should click the button with px border with offset', async ({ page, server,expect(await page.evaluate('offsetY')).toBe(10);});-it('should click the button with em border with offset', async ({ page, server, isFrozenWebkit }) => {+it('CL-039 should click the button with em border with offset', async ({ page, server, isFrozenWebkit }) => {it.skip(isFrozenWebkit, 'needs recent webkit');await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', button => button.style.borderWidth = '2em');@@ -496,7 +496,7 @@ it('should click the button with em border with offset', async ({ page, server,expect(await page.evaluate('offsetY')).toBe(10);});-it('should click a very large button with offset', async ({ page, server, isFrozenWebkit, isAndroid }) => {+it('CL-040 should click a very large button with offset', async ({ page, server, isFrozenWebkit, isAndroid }) => {it.fixme(isAndroid, 'Failed to scroll to a particular point');it.skip(isFrozenWebkit, 'needs recent webkit');await page.goto(server.PREFIX + '/input/button.html');@@ -509,7 +509,7 @@ it('should click a very large button with offset', async ({ page, server, isFrozexpect(await page.evaluate('offsetY')).toBe(1910);});-it('should click a button in scrolling container with offset', async ({ page, server, isFrozenWebkit, isAndroid }) => {+it('CL-041 should click a button in scrolling container with offset', async ({ page, server, isFrozenWebkit, isAndroid }) => {it.fixme(isAndroid, 'Failed to scroll to a particular point');it.skip(isFrozenWebkit, 'needs recent webkit');await page.goto(server.PREFIX + '/input/button.html');@@ -531,7 +531,7 @@ it('should click a button in scrolling container with offset', async ({ page, seexpect(await page.evaluate('offsetY')).toBe(1910);});-it('should wait for stable position', async ({ page, server }) => {+it('CL-042 should wait for stable position', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', button => {button.style.transition = 'margin 500ms linear 0s';@@ -552,7 +552,7 @@ it('should wait for stable position', async ({ page, server }) => {expect(await page.evaluate('pageY')).toBe(10);});-it('should wait for becoming hit target', async ({ page, server }) => {+it('CL-043 should wait for becoming hit target', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', button => {button.style.borderWidth = '0';@@ -584,7 +584,7 @@ it('should wait for becoming hit target', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('Clicked');});-it('should wait for becoming hit target with trial run', async ({ page, server }) => {+it('CL-044 should wait for becoming hit target with trial run', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', button => {button.style.borderWidth = '0';@@ -618,7 +618,7 @@ it('should wait for becoming hit target with trial run', async ({ page, server }expect(await page.evaluate(() => window['result'])).toBe('Was not clicked');});-it('trial run should work with short timeout', async ({ page, server }) => {+it('CL-045 trial run should work with short timeout', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.$eval('button', button => button.disabled = true);const error = await page.click('button', { trial: true, timeout: 2000 }).catch(e => e);@@ -626,13 +626,13 @@ it('trial run should work with short timeout', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('Was not clicked');});-it('trial run should not click', async ({ page, server }) => {+it('CL-046 trial run should not click', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.click('button', { trial: true });expect(await page.evaluate(() => window['result'])).toBe('Was not clicked');});-it('trial run should not double click', async ({ page, server }) => {+it('CL-047 trial run should not double click', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.evaluate(() => {window['double'] = false;@@ -646,7 +646,7 @@ it('trial run should not double click', async ({ page, server }) => {expect(await page.evaluate('result')).toBe('Was not clicked');});-it('should fail when obscured and not waiting for hit target', async ({ page, server }) => {+it('CL-048 should fail when obscured and not waiting for hit target', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = await page.$('button');await page.evaluate(() => {@@ -663,7 +663,7 @@ it('should fail when obscured and not waiting for hit target', async ({ page, seexpect(await page.evaluate(() => window['result'])).toBe('Was not clicked');});-it('should wait for button to be enabled', async ({ page }) => {+it('CL-049 should wait for button to be enabled', async ({ page }) => {await page.setContent('<button onclick="window.__CLICKED=true;" disabled><span>Click target</span></button>');let done = false;const clickPromise = page.click('text=Click target').then(() => done = true);@@ -675,7 +675,7 @@ it('should wait for button to be enabled', async ({ page }) => {expect(await page.evaluate('__CLICKED')).toBe(true);});-it('should wait for element to become non-inert', async ({ page }) => {+it('CL-050 should wait for element to become non-inert', async ({ page }) => {await page.setContent('<div inert id=container><button onclick="window.__CLICKED=true;"><span>Click target</span></button></div>');let done = false;const clickPromise = page.click('text=Click target').then(() => done = true);@@ -687,7 +687,7 @@ it('should wait for element to become non-inert', async ({ page }) => {expect(await page.evaluate('__CLICKED')).toBe(true);});-it('should wait for modal dialog to close', async ({ page }) => {+it('CL-051 should wait for modal dialog to close', async ({ page }) => {await page.setContent(`<button onclick="window.__CLICKED=true;">Click target</button><dialog id=dialog><button onclick="window.__DIALOG_CLICKED=true;">Inside</button></dialog>@@ -708,7 +708,7 @@ it('should wait for modal dialog to close', async ({ page }) => {expect(await page.evaluate('__CLICKED')).toBe(true);});-it('should wait for input to be enabled', async ({ page }) => {+it('CL-052 should wait for input to be enabled', async ({ page }) => {await page.setContent('<input onclick="window.__CLICKED=true;" disabled>');let done = false;const clickPromise = page.click('input').then(() => done = true);@@ -720,7 +720,7 @@ it('should wait for input to be enabled', async ({ page }) => {expect(await page.evaluate('__CLICKED')).toBe(true);});-it('should wait for select to be enabled', async ({ page }) => {+it('CL-053 should wait for select to be enabled', async ({ page }) => {await page.setContent(`<select disabled><option selected>Hello</option></select><script>@@ -740,13 +740,13 @@ it('should wait for select to be enabled', async ({ page }) => {expect(await page.evaluate('__CLICKED')).toBe(true);});-it('should click disabled div', async ({ page }) => {+it('CL-054 should click disabled div', async ({ page }) => {await page.setContent('<div onclick="window.__CLICKED=true" disabled>Click target</div>');await page.click('text=Click target');expect(await page.evaluate('__CLICKED')).toBe(true);});-it('should wait for BUTTON to be clickable when it has pointer-events:none', async ({ page }) => {+it('CL-055 should wait for BUTTON to be clickable when it has pointer-events:none', async ({ page }) => {await page.setContent('<button onclick="window.__CLICKED=true" style="pointer-events:none"><span>Click target</span></button>');let done = false;const clickPromise = page.click('text=Click target').then(() => done = true);@@ -758,7 +758,7 @@ it('should wait for BUTTON to be clickable when it has pointer-events:none', asyexpect(await page.evaluate('__CLICKED')).toBe(true);});-it('should wait for LABEL to be clickable when it has pointer-events:none', async ({ page }) => {+it('CL-056 should wait for LABEL to be clickable when it has pointer-events:none', async ({ page }) => {await page.setContent('<label onclick="window.__CLICKED=true" style="pointer-events:none"><span>Click target</span></label>');const clickPromise = page.click('text=Click target');// Do a few roundtrips to the page.@@ -770,7 +770,7 @@ it('should wait for LABEL to be clickable when it has pointer-events:none', asynexpect(await page.evaluate('__CLICKED')).toBe(true);});-it('should update modifiers correctly', async ({ page, server }) => {+it('CL-057 should update modifiers correctly', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.click('button', { modifiers: ['Shift'] });expect(await page.evaluate('shiftKey')).toBe(true);@@ -787,7 +787,7 @@ it('should update modifiers correctly', async ({ page, server }) => {expect(await page.evaluate('shiftKey')).toBe(false);});-it('should click an offscreen element when scroll-behavior is smooth', async ({ page }) => {+it('CL-058 should click an offscreen element when scroll-behavior is smooth', async ({ page }) => {await page.setContent(`<div style="border: 1px solid black; height: 500px; overflow: auto; width: 500px; scroll-behavior: smooth"><button style="margin-top: 2000px" onClick="window.clicked = true">hi</button>@@ -797,7 +797,7 @@ it('should click an offscreen element when scroll-behavior is smooth', async ({expect(await page.evaluate('window.clicked')).toBe(true);});-it('should report nice error when element is detached and force-clicked', async ({ page, server }) => {+it('CL-059 should report nice error when element is detached and force-clicked', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/animating-button.html');await page.evaluate('addButton()');const handle = await page.$('button');@@ -808,7 +808,7 @@ it('should report nice error when element is detached and force-clicked', asyncexpect(error.message).toContain('Element is not attached to the DOM');});-it('should fail when element detaches after animation', async ({ page, server }) => {+it('CL-060 should fail when element detaches after animation', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/animating-button.html');await page.evaluate('addButton()');const handle = await page.$('button');@@ -819,7 +819,7 @@ it('should fail when element detaches after animation', async ({ page, server })expect(error.message).toContain('Element is not attached to the DOM');});-it('should retry when element detaches after animation', async ({ page, server }) => {+it('CL-061 should retry when element detaches after animation', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/animating-button.html');await page.evaluate('addButton()');let clicked = false;@@ -840,7 +840,7 @@ it('should retry when element detaches after animation', async ({ page, server }expect(await page.evaluate('clicked')).toBe(true);});-it('should retry when element is animating from outside the viewport', async ({ page }) => {+it('CL-062 should retry when element is animating from outside the viewport', async ({ page }) => {await page.setContent(`<style>@keyframes move {from { left: -300px; }@@ -868,7 +868,7 @@ it('should retry when element is animating from outside the viewport', async ({expect(await page.evaluate('clicked')).toBe(true);});-it('should fail when element is animating from outside the viewport with force', async ({ page }) => {+it('CL-063 should fail when element is animating from outside the viewport with force', async ({ page }) => {await page.setContent(`<style>@keyframes move {from { left: -300px; }@@ -897,7 +897,7 @@ it('should fail when element is animating from outside the viewport with force',expect(error.message).toContain('Element is outside of the viewport');});-it('should dispatch microtasks in order', async ({ page }) => {+it('CL-064 should dispatch microtasks in order', async ({ page }) => {await page.setContent(`<button id=button>Click me</button><script>@@ -920,14 +920,14 @@ it('should dispatch microtasks in order', async ({ page }) => {expect(await page.evaluate(() => window['result'])).toBe(1);});-it('should click the button when window.innerWidth is corrupted', async ({ page, server }) => {+it('CL-065 should click the button when window.innerWidth is corrupted', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.evaluate(() => Object.defineProperty(window, 'innerWidth', { value: 0 }));await page.click('button');expect(await page.evaluate('result')).toBe('Clicked');});-it('should click zero-sized input by label', async ({ page }) => {+it('CL-066 should click zero-sized input by label', async ({ page }) => {await page.setContent(`<label>Click me@@ -938,7 +938,7 @@ it('should click zero-sized input by label', async ({ page }) => {expect(await page.evaluate('window.__clicked')).toBe(true);});-it('should not throw protocol error when navigating during the click', async ({ page, server, mode }) => {+it('CL-067 should not throw protocol error when navigating during the click', async ({ page, server, mode }) => {it.skip(mode !== 'default');await page.goto(server.PREFIX + '/input/button.html');@@ -953,7 +953,7 @@ it('should not throw protocol error when navigating during the click', async ({expect(await page.evaluate('result')).toBe('Clicked');});-it('should retry when navigating during the click', async ({ page, server, mode, isAndroid }) => {+it('CL-068 should retry when navigating during the click', async ({ page, server, mode, isAndroid }) => {it.skip(mode !== 'default');it.fixme(isAndroid);@@ -969,7 +969,7 @@ it('should retry when navigating during the click', async ({ page, server, mode,expect(error.message).toContain('element was detached from the DOM, retrying');});-it('should not hang when frame is detached', async ({ page, server, mode }) => {+it('CL-069 should not hang when frame is detached', async ({ page, server, mode }) => {it.skip(mode !== 'default');await attachFrame(page, 'frame1', server.EMPTY_PAGE);@@ -1003,19 +1003,19 @@ it('should not hang when frame is detached', async ({ page, server, mode }) => {expect(error.message).toMatch(/frame got detached|Frame was detached/);});-it('should climb dom for inner label with pointer-events:none', async ({ page }) => {+it('CL-070 should climb dom for inner label with pointer-events:none', async ({ page }) => {await page.setContent('<button onclick="window.__CLICKED=true;"><label style="pointer-events:none">Click target</label></button>');await page.click('text=Click target');expect(await page.evaluate('__CLICKED')).toBe(true);});-it('should climb up to [role=button]', async ({ page }) => {+it('CL-071 should climb up to [role=button]', async ({ page }) => {await page.setContent('<div role=button onclick="window.__CLICKED=true;"><div style="pointer-events:none"><span><div>Click target</div></span></div>');await page.click('text=Click target');expect(await page.evaluate('__CLICKED')).toBe(true);});-it('should climb up to a anchor', async ({ page }) => {+it('CL-072 should climb up to a anchor', async ({ page }) => {// For Firefox its not allowed to return anything: https://bugzilla.mozilla.org/show_bug.cgi?id=1392046// Note the intermediate div - it is necessary, otherwise <a><non-clickable/></a> is not recognized as a clickable link.await page.setContent(`<a href="#" onclick="window.__CLICKED=true" id="outer"><div id="intermediate"><div id="inner" style="pointer-events: none">Inner</div></div></a>`);@@ -1023,13 +1023,13 @@ it('should climb up to a anchor', async ({ page }) => {expect(await page.evaluate('__CLICKED')).toBe(true);});-it('should climb up to a [role=link]', async ({ page }) => {+it('CL-073 should climb up to a [role=link]', async ({ page }) => {await page.setContent(`<div role=link onclick="window.__CLICKED=true" id="outer"><div id="inner" style="pointer-events: none">Inner</div></div>`);await page.click('#inner');expect(await page.evaluate('__CLICKED')).toBe(true);});-it('should click in an iframe with border', async ({ page }) => {+it('CL-074 should click in an iframe with border', async ({ page }) => {await page.setContent(`<style>body, html, iframe { margin: 0; padding: 0; border: none; box-sizing: border-box; }@@ -1051,7 +1051,7 @@ it('should click in an iframe with border', async ({ page }) => {expect(await page.evaluate('window._clicked')).toBe(true);});-it('should click in an iframe with border 2', async ({ page }) => {+it('CL-075 should click in an iframe with border 2', async ({ page }) => {await page.setContent(`<style>body, html, iframe { margin: 0; padding: 0; border: none; }@@ -1073,7 +1073,7 @@ it('should click in an iframe with border 2', async ({ page }) => {expect(await page.evaluate('window._clicked')).toBe(true);});-it('should not retain removed iframe after clicking inside it', async ({ page, isAndroid }) => {+it('CL-076 should not retain removed iframe after clicking inside it', async ({ page, isAndroid }) => {it.skip(isAndroid, 'requesting gc is not enough');await page.setContent('<iframe srcdoc="<button>Click</button>"></iframe>');@@ -1091,7 +1091,7 @@ it('should not retain removed iframe after clicking inside it', async ({ page, iexpect(retained).toBe(false);});-it('should click in a transformed iframe', async ({ page }) => {+it('CL-077 should click in a transformed iframe', async ({ page }) => {await page.setContent(`<style>body, html, iframe { margin: 0; padding: 0; border: none; }@@ -1121,7 +1121,7 @@ it('should click in a transformed iframe', async ({ page }) => {expect(await page.evaluate('window._clicked')).toBe(true);});-it('should click a button that is overlaid by a permission popup', async ({ page, server }) => {+it('CL-078 should click a button that is overlaid by a permission popup', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23280' });await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.EMPTY_PAGE);@@ -1151,7 +1151,7 @@ it('should click a button that is overlaid by a permission popup', async ({ pageawait page.click(`text=${i}`);});-it('should click in a transformed iframe with force', async ({ page }) => {+it('CL-079 should click in a transformed iframe with force', async ({ page }) => {await page.setContent(`<style>body, html, iframe { margin: 0; padding: 0; border: none; }@@ -1173,7 +1173,7 @@ it('should click in a transformed iframe with force', async ({ page }) => {expect(await page.evaluate('window._clicked')).toBe(true);});-it('should click in a nested transformed iframe', async ({ page }) => {+it('CL-080 should click in a nested transformed iframe', async ({ page }) => {await page.setContent(`<style>body, html, iframe { margin: 0; padding: 0; box-sizing: border-box; }@@ -1200,7 +1200,7 @@ it('should click in a nested transformed iframe', async ({ page }) => {expect(await page.evaluate('window._clicked')).toBe(true);});-it('ensure events are dispatched in the individual tasks', async ({ page, browserName }) => {+it('CL-081 ensure events are dispatched in the individual tasks', async ({ page, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/19685' });await page.setContent(`<div id="outer" style="background: #d4d4d4; width: 60px; height: 60px;">@@ -1242,7 +1242,7 @@ it('ensure events are dispatched in the individual tasks', async ({ page, browse]);});-it('should click if opened select covers the button', async ({ page }) => {+it('CL-082 should click if opened select covers the button', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23618' });await page.setContent(`<div>@@ -1264,7 +1264,7 @@ it('should click if opened select covers the button', async ({ page }) => {expect(await page.evaluate('window.__CLICKED')).toBe(42);});-it('should fire contextmenu event on right click in correct order', async ({ page, server, browserName, isWindows }) => {+it('CL-083 should fire contextmenu event on right click in correct order', async ({ page, server, browserName, isWindows }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/26515' });await page.goto(server.EMPTY_PAGE);await page.setContent(`@@ -1285,7 +1285,7 @@ it('should fire contextmenu event on right click in correct order', async ({ pagawait expect.poll(() => entries).toEqual(['mousedown', 'contextmenu', 'mouseup']);});-it('should click after a right click', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39246' } }, async ({ page }) => {+it('CL-084 should click after a right click', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39246' } }, async ({ page }) => {await page.setContent(`<button>Click me</button><script>@@ -1298,7 +1298,7 @@ it('should click after a right click', { annotation: { type: 'issue', descriptioawait expect(page.getByRole('button')).toHaveText('Clicked!');});-it('should set PointerEvent.pressure on pointerdown', async ({ page, isLinux, headless }) => {+it('CL-085 should set PointerEvent.pressure on pointerdown', async ({ page, isLinux, headless }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35844' });await page.setContent(`<button id="target">Click me</button>@@ -1315,7 +1315,7 @@ it('should set PointerEvent.pressure on pointerdown', async ({ page, isLinux, he]));});-it('should set PointerEvent.pressure on pointermove', async ({ page, isLinux, headless, isWindows, browserName, isAndroid }) => {+it('CL-086 should set PointerEvent.pressure on pointermove', async ({ page, isLinux, headless, isWindows, browserName, isAndroid }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35844' });it.fixme(isAndroid, 'Android coordinates seem to have rounding issues.');await page.setContent(`@@ -1341,7 +1341,7 @@ it('should set PointerEvent.pressure on pointermove', async ({ page, isLinux, he]));});-it('should click into shadow root with slotted div', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37768' } }, async ({ page }) => {+it('CL-087 should click into shadow root with slotted div', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37768' } }, async ({ page }) => {await page.setContent(`<my-button><template shadowrootmode="open">@@ -1354,7 +1354,7 @@ it('should click into shadow root with slotted div', { annotation: { type: 'issuawait page.getByRole('button', { name: 'Foo' }).click();});-it('should click shadow root button', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37768' } }, async ({ page }) => {+it('CL-088 should click shadow root button', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37768' } }, async ({ page }) => {await page.setContent(`<my-button><template shadowrootmode="open">@@ -1367,7 +1367,7 @@ it('should click shadow root button', { annotation: { type: 'issue', descriptionawait page.locator('my-button').click();});-it('should click with tweened mouse movement', async ({ page, browserName, isAndroid, headless }) => {+it('CL-089 should click with tweened mouse movement', async ({ page, browserName, isAndroid, headless }) => {it.skip(isAndroid, 'Bad rounding');it.skip(!headless, 'System cursor tends to interfere with this test');@@ -1398,7 +1398,7 @@ it('should click with tweened mouse movement', async ({ page, browserName, isAnd]);});-it('should abort via signal', async ({ page }) => {+it('CL-090 should abort via signal', async ({ page }) => {await page.setContent(`<button style="display:none">click me</button>`);const controller = new AbortController();const promise = page.locator('button').click({ signal: controller.signal, timeout: 0 }).catch(e => e);@@ -1414,7 +1414,7 @@ it('should abort via signal', async ({ page }) => {expect(error.cause).toBe(reason);});-it('should throw an Error when aborted in-flight with a string reason', async ({ page }) => {+it('CL-091 should throw an Error when aborted in-flight with a string reason', async ({ page }) => {await page.setContent(`<button style="display:none">click me</button>`);const controller = new AbortController();const promise = page.locator('button').click({ signal: controller.signal, timeout: 0 });@@ -1426,7 +1426,7 @@ it('should throw an Error when aborted in-flight with a string reason', async ({expect(error.cause).toBe('aborted by user');});-it('should abort via already-aborted signal', async ({ page }) => {+it('CL-092 should abort via already-aborted signal', async ({ page }) => {await page.setContent(`<button>click me</button>`);const controller = new AbortController();const reason = new Error('Already aborted');@@ -1437,7 +1437,7 @@ it('should abort via already-aborted signal', async ({ page }) => {expect(error.cause).toBe(reason);});-it('should throw an Error when aborted via an already-aborted signal with a string reason', async ({ page }) => {+it('CL-093 should throw an Error when aborted via an already-aborted signal with a string reason', async ({ page }) => {await page.setContent(`<button>click me</button>`);const controller = new AbortController();controller.abort('already aborted');diff --git a/tests/page/page-dialog.spec.ts b/tests/page/page-dialog.spec.tsindex 441611ab20..7891b52f3f 100644--- a/tests/page/page-dialog.spec.ts+++ b/tests/page/page-dialog.spec.ts@@ -19,7 +19,7 @@ import { test as it, expect } from './pageTest';import type { Dialog } from 'playwright-core';-it('should fire', async ({ page, server }) => {+it('DI-001 should fire', async ({ page, server }) => {page.on('dialog', dialog => {expect(dialog.type()).toBe('alert');expect(dialog.defaultValue()).toBe('');@@ -29,7 +29,7 @@ it('should fire', async ({ page, server }) => {await page.evaluate(() => alert('yo'));});-it('should fire dialogclosed when dialog is accepted', async ({ page }) => {+it('DI-002 should fire dialogclosed when dialog is accepted', async ({ page }) => {const closed: Dialog[] = [];page.on('dialogclosed', dialog => closed.push(dialog));let opened: Dialog | undefined;@@ -46,7 +46,7 @@ it('should fire dialogclosed when dialog is accepted', async ({ page }) => {expect(closed.length).toBe(1);});-it('should fire dialogclosed when dialog is dismissed', async ({ page }) => {+it('DI-003 should fire dialogclosed when dialog is dismissed', async ({ page }) => {const closedPromise = page.waitForEvent('dialogclosed');page.on('dialog', dialog => void dialog.dismiss());await page.evaluate(() => confirm('boolean?'));@@ -55,14 +55,14 @@ it('should fire dialogclosed when dialog is dismissed', async ({ page }) => {expect(dialog.message()).toBe('boolean?');});-it('should fire dialogclosed for auto-dismissed dialogs', async ({ page }) => {+it('DI-004 should fire dialogclosed for auto-dismissed dialogs', async ({ page }) => {const closedPromise = page.waitForEvent('dialogclosed');await page.evaluate(() => alert('yo'));const dialog = await closedPromise;expect(dialog.message()).toBe('yo');});-it('should allow accepting prompts @smoke', async ({ page, isElectron }) => {+it('DI-005 should allow accepting prompts @smoke', async ({ page, isElectron }) => {it.skip(isElectron, 'prompt() is not a thing in electron');page.on('dialog', dialog => {@@ -75,7 +75,7 @@ it('should allow accepting prompts @smoke', async ({ page, isElectron }) => {expect(result).toBe('answer!');});-it('should dismiss the prompt', async ({ page, isElectron }) => {+it('DI-006 should dismiss the prompt', async ({ page, isElectron }) => {it.skip(isElectron, 'prompt() is not a thing in electron');page.on('dialog', dialog => dialog.dismiss());@@ -83,7 +83,7 @@ it('should dismiss the prompt', async ({ page, isElectron }) => {expect(result).toBe(null);});-it('should accept the confirm prompt', async ({ page }) => {+it('DI-007 should accept the confirm prompt', async ({ page }) => {page.on('dialog', dialog => {void dialog.accept();});@@ -91,7 +91,7 @@ it('should accept the confirm prompt', async ({ page }) => {expect(result).toBe(true);});-it('should dismiss the confirm prompt', async ({ page }) => {+it('DI-008 should dismiss the confirm prompt', async ({ page }) => {page.on('dialog', dialog => {void dialog.dismiss();});@@ -99,7 +99,7 @@ it('should dismiss the confirm prompt', async ({ page }) => {expect(result).toBe(false);});-it('should be able to close context with open alert', async ({ page }) => {+it('DI-009 should be able to close context with open alert', async ({ page }) => {const alertPromise = page.waitForEvent('dialog');await page.evaluate(() => {window.builtins.setTimeout(() => alert('hello'), 0);@@ -107,7 +107,7 @@ it('should be able to close context with open alert', async ({ page }) => {await alertPromise;});-it('should handle multiple alerts', async ({ page }) => {+it('DI-010 should handle multiple alerts', async ({ page }) => {page.on('dialog', dialog => {void dialog.accept().catch(e => {});});@@ -122,7 +122,7 @@ it('should handle multiple alerts', async ({ page }) => {expect(await page.textContent('p')).toBe('Hello World');});-it('should handle multiple confirms', async ({ page }) => {+it('DI-011 should handle multiple confirms', async ({ page }) => {page.on('dialog', dialog => {void dialog.accept().catch(e => {});});@@ -137,14 +137,14 @@ it('should handle multiple confirms', async ({ page }) => {expect(await page.textContent('p')).toBe('Hello World');});-it('should auto-dismiss the prompt without listeners', async ({ page, isElectron }) => {+it('DI-012 should auto-dismiss the prompt without listeners', async ({ page, isElectron }) => {it.skip(isElectron, 'prompt() is not a thing in electron');const result = await page.evaluate(() => prompt('question?'));expect(result).toBe(null);});-it('should auto-dismiss the alert without listeners', async ({ page }) => {+it('DI-013 should auto-dismiss the alert without listeners', async ({ page }) => {await page.setContent(`<div onclick="window.alert(123); window._clicked=true">Click me</div>`);await page.click('div');expect(await page.evaluate('window._clicked')).toBe(true);diff --git a/tests/page/page-dispatchevent.spec.ts b/tests/page/page-dispatchevent.spec.tsindex 4ad21e2c16..a9170d0dfb 100644--- a/tests/page/page-dispatchevent.spec.ts+++ b/tests/page/page-dispatchevent.spec.ts@@ -16,13 +16,13 @@import { test as it, expect } from './pageTest';-it('should dispatch click event @smoke', async ({ page, server }) => {+it('DE-001 should dispatch click event @smoke', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.dispatchEvent('button', 'click');expect(await page.evaluate(() => window['result'])).toBe('Clicked');});-it('should dispatch click event properties', async ({ page, server }) => {+it('DE-002 should dispatch click event properties', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.dispatchEvent('button', 'click');expect(await page.evaluate('bubbles')).toBeTruthy();@@ -30,7 +30,7 @@ it('should dispatch click event properties', async ({ page, server }) => {expect(await page.evaluate('composed')).toBeTruthy();});-it('should dispatch click svg', async ({ page }) => {+it('DE-003 should dispatch click svg', async ({ page }) => {await page.setContent(`<svg height="100" width="100"><circle onclick="javascript:window.__CLICKED=42" cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />@@ -40,7 +40,7 @@ it('should dispatch click svg', async ({ page }) => {expect(await page.evaluate(() => window['__CLICKED'])).toBe(42);});-it('should dispatch click on a span with an inline element inside', async ({ page }) => {+it('DE-004 should dispatch click on a span with an inline element inside', async ({ page }) => {await page.setContent(`<style>span::before {@@ -53,7 +53,7 @@ it('should dispatch click on a span with an inline element inside', async ({ pagexpect(await page.evaluate(() => window['CLICKED'])).toBe(42);});-it('should dispatch click after navigation ', async ({ page, server }) => {+it('DE-005 should dispatch click after navigation ', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.dispatchEvent('button', 'click');await page.goto(server.PREFIX + '/input/button.html');@@ -61,7 +61,7 @@ it('should dispatch click after navigation ', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('Clicked');});-it('should dispatch click after a cross origin navigation ', async ({ page, server }) => {+it('DE-006 should dispatch click after a cross origin navigation ', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');await page.dispatchEvent('button', 'click');await page.goto(server.CROSS_PROCESS_PREFIX + '/input/button.html');@@ -69,7 +69,7 @@ it('should dispatch click after a cross origin navigation ', async ({ page, servexpect(await page.evaluate(() => window['result'])).toBe('Clicked');});-it('should not fail when element is blocked on hover', async ({ page }) => {+it('DE-007 should not fail when element is blocked on hover', async ({ page }) => {await page.setContent(`<style>container { display: block; position: relative; width: 200px; height: 50px; }div, button { position: absolute; left: 0; top: 0; bottom: 0; right: 0; }@@ -84,7 +84,7 @@ it('should not fail when element is blocked on hover', async ({ page }) => {expect(await page.evaluate(() => window['clicked'])).toBeTruthy();});-it('should dispatch click when node is added in shadow dom', async ({ page, server }) => {+it('DE-008 should dispatch click when node is added in shadow dom', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const watchdog = page.dispatchEvent('span', 'click');await page.evaluate(() => {@@ -103,7 +103,7 @@ it('should dispatch click when node is added in shadow dom', async ({ page, servexpect(await page.evaluate(() => window['clicked'])).toBe(true);});-it('should be atomic', async ({ playwright, page }) => {+it('DE-009 should be atomic', async ({ playwright, page }) => {const createDummySelector = () => ({query(root, selector) {const result = root.querySelector(selector);@@ -124,7 +124,7 @@ it('should be atomic', async ({ playwright, page }) => {expect(await page.evaluate(() => window['_clicked'])).toBe(true);});-it('should dispatch drag drop events', async ({ page, server }) => {+it('DE-010 should dispatch drag drop events', async ({ page, server }) => {await page.goto(server.PREFIX + '/drag-n-drop.html');const dataTransfer = await page.evaluateHandle(() => new DataTransfer());await page.dispatchEvent('#source', 'dragstart', { dataTransfer });@@ -136,7 +136,7 @@ it('should dispatch drag drop events', async ({ page, server }) => {}, { source, target })).toBeTruthy();});-it('should dispatch drag drop events via ElementHandles', async ({ page, server }) => {+it('DE-011 should dispatch drag drop events via ElementHandles', async ({ page, server }) => {await page.goto(server.PREFIX + '/drag-n-drop.html');const dataTransfer = await page.evaluateHandle(() => new DataTransfer());const source = await page.$('#source');@@ -148,14 +148,14 @@ it('should dispatch drag drop events via ElementHandles', async ({ page, server}, { source, target })).toBeTruthy();});-it('should dispatch click event via ElementHandles', async ({ page, server }) => {+it('DE-012 should dispatch click event via ElementHandles', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/button.html');const button = await page.$('button');await button.dispatchEvent('click');expect(await page.evaluate(() => window['result'])).toBe('Clicked');});-it('should dispatch wheel event', async ({ page, server }) => {+it('DE-013 should dispatch wheel event', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15562' });await page.goto(server.PREFIX + '/input/scrollable.html');const eventsHandle = await page.locator('body').evaluateHandle(e => {@@ -172,7 +172,7 @@ it('should dispatch wheel event', async ({ page, server }) => {expect(await eventsHandle.evaluate(e => ({ deltaX: e[0].deltaX, deltaY: e[0].deltaY }))).toEqual({ deltaX: 100, deltaY: 200 });});-it('should dispatch device orientation event', async ({ page, server, isAndroid }) => {+it('DE-014 should dispatch device orientation event', async ({ page, server, isAndroid }) => {it.skip(isAndroid, 'DeviceOrientationEvent is only available in a secure context. While Androids loopback is not treated as secure.');await page.goto(server.PREFIX + '/device-orientation.html');await page.locator('html').dispatchEvent('deviceorientation', { alpha: 10, beta: 20, gamma: 30 });@@ -183,7 +183,7 @@ it('should dispatch device orientation event', async ({ page, server, isAndroidexpect(await page.evaluate('absolute')).toBeFalsy();});-it('should dispatch absolute device orientation event', async ({ page, server, isAndroid }) => {+it('DE-015 should dispatch absolute device orientation event', async ({ page, server, isAndroid }) => {it.skip(isAndroid, 'DeviceOrientationEvent is only available in a secure context. While Androids loopback is not treated as secure.');await page.goto(server.PREFIX + '/device-orientation.html');await page.locator('html').dispatchEvent('deviceorientationabsolute', { alpha: 10, beta: 20, gamma: 30, absolute: true });@@ -194,7 +194,7 @@ it('should dispatch absolute device orientation event', async ({ page, server, iexpect(await page.evaluate('absolute')).toBeTruthy();});-it('should dispatch device motion event', async ({ page, server, isAndroid }) => {+it('DE-016 should dispatch device motion event', async ({ page, server, isAndroid }) => {it.skip(isAndroid, 'DeviceOrientationEvent is only available in a secure context. While Androids loopback is not treated as secure.');await page.goto(server.PREFIX + '/device-motion.html');await page.locator('html').dispatchEvent('devicemotion', {@@ -216,7 +216,7 @@ it('should dispatch device motion event', async ({ page, server, isAndroid }) =>expect(await page.evaluate('interval')).toBe(16);});-it('should throw if argument is from different frame', async ({ page, server }) => {+it('DE-017 should throw if argument is from different frame', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28690' });await page.goto(server.PREFIX + '/frames/one-frame.html');{diff --git a/tests/page/page-drag.spec.ts b/tests/page/page-drag.spec.tsindex e801e85a69..c85018ca36 100644--- a/tests/page/page-drag.spec.ts+++ b/tests/page/page-drag.spec.ts@@ -23,7 +23,7 @@ it.skip(({ isAndroid }) => isAndroid, 'No drag&drop on Android.');it.skip(({ headless }) => !headless, 'Stray mouse events mess up the tests.');it.describe('Drag and drop', () => {- it('should work @smoke', async ({ page, server }) => {+ it('DD-001 should work @smoke', async ({ page, server }) => {await page.goto(server.PREFIX + '/drag-n-drop.html');await page.hover('#source');await page.mouse.down();@@ -32,7 +32,7 @@ it.describe('Drag and drop', () => {expect(await page.$eval('#target', target => target.contains(document.querySelector('#source')))).toBe(true); // could not find source in target});- it('should send the right events', async ({ server, page, browserName }) => {+ it('DD-002 should send the right events', async ({ server, page, browserName }) => {await page.goto(server.PREFIX + '/drag-n-drop.html');const events = await trackEvents(await page.$('body'));await page.hover('#source');@@ -51,7 +51,7 @@ it.describe('Drag and drop', () => {]);});- it('should not send dragover on the first mousemove', async ({ server, page, browserName }) => {+ it('DD-003 should not send dragover on the first mousemove', async ({ server, page, browserName }) => {it.fixme(browserName !== 'chromium');await page.goto(server.PREFIX + '/drag-n-drop.html');@@ -68,7 +68,7 @@ it.describe('Drag and drop', () => {]);});- it('should work inside iframe', async ({ page, server, browserName, isElectron, isWindows }) => {+ it('DD-004 should work inside iframe', async ({ page, server, browserName, isElectron, isWindows }) => {await page.goto(server.EMPTY_PAGE);const frame = await attachFrame(page, 'myframe', server.PREFIX + '/drag-n-drop.html');await page.$eval('iframe', iframe => {@@ -97,7 +97,7 @@ it.describe('Drag and drop', () => {expect(await pageEvents.jsonValue()).toEqual([]);});- it('should cancel on escape', async ({ server, page, browserName }) => {+ it('DD-005 should cancel on escape', async ({ server, page, browserName }) => {await page.goto(server.PREFIX + '/drag-n-drop.html');const events = await trackEvents(await page.$('body'));await page.hover('#source');@@ -121,7 +121,7 @@ it.describe('Drag and drop', () => {it.describe('iframe', () => {it.fixme(true, 'implement dragging with iframes');- it('should drag into an iframe', async ({ server, page, browserName }) => {+ it('DD-006 should drag into an iframe', async ({ server, page, browserName }) => {await page.goto(server.PREFIX + '/drag-n-drop.html');const frame = await attachFrame(page, 'oopif', server.PREFIX + '/drag-n-drop.html');await page.$eval('iframe', iframe => {@@ -150,7 +150,7 @@ it.describe('Drag and drop', () => {]);});- it('should drag out of an iframe', async ({ server, page }) => {+ it('DD-007 should drag out of an iframe', async ({ server, page }) => {await page.goto(server.PREFIX + '/drag-n-drop.html');const frame = await attachFrame(page, 'oopif', server.PREFIX + '/drag-n-drop.html');const pageEvents = await trackEvents(await page.$('body'));@@ -174,7 +174,7 @@ it.describe('Drag and drop', () => {});});- it('should respect the drop effect', async ({ page, browserName, isLinux, isMac, headless, trace }) => {+ it('DD-008 should respect the drop effect', async ({ page, browserName, isLinux, isMac, headless, trace }) => {it.fixme(browserName === 'webkit' && !isLinux, 'WebKit doesn\'t handle the drop effect correctly outside of linux.');it.fixme(browserName === 'webkit' && isLinux && !headless, 'https://github.com/microsoft/playwright/issues/21646');it.fixme(browserName === 'chromium' && !isMac && !headless, 'https://github.com/microsoft/playwright/issues/21646');@@ -228,7 +228,7 @@ it.describe('Drag and drop', () => {return await page.evaluate('dropped');}});- it('should work if the drag is canceled', async ({ page, server }) => {+ it('DD-009 should work if the drag is canceled', async ({ page, server }) => {await page.goto(server.PREFIX + '/drag-n-drop.html');await page.evaluate(() => {document.body.addEventListener('dragstart', event => {@@ -242,7 +242,7 @@ it.describe('Drag and drop', () => {expect(await page.$eval('#target', target => target.contains(document.querySelector('#source')))).toBe(false);});- it('should work if the drag event is captured but not canceled', async ({ page, server }) => {+ it('DD-010 should work if the drag event is captured but not canceled', async ({ page, server }) => {await page.goto(server.PREFIX + '/drag-n-drop.html');await page.evaluate(() => {document.body.addEventListener('dragstart', event => {@@ -256,7 +256,7 @@ it.describe('Drag and drop', () => {expect(await page.$eval('#target', target => target.contains(document.querySelector('#source')))).toBe(true);});- it('should be able to drag the mouse in a frame', async ({ page, server }) => {+ it('DD-011 should be able to drag the mouse in a frame', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');const eventsHandle = await trackEvents(await page.frames()[1].$('html'));await page.mouse.move(30, 30);@@ -266,7 +266,7 @@ it.describe('Drag and drop', () => {expect(await eventsHandle.jsonValue()).toEqual(['mousemove at 20;20', 'mousedown at 20;20', 'mousemove at 50;50', 'mouseup at 50;50']);});- it('should work if a frame is stalled', async ({ page, server, toImpl }) => {+ it('DD-012 should work if a frame is stalled', async ({ page, server, toImpl }) => {await page.goto(server.PREFIX + '/drag-n-drop.html');let madeRequest;const routePromise = new Promise<Route>(x => madeRequest = x);@@ -283,7 +283,7 @@ it.describe('Drag and drop', () => {expect(await page.$eval('#target', target => target.contains(document.querySelector('#source')))).toBe(true); // could not find source in target});- it('should work with the helper method', async ({ page, server }) => {+ it('DD-013 should work with the helper method', async ({ page, server }) => {await page.goto(server.PREFIX + '/drag-n-drop.html');await page.dragAndDrop('#source', '#target');expect(await page.$eval('#target', target => target.contains(document.querySelector('#source')))).toBe(true); // could not find source in target@@ -296,7 +296,7 @@ it.describe('Drag and drop', () => {title: 'dragTo',drag: (page: Page, steps?: number) => page.locator('#red').dragTo(page.locator('#blue'), { steps }),}].forEach(({ title, drag }) => {- it(`should ${title} with tweened mouse movement`, async ({ page, headless }) => {+ it(`DD-014 should ${title} with tweened mouse movement`, async ({ page, headless }) => {it.skip(!headless, 'actual mouse interferes with the exact mousemove events');await page.setContent(`@@ -343,7 +343,7 @@ it.describe('Drag and drop', () => {});});- it('should allow specifying the position', async ({ page, server }) => {+ it('DD-015 should allow specifying the position', async ({ page, server }) => {await page.setContent(`<div style="width:100px;height:100px;background:red;" id="red"></div>@@ -378,14 +378,14 @@ it.describe('Drag and drop', () => {]);});- it('should work with locators', async ({ page, server }) => {+ it('DD-016 should work with locators', async ({ page, server }) => {await page.goto(server.PREFIX + '/drag-n-drop.html');await page.locator('#source').dragTo(page.locator('#target'));expect(await page.$eval('#target', target => target.contains(document.querySelector('#source')))).toBe(true); // could not find source in target});});-it('should work if not doing a drag', async ({ page, isLinux, headless }) => {+it('DD-017 should work if not doing a drag', async ({ page, isLinux, headless }) => {const eventsHandle = await trackEvents(await page.$('html'));await page.mouse.move(50, 50);await page.mouse.down();@@ -394,7 +394,7 @@ it('should work if not doing a drag', async ({ page, isLinux, headless }) => {expect(await eventsHandle.jsonValue()).toEqual(['mousemove at 50;50', 'mousedown at 50;50', 'mousemove at 100;100', 'mouseup at 100;100']);});-it('should report event.buttons', async ({ page, browserName }) => {+it('DD-018 should report event.buttons', async ({ page, browserName }) => {const logsHandle = await page.evaluateHandle(async () => {const div = document.createElement('div');document.body.appendChild(div);@@ -446,7 +446,7 @@ async function trackEvents(target: ElementHandle) {return eventsHandle;}-it('should handle custom dataTransfer', async ({ page, browserName, isWindows }) => {+it('DD-019 should handle custom dataTransfer', async ({ page, browserName, isWindows }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18013' });it.fixme(browserName === 'webkit' && isWindows);await page.setContent(`<button draggable="true">Draggable</button>`);@@ -485,7 +485,7 @@ it('should handle custom dataTransfer', async ({ page, browserName, isWindows })});});-it('what happens when dragging element is destroyed', async ({ page, browserName }) => {+it('DD-020 what happens when dragging element is destroyed', async ({ page, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21621' });await page.setContent(`diff --git a/tests/page/page-drop.spec.ts b/tests/page/page-drop.spec.tsindex 2f33592de7..c1b11107dd 100644--- a/tests/page/page-drop.spec.ts+++ b/tests/page/page-drop.spec.ts@@ -51,7 +51,7 @@ async function getDropInfo(page: Page) {return await page.waitForFunction(() => (window as any).__dropInfo).then(h => h.jsonValue());}-it('should drop a file payload', async ({ page }) => {+it('DD-021 should drop a file payload', async ({ page }) => {await setupDropzone(page);await page.locator('#dropzone').drop({files: { name: 'note.txt', mimeType: 'text/plain', buffer: Buffer.from('hello') },@@ -62,7 +62,7 @@ it('should drop a file payload', async ({ page }) => {});});-it('should drop multiple file payloads', async ({ page }) => {+it('DD-022 should drop multiple file payloads', async ({ page }) => {await setupDropzone(page);await page.locator('#dropzone').drop({files: [@@ -74,7 +74,7 @@ it('should drop multiple file payloads', async ({ page }) => {expect(info.files.map((f: any) => [f.name, f.text])).toEqual([['a.txt', 'AAA'], ['b.txt', 'BB']]);});-it('should drop a file by local path', async ({ page }, testInfo) => {+it('DD-023 should drop a file by local path', async ({ page }, testInfo) => {await setupDropzone(page);const filePath = testInfo.outputPath('hello.txt');await fs.promises.writeFile(filePath, 'path-content');@@ -85,7 +85,7 @@ it('should drop a file by local path', async ({ page }, testInfo) => {expect(info.files[0].text).toBe('path-content');});-it('should drop clipboard-like data', async ({ page }) => {+it('DD-024 should drop clipboard-like data', async ({ page }) => {await setupDropzone(page);await page.locator('#dropzone').drop({data: {@@ -99,7 +99,7 @@ it('should drop clipboard-like data', async ({ page }) => {expect(info.data['text/uri-list']).toBe('https://example.com');});-it('should drop files and data together', async ({ page }) => {+it('DD-025 should drop files and data together', async ({ page }) => {await setupDropzone(page);await page.locator('#dropzone').drop({files: { name: 'mix.txt', mimeType: 'text/plain', buffer: Buffer.from('mix') },@@ -110,7 +110,7 @@ it('should drop files and data together', async ({ page }) => {expect(info.data['text/plain']).toBe('label');});-it('should throw when target does not accept drop', async ({ page }) => {+it('DD-026 should throw when target does not accept drop', async ({ page }) => {// Dropzone without preventDefault on dragover.await page.setContent(`<div id="dropzone" style="width: 200px; height: 100px;"></div>@@ -120,7 +120,7 @@ it('should throw when target does not accept drop', async ({ page }) => {})).rejects.toThrow(/drop target did not accept the drop/i);});-it('should throw when neither files nor data provided', async ({ page }) => {+it('DD-027 should throw when neither files nor data provided', async ({ page }) => {await setupDropzone(page);await expect(page.locator('#dropzone').drop({})).rejects.toThrow(/At least one of "files" or "data"/);});diff --git a/tests/page/page-emulate-media.spec.ts b/tests/page/page-emulate-media.spec.tsindex 2da81c95a7..0a681f3b36 100644--- a/tests/page/page-emulate-media.spec.ts+++ b/tests/page/page-emulate-media.spec.ts@@ -34,7 +34,7 @@ const expect = baseExpect.extend({},});-it('should emulate type @smoke', async ({ page }) => {+it('EM-001 should emulate type @smoke', async ({ page }) => {expect(await page.evaluate(() => matchMedia('screen').matches)).toBe(true);expect(await page.evaluate(() => matchMedia('print').matches)).toBe(false);await page.emulateMedia({ media: 'print' });@@ -48,14 +48,14 @@ it('should emulate type @smoke', async ({ page }) => {expect(await page.evaluate(() => matchMedia('print').matches)).toBe(false);});-it('should throw in case of bad media argument', async ({ page }) => {+it('EM-002 should throw in case of bad media argument', async ({ page }) => {let error = null;// @ts-expect-error 'bad' is not a valid media typeawait page.emulateMedia({ media: 'bad' }).catch(e => error = e);expect(error.message).toContain('media: expected one of (screen|print|no-override)');});-it('should emulate colorScheme should work @smoke', async ({ page }) => {+it('EM-003 should emulate colorScheme should work @smoke', async ({ page }) => {await page.emulateMedia({ colorScheme: 'light' });expect(await page.evaluate(() => matchMedia('(prefers-color-scheme: light)').matches)).toBe(true);expect(await page.evaluate(() => matchMedia('(prefers-color-scheme: dark)').matches)).toBe(false);@@ -64,7 +64,7 @@ it('should emulate colorScheme should work @smoke', async ({ page }) => {expect(await page.evaluate(() => matchMedia('(prefers-color-scheme: light)').matches)).toBe(false);});-it('should default to light', async ({ page }) => {+it('EM-004 should default to light', async ({ page }) => {expect(await page.evaluate(() => matchMedia('(prefers-color-scheme: light)').matches)).toBe(true);expect(await page.evaluate(() => matchMedia('(prefers-color-scheme: dark)').matches)).toBe(false);@@ -77,14 +77,14 @@ it('should default to light', async ({ page }) => {expect(await page.evaluate(() => matchMedia('(prefers-color-scheme: light)').matches)).toBe(true);});-it('should throw in case of bad colorScheme argument', async ({ page }) => {+it('EM-005 should throw in case of bad colorScheme argument', async ({ page }) => {let error = null;// @ts-expect-error 'bad' is not a valid media typeawait page.emulateMedia({ colorScheme: 'bad' }).catch(e => error = e);expect(error.message).toContain('colorScheme: expected one of (dark|light|no-preference|no-override)');});-it('should work during navigation', async ({ page, server }) => {+it('EM-006 should work during navigation', async ({ page, server }) => {await page.emulateMedia({ colorScheme: 'light' });const navigated = page.goto(server.EMPTY_PAGE);for (let i = 0; i < 9; i++) {@@ -97,7 +97,7 @@ it('should work during navigation', async ({ page, server }) => {expect(await page.evaluate(() => matchMedia('(prefers-color-scheme: dark)').matches)).toBe(true);});-it('should change the actual colors in css', async ({ page }) => {+it('EM-007 should change the actual colors in css', async ({ page }) => {await page.setContent(`<style>@media (prefers-color-scheme: dark) {@@ -130,7 +130,7 @@ it('should change the actual colors in css', async ({ page }) => {expect(await getBackgroundColor()).toBe('rgb(255, 255, 255)');});-it('should emulate reduced motion', async ({ page }) => {+it('EM-008 should emulate reduced motion', async ({ page }) => {expect(await page.evaluate(() => matchMedia('(prefers-reduced-motion: no-preference)').matches)).toBe(true);await page.emulateMedia({ reducedMotion: 'reduce' });expect(await page.evaluate(() => matchMedia('(prefers-reduced-motion: reduce)').matches)).toBe(true);@@ -141,7 +141,7 @@ it('should emulate reduced motion', async ({ page }) => {await page.emulateMedia({ reducedMotion: null });});-it('should keep reduced motion and color emulation after reload', async ({ page, server }) => {+it('EM-009 should keep reduced motion and color emulation after reload', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31328' });// Pre-conditions@@ -169,7 +169,7 @@ it('should keep reduced motion and color emulation after reload', async ({ page,expect(await page.evaluate(() => matchMedia('(forced-colors: active)').matches)).toBe(true);});-it('should emulate forcedColors ', async ({ page, browserName }) => {+it('EM-010 should emulate forcedColors ', async ({ page, browserName }) => {expect(await page.evaluate(() => matchMedia('(forced-colors: none)').matches)).toBe(true);await page.emulateMedia({ forcedColors: 'none' });expect(await page.evaluate(() => matchMedia('(forced-colors: none)').matches)).toBe(true);@@ -181,7 +181,7 @@ it('should emulate forcedColors ', async ({ page, browserName }) => {expect(await page.evaluate(() => matchMedia('(forced-colors: none)').matches)).toBe(true);});-it('should emulate contrast ', async ({ page }) => {+it('EM-011 should emulate contrast ', async ({ page }) => {await expect(page).toMatchMedia('(prefers-contrast: no-preference)');await page.emulateMedia({ contrast: 'no-preference' });await expect(page).toMatchMedia('(prefers-contrast: no-preference)');@@ -193,7 +193,7 @@ it('should emulate contrast ', async ({ page }) => {await expect(page).toMatchMedia('(prefers-contrast: no-preference)');});-it('should report hover and fine pointer for desktop', async ({ page, isAndroid }) => {+it('EM-012 should report hover and fine pointer for desktop', async ({ page, isAndroid }) => {it.skip(isAndroid);await expect(page).toMatchMedia('(hover: hover)');diff --git a/tests/page/page-evaluate-callback.spec.ts b/tests/page/page-evaluate-callback.spec.tsindex 1c4edf7100..f71b26144f 100644--- a/tests/page/page-evaluate-callback.spec.ts+++ b/tests/page/page-evaluate-callback.spec.ts@@ -17,12 +17,12 @@import { attachFrame } from '../config/utils';import { test as it, expect } from './pageTest';-it('should throw without the exposeFunctions option', async ({ page }) => {+it('EV-112 should throw without the exposeFunctions option', async ({ page }) => {await expect(page.evaluate(({ cb }) => cb(), { cb: () => {} })).rejects.toThrow(/Attempting to serialize unexpected value at position "cb": \(\) => {}/);});-it('should call a function passed as an argument', async ({ page }) => {+it('EV-113 should call a function passed as an argument', async ({ page }) => {const received: number[] = [];await page.evaluate(async ({ cb }) => {await cb(1);@@ -31,7 +31,7 @@ it('should call a function passed as an argument', async ({ page }) => {expect(received).toEqual([1, 2]);});-it('should accept a function as the whole argument', async ({ page }) => {+it('EV-114 should accept a function as the whole argument', async ({ page }) => {const received: string[] = [];await page.evaluate(async cb => {await cb('a');@@ -40,7 +40,7 @@ it('should accept a function as the whole argument', async ({ page }) => {expect(received).toEqual(['a', 'b']);});-it('should pass arguments to the callback', async ({ page }) => {+it('EV-115 should pass arguments to the callback', async ({ page }) => {const args = await new Promise<any[]>(resolve => {page.evaluate(({ cb }) => cb(1, 'two', { three: 3 }, [4]), {cb: (...a: any[]) => resolve(a),@@ -49,14 +49,14 @@ it('should pass arguments to the callback', async ({ page }) => {expect(args).toEqual([1, 'two', { three: 3 }, [4]]);});-it('should return the callback result to the page', async ({ page }) => {+it('EV-116 should return the callback result to the page', async ({ page }) => {const doubled = await page.evaluate(async ({ cb }) => await cb(21), {cb: async (n: number) => n * 2,}, { exposeFunctions: true });expect(doubled).toBe(42);});-it('should support handle as a callback result', async ({ page }) => {+it('EV-117 should support handle as a callback result', async ({ page }) => {const result = await page.evaluate(async cb => {const value = await cb(42);return value + 17;@@ -64,7 +64,7 @@ it('should support handle as a callback result', async ({ page }) => {expect(result).toBe(101);});-it('should support nested handles in the callback result', async ({ page }) => {+it('EV-118 should support nested handles in the callback result', async ({ page }) => {const result = await page.evaluate(async cb => {const res = await cb(42);return res.mul[0] + res.mul[1] + res.add;@@ -76,14 +76,14 @@ it('should support nested handles in the callback result', async ({ page }) => {expect(result).toBe(227);});-it('should await an async callback result', async ({ page }) => {+it('EV-119 should await an async callback result', async ({ page }) => {const value = await page.evaluate(async ({ cb }) => await cb(20), {cb: async (n: number) => { await new Promise(f => setTimeout(f, 10)); return n + 1; },}, { exposeFunctions: true });expect(value).toBe(21);});-it('should propagate callback errors to the page', async ({ page }) => {+it('EV-120 should propagate callback errors to the page', async ({ page }) => {const message = await page.evaluate(async ({ cb }) => {try {await cb();@@ -95,7 +95,7 @@ it('should propagate callback errors to the page', async ({ page }) => {expect(message).toContain('boom');});-it('should work with a fire-and-forget setTimeout callback', async ({ page }) => {+it('EV-121 should work with a fire-and-forget setTimeout callback', async ({ page }) => {const value = await new Promise<number>(resolve => {page.evaluate(({ cb }) => { setTimeout(() => cb(5), 0); }, {cb: (n: number) => resolve(n),@@ -104,7 +104,7 @@ it('should work with a fire-and-forget setTimeout callback', async ({ page }) =>expect(value).toBe(5);});-it('should support multiple callbacks', async ({ page }) => {+it('EV-122 should support multiple callbacks', async ({ page }) => {const result = await page.evaluate(async ({ add, mul }) => {return (await add(2, 3)) + (await mul(2, 3));}, {@@ -114,7 +114,7 @@ it('should support multiple callbacks', async ({ page }) => {expect(result).toBe(11);});-it('should work with evaluateHandle', async ({ page }) => {+it('EV-123 should work with evaluateHandle', async ({ page }) => {const received: number[] = [];const handle = await page.evaluateHandle(async ({ cb }) => {await cb(7);@@ -124,7 +124,7 @@ it('should work with evaluateHandle', async ({ page }) => {expect(received).toEqual([7]);});-it('should work in a child frame', async ({ page, server }) => {+it('EV-124 should work in a child frame', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const frame = await attachFrame(page, 'frame1', server.EMPTY_PAGE);const received: number[] = [];@@ -132,7 +132,7 @@ it('should work in a child frame', async ({ page, server }) => {expect(received).toEqual([42]);});-it('should route callbacks back to the calling frame', async ({ page, server }) => {+it('EV-125 should route callbacks back to the calling frame', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const frame = await attachFrame(page, 'frame1', server.EMPTY_PAGE);const greet = async (where: string) => `hello ${where}`;@@ -144,21 +144,21 @@ it('should route callbacks back to the calling frame', async ({ page, server })expect(fromChild).toBe('hello child');});-it('should work with jsHandle.evaluate', async ({ page }) => {+it('EV-126 should work with jsHandle.evaluate', async ({ page }) => {const handle = await page.evaluateHandle(() => window);const received: number[] = [];await handle.evaluate(async (win, { cb }) => { await cb(99); }, { cb: async (n: number) => { received.push(n); } }, { exposeFunctions: true });expect(received).toEqual([99]);});-it('should work with locator.evaluate', async ({ page }) => {+it('EV-127 should work with locator.evaluate', async ({ page }) => {await page.setContent('<div id=target>hello</div>');const received: string[] = [];await page.locator('#target').evaluate(async (element, { cb }) => { await cb(element.id); }, { cb: async (s: string) => { received.push(s); } }, { exposeFunctions: true });expect(received).toEqual(['target']);});-it('should return the callback result with locator.evaluate', async ({ page }) => {+it('EV-128 should return the callback result with locator.evaluate', async ({ page }) => {await page.setContent('<div id=target>7</div>');const result = await page.locator('#target').evaluate(async (element, { double }) => {return await double(+element.textContent!);@@ -166,7 +166,7 @@ it('should return the callback result with locator.evaluate', async ({ page }) =expect(result).toBe(14);});-it('should propagate callback errors with locator.evaluate', async ({ page }) => {+it('EV-129 should propagate callback errors with locator.evaluate', async ({ page }) => {await page.setContent('<div id=target></div>');const message = await page.locator('#target').evaluate(async (element, { cb }) => {try {@@ -179,7 +179,7 @@ it('should propagate callback errors with locator.evaluate', async ({ page }) =>expect(message).toContain('boom');});-it('should work with locator.evaluateHandle', async ({ page }) => {+it('EV-130 should work with locator.evaluateHandle', async ({ page }) => {await page.setContent('<div id=target>hello</div>');const received: string[] = [];const handle = await page.locator('#target').evaluateHandle(async (element, { cb }) => {@@ -190,7 +190,7 @@ it('should work with locator.evaluateHandle', async ({ page }) => {expect(await handle.evaluate(element => element.id)).toBe('target');});-it('should work with locator.evaluate inside an iframe', async ({ page, server }) => {+it('EV-131 should work with locator.evaluate inside an iframe', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const frame = await attachFrame(page, 'frame1', server.EMPTY_PAGE);await frame.evaluate(() => { document.body.innerHTML = '<div id=target>in-frame</div>'; });@@ -201,7 +201,7 @@ it('should work with locator.evaluate inside an iframe', async ({ page, server }expect(received).toEqual(['in-frame']);});-it('should survive a navigation and keep working', async ({ page, server }) => {+it('EV-132 should survive a navigation and keep working', async ({ page, server }) => {const received: number[] = [];await page.evaluate(async ({ cb }) => { await cb(1); }, { cb: async (n: number) => { received.push(n); } }, { exposeFunctions: true });await page.goto(server.EMPTY_PAGE);@@ -209,7 +209,7 @@ it('should survive a navigation and keep working', async ({ page, server }) => {expect(received).toEqual([1, 2]);});-it('should not register the callback on the global object', async ({ page }) => {+it('EV-133 should not register the callback on the global object', async ({ page }) => {const result = await page.evaluate(async ({ cb }) => {await cb();return Object.getOwnPropertyNames(globalThis).filter(name => name.startsWith('__pw_fn_'));@@ -217,7 +217,7 @@ it('should not register the callback on the global object', async ({ page }) =>expect(result).toEqual([]);});-it('should scope the page-side callback to the execution context', async ({ page, server }) => {+it('EV-134 should scope the page-side callback to the execution context', async ({ page, server }) => {await page.evaluate(({ cb }) => { (window as any).__cb = cb; }, { cb: () => {} }, { exposeFunctions: true });expect(await page.evaluate(() => typeof (window as any).__cb)).toBe('function');await page.goto(server.EMPTY_PAGE);diff --git a/tests/page/page-evaluate-handle.spec.ts b/tests/page/page-evaluate-handle.spec.tsindex 26f4cc14a2..a006db7a74 100644--- a/tests/page/page-evaluate-handle.spec.ts+++ b/tests/page/page-evaluate-handle.spec.ts@@ -17,24 +17,24 @@import { test as it, expect } from './pageTest';-it('should work', async ({ page }) => {+it('EV-101 should work', async ({ page }) => {const windowHandle = await page.evaluateHandle(() => window);expect(windowHandle).toBeTruthy();});-it('should accept object handle as an argument', async ({ page }) => {+it('EV-102 should accept object handle as an argument', async ({ page }) => {const navigatorHandle = await page.evaluateHandle(() => navigator);const text = await page.evaluate(e => e.userAgent, navigatorHandle);expect(text).toContain('Mozilla');});-it('should accept object handle to primitive types', async ({ page }) => {+it('EV-103 should accept object handle to primitive types', async ({ page }) => {const aHandle = await page.evaluateHandle(() => 5);const isFive = await page.evaluate(e => Object.is(e, 5), aHandle);expect(isFive).toBeTruthy();});-it('should accept nested handle', async ({ page }) => {+it('EV-104 should accept nested handle', async ({ page }) => {const foo = await page.evaluateHandle(() => ({ x: 1, y: 'foo' }));const result = await page.evaluate(({ foo }) => {return foo;@@ -42,7 +42,7 @@ it('should accept nested handle', async ({ page }) => {expect(result).toEqual({ x: 1, y: 'foo' });});-it('should accept nested window handle', async ({ page }) => {+it('EV-105 should accept nested window handle', async ({ page }) => {const foo = await page.evaluateHandle(() => window);const result = await page.evaluate(({ foo }) => {return foo === window;@@ -50,7 +50,7 @@ it('should accept nested window handle', async ({ page }) => {expect(result).toBe(true);});-it('should accept multiple nested handles', async ({ page }) => {+it('EV-106 should accept multiple nested handles', async ({ page }) => {const foo = await page.evaluateHandle(() => ({ x: 1, y: 'foo' }));const bar = await page.evaluateHandle(() => 5);const baz = await page.evaluateHandle(() => (['baz']));@@ -63,22 +63,22 @@ it('should accept multiple nested handles', async ({ page }) => {});});-it('should accept same handle multiple times', async ({ page }) => {+it('EV-107 should accept same handle multiple times', async ({ page }) => {const foo = await page.evaluateHandle(() => 1);expect(await page.evaluate(x => x, { foo, bar: [foo], baz: { foo } })).toEqual({ foo: 1, bar: [1], baz: { foo: 1 } });});-it('should accept same nested object multiple times', async ({ page }) => {+it('EV-108 should accept same nested object multiple times', async ({ page }) => {const foo = { x: 1 };expect(await page.evaluate(x => x, { foo, bar: [foo], baz: { foo } })).toEqual({ foo: { x: 1 }, bar: [{ x: 1 }], baz: { foo: { x: 1 } } });});-it('should accept object handle to unserializable value', async ({ page }) => {+it('EV-109 should accept object handle to unserializable value', async ({ page }) => {const aHandle = await page.evaluateHandle(() => Infinity);expect(await page.evaluate(e => Object.is(e, Infinity), aHandle)).toBe(true);});-it('should pass configurable args', async ({ page }) => {+it('EV-110 should pass configurable args', async ({ page }) => {const result = await page.evaluate(arg => {if (arg.foo !== 42)throw new Error('Not a 42');@@ -93,7 +93,7 @@ it('should pass configurable args', async ({ page }) => {expect(result).toEqual({});});-it('should work with primitives', async ({ page }) => {+it('EV-111 should work with primitives', async ({ page }) => {const aHandle = await page.evaluateHandle(() => {window['FOO'] = 123;return window;diff --git a/tests/page/page-evaluate-no-stall.spec.ts b/tests/page/page-evaluate-no-stall.spec.tsindex fc6359f799..af730aed97 100644--- a/tests/page/page-evaluate-no-stall.spec.ts+++ b/tests/page/page-evaluate-no-stall.spec.ts@@ -16,13 +16,13 @@import { test, expect } from './pageTest';-test('should work', async ({ page, server, toImpl }) => {+test('EV-135 should work', async ({ page, server, toImpl }) => {await page.goto(server.EMPTY_PAGE);const result = await toImpl(page.mainFrame()).nonStallingRawEvaluateInExistingMainContext('2+2');expect(result).toBe(4);});-test('should throw while pending navigation', async ({ page, server, toImpl }) => {+test('EV-136 should throw while pending navigation', async ({ page, server, toImpl }) => {await page.goto(server.EMPTY_PAGE);await page.evaluate(() => document.body.textContent = 'HELLO WORLD');let error;@@ -34,7 +34,7 @@ test('should throw while pending navigation', async ({ page, server, toImpl }) =expect(error.message).toContain('Frame is currently attempting a navigation');});-test('should throw when no main execution context', async ({ page, toImpl }) => {+test('EV-137 should throw when no main execution context', async ({ page, toImpl }) => {let errorPromise;page.on('frameattached', frame => {errorPromise = toImpl(frame).nonStallingRawEvaluateInExistingMainContext('2+2').catch(e => e);diff --git a/tests/page/page-evaluate.spec.ts b/tests/page/page-evaluate.spec.tsindex d66687af52..487d26081a 100644--- a/tests/page/page-evaluate.spec.ts+++ b/tests/page/page-evaluate.spec.ts@@ -18,32 +18,32 @@import { attachFrame, detachFrame } from '../config/utils';import { test as it, expect } from './pageTest';-it('should work @smoke', async ({ page }) => {+it('EV-001 should work @smoke', async ({ page }) => {const result = await page.evaluate(() => 7 * 3);expect(result).toBe(21);});-it('should transfer NaN', async ({ page }) => {+it('EV-002 should transfer NaN', async ({ page }) => {const result = await page.evaluate(a => a, NaN);expect(Object.is(result, NaN)).toBe(true);});-it('should transfer -0', async ({ page }) => {+it('EV-003 should transfer -0', async ({ page }) => {const result = await page.evaluate(a => a, -0);expect(Object.is(result, -0)).toBe(true);});-it('should transfer Infinity', async ({ page }) => {+it('EV-004 should transfer Infinity', async ({ page }) => {const result = await page.evaluate(a => a, Infinity);expect(Object.is(result, Infinity)).toBe(true);});-it('should transfer -Infinity', async ({ page }) => {+it('EV-005 should transfer -Infinity', async ({ page }) => {const result = await page.evaluate(a => a, -Infinity);expect(Object.is(result, -Infinity)).toBe(true);});-it('should roundtrip unserializable values', async ({ page }) => {+it('EV-006 should roundtrip unserializable values', async ({ page }) => {const value = {infinity: Infinity,nInfinity: -Infinity,@@ -54,7 +54,7 @@ it('should roundtrip unserializable values', async ({ page }) => {expect(result).toEqual(value);});-it('should roundtrip promise to value', async ({ page }) => {+it('EV-007 should roundtrip promise to value', async ({ page }) => {{const result = await page.evaluate(value => Promise.resolve(value), null);expect(result === null).toBeTruthy();@@ -73,7 +73,7 @@ it('should roundtrip promise to value', async ({ page }) => {}});-it('should roundtrip promise to unserializable values', async ({ page }) => {+it('EV-008 should roundtrip promise to unserializable values', async ({ page }) => {const value = {infinity: Infinity,nInfinity: -Infinity,@@ -84,17 +84,17 @@ it('should roundtrip promise to unserializable values', async ({ page }) => {expect(result).toEqual(value);});-it('should transfer arrays', async ({ page }) => {+it('EV-009 should transfer arrays', async ({ page }) => {const result = await page.evaluate(a => a, [1, 2, 3]);expect(result).toEqual([1, 2, 3]);});-it('should transfer arrays as arrays, not objects', async ({ page }) => {+it('EV-010 should transfer arrays as arrays, not objects', async ({ page }) => {const result = await page.evaluate(a => Array.isArray(a), [1, 2, 3]);expect(result).toBe(true);});-it('should transfer typed arrays', async ({ page }) => {+it('EV-011 should transfer typed arrays', async ({ page }) => {const testCases = [new Int8Array([1, 2, 3]),new Uint8Array([1, 2, 3]),@@ -115,34 +115,34 @@ it('should transfer typed arrays', async ({ page }) => {}});-it('should transfer bigint', async ({ page }) => {+it('EV-012 should transfer bigint', async ({ page }) => {expect(await page.evaluate(() => 42n)).toBe(42n);expect(await page.evaluate(a => a, 17n)).toBe(17n);});-it('should transfer maps as empty objects', async ({ page }) => {+it('EV-013 should transfer maps as empty objects', async ({ page }) => {const result = await page.evaluate(a => a.x.constructor.name + ' ' + JSON.stringify(a.x), { x: new Map([[1, 2]]) });expect(result).toBe('Object {}');expect(await page.evaluate(() => new Map([[1, 2]]))).toEqual({});});-it('should transfer sets as empty objects', async ({ page }) => {+it('EV-014 should transfer sets as empty objects', async ({ page }) => {const result = await page.evaluate(a => a.x.constructor.name + ' ' + JSON.stringify(a.x), { x: new Set([1, 2]) });expect(result).toBe('Object {}');expect(await page.evaluate(() => new Set([1, 2]))).toEqual({});});-it('should modify global environment', async ({ page }) => {+it('EV-015 should modify global environment', async ({ page }) => {await page.evaluate(() => window['globalVar'] = 123);expect(await page.evaluate('globalVar')).toBe(123);});-it('should evaluate in the page context', async ({ page, server }) => {+it('EV-016 should evaluate in the page context', async ({ page, server }) => {await page.goto(server.PREFIX + '/global-var.html');expect(await page.evaluate('globalVar')).toBe(123);});-it('should return undefined for objects with symbols', async ({ page }) => {+it('EV-017 should return undefined for objects with symbols', async ({ page }) => {expect(await page.evaluate(() => [Symbol('foo4')])).toEqual([undefined]);expect(await page.evaluate(() => {const a = {};@@ -154,7 +154,7 @@ it('should return undefined for objects with symbols', async ({ page }) => {})).toEqual({ foo: [{ a: undefined }] });});-it('should work with function shorthands', async ({ page }) => {+it('EV-018 should work with function shorthands', async ({ page }) => {const a = {sum([a, b]: number[]) { return a + b; },async mult([a, b]: number[]) { return a * b; }@@ -163,19 +163,19 @@ it('should work with function shorthands', async ({ page }) => {expect(await page.evaluate(a.mult, [2, 4])).toBe(8);});-it('should work with unicode chars', async ({ page }) => {+it('EV-019 should work with unicode chars', async ({ page }) => {const result = await page.evaluate(a => a['中文字符'], { '中文字符': 42 });expect(result).toBe(42);});-it('should work with large strings', async ({ page, isAndroid }) => {+it('EV-020 should work with large strings', async ({ page, isAndroid }) => {it.skip(isAndroid, 'string is too long :(');const expected = 'x'.repeat(40000);expect(await page.evaluate(data => data, expected)).toBe(expected);});-it('should work with large unicode strings', async ({ page, browserName, platform, isAndroid }) => {+it('EV-021 should work with large unicode strings', async ({ page, browserName, platform, isAndroid }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16367' });it.skip(isAndroid, 'string is too long :(');@@ -183,7 +183,7 @@ it('should work with large unicode strings', async ({ page, browserName, platforexpect(await page.evaluate(data => data, expected)).toBe(expected);});-it('should throw when evaluation triggers reload', async ({ page }) => {+it('EV-022 should throw when evaluation triggers reload', async ({ page }) => {let error = null;await page.evaluate(() => {location.reload();@@ -192,12 +192,12 @@ it('should throw when evaluation triggers reload', async ({ page }) => {expect(error.message).toContain('navigation');});-it('should await promise', async ({ page }) => {+it('EV-023 should await promise', async ({ page }) => {const result = await page.evaluate(() => Promise.resolve(8 * 7));expect(result).toBe(56);});-it('should work right after framenavigated', async ({ page, server }) => {+it('EV-024 should work right after framenavigated', async ({ page, server }) => {let frameEvaluation = null;page.on('framenavigated', async frame => {frameEvaluation = frame.evaluate(() => 6 * 7);@@ -206,7 +206,7 @@ it('should work right after framenavigated', async ({ page, server }) => {expect(await frameEvaluation).toBe(42);});-it('should work right after a cross-origin navigation', async ({ page, server }) => {+it('EV-025 should work right after a cross-origin navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let frameEvaluation = null;page.on('framenavigated', async frame => {@@ -216,7 +216,7 @@ it('should work right after a cross-origin navigation', async ({ page, server })expect(await frameEvaluation).toBe(42);});-it('should work from-inside an exposed function', async ({ page }) => {+it('EV-026 should work from-inside an exposed function', async ({ page }) => {// Setup inpage callback, which calls Page.evaluateawait page.exposeFunction('callController', async function(a, b) {return await page.evaluate(({ a, b }) => a * b, { a, b });@@ -227,7 +227,7 @@ it('should work from-inside an exposed function', async ({ page }) => {expect(result).toBe(27);});-it('should reject promise with exception', async ({ page }) => {+it('EV-027 should reject promise with exception', async ({ page }) => {let error = null;// @ts-ignoreawait page.evaluate(() => not_existing_object.property).catch(e => error = e);@@ -235,21 +235,21 @@ it('should reject promise with exception', async ({ page }) => {expect(error.message).toContain('not_existing_object');});-it('should support thrown strings as error messages', async ({ page }) => {+it('EV-028 should support thrown strings as error messages', async ({ page }) => {let error = null;await page.evaluate(() => { throw 'qwerty'; }).catch(e => error = e);expect(error).toBeTruthy();expect(error.message).toContain('qwerty');});-it('should support thrown numbers as error messages', async ({ page }) => {+it('EV-029 should support thrown numbers as error messages', async ({ page }) => {let error = null;await page.evaluate(() => { throw 100500; }).catch(e => error = e);expect(error).toBeTruthy();expect(error.message).toContain('100500');});-it('should reject when a falsy value is thrown', {+it('EV-030 should reject when a falsy value is thrown', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42661' },}, async ({ page }) => {for (const value of ['null', 'undefined', '0', `''`, 'false', 'NaN', '-0', '0n']) {@@ -260,7 +260,7 @@ it('should reject when a falsy value is thrown', {}});-it('should include a non-error rejection value in the error message', {+it('EV-031 should include a non-error rejection value in the error message', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42661' },}, async ({ page }) => {const error = await page.evaluate(() => Promise.reject(7)).then(() => null, e => e);@@ -269,34 +269,34 @@ it('should include a non-error rejection value in the error message', {expect(nullError.message).toContain('null');});-it('should return complex objects', async ({ page }) => {+it('EV-032 should return complex objects', async ({ page }) => {const object = { foo: 'bar!' };const result = await page.evaluate(a => a, object);expect(result).not.toBe(object);expect(result).toEqual(object);});-it('should return NaN', async ({ page }) => {+it('EV-033 should return NaN', async ({ page }) => {const result = await page.evaluate(() => NaN);expect(Object.is(result, NaN)).toBe(true);});-it('should return -0', async ({ page }) => {+it('EV-034 should return -0', async ({ page }) => {const result = await page.evaluate(() => -0);expect(Object.is(result, -0)).toBe(true);});-it('should return Infinity', async ({ page }) => {+it('EV-035 should return Infinity', async ({ page }) => {const result = await page.evaluate(() => Infinity);expect(Object.is(result, Infinity)).toBe(true);});-it('should return -Infinity', async ({ page }) => {+it('EV-036 should return -Infinity', async ({ page }) => {const result = await page.evaluate(() => -Infinity);expect(Object.is(result, -Infinity)).toBe(true);});-it('should work with overwritten Promise', async ({ page }) => {+it('EV-037 should work with overwritten Promise', async ({ page }) => {await page.evaluate(() => {const originalPromise = window.Promise;class Promise2 {@@ -350,7 +350,7 @@ it('should work with overwritten Promise', async ({ page }) => {await page.waitForFunction(() => (window as any).__done);});-it('should throw when passed more than one parameter', async ({ page }) => {+it('EV-038 should throw when passed more than one parameter', async ({ page }) => {const expectThrow = async f => {let error;await f().catch(e => error = e);@@ -379,33 +379,33 @@ it('should throw when passed more than one parameter', async ({ page }) => {await expectThrow(() => frame.evaluate((a, b) => false, 1, 2));});-it('should accept "undefined" as one of multiple parameters', async ({ page }) => {+it('EV-039 should accept "undefined" as one of multiple parameters', async ({ page }) => {const result = await page.evaluate(({ a, b }) => Object.is(a, undefined) && Object.is(b, 'foo'), { a: undefined, b: 'foo' });expect(result).toBe(true);});-it('should properly serialize undefined arguments', async ({ page }) => {+it('EV-040 should properly serialize undefined arguments', async ({ page }) => {expect(await page.evaluate(x => ({ a: x }), undefined)).toEqual({});});-it('should properly serialize undefined fields', async ({ page }) => {+it('EV-041 should properly serialize undefined fields', async ({ page }) => {expect(await page.evaluate(() => ({ a: undefined }))).toEqual({});});-it('should return undefined properties', async ({ page }) => {+it('EV-042 should return undefined properties', async ({ page }) => {const value = await page.evaluate(() => ({ a: undefined }));expect('a' in value).toBe(true);});-it('should properly serialize null arguments', async ({ page }) => {+it('EV-043 should properly serialize null arguments', async ({ page }) => {expect(await page.evaluate(x => x, null)).toEqual(null);});-it('should properly serialize null fields', async ({ page }) => {+it('EV-044 should properly serialize null fields', async ({ page }) => {expect(await page.evaluate(() => ({ a: null }))).toEqual({ a: null });});-it('should properly serialize PerformanceMeasure object', async ({ page }) => {+it('EV-045 should properly serialize PerformanceMeasure object', async ({ page }) => {expect(await page.evaluate(() => {window.builtins.performance.mark('start');window.builtins.performance.mark('end');@@ -419,7 +419,7 @@ it('should properly serialize PerformanceMeasure object', async ({ page }) => {})]);});-it('should properly serialize window.performance object', async ({ page }) => {+it('EV-046 should properly serialize window.performance object', async ({ page }) => {it.skip(!!process.env.PW_CLOCK);expect(await page.evaluate(() => performance)).toEqual(expect.objectContaining({@@ -454,11 +454,11 @@ it('should properly serialize window.performance object', async ({ page }) => {}));});-it('should return undefined for non-serializable objects', async ({ page }) => {+it('EV-047 should return undefined for non-serializable objects', async ({ page }) => {expect(await page.evaluate(() => function() {})).toBe(undefined);});-it('should throw for too deep reference chain', {+it('EV-048 should throw for too deep reference chain', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/33997' }}, async ({ page, browserName, isBidi }) => {it.fixme(browserName === 'firefox' && !isBidi, 'Firefox Juggler -> Playwright serialiser does not throw for deep references.\nThis causes large objects to get serialised back to the Playwright client.\nThere our validators throw \'Maximum call stack size exceeded\'.');@@ -473,7 +473,7 @@ it('should throw for too deep reference chain', {}, 1000)).rejects.toThrow('Cannot serialize result: object reference chain is too long.');});-it('should throw for too deep reference chain 2', {+it('EV-049 should throw for too deep reference chain 2', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40940' }}, async ({ page, browserName, isAndroid }) => {it.skip(browserName !== 'chromium', 'this is a chromium-only limitation');@@ -487,32 +487,32 @@ it('should throw for too deep reference chain 2', {}, 200)).rejects.toThrow('Cannot serialize result: object reference chain is too long.');});-it('should throw usable message for unserializable shallow function', async ({ page }) => {+it('EV-050 should throw usable message for unserializable shallow function', async ({ page }) => {await expect(() => page.evaluate(arg => arg, () => { })).rejects.toThrow(/Attempting to serialize unexpected value: \(\) => {}/);});-it('should throw usable message for unserializable object one deep function', async ({ page }) => {+it('EV-051 should throw usable message for unserializable object one deep function', async ({ page }) => {await expect(() => page.evaluate(arg => arg, { aProperty: () => { } })).rejects.toThrow(/Attempting to serialize unexpected value at position "aProperty": \(\) => {}/);});-it('should throw usable message for unserializable object nested function', async ({ page }) => {+it('EV-052 should throw usable message for unserializable object nested function', async ({ page }) => {await expect(() => page.evaluate(arg => arg, { a: { inner: { property: () => { } } } })).rejects.toThrow(/Attempting to serialize unexpected value at position "a\.inner\.property": \(\) => {}/);});-it('should throw usable message for unserializable array nested function', async ({ page }) => {+it('EV-053 should throw usable message for unserializable array nested function', async ({ page }) => {await expect(() => page.evaluate(arg => arg, { a: { inner: ['firstValue', { property: () => { } }] } })).rejects.toThrow(/Attempting to serialize unexpected value at position "a\.inner\[1\]\.property": \(\) => {}/);});-it('should alias Window, Document and Node', async ({ page }) => {+it('EV-054 should alias Window, Document and Node', async ({ page }) => {const object = await page.evaluate('[window, document, document.body]');expect(object).toEqual(['ref: <Window>', 'ref: <Document>', 'ref: <Node>']);});-it('should work for circular object', async ({ page }) => {+it('EV-055 should work for circular object', async ({ page }) => {const result = await page.evaluate(() => {const a = {} as any;a.b = a;@@ -523,7 +523,7 @@ it('should work for circular object', async ({ page }) => {expect(result).toEqual(a);});-it('should be able to throw a tricky error', async ({ page }) => {+it('EV-056 should be able to throw a tricky error', async ({ page }) => {const windowHandle = await page.evaluateHandle(() => window);const errorText = await windowHandle.jsonValue().catch(e => e.message);const error = await page.evaluate(errorText => {@@ -532,29 +532,29 @@ it('should be able to throw a tricky error', async ({ page }) => {expect(error.message).toContain(errorText);});-it('should accept a string', async ({ page }) => {+it('EV-057 should accept a string', async ({ page }) => {const result = await page.evaluate('1 + 2');expect(result).toBe(3);});-it('should accept a string with semi colons', async ({ page }) => {+it('EV-058 should accept a string with semi colons', async ({ page }) => {const result = await page.evaluate('1 + 5;');expect(result).toBe(6);});-it('should accept a string with comments', async ({ page }) => {+it('EV-059 should accept a string with comments', async ({ page }) => {const result = await page.evaluate('2 + 5;\n// do some math!');expect(result).toBe(7);});-it('should accept element handle as an argument', async ({ page }) => {+it('EV-060 should accept element handle as an argument', async ({ page }) => {await page.setContent('<section>42</section>');const element = await page.$('section');const text = await page.evaluate(e => e.textContent, element);expect(text).toBe('42');});-it('should throw if underlying element was disposed', async ({ page }) => {+it('EV-061 should throw if underlying element was disposed', async ({ page }) => {await page.setContent('<section>39</section>');const element = await page.$('section');expect(element).toBeTruthy();@@ -564,7 +564,7 @@ it('should throw if underlying element was disposed', async ({ page }) => {expect(error.message).toContain('no object with guid');});-it('should simulate a user gesture', async ({ page }) => {+it('EV-062 should simulate a user gesture', async ({ page }) => {const result = await page.evaluate(() => {document.body.appendChild(document.createTextNode('test'));document.execCommand('selectAll');@@ -573,7 +573,7 @@ it('should simulate a user gesture', async ({ page }) => {expect(result).toBe(true);});-it('should throw a nice error after a navigation', async ({ page }) => {+it('EV-063 should throw a nice error after a navigation', async ({ page }) => {const errorPromise = page.evaluate(() => new Promise(f => window['__resolve'] = f)).catch(e => e) as Promise<Error>;await Promise.all([page.waitForNavigation(),@@ -586,7 +586,7 @@ it('should throw a nice error after a navigation', async ({ page }) => {expect(error.message).toContain('navigation');});-it('should not throw an error when evaluation does a navigation', async ({ page, server }) => {+it('EV-064 should not throw an error when evaluation does a navigation', async ({ page, server }) => {await page.goto(server.PREFIX + '/one-style.html');const result = await page.evaluate(() => {window.location.href = '/empty.html';@@ -595,7 +595,7 @@ it('should not throw an error when evaluation does a navigation', async ({ page,expect(result).toEqual([42]);});-it('should not throw an error when evaluation does a synchronous navigation and returns an object', async ({ page, server, browserName }) => {+it('EV-065 should not throw an error when evaluation does a synchronous navigation and returns an object', async ({ page, server, browserName }) => {// It is important to be on about:blank for sync reload.const result = await page.evaluate(() => {window.location.reload();@@ -604,7 +604,7 @@ it('should not throw an error when evaluation does a synchronous navigation andexpect(result).toEqual({ a: 42 });});-it('should not throw an error when evaluation does a synchronous navigation and returns undefined', async ({ page }) => {+it('EV-066 should not throw an error when evaluation does a synchronous navigation and returns undefined', async ({ page }) => {// It is important to be on about:blank for sync reload.const result = await page.evaluate(() => {window.location.reload();@@ -613,7 +613,7 @@ it('should not throw an error when evaluation does a synchronous navigation andexpect(result).toBe(undefined);});-it('should transfer 100Mb of data from page to node.js', async ({ mode, page }) => {+it('EV-067 should transfer 100Mb of data from page to node.js', async ({ mode, page }) => {it.skip(mode !== 'default');// This is too slow with wire.@@ -621,7 +621,7 @@ it('should transfer 100Mb of data from page to node.js', async ({ mode, page })expect(a.length).toBe(100 * 1024 * 1024);});-it('should throw error with detailed information on exception inside promise ', async ({ page }) => {+it('EV-068 should throw error with detailed information on exception inside promise ', async ({ page }) => {let error = null;await page.evaluate(() => new Promise(() => {throw new Error('Error in promise');@@ -629,13 +629,13 @@ it('should throw error with detailed information on exception inside promise ',expect(error.message).toContain('Error in promise');});-it('should work even when JSON is set to null', async ({ page }) => {+it('EV-069 should work even when JSON is set to null', async ({ page }) => {await page.evaluate(() => { window.JSON.stringify = null; window.JSON = null; });const result = await page.evaluate(() => ({ abc: 123 }));expect(result).toEqual({ abc: 123 });});-it('should await promise from popup', async ({ page, server }) => {+it('EV-070 should await promise from popup', async ({ page, server }) => {// Something is wrong about the way Firefox waits for the chained promiseawait page.goto(server.EMPTY_PAGE);const result = await page.evaluate(() => {@@ -645,13 +645,13 @@ it('should await promise from popup', async ({ page, server }) => {expect(result).toBe(42);});-it('should work with new Function() and CSP', async ({ page, server }) => {+it('EV-071 should work with new Function() and CSP', async ({ page, server }) => {server.setCSP('/empty.html', 'script-src ' + server.PREFIX);await page.goto(server.PREFIX + '/empty.html');expect(await page.evaluate(() => new Function('return true')())).toBe(true);});-it('should work with non-strict expressions', async ({ page, server }) => {+it('EV-072 should work with non-strict expressions', async ({ page, server }) => {expect(await page.evaluate(() => {// @ts-ignorey = 3.14;@@ -660,7 +660,7 @@ it('should work with non-strict expressions', async ({ page, server }) => {})).toBe(3.14);});-it('should respect use strict expression', async ({ page }) => {+it('EV-073 should respect use strict expression', async ({ page }) => {const error = await page.evaluate(() => {'use strict';// @ts-ignore@@ -671,22 +671,22 @@ it('should respect use strict expression', async ({ page }) => {expect(error.message).toContain('variableY');});-it('should not leak utility script', async function({ page }) {+it('EV-074 should not leak utility script', async function({ page }) {expect(await page.evaluate('this === window')).toBe(true);});-it('should not leak handles', async ({ page }) => {+it('EV-075 should not leak handles', async ({ page }) => {const error = await page.evaluate('handles.length').catch(e => e);expect((error as Error).message).toContain(' handles');});-it('should work with CSP', async ({ page, server }) => {+it('EV-076 should work with CSP', async ({ page, server }) => {server.setCSP('/empty.html', `script-src 'self'`);await page.goto(server.EMPTY_PAGE);expect(await page.evaluate(() => 2 + 2)).toBe(4);});-it('should evaluate exception with a function on the stack', async ({ page }) => {+it('EV-077 should evaluate exception with a function on the stack', async ({ page }) => {const error = await page.evaluate(() => {return (function functionOnStack() {return new Error('error message');@@ -696,7 +696,7 @@ it('should evaluate exception with a function on the stack', async ({ page }) =>expect(error.stack).toContain('functionOnStack');});-it('should evaluate exception', async ({ page }) => {+it('EV-078 should evaluate exception', async ({ page }) => {const error = await page.evaluate(() => {function innerFunction() {const e = new Error('error message');@@ -711,7 +711,7 @@ it('should evaluate exception', async ({ page }) => {expect((error as Error).stack).toContain('innerFunction');});-it('should pass exception argument', async ({ page }) => {+it('EV-079 should pass exception argument', async ({ page }) => {function innerFunction() {const e = new Error('error message');e.name = 'foobar';@@ -725,50 +725,50 @@ it('should pass exception argument', async ({ page }) => {expect(received.stack).toContain('innerFunction');});-it('should evaluate date', async ({ page }) => {+it('EV-080 should evaluate date', async ({ page }) => {const result = await page.evaluate(() => ({ date: new Date('2020-05-27T01:31:38.506Z') }));expect(result).toEqual({ date: new Date('2020-05-27T01:31:38.506Z') });});-it('should roundtrip date', async ({ page }) => {+it('EV-081 should roundtrip date', async ({ page }) => {const date = new Date('2020-05-27T01:31:38.506Z');const result = await page.evaluate(date => date, date);expect(result.toUTCString()).toEqual(date.toUTCString());});-it('should roundtrip regex', async ({ page }) => {+it('EV-082 should roundtrip regex', async ({ page }) => {const regex = /hello/im;const result = await page.evaluate(regex => regex, regex);expect(result.toString()).toEqual(regex.toString());});-it('should jsonValue() date', async ({ page }) => {+it('EV-083 should jsonValue() date', async ({ page }) => {const resultHandle = await page.evaluateHandle(() => ({ date: new Date('2020-05-27T01:31:38.506Z') }));expect(await resultHandle.jsonValue()).toEqual({ date: new Date('2020-05-27T01:31:38.506Z') });});-it('should evaluate url', async ({ page }) => {+it('EV-084 should evaluate url', async ({ page }) => {const result = await page.evaluate(() => ({ url: new URL('https://example.com') }));expect(result).toEqual({ url: new URL('https://example.com') });});-it('should roundtrip url', async ({ page }) => {+it('EV-085 should roundtrip url', async ({ page }) => {const url = new URL('https://example.com');const result = await page.evaluate(url => url, url);expect(result.toString()).toEqual(url.toString());});-it('should jsonValue() url', async ({ page }) => {+it('EV-086 should jsonValue() url', async ({ page }) => {const resultHandle = await page.evaluateHandle(() => ({ url: new URL('https://example.com') }));expect(await resultHandle.jsonValue()).toEqual({ url: new URL('https://example.com') });});-it('should not use toJSON when evaluating', async ({ page }) => {+it('EV-087 should not use toJSON when evaluating', async ({ page }) => {const result = await page.evaluate(() => ({ toJSON: () => 'string', data: 'data' }));expect(result).toEqual({ data: 'data', toJSON: {} });});-it('should not use Array.prototype.toJSON when evaluating', async ({ page }) => {+it('EV-088 should not use Array.prototype.toJSON when evaluating', async ({ page }) => {const result = await page.evaluate(() => {(Array.prototype as any).toJSON = () => 'busted';return [1, 2, 3];@@ -776,18 +776,18 @@ it('should not use Array.prototype.toJSON when evaluating', async ({ page }) =>expect(result).toEqual([1, 2, 3]);});-it('should not add a toJSON property to newly created Arrays after evaluation', async ({ page, browserName }) => {+it('EV-089 should not add a toJSON property to newly created Arrays after evaluation', async ({ page, browserName }) => {await page.evaluate(() => []);const hasToJSONProperty = await page.evaluate(() => 'toJSON' in []);expect(hasToJSONProperty).toEqual(false);});-it('should not use toJSON in jsonValue', async ({ page }) => {+it('EV-090 should not use toJSON in jsonValue', async ({ page }) => {const resultHandle = await page.evaluateHandle(() => ({ toJSON: () => 'string', data: 'data' }));expect(await resultHandle.jsonValue()).toEqual({ data: 'data', toJSON: {} });});-it('should ignore buggy toJSON', async ({ page }) => {+it('EV-091 should ignore buggy toJSON', async ({ page }) => {const result = await page.evaluate(() => {class Foo {toJSON() {@@ -804,11 +804,11 @@ it('should ignore buggy toJSON', async ({ page }) => {expect(result).toEqual({ foo: {}, bar: {} });});-it('should not expose the injected script export', async ({ page }) => {+it('EV-092 should not expose the injected script export', async ({ page }) => {expect(await page.evaluate('typeof pwExport === "undefined"')).toBe(true);});-it('should throw when frame is detached', async ({ page, server }) => {+it('EV-093 should throw when frame is detached', async ({ page, server }) => {await attachFrame(page, 'frame1', server.EMPTY_PAGE);const frame = page.frames()[1];const promise = frame.evaluate(() => new Promise<void>(() => {})).catch(e => e);@@ -818,7 +818,7 @@ it('should throw when frame is detached', async ({ page, server }) => {expect(error.message).toMatch(/frame.evaluate: (Frame was detached|Execution context was destroyed)/);});-it('should work with overridden Object.defineProperty', async ({ page, server }) => {+it('EV-094 should work with overridden Object.defineProperty', async ({ page, server }) => {server.setRoute('/test', (req, res) => {res.writeHead(200, {'content-type': 'text/html',@@ -836,7 +836,7 @@ it('should work with overridden Object.defineProperty', async ({ page, server })expect(await page.evaluate('1+2')).toBe(3);});-it('should work with busted Array.prototype.map/push', async ({ page, server }) => {+it('EV-095 should work with busted Array.prototype.map/push', async ({ page, server }) => {server.setRoute('/test', (req, res) => {res.writeHead(200, {'content-type': 'text/html',@@ -851,7 +851,7 @@ it('should work with busted Array.prototype.map/push', async ({ page, server })expect(await ((await page.evaluateHandle('1+2')).jsonValue())).toBe(3);});-it('should work with overridden globalThis.Window/Document/Node', async ({ page, server }) => {+it('EV-096 should work with overridden globalThis.Window/Document/Node', async ({ page, server }) => {const testCases = [// @ts-ignore() => globalThis.Window = {},@@ -873,7 +873,7 @@ it('should work with overridden globalThis.Window/Document/Node', async ({ page,}});-it('should work with overridden URL/Date/RegExp', async ({ page, server }) => {+it('EV-097 should work with overridden URL/Date/RegExp', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21109' });const testCases = [// @ts-ignore@@ -893,7 +893,7 @@ it('should work with overridden URL/Date/RegExp', async ({ page, server }) => {}});-it('should work with Array.from/map', async ({ page }) => {+it('EV-098 should work with Array.from/map', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28520' });expect(await page.evaluate(() => {const r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');@@ -901,7 +901,7 @@ it('should work with Array.from/map', async ({ page }) => {})).toBe('([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})');});-it('should work with a using declaration', async ({ page, nodeVersion, browserName, browserMajorVersion }) => {+it('EV-099 should work with a using declaration', async ({ page, nodeVersion, browserName, browserMajorVersion }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41511' });it.skip(nodeVersion.major < 24, 'using is lowered to a module-scope helper that does not survive evaluate serialization on Node < 24');it.skip(browserName === 'webkit', 'WebKit does not support using declarations');@@ -917,7 +917,7 @@ it('should work with a using declaration', async ({ page, nodeVersion, browserNaexpect(disposed).toBe(true);});-it('should ignore dangerous object keys', async ({ page }) => {+it('EV-100 should ignore dangerous object keys', async ({ page }) => {const input = {__proto__: { polluted: true },safeKey: 'safeValue'diff --git a/tests/page/page-event-console.spec.ts b/tests/page/page-event-console.spec.tsindex 7e373a2826..a07ed2a05a 100644--- a/tests/page/page-event-console.spec.ts+++ b/tests/page/page-event-console.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import util from 'util';-it('should work @smoke', async ({ page, browserName, isBidi }) => {+it('CM-001 should work @smoke', async ({ page, browserName, isBidi }) => {let message = null;page.once('console', m => message = m);await Promise.all([@@ -35,7 +35,7 @@ it('should work @smoke', async ({ page, browserName, isBidi }) => {expect(await message.args()[2].jsonValue()).toEqual({ foo: 'bar' });});-it('should emit same log twice', async ({ page }) => {+it('CM-002 should emit same log twice', async ({ page }) => {const messages = [];page.on('console', m => messages.push(m.text()));await page.evaluate(() => {@@ -45,7 +45,7 @@ it('should emit same log twice', async ({ page }) => {expect(messages).toEqual(['hello', 'hello']);});-it('should use text() for inspection', async ({ page }) => {+it('CM-003 should use text() for inspection', async ({ page }) => {let text;const inspect = value => {text = util.inspect(value);@@ -55,7 +55,7 @@ it('should use text() for inspection', async ({ page }) => {expect(text).toEqual('Hello world');});-it('should work for different console API calls', async ({ page }) => {+it('CM-004 should work for different console API calls', async ({ page }) => {const messages = [];page.on('console', msg => messages.push(msg));// All console events will be reported before `page.evaluate` is finished.@@ -91,7 +91,7 @@ it('should work for different console API calls', async ({ page }) => {]);});-it('should format the message correctly with time/timeLog/timeEnd', async ({ page, browserName, isBidi }) => {+it('CM-005 should format the message correctly with time/timeLog/timeEnd', async ({ page, browserName, isBidi }) => {it.fixme(browserName === 'firefox' && !isBidi, 'https://github.com/microsoft/playwright/issues/10580');const messages = [];page.on('console', msg => messages.push(msg));@@ -117,7 +117,7 @@ it('should format the message correctly with time/timeLog/timeEnd', async ({ pagexpect(messages[1].text()).toMatch(/foo time: \d+(.\d+)? ?ms/);});-it('should not fail for window object', async ({ page, browserName, isBidi }) => {+it('CM-006 should not fail for window object', async ({ page, browserName, isBidi }) => {let message = null;page.once('console', msg => message = msg);await Promise.all([@@ -130,7 +130,7 @@ it('should not fail for window object', async ({ page, browserName, isBidi }) =>expect(message.text()).toEqual('JSHandle@object');});-it(`should not fail for object that can't be coerced to a primitive`, async ({ page, browserName, isBidi }) => {+it(`CM-007 should not fail for object that can't be coerced to a primitive`, async ({ page, browserName, isBidi }) => {let message = null;page.once('console', msg => message = msg);await Promise.all([@@ -143,7 +143,7 @@ it(`should not fail for object that can't be coerced to a primitive`, async ({ pexpect(message.text()).toEqual('JSHandle@object');});-it('should trigger correct Log', async ({ page, server, browserName, isWindows }) => {+it('CM-008 should trigger correct Log', async ({ page, server, browserName, isWindows }) => {it.skip(browserName === 'webkit' && isWindows, 'Upstream issue https://bugs.webkit.org/show_bug.cgi?id=229515');await page.goto('about:blank');const [message] = await Promise.all([@@ -154,7 +154,7 @@ it('should trigger correct Log', async ({ page, server, browserName, isWindows }expect(message.type()).toEqual('error');});-it('should have location for console API calls', async ({ page, server }) => {+it('CM-009 should have location for console API calls', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [message] = await Promise.all([page.waitForEvent('console', m => m.text().startsWith('here:')),@@ -170,7 +170,7 @@ it('should have location for console API calls', async ({ page, server }) => {});});-it('should not throw when there are console messages in detached iframes', async ({ page, server }) => {+it('CM-010 should not throw when there are console messages in detached iframes', async ({ page, server }) => {// @see https://github.com/GoogleChrome/puppeteer/issues/3865await page.goto(server.EMPTY_PAGE);const [popup] = await Promise.all([@@ -194,7 +194,7 @@ it('should not throw when there are console messages in detached iframes', asyncexpect(await popup.evaluate('1 + 1')).toBe(2);});-it('should use object previews for arrays and objects', async ({ page, browserName, isBidi }) => {+it('CM-011 should use object previews for arrays and objects', async ({ page, browserName, isBidi }) => {let text: string;page.on('console', message => {text = message.text();@@ -207,7 +207,7 @@ it('should use object previews for arrays and objects', async ({ page, browserNaexpect(text).toEqual('Array JSHandle@object JSHandle@object');});-it('should use object previews for errors', async ({ page, browserName, isBidi }) => {+it('CM-012 should use object previews for errors', async ({ page, browserName, isBidi }) => {let text: string;page.on('console', message => {text = message.text();@@ -221,7 +221,7 @@ it('should use object previews for errors', async ({ page, browserName, isBidi }expect(text).toEqual('Error: Exception');});-it('do not update console count on unhandled rejections', async ({ page }) => {+it('CM-013 do not update console count on unhandled rejections', async ({ page }) => {const messages: string[] = [];const consoleEventListener = m => messages.push(m.text());page.addListener('console', consoleEventListener);@@ -239,7 +239,7 @@ it('do not update console count on unhandled rejections', async ({ page }) => {await expect.poll(() => messages).toEqual(['begin', 'end']);});-it('should have timestamp', async ({ page, isAndroid }) => {+it('CM-014 should have timestamp', async ({ page, isAndroid }) => {it.skip(isAndroid, 'there is a time difference between android emulator and host machine');// Generous slack to absorb host wall-clock resolution (e.g. ~15.6ms on Windows)@@ -254,7 +254,7 @@ it('should have timestamp', async ({ page, isAndroid }) => {expect(message.timestamp()).toBeLessThanOrEqual(after);});-it('should have increasing timestamps', async ({ page }) => {+it('CM-015 should have increasing timestamps', async ({ page }) => {const messages = [];page.on('console', msg => messages.push(msg));await page.evaluate(() => {@@ -267,7 +267,7 @@ it('should have increasing timestamps', async ({ page }) => {expect(messages[i].timestamp()).toBeGreaterThanOrEqual(messages[i - 1].timestamp());});-it('should have timestamp in consoleMessages', async ({ page, isAndroid }) => {+it('CM-016 should have timestamp in consoleMessages', async ({ page, isAndroid }) => {it.skip(isAndroid, 'there is a time difference between android emulator and host machine');// Generous slack to absorb host wall-clock resolution (e.g. ~15.6ms on Windows)@@ -283,7 +283,7 @@ it('should have timestamp in consoleMessages', async ({ page, isAndroid }) => {expect(last.timestamp()).toBeLessThanOrEqual(after);});-it('consoleMessages should work', async ({ page }) => {+it('CM-017 consoleMessages should work', async ({ page }) => {await page.evaluate(() => {for (let i = 0; i < 301; i++)console.log('message' + i);@@ -300,7 +300,7 @@ it('consoleMessages should work', async ({ page }) => {expect(objects.slice(objects.length - expected.length), 'should return last messages').toEqual(expected);});-it('clearConsoleMessages should work', async ({ page }) => {+it('CM-018 clearConsoleMessages should work', async ({ page }) => {await page.evaluate(() => {console.log('message1');console.log('message2');@@ -321,7 +321,7 @@ it('clearConsoleMessages should work', async ({ page }) => {expect(messages[0].text()).toBe('message3');});-it('consoleMessages since-navigation filter should work', async ({ page, server }) => {+it('CM-019 consoleMessages since-navigation filter should work', async ({ page, server }) => {await page.evaluate(() => console.log('before navigation'));await page.goto(server.EMPTY_PAGE);await page.evaluate(() => console.log('after navigation'));@@ -336,7 +336,7 @@ it('consoleMessages since-navigation filter should work', async ({ page, serverexpect(sinceNav.map(m => m.text())).toContain('after navigation');});-it('pageErrors since-navigation filter should work', async ({ page, server }) => {+it('CM-020 pageErrors since-navigation filter should work', async ({ page, server }) => {server.setContent('/page1', `<script>throw new Error('page1 error');</script>`, 'text/html');server.setContent('/page2', `<script>throw new Error('page2 error');</script>`, 'text/html');diff --git a/tests/page/page-event-load.spec.ts b/tests/page/page-event-load.spec.tsindex 2483274d50..aaf19325f0 100644--- a/tests/page/page-event-load.spec.ts+++ b/tests/page/page-event-load.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should fire once', async ({ page, server, browserName, isBidi }) => {+it('NA-087 should fire once', async ({ page, server, browserName, isBidi }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15086' });it.fixme(browserName === 'firefox' && !isBidi, 'Firefox sometimes double fires.');@@ -28,7 +28,7 @@ it('should fire once', async ({ page, server, browserName, isBidi }) => {expect(count).toBe(1);});-it('should fire once with iframe navigation', async ({ page, server, browserName, isBidi }) => {+it('NA-088 should fire once with iframe navigation', async ({ page, server, browserName, isBidi }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15086' });it.fixme(browserName === 'firefox' && !isBidi, 'Firefox sometimes double fires.');diff --git a/tests/page/page-event-network.spec.ts b/tests/page/page-event-network.spec.tsindex 5618431c99..4b1f53e16d 100644--- a/tests/page/page-event-network.spec.ts+++ b/tests/page/page-event-network.spec.ts@@ -18,7 +18,7 @@import type { ServerResponse } from 'http';import { test as it, expect } from './pageTest';-it('Page.Events.Request @smoke', async ({ page, server }) => {+it('NE-084 Page.Events.Request @smoke', async ({ page, server }) => {const requests = [];page.on('request', request => requests.push(request));await page.goto(server.EMPTY_PAGE);@@ -31,7 +31,7 @@ it('Page.Events.Request @smoke', async ({ page, server }) => {expect(requests[0].frame().url()).toBe(server.EMPTY_PAGE);});-it('Page.Events.Response @smoke', async ({ page, server }) => {+it('NE-085 Page.Events.Response @smoke', async ({ page, server }) => {const responses = [];page.on('response', response => responses.push(response));await page.goto(server.EMPTY_PAGE);@@ -42,7 +42,7 @@ it('Page.Events.Response @smoke', async ({ page, server }) => {expect(responses[0].request()).toBeTruthy();});-it('Page.Events.RequestFailed @smoke', async ({ page, server, browserName, platform, channel }) => {+it('NE-086 Page.Events.RequestFailed @smoke', async ({ page, server, browserName, platform, channel }) => {server.setRoute('/one-style.css', (req, res) => {res.setHeader('Content-Type', 'text/css');res.connection.destroy();@@ -69,7 +69,7 @@ it('Page.Events.RequestFailed @smoke', async ({ page, server, browserName, platfexpect(failedRequests[0].frame()).toBeTruthy();});-it('Page.Events.RequestFinished @smoke', async ({ page, server }) => {+it('NE-087 Page.Events.RequestFinished @smoke', async ({ page, server }) => {const [response] = await Promise.all([page.goto(server.EMPTY_PAGE),page.waitForEvent('requestfinished')@@ -82,7 +82,7 @@ it('Page.Events.RequestFinished @smoke', async ({ page, server }) => {expect(request.failure()).toBe(null);});-it('should fire events in proper order', async ({ page, server }) => {+it('NE-088 should fire events in proper order', async ({ page, server }) => {const events = [];page.on('request', request => events.push('request'));page.on('response', response => events.push('response'));@@ -92,7 +92,7 @@ it('should fire events in proper order', async ({ page, server }) => {expect(events).toEqual(['request', 'response', 'requestfinished']);});-it('should support redirects', async ({ page, server }) => {+it('NE-089 should support redirects', async ({ page, server }) => {const FOO_URL = server.PREFIX + '/foo.html';const events = {};events[server.EMPTY_PAGE] = [];@@ -116,7 +116,7 @@ it('should support redirects', async ({ page, server }) => {expect(redirectedFrom.redirectedTo()).toBe(response.request());});-it('should resolve responses after a navigation', async ({ page, server, browserName }) => {+it('NE-090 should resolve responses after a navigation', async ({ page, server, browserName }) => {it.fixme(browserName === 'chromium');const responseFromServerPromise = new Promise<ServerResponse>(resolve => {server.setRoute('/foo', (message, response) => {diff --git a/tests/page/page-event-pageerror.spec.ts b/tests/page/page-event-pageerror.spec.tsindex 875959dba5..a9b12b857e 100644--- a/tests/page/page-event-pageerror.spec.ts+++ b/tests/page/page-event-pageerror.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should fire', {+it('ER-001 should fire', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43450' },}, async ({ page, server, browserName, isBidi }) => {const url = server.PREFIX + '/error.html';@@ -100,7 +100,7 @@ function c() {}});-it('should not receive console message for pageError', async ({ page, server }) => {+it('ER-002 should not receive console message for pageError', async ({ page, server }) => {const messages = [];page.on('console', e => messages.push(e));await Promise.all([@@ -110,7 +110,7 @@ it('should not receive console message for pageError', async ({ page, server })expect(messages.length).toBe(1);});-it('should contain sourceURL', async ({ page, server, browserName }) => {+it('ER-003 should contain sourceURL', async ({ page, server, browserName }) => {it.fail(browserName === 'webkit');const [error] = await Promise.all([@@ -120,7 +120,7 @@ it('should contain sourceURL', async ({ page, server, browserName }) => {expect(error.stack).toContain('myscript.js');});-it('should contain the Error.name property', async ({ page }) => {+it('ER-004 should contain the Error.name property', async ({ page }) => {const [error] = await Promise.all([page.waitForEvent('pageerror'),page.evaluate(() => {@@ -135,7 +135,7 @@ it('should contain the Error.name property', async ({ page }) => {expect(error.message).toBe('my-message');});-it('should support an empty Error.name property', async ({ page }) => {+it('ER-005 should support an empty Error.name property', async ({ page }) => {const [error] = await Promise.all([page.waitForEvent('pageerror'),page.evaluate(() => {@@ -150,7 +150,7 @@ it('should support an empty Error.name property', async ({ page }) => {expect(error.message).toBe('my-message');});-it('should handle odd values', async ({ page }) => {+it('ER-006 should handle odd values', async ({ page }) => {const cases = [[null, 'null'],[undefined, 'undefined'],@@ -168,7 +168,7 @@ it('should handle odd values', async ({ page }) => {}});-it('should handle object', async ({ page, browserName }) => {+it('ER-007 should handle object', async ({ page, browserName }) => {const [error] = await Promise.all([page.waitForEvent('pageerror'),page.evaluate(() => {@@ -178,7 +178,7 @@ it('should handle object', async ({ page, browserName }) => {expect(error.message).toBe(browserName === 'chromium' ? 'Object' : '[object Object]');});-it('should handle window', async ({ page, browserName }) => {+it('ER-008 should handle window', async ({ page, browserName }) => {const [error] = await Promise.all([page.waitForEvent('pageerror'),page.evaluate(() => {@@ -188,11 +188,11 @@ it('should handle window', async ({ page, browserName }) => {expect(error.message).toBe(browserName === 'chromium' ? 'Window' : '[object Window]');});-it('should remove a listener of a non-existing event handler', async ({ page }) => {+it('ER-009 should remove a listener of a non-existing event handler', async ({ page }) => {page.removeListener('pageerror', () => {});});-it('should emit error from unhandled rejects', async ({ page, browserName }) => {+it('ER-010 should emit error from unhandled rejects', async ({ page, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/14165' });const [error] = await Promise.all([page.waitForEvent('pageerror'),@@ -205,7 +205,7 @@ it('should emit error from unhandled rejects', async ({ page, browserName }) =>expect(error.message).toContain('sad :(');});-it('pageErrors should work', async ({ page }) => {+it('ER-011 pageErrors should work', async ({ page }) => {await page.evaluate(async () => {for (let i = 0; i < 301; i++)window.builtins.setTimeout(() => { throw new Error('error' + i); }, 0);@@ -223,7 +223,7 @@ it('pageErrors should work', async ({ page }) => {expect(messages.slice(messages.length - expected.length), 'should return last errors').toEqual(expected);});-it('clearPageErrors should work', async ({ page }) => {+it('ER-012 clearPageErrors should work', async ({ page }) => {await page.evaluate(() => {window.builtins.setTimeout(() => { throw new Error('error1'); }, 0);window.builtins.setTimeout(() => { throw new Error('error2'); }, 0);@@ -249,7 +249,7 @@ it('clearPageErrors should work', async ({ page }) => {expect(errors[0].message).toContain('error3');});-it('should fire illegal character error', {+it('ER-013 should fire illegal character error', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/38388' },}, async ({ page, server, browserName, isWindows, channel }) => {server.setRoute('/error.html', (req, res) => {diff --git a/tests/page/page-event-popup.spec.ts b/tests/page/page-event-popup.spec.tsindex 9c9ba51ac9..0cc5fb6a2e 100644--- a/tests/page/page-event-popup.spec.ts+++ b/tests/page/page-event-popup.spec.ts@@ -16,7 +16,7 @@import { test as it, expect } from './pageTest';-it('should work @smoke', async ({ page }) => {+it('PO-001 should work @smoke', async ({ page }) => {const [popup] = await Promise.all([page.waitForEvent('popup'),page.evaluate(() => window['__popup'] = window.open('about:blank')),@@ -25,7 +25,7 @@ it('should work @smoke', async ({ page }) => {expect(await popup.evaluate(() => !!window.opener)).toBe(true);});-it('should work with window features', async ({ page, server }) => {+it('PO-002 should work with window features', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [popup] = await Promise.all([page.waitForEvent('popup'),@@ -35,7 +35,7 @@ it('should work with window features', async ({ page, server }) => {expect(await popup.evaluate(() => !!window.opener)).toBe(true);});-it('should emit for immediately closed popups', async ({ page }) => {+it('PO-003 should emit for immediately closed popups', async ({ page }) => {const [popup] = await Promise.all([page.waitForEvent('popup'),page.evaluate(() => {@@ -46,7 +46,7 @@ it('should emit for immediately closed popups', async ({ page }) => {expect(popup).toBeTruthy();});-it('should emit for immediately closed popups 2', async ({ page, server, browserName, video }) => {+it('PO-004 should emit for immediately closed popups 2', async ({ page, server, browserName, video }) => {await page.goto(server.EMPTY_PAGE);const [popup] = await Promise.all([page.waitForEvent('popup'),@@ -58,7 +58,7 @@ it('should emit for immediately closed popups 2', async ({ page, server, browserexpect(popup).toBeTruthy();});-it('should be able to capture alert', async ({ page }) => {+it('PO-005 should be able to capture alert', async ({ page }) => {const evaluatePromise = page.evaluate(() => {const win = window.open('');win.alert('hello');@@ -73,7 +73,7 @@ it('should be able to capture alert', async ({ page }) => {await evaluatePromise;});-it('should work with empty url', async ({ page }) => {+it('PO-006 should work with empty url', async ({ page }) => {const [popup] = await Promise.all([page.waitForEvent('popup'),page.evaluate(() => window['__popup'] = window.open('')),@@ -82,7 +82,7 @@ it('should work with empty url', async ({ page }) => {expect(await popup.evaluate(() => !!window.opener)).toBe(true);});-it('should work with noopener and no url', async ({ page }) => {+it('PO-007 should work with noopener and no url', async ({ page }) => {const [popup] = await Promise.all([page.waitForEvent('popup'),page.evaluate(() => window['__popup'] = window.open(undefined, null, 'noopener')),@@ -93,7 +93,7 @@ it('should work with noopener and no url', async ({ page }) => {expect(await popup.evaluate(() => !!window.opener)).toBe(false);});-it('should work with noopener and about:blank', async ({ page }) => {+it('PO-008 should work with noopener and about:blank', async ({ page }) => {const [popup] = await Promise.all([page.waitForEvent('popup'),page.evaluate(() => window['__popup'] = window.open('about:blank', null, 'noopener')),@@ -102,7 +102,7 @@ it('should work with noopener and about:blank', async ({ page }) => {expect(await popup.evaluate(() => !!window.opener)).toBe(false);});-it('should work with noopener and url', async ({ page, server }) => {+it('PO-009 should work with noopener and url', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [popup] = await Promise.all([page.waitForEvent('popup'),@@ -112,7 +112,7 @@ it('should work with noopener and url', async ({ page, server }) => {expect(await popup.evaluate(() => !!window.opener)).toBe(false);});-it('should work with clicking target=_blank', async ({ page, server }) => {+it('PO-010 should work with clicking target=_blank', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent('<a target=_blank rel="opener" href="/one-style.html">yo</a>');const [popup] = await Promise.all([@@ -124,7 +124,7 @@ it('should work with clicking target=_blank', async ({ page, server }) => {expect(popup.mainFrame().page()).toBe(popup);});-it('should work with fake-clicking target=_blank and rel=noopener', async ({ page, server }) => {+it('PO-011 should work with fake-clicking target=_blank and rel=noopener', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent('<a target=_blank rel=noopener href="/one-style.html">yo</a>');const [popup] = await Promise.all([@@ -135,7 +135,7 @@ it('should work with fake-clicking target=_blank and rel=noopener', async ({ pagexpect(await popup.evaluate(() => !!window.opener)).toBe(false);});-it('should work with clicking target=_blank and rel=noopener', async ({ page, server }) => {+it('PO-012 should work with clicking target=_blank and rel=noopener', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent('<a target=_blank rel=noopener href="/one-style.html">yo</a>');const [popup] = await Promise.all([@@ -146,7 +146,7 @@ it('should work with clicking target=_blank and rel=noopener', async ({ page, seexpect(await popup.evaluate(() => !!window.opener)).toBe(false);});-it('should report popup opened from iframes', async ({ page, server, browserName }) => {+it('PO-013 should report popup opened from iframes', async ({ page, server, browserName }) => {await page.goto(server.PREFIX + '/frames/two-frames.html');const frame = page.frames()[1];expect(frame).toBeTruthy();diff --git a/tests/page/page-event-request.spec.ts b/tests/page/page-event-request.spec.tsindex a47fd560ef..36a3ff5215 100644--- a/tests/page/page-event-request.spec.ts+++ b/tests/page/page-event-request.spec.ts@@ -18,14 +18,14 @@import { test as it, expect } from './pageTest';import { attachFrame } from '../config/utils';-it('should fire for navigation requests', async ({ page, server }) => {+it('NE-091 should fire for navigation requests', async ({ page, server }) => {const requests = [];page.on('request', request => requests.push(request));await page.goto(server.EMPTY_PAGE);expect(requests.length).toBe(1);});-it('should fire for iframes', async ({ page, server }) => {+it('NE-092 should fire for iframes', async ({ page, server }) => {const requests = [];page.on('request', request => requests.push(request));await page.goto(server.EMPTY_PAGE);@@ -33,7 +33,7 @@ it('should fire for iframes', async ({ page, server }) => {expect(requests.length).toBe(2);});-it('should fire for fetches', async ({ page, server }) => {+it('NE-093 should fire for fetches', async ({ page, server }) => {const requests = [];page.on('request', request => requests.push(request));await page.goto(server.EMPTY_PAGE);@@ -41,7 +41,7 @@ it('should fire for fetches', async ({ page, server }) => {expect(requests.length).toBe(2);});-it('should fire for fetches with keepalive: true', {+it('NE-094 should fire for fetches with keepalive: true', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/34497'@@ -54,7 +54,7 @@ it('should fire for fetches with keepalive: true', {expect(requests.length).toBe(2);});-it('should report requests and responses handled by service worker', async ({ page, server, isAndroid, isElectron }) => {+it('NE-095 should report requests and responses handled by service worker', async ({ page, server, isAndroid, isElectron }) => {it.fixme(isAndroid);it.fixme(isElectron);@@ -82,7 +82,7 @@ it('should report requests and responses handled by service worker', async ({ paexpect(await failedRequest.response()).toBe(null);});-it('should report requests and responses handled by service worker with routing', async ({ page, server, isAndroid, isElectron, mode, browserName, platform }) => {+it('NE-096 should report requests and responses handled by service worker with routing', async ({ page, server, isAndroid, isElectron, mode, browserName, platform }) => {it.fixme(isAndroid);it.fixme(isElectron);@@ -119,7 +119,7 @@ it('should report requests and responses handled by service worker with routing'expect(interceptedUrls).toEqual(expectedUrls);});-it('should report navigation requests and responses handled by service worker', async ({ page, server, isAndroid, browserName }) => {+it('NE-097 should report navigation requests and responses handled by service worker', async ({ page, server, isAndroid, browserName }) => {it.fixme(isAndroid);await page.goto(server.PREFIX + '/serviceworkers/stub/sw.html');@@ -147,7 +147,7 @@ it('should report navigation requests and responses handled by service worker',}});-it('should report navigation requests and responses handled by service worker with routing', async ({ page, server, isAndroid, browserName }) => {+it('NE-098 should report navigation requests and responses handled by service worker with routing', async ({ page, server, isAndroid, browserName }) => {it.fixme(isAndroid);await page.route('**/*', route => route.continue());@@ -178,7 +178,7 @@ it('should report navigation requests and responses handled by service worker wi}});-it('should return response body when Cross-Origin-Opener-Policy is set', async ({ page, server, browserName }) => {+it('NE-099 should return response body when Cross-Origin-Opener-Policy is set', async ({ page, server, browserName }) => {server.setRoute('/empty.html', (req, res) => {res.setHeader('Cross-Origin-Opener-Policy', 'same-origin');// Note: without 'onload', Firefox sometimes does not fire the load event@@ -195,7 +195,7 @@ it('should return response body when Cross-Origin-Opener-Policy is set', async (expect(await response.text()).toContain('Hello there!');});-it('should fire requestfailed when intercepting race', async ({ page, server, browserName }) => {+it('NE-100 should fire requestfailed when intercepting race', async ({ page, server, browserName }) => {it.skip(browserName !== 'chromium', 'This test is specifically testing Chromium race');const promise = new Promise<void>(resolve => {@@ -244,7 +244,7 @@ it('should fire requestfailed when intercepting race', async ({ page, server, brawait promise;});-it('main resource xhr should have type xhr', async ({ page, server }) => {+it('NE-101 main resource xhr should have type xhr', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22812' });await page.goto(server.EMPTY_PAGE);const [request] = await Promise.all([@@ -259,7 +259,7 @@ it('main resource xhr should have type xhr', async ({ page, server }) => {expect(request.resourceType()).toBe('xhr');});-it('should finish 204 request', {+it('NE-102 should finish 204 request', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32752' },{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42786' },@@ -278,7 +278,7 @@ it('should finish 204 request', {expect(await reqPromise).toBe('requestfinished');});-it('should fail 204 navigation request', {+it('NE-103 should fail 204 navigation request', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43279' },}, async ({ page, server }) => {server.setRoute('/204', (req, res) => {@@ -295,7 +295,7 @@ it('should fail 204 navigation request', {expect(await reqPromise).toBe('requestfailed');});-it('<picture> resource should have type image', async ({ page }) => {+it('NE-104 <picture> resource should have type image', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/33148' });const [request] = await Promise.all([page.waitForEvent('request'),@@ -313,7 +313,7 @@ it('<picture> resource should have type image', async ({ page }) => {// Chromium: requestWillBeSentEvent.frameId is undefined for OPTIONS.// WebKit: no requestWillBeSent event in the protocol for OPTIONS (at least on Mac).// Firefox: OPTIONS request can be dispatched.-it('should not expose preflight OPTIONS request', {+it('NE-105 should not expose preflight OPTIONS request', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36311' }}, async ({ page, server, browserName }) => {const serverRequests = [];@@ -356,7 +356,7 @@ it('should not expose preflight OPTIONS request', {]);});-it('should not expose preflight OPTIONS request with network interception', {+it('NE-106 should not expose preflight OPTIONS request with network interception', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36311' }}, async ({ page, server, browserName, isBidi }) => {const serverRequests = [];@@ -400,7 +400,7 @@ it('should not expose preflight OPTIONS request with network interception', {]);});-it('should return last requests', async ({ page, server }) => {+it('NE-107 should return last requests', async ({ page, server }) => {await page.goto(server.PREFIX + '/title.html');for (let i = 0; i < 200; ++i)server.setRoute('/fetch?' + i, (req, res) => res.end('url:' + server.PREFIX + req.url));diff --git a/tests/page/page-expose-function.spec.ts b/tests/page/page-expose-function.spec.tsindex 79c354791c..3f671765bc 100644--- a/tests/page/page-expose-function.spec.ts+++ b/tests/page/page-expose-function.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('exposeBinding should work @smoke', async ({ page }) => {+it('EF-001 exposeBinding should work @smoke', async ({ page }) => {let bindingSource;await page.exposeBinding('add', (source, a, b) => {bindingSource = source;@@ -32,7 +32,7 @@ it('exposeBinding should work @smoke', async ({ page }) => {expect(result).toEqual(11);});-it('should work', async ({ page, server }) => {+it('EF-002 should work', async ({ page, server }) => {await page.exposeFunction('compute', function(a, b) {return a * b;});@@ -42,7 +42,7 @@ it('should work', async ({ page, server }) => {expect(result).toBe(36);});-it('should dispose', async ({ page, server }) => {+it('EF-003 should dispose', async ({ page, server }) => {const binding = await page.exposeFunction('compute', function(a, b) {return a * b;});@@ -58,7 +58,7 @@ it('should dispose', async ({ page, server }) => {expect(e.message).toContain('is not a function');});-it('should work with handles and complex objects', async ({ page, server }) => {+it('EF-004 should work with handles and complex objects', async ({ page, server }) => {const fooHandle = await page.evaluateHandle(() => {window['fooValue'] = { bar: 2 };return window['fooValue'];@@ -74,7 +74,7 @@ it('should work with handles and complex objects', async ({ page, server }) => {expect(equals).toBe(true);});-it('should throw exception in page context', async ({ page, server }) => {+it('EF-005 should throw exception in page context', async ({ page, server }) => {await page.exposeFunction('woof', function() {throw new Error('WOOF WOOF');});@@ -89,7 +89,7 @@ it('should throw exception in page context', async ({ page, server }) => {expect(stack).toContain(__filename);});-it('should support throwing "null"', async ({ page, server }) => {+it('EF-006 should support throwing "null"', async ({ page, server }) => {await page.exposeFunction('woof', function() {throw null;});@@ -103,7 +103,7 @@ it('should support throwing "null"', async ({ page, server }) => {expect(thrown).toBe(null);});-it('should be callable from-inside addInitScript', async ({ page, server }) => {+it('EF-007 should be callable from-inside addInitScript', async ({ page, server }) => {let called = false;await page.exposeFunction('woof', function() {called = true;@@ -113,7 +113,7 @@ it('should be callable from-inside addInitScript', async ({ page, server }) => {await expect.poll(() => called).toBe(true);});-it('should survive navigation', async ({ page, server }) => {+it('EF-008 should survive navigation', async ({ page, server }) => {await page.exposeFunction('compute', function(a, b) {return a * b;});@@ -125,7 +125,7 @@ it('should survive navigation', async ({ page, server }) => {expect(result).toBe(36);});-it('should await returned promise', async ({ page, server }) => {+it('EF-009 should await returned promise', async ({ page, server }) => {await page.exposeFunction('compute', function(a, b) {return Promise.resolve(a * b);});@@ -136,7 +136,7 @@ it('should await returned promise', async ({ page, server }) => {expect(result).toBe(15);});-it('should work on frames', async ({ page, server }) => {+it('EF-010 should work on frames', async ({ page, server }) => {await page.exposeFunction('compute', function(a, b) {return Promise.resolve(a * b);});@@ -149,7 +149,7 @@ it('should work on frames', async ({ page, server }) => {expect(result).toBe(15);});-it('should work on frames before navigation', async ({ page, server }) => {+it('EF-011 should work on frames before navigation', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/nested-frames.html');await page.exposeFunction('compute', function(a, b) {return Promise.resolve(a * b);@@ -162,7 +162,7 @@ it('should work on frames before navigation', async ({ page, server }) => {expect(result).toBe(15);});-it('should work after cross origin navigation', async ({ page, server }) => {+it('EF-012 should work after cross origin navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.exposeFunction('compute', function(a, b) {return a * b;@@ -175,7 +175,7 @@ it('should work after cross origin navigation', async ({ page, server }) => {expect(result).toBe(36);});-it('should work with complex objects', async ({ page, server }) => {+it('EF-013 should work with complex objects', async ({ page, server }) => {await page.exposeFunction('complexObject', function(a, b) {return { x: a.x + b.x };});@@ -183,13 +183,13 @@ it('should work with complex objects', async ({ page, server }) => {expect(result.x).toBe(7);});-it('should throw for duplicate registrations', async ({ page }) => {+it('EF-014 should throw for duplicate registrations', async ({ page }) => {await page.exposeFunction('foo', () => {});const error = await page.exposeFunction('foo', () => {}).catch(e => e);expect(error.message).toContain('page.exposeFunction: Function "foo" has been already registered');});-it('should work with setContent', async ({ page, server }) => {+it('EF-015 should work with setContent', async ({ page, server }) => {await page.exposeFunction('compute', function(a, b) {return Promise.resolve(a * b);});@@ -197,14 +197,14 @@ it('should work with setContent', async ({ page, server }) => {expect(await page.evaluate('window.result')).toBe(6);});-it('should alias Window, Document and Node', async ({ page }) => {+it('EF-016 should alias Window, Document and Node', async ({ page }) => {let object: any;await page.exposeBinding('log', (source, obj) => object = obj);await page.evaluate('window.log([window, document, document.body])');expect(object).toEqual(['ref: <Window>', 'ref: <Document>', 'ref: <Node>']);});-it('should serialize cycles', async ({ page }) => {+it('EF-017 should serialize cycles', async ({ page }) => {let object: any;await page.exposeBinding('log', (source, obj) => object = obj);await page.evaluate('const a = {}; a.b = a; window.log(a)');@@ -213,14 +213,14 @@ it('should serialize cycles', async ({ page }) => {expect(object).toEqual(a);});-it('should work with overridden console object', async ({ page }) => {+it('EF-018 should work with overridden console object', async ({ page }) => {await page.evaluate(() => window.console = null);expect(page.evaluate(() => window.console === null)).toBeTruthy();await page.exposeFunction('add', (a, b) => a + b);expect(await page.evaluate('add(5, 6)')).toBe(11);});-it('should work with busted Array.prototype.map/push', async ({ page, server }) => {+it('EF-019 should work with busted Array.prototype.map/push', async ({ page, server }) => {server.setRoute('/test', (req, res) => {res.writeHead(200, {'content-type': 'text/html',@@ -235,7 +235,7 @@ it('should work with busted Array.prototype.map/push', async ({ page, server })expect(await page.evaluate('add(5, 6)')).toBe(11);});-it('should fail with busted Array.prototype.toJSON', async ({ page }) => {+it('EF-020 should fail with busted Array.prototype.toJSON', async ({ page }) => {await page.evaluateHandle(() => (Array.prototype as any).toJSON = () => '"[]"');await page.exposeFunction('add', (a, b) => a + b);@@ -244,7 +244,7 @@ it('should fail with busted Array.prototype.toJSON', async ({ page }) => {expect.soft(await page.evaluate(() => ([] as any).toJSON())).toBe('"[]"');});-it('exposeBinding should work in parallel', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37712' } }, async ({ page }) => {+it('EF-021 exposeBinding should work in parallel', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37712' } }, async ({ page }) => {await Promise.all([page.exposeBinding('foo', () => 42),page.exposeBinding('bar', () => 42),diff --git a/tests/page/page-filechooser.spec.ts b/tests/page/page-filechooser.spec.tsindex 8fddde2b7d..f8fd899d25 100644--- a/tests/page/page-filechooser.spec.ts+++ b/tests/page/page-filechooser.spec.ts@@ -21,7 +21,7 @@ import { attachFrame } from '../config/utils';import fs from 'fs';import formidable from 'formidable';-test('should upload multiple large files', async ({ page, server, isAndroid, mode }, testInfo) => {+test('FC-001 should upload multiple large files', async ({ page, server, isAndroid, mode }, testInfo) => {test.skip(isAndroid);test.slow();@@ -59,7 +59,7 @@ test('should upload multiple large files', async ({ page, server, isAndroid, modawait Promise.all(uploadFiles.map(path => fs.promises.unlink(path)));});-test('should emit event once', async ({ page, server }) => {+test('FC-002 should emit event once', async ({ page, server }) => {await page.setContent(`<input type=file>`);const [chooser] = await Promise.all([new Promise(f => page.once('filechooser', f)),@@ -68,7 +68,7 @@ test('should emit event once', async ({ page, server }) => {expect(chooser).toBeTruthy();});-test('should emit event via prepend', async ({ page, server }) => {+test('FC-003 should emit event via prepend', async ({ page, server }) => {await page.setContent(`<input type=file>`);const [chooser] = await Promise.all([new Promise(f => page.prependListener('filechooser', f)),@@ -77,7 +77,7 @@ test('should emit event via prepend', async ({ page, server }) => {expect(chooser).toBeTruthy();});-test('should emit event for iframe', async ({ page, server }) => {+test('FC-004 should emit event for iframe', async ({ page, server }) => {const frame = await attachFrame(page, 'frame1', server.EMPTY_PAGE);await frame.setContent(`<input type=file>`);const [chooser] = await Promise.all([@@ -87,7 +87,7 @@ test('should emit event for iframe', async ({ page, server }) => {expect(chooser).toBeTruthy();});-test('should emit event on/off', async ({ page, server }) => {+test('FC-005 should emit event on/off', async ({ page, server }) => {await page.setContent(`<input type=file>`);const [chooser] = await Promise.all([new Promise(f => {@@ -102,7 +102,7 @@ test('should emit event on/off', async ({ page, server }) => {expect(chooser).toBeTruthy();});-test('should emit event addListener/removeListener', async ({ page, server }) => {+test('FC-006 should emit event addListener/removeListener', async ({ page, server }) => {await page.setContent(`<input type=file>`);const [chooser] = await Promise.all([new Promise(f => {@@ -117,7 +117,7 @@ test('should emit event addListener/removeListener', async ({ page, server }) =>expect(chooser).toBeTruthy();});-test('should work when file input is attached to DOM', async ({ page, server }) => {+test('FC-007 should work when file input is attached to DOM', async ({ page, server }) => {await page.setContent(`<input type=file>`);const [chooser] = await Promise.all([page.waitForEvent('filechooser'),@@ -126,7 +126,7 @@ test('should work when file input is attached to DOM', async ({ page, server })expect(chooser).toBeTruthy();});-test('should work when file input is not attached to DOM', async ({ page, asset }) => {+test('FC-008 should work when file input is not attached to DOM', async ({ page, asset }) => {const [, content] = await Promise.all([page.waitForEvent('filechooser').then(chooser => chooser.setFiles(asset('file-to-upload.txt'))),page.evaluate(async () => {@@ -143,7 +143,7 @@ test('should work when file input is not attached to DOM', async ({ page, assetexpect(content).toBe('contents of the file');});-test('should not throw when filechooser belongs to iframe', async ({ page, server, browserName }) => {+test('FC-009 should not throw when filechooser belongs to iframe', async ({ page, server, browserName }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');const frame = page.mainFrame().childFrames()[0];await frame.setContent(`@@ -164,7 +164,7 @@ test('should not throw when filechooser belongs to iframe', async ({ page, serveawait page.waitForFunction(() => (window as any).__done);});-test('should not throw when frame is detached immediately', async ({ page, server }) => {+test('FC-010 should not throw when frame is detached immediately', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');const frame = page.mainFrame().childFrames()[0];await frame.setContent(`@@ -185,27 +185,27 @@ test('should not throw when frame is detached immediately', async ({ page, serveawait page.waitForFunction(() => (window as any).__done);});-test('should respect timeout', async ({ page, playwright }) => {+test('FC-011 should respect timeout', async ({ page, playwright }) => {let error = null;await page.waitForEvent('filechooser', { timeout: 1 }).catch(e => error = e);expect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-test('should respect default timeout when there is no custom timeout', async ({ page, playwright }) => {+test('FC-012 should respect default timeout when there is no custom timeout', async ({ page, playwright }) => {page.setDefaultTimeout(1);let error = null;await page.waitForEvent('filechooser').catch(e => error = e);expect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-test('should prioritize exact timeout over default timeout', async ({ page, playwright }) => {+test('FC-013 should prioritize exact timeout over default timeout', async ({ page, playwright }) => {page.setDefaultTimeout(0);let error = null;await page.waitForEvent('filechooser', { timeout: 1 }).catch(e => error = e);expect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-test('should work with no timeout', async ({ page, server }) => {+test('FC-014 should work with no timeout', async ({ page, server }) => {const [chooser] = await Promise.all([page.waitForEvent('filechooser', { timeout: 0 }),page.evaluate(() => window.builtins.setTimeout(() => {@@ -217,7 +217,7 @@ test('should work with no timeout', async ({ page, server }) => {expect(chooser).toBeTruthy();});-test('should abort with signal', async ({ page }) => {+test('FC-015 should abort with signal', async ({ page }) => {const controller = new AbortController();const promise = page.waitForEvent('filechooser', { signal: controller.signal });controller.abort('Aborted by user');@@ -226,7 +226,7 @@ test('should abort with signal', async ({ page }) => {expect(error.cause).toBe('Aborted by user');});-test('should return the same file chooser when there are many watchdogs simultaneously', async ({ page, server }) => {+test('FC-016 should return the same file chooser when there are many watchdogs simultaneously', async ({ page, server }) => {await page.setContent(`<input type=file>`);const [fileChooser1, fileChooser2] = await Promise.all([page.waitForEvent('filechooser'),@@ -236,7 +236,7 @@ test('should return the same file chooser when there are many watchdogs simultanexpect(fileChooser1 === fileChooser2).toBe(true);});-test('should accept single file', async ({ page, asset }) => {+test('FC-017 should accept single file', async ({ page, asset }) => {await page.setContent(`<input type=file oninput='javascript:console.timeStamp()'>`);const [fileChooser] = await Promise.all([page.waitForEvent('filechooser'),@@ -250,7 +250,7 @@ test('should accept single file', async ({ page, asset }) => {});// @see https://github.com/microsoft/playwright/issues/4704-test('should not trim big uploaded files', async ({ page, server }) => {+test('FC-018 should not trim big uploaded files', async ({ page, server }) => {let files: Record<string, formidable.File>;server.setRoute('/upload', async (req, res) => {@@ -274,7 +274,7 @@ test('should not trim big uploaded files', async ({ page, server }) => {expect(files.file.size).toBe(DATA_SIZE);});-test('should be able to read selected file', async ({ page, asset }) => {+test('FC-019 should be able to read selected file', async ({ page, asset }) => {await page.setContent(`<input type=file>`);const [, content] = await Promise.all([page.waitForEvent('filechooser').then(fileChooser => fileChooser.setFiles(asset('file-to-upload.txt'))),@@ -290,7 +290,7 @@ test('should be able to read selected file', async ({ page, asset }) => {expect(content).toBe('contents of the file');});-test('should be able to reset selected files with empty file list', async ({ page, asset }) => {+test('FC-020 should be able to reset selected files with empty file list', async ({ page, asset }) => {await page.setContent(`<input type=file>`);const [, fileLength1] = await Promise.all([page.waitForEvent('filechooser').then(fileChooser => fileChooser.setFiles(asset('file-to-upload.txt'))),@@ -312,7 +312,7 @@ test('should be able to reset selected files with empty file list', async ({ pagexpect(fileLength2).toBe(0);});-test('should work for single file pick', async ({ page, server }) => {+test('FC-021 should work for single file pick', async ({ page, server }) => {await page.setContent(`<input type=file>`);const [fileChooser] = await Promise.all([page.waitForEvent('filechooser'),@@ -321,7 +321,7 @@ test('should work for single file pick', async ({ page, server }) => {expect(fileChooser.isMultiple()).toBe(false);});-test('should work for "multiple"', async ({ page, server }) => {+test('FC-022 should work for "multiple"', async ({ page, server }) => {await page.setContent(`<input multiple type=file>`);const [fileChooser] = await Promise.all([page.waitForEvent('filechooser'),@@ -330,7 +330,7 @@ test('should work for "multiple"', async ({ page, server }) => {expect(fileChooser.isMultiple()).toBe(true);});-test('should work for "webkitdirectory"', async ({ page, server }) => {+test('FC-023 should work for "webkitdirectory"', async ({ page, server }) => {await page.setContent(`<input multiple webkitdirectory type=file>`);const [fileChooser] = await Promise.all([page.waitForEvent('filechooser'),@@ -339,7 +339,7 @@ test('should work for "webkitdirectory"', async ({ page, server }) => {expect(fileChooser.isMultiple()).toBe(true);});-test('should emit event after navigation', async ({ page, server, browserName, browserMajorVersion }) => {+test('FC-024 should emit event after navigation', async ({ page, server, browserName, browserMajorVersion }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/11375' });test.skip(browserName === 'chromium' && browserMajorVersion < 99);@@ -360,7 +360,7 @@ test('should emit event after navigation', async ({ page, server, browserName, bexpect(logs).toEqual(['filechooser', 'filechooser']);});-test('should trigger listener added before navigation', async ({ page, server, browserMajorVersion, isElectron }) => {+test('FC-025 should trigger listener added before navigation', async ({ page, server, browserMajorVersion, isElectron }) => {test.skip(isElectron && browserMajorVersion <= 98);// Add listener before cross process navigation.const chooserPromise = new Promise(f => page.once('filechooser', f));@@ -405,7 +405,7 @@ test.describe('user activation', () => {await page.route(server.PREFIX + '/activation.html*', route => route.fulfill({ contentType: 'text/html', body: html }));});- test('should not open file chooser without user activation', async ({ page, server, browserName }) => {+ test('FC-026 should not open file chooser without user activation', async ({ page, server, browserName }) => {test.fixme(browserName === 'webkit', 'WebKit opens the file chooser from input.click() without user activation');let choosers = 0;page.on('filechooser', () => choosers++);@@ -422,7 +422,7 @@ test.describe('user activation', () => {expect(choosers).toBe(0);});- test('should open file chooser with user activation', async ({ page, server }) => {+ test('FC-027 should open file chooser with user activation', async ({ page, server }) => {await page.goto(server.PREFIX + '/activation.html');const [chooser] = await Promise.all([page.waitForEvent('filechooser'),@@ -441,7 +441,7 @@ test.describe('user activation', () => {expect(await page.evaluate(() => (window as any).showPicker())).toBe('ok');});- test('should consume user activation when opening file chooser', async ({ page, server, browserName, isElectron, isAndroid }) => {+ test('FC-028 should consume user activation when opening file chooser', async ({ page, server, browserName, isElectron, isAndroid }) => {test.fixme(browserName === 'webkit', 'WebKit does not consume user activation when opening the file chooser');test.fixme(isElectron || isAndroid, 'Chromium 148 in Electron 42 and Chrome on the Android emulator do not consume user activation');let choosers = 0;diff --git a/tests/page/page-fill.spec.ts b/tests/page/page-fill.spec.tsindex ff33d10107..922b99edae 100644--- a/tests/page/page-fill.spec.ts+++ b/tests/page/page-fill.spec.ts@@ -20,19 +20,19 @@ import { test as it, expect, rafraf } from './pageTest';const giveItAChanceToFill = (page: Page) => rafraf(page, 5);-it('should fill textarea @smoke', async ({ page, server }) => {+it('FI-001 should fill textarea @smoke', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.fill('textarea', 'some value');expect(await page.evaluate(() => window['result'])).toBe('some value');});-it('should fill input', async ({ page, server }) => {+it('FI-002 should fill input', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.fill('input', 'some value');expect(await page.evaluate(() => window['result'])).toBe('some value');});-it('should throw on unsupported inputs', async ({ page, server }) => {+it('FI-003 should throw on unsupported inputs', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');for (const type of ['button', 'checkbox', 'file', 'image', 'radio', 'reset', 'submit']) {await page.$eval('input', (input, type) => input.setAttribute('type', type), type);@@ -42,7 +42,7 @@ it('should throw on unsupported inputs', async ({ page, server }) => {}});-it('should fill different input types', async ({ page, server }) => {+it('FI-004 should fill different input types', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');for (const type of ['password', 'search', 'tel', 'text', 'url', 'invalid-type']) {await page.$eval('input', (input, type) => input.setAttribute('type', type), type);@@ -51,7 +51,7 @@ it('should fill different input types', async ({ page, server }) => {}});-it('should fill range input', {+it('FI-005 should fill range input', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43328' },}, async ({ page }) => {await page.setContent('<input type=range min=0 max=100 value=50>');@@ -64,13 +64,13 @@ it('should fill range input', {}});-it('should fill color input', async ({ page }) => {+it('FI-006 should fill color input', async ({ page }) => {await page.setContent('<input type=color value="#e66465">');await page.fill('input', '#aaaaaa');expect(await page.$eval('input', input => input.value)).toBe('#aaaaaa');});-it('should fill color input case insensitive', async ({ page, browserName, isWindows, channel }) => {+it('FI-007 should fill color input case insensitive', async ({ page, browserName, isWindows, channel }) => {await page.setContent('<input type=color value="#e66465">');await page.fill('input', '#AbCd00');if (browserName === 'webkit' && isWindows && channel !== 'webkit-wsl')@@ -79,7 +79,7 @@ it('should fill color input case insensitive', async ({ page, browserName, isWinexpect(await page.$eval('input', input => input.value)).toBe('#abcd00');});-it('should fill date input after clicking', async ({ page, server }) => {+it('FI-008 should fill date input after clicking', async ({ page, server }) => {await page.setContent('<input type=date>');await page.click('input');await page.fill('input', '2020-03-02');@@ -95,7 +95,7 @@ for (const [type, value] of Object.entries({'range': '42','week': '2020-W50'})) {- it(`input event.composed should be true and cross shadow dom boundary - ${type}`, async ({ page, server, browserName, isWindows }) => {+ it(`FI-009 input event.composed should be true and cross shadow dom boundary - ${type}`, async ({ page, server, browserName, isWindows }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28726' });it.skip(browserName !== 'chromium' && ['month', 'week'].includes(type), 'Some browser/platforms do not implement certain input types');it.skip(browserName === 'webkit' && isWindows && ['color', 'date', 'time', 'datetime-local'].includes(type), 'Some browser/platforms do not implement certain input types');@@ -130,25 +130,25 @@ for (const [type, value] of Object.entries({});}-it('should fill time input', async ({ page }) => {+it('FI-010 should fill time input', async ({ page }) => {await page.setContent('<input type=time>');await page.fill('input', '13:15');expect(await page.$eval('input', input => input.value)).toBe('13:15');});-it('should fill month input', async ({ page }) => {+it('FI-011 should fill month input', async ({ page }) => {await page.setContent('<input type=month>');await page.fill('input', '2020-07');expect(await page.$eval('input', input => input.value)).toBe('2020-07');});-it('should fill week input', async ({ page }) => {+it('FI-012 should fill week input', async ({ page }) => {await page.setContent('<input type=week>');await page.fill('input', '2020-W50');expect(await page.$eval('input', input => input.value)).toBe('2020-W50');});-it('should fill datetime-local input', {+it('FI-013 should fill datetime-local input', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43370' },}, async ({ page, server, browserName, isWindows, channel }) => {await page.setContent('<input type=datetime-local>');@@ -162,13 +162,13 @@ it('should fill datetime-local input', {expect(await page.$eval('input', input => input.value)).toBe('2020-03-02T06:20');});-it('should fill contenteditable', async ({ page, server }) => {+it('FI-014 should fill contenteditable', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.fill('div[contenteditable]', 'some value');expect(await page.$eval('div[contenteditable]', div => div.textContent)).toBe('some value');});-it('should fill contenteditable with new lines', async ({ page, server, browserName, isBidi }) => {+it('FI-015 should fill contenteditable with new lines', async ({ page, server, browserName, isBidi }) => {it.fixme(browserName === 'firefox' && !isBidi, 'Firefox does not handle new lines in contenteditable');await page.goto(server.EMPTY_PAGE);@@ -177,7 +177,7 @@ it('should fill contenteditable with new lines', async ({ page, server, browserNexpect(await page.locator('div[contenteditable]').innerText()).toBe('John\nDoe');});-it('should not double-fill in contenteditable with beforeinput handler in Firefox', {+it('FI-016 should not double-fill in contenteditable with beforeinput handler in Firefox', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/36715'@@ -202,7 +202,7 @@ it('should not double-fill in contenteditable with beforeinput handler in Firefoawait expect(locator).toHaveText(testValue);});-it('should fill elements with existing value and selection', async ({ page, server }) => {+it('FI-017 should fill elements with existing value and selection', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.$eval('input', input => input.value = 'value one');@@ -228,14 +228,14 @@ it('should fill elements with existing value and selection', async ({ page, servexpect(await page.$eval('div[contenteditable]', div => div.textContent)).toBe('replace with this');});-it('should throw nice error without injected script stack when element is not an <input>', async ({ page, server }) => {+it('FI-018 should throw nice error without injected script stack when element is not an <input>', async ({ page, server }) => {let error = null;await page.setContent(`<select><option>value1</option></select>`);await page.fill('select', '').catch(e => error = e);expect(error.message).toContain('page.fill: Error: Element is not an <input>, <textarea> or [contenteditable] element\nCall log:');});-it('should throw if passed a non-string value', async ({ page, server }) => {+it('FI-019 should throw if passed a non-string value', async ({ page, server }) => {let error = null;await page.goto(server.PREFIX + '/input/textarea.html');// @ts-expect-error fill only accepts string values@@ -243,7 +243,7 @@ it('should throw if passed a non-string value', async ({ page, server }) => {expect(error.message).toContain('value: expected string, got number');});-it('should retry on disabled element', async ({ page, server }) => {+it('FI-020 should retry on disabled element', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.$eval('input', i => i.disabled = true);let done = false;@@ -258,7 +258,7 @@ it('should retry on disabled element', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('some value');});-it('should retry on readonly element', async ({ page, server }) => {+it('FI-021 should retry on readonly element', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.$eval('textarea', i => i.readOnly = true);let done = false;@@ -273,7 +273,7 @@ it('should retry on readonly element', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('some value');});-it('should retry on invisible element', async ({ page, server }) => {+it('FI-022 should retry on invisible element', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.$eval('input', i => i.style.display = 'none');let done = false;@@ -288,19 +288,19 @@ it('should retry on invisible element', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('some value');});-it('should be able to fill the body', async ({ page }) => {+it('FI-023 should be able to fill the body', async ({ page }) => {await page.setContent(`<body contentEditable="true"></body>`);await page.fill('body', 'some value');expect(await page.evaluate(() => document.body.textContent)).toBe('some value');});-it('should fill fixed position input', async ({ page }) => {+it('FI-024 should fill fixed position input', async ({ page }) => {await page.setContent(`<input style='position: fixed;' />`);await page.fill('input', 'some value');expect(await page.evaluate(() => document.querySelector('input').value)).toBe('some value');});-it('should be able to fill when focus is in the wrong frame', async ({ page }) => {+it('FI-025 should be able to fill when focus is in the wrong frame', async ({ page }) => {await page.setContent(`<div contentEditable="true"></div><iframe></iframe>@@ -310,32 +310,32 @@ it('should be able to fill when focus is in the wrong frame', async ({ page }) =expect(await page.$eval('div', d => d.textContent)).toBe('some value');});-it('should be able to fill the input[type=number]', async ({ page }) => {+it('FI-026 should be able to fill the input[type=number]', async ({ page }) => {await page.setContent(`<input id="input" type="number"></input>`);await page.fill('input', '42');expect(await page.evaluate(() => window['input'].value)).toBe('42');});-it('should be able to fill exponent into the input[type=number]', async ({ page }) => {+it('FI-027 should be able to fill exponent into the input[type=number]', async ({ page }) => {await page.setContent(`<input id="input" type="number"></input>`);await page.fill('input', '-10e5');expect(await page.evaluate(() => window['input'].value)).toBe('-10e5');});-it('should be able to fill input[type=number] with empty string', async ({ page }) => {+it('FI-028 should be able to fill input[type=number] with empty string', async ({ page }) => {await page.setContent(`<input id="input" type="number" value="123"></input>`);await page.fill('input', '');expect(await page.evaluate(() => window['input'].value)).toBe('');});-it('should not be able to fill text into the input[type=number]', async ({ page }) => {+it('FI-029 should not be able to fill text into the input[type=number]', async ({ page }) => {await page.setContent(`<input id="input" type="number"></input>`);let error = null;await page.fill('input', 'abc').catch(e => error = e);expect(error.message).toContain('Cannot type text into input[type=number]');});-it('should be able to clear using fill()', async ({ page, server }) => {+it('FI-030 should be able to clear using fill()', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.fill('input', 'some value');expect(await page.evaluate(() => window['result'])).toBe('some value');@@ -343,7 +343,7 @@ it('should be able to clear using fill()', async ({ page, server }) => {expect(await page.evaluate(() => window['result'])).toBe('');});-it('should not throw when fill causes navigation', async ({ page, server }) => {+it('FI-031 should not throw when fill causes navigation', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.setContent('<input type=date>');await page.$eval('input', select => select.addEventListener('input', () => window.location.href = '/empty.html'));@@ -354,7 +354,7 @@ it('should not throw when fill causes navigation', async ({ page, server }) => {expect(page.url()).toContain('empty.html');});-it('fill back to back', async ({ page }) => {+it('FI-032 fill back to back', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15925' });await page.setContent(`<input id="one"></input><input id="two"></input>`);await page.fill('id=one', 'first value');@@ -363,7 +363,7 @@ it('fill back to back', async ({ page }) => {await expect(page.locator('id=two')).toHaveValue('second value');});-it('should fill contenteditable with focus handler that collapses selection', {+it('FI-033 should fill contenteditable with focus handler that collapses selection', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/39492'@@ -385,7 +385,7 @@ it('should fill contenteditable with focus handler that collapses selection', {expect(await page.locator('div[contenteditable]').textContent()).toBe('some value');});-it('should retry on inert element', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42967' } }, async ({ page }) => {+it('FI-034 should retry on inert element', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42967' } }, async ({ page }) => {await page.setContent(`<div inert id=container><input id=target>@@ -407,7 +407,7 @@ it('should retry on inert element', { annotation: { type: 'issue', description:expect(await page.$eval('#outside', (i: HTMLInputElement) => i.value)).toBe('');});-it('should retry on element outside of a modal dialog', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42967' } }, async ({ page }) => {+it('FI-035 should retry on element outside of a modal dialog', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42967' } }, async ({ page }) => {await page.setContent(`<input id=target><dialog id=dialog><input id=inside></dialog>@@ -430,7 +430,7 @@ it('should retry on element outside of a modal dialog', { annotation: { type: 'iexpect(await page.$eval('#target', (i: HTMLInputElement) => i.value)).toBe('some value');});-it('should fail with a nice error on inert element', async ({ page }) => {+it('FI-036 should fail with a nice error on inert element', async ({ page }) => {await page.setContent(`<div inert><input></div>`);const error = await page.fill('input', 'some value', { timeout: 1000 }).catch(e => e);expect(error.message).toContain('Timeout 1000ms exceeded');diff --git a/tests/page/page-focus.spec.ts b/tests/page/page-focus.spec.tsindex c6552aeda6..28e7170ff5 100644--- a/tests/page/page-focus.spec.ts+++ b/tests/page/page-focus.spec.ts@@ -16,7 +16,7 @@import { test as it, expect } from './pageTest';-it('should work @smoke', async function({ page, browserName, isBidi }) {+it('FO-001 should work @smoke', async function({ page, browserName, isBidi }) {it.skip(browserName === 'firefox' && !isBidi);await page.setContent(`<div id=d1 tabIndex=0></div>`);@@ -25,7 +25,7 @@ it('should work @smoke', async function({ page, browserName, isBidi }) {expect(await page.evaluate(() => document.activeElement.id)).toBe('d1');});-it('should emit focus event', async function({ page }) {+it('FO-002 should emit focus event', async function({ page }) {await page.setContent(`<div id=d1 tabIndex=0></div>`);let focused = false;await page.exposeFunction('focusEvent', () => focused = true);@@ -34,7 +34,7 @@ it('should emit focus event', async function({ page }) {expect(focused).toBe(true);});-it('should emit blur event', async function({ page }) {+it('FO-003 should emit blur event', async function({ page }) {await page.setContent(`<div id=d1 tabIndex=0>DIV1</div><div id=d2 tabIndex=0>DIV2</div>`);await page.focus('#d1');let focused = false;@@ -48,7 +48,7 @@ it('should emit blur event', async function({ page }) {expect(blurred).toBe(true);});-it('should traverse focus', async function({ page }) {+it('FO-004 should traverse focus', async function({ page }) {await page.setContent(`<input id="i1"><input id="i2">`);let focused = false;await page.exposeFunction('focusEvent', () => focused = true);@@ -64,7 +64,7 @@ it('should traverse focus', async function({ page }) {expect(await page.$eval('#i2', e => (e as HTMLInputElement).value)).toBe('Last');});-it('should traverse focus in all directions', async function({ page }) {+it('FO-005 should traverse focus in all directions', async function({ page }) {await page.setContent(`<input value="1"><input value="2"><input value="3">`);await page.keyboard.press('Tab');expect(await page.evaluate(() => (document.activeElement as HTMLInputElement).value)).toBe('1');@@ -78,7 +78,7 @@ it('should traverse focus in all directions', async function({ page }) {expect(await page.evaluate(() => (document.activeElement as HTMLInputElement).value)).toBe('1');});-it('should traverse only form elements', async function({ page, browserName, platform }) {+it('FO-006 should traverse only form elements', async function({ page, browserName, platform }) {it.skip(platform !== 'darwin' || browserName !== 'webkit','Chromium and WebKit both have settings for tab traversing all links, but it is only on by default in WebKit.');@@ -108,7 +108,7 @@ it('should traverse only form elements', async function({ page, browserName, plaexpect(await page.evaluate(() => document.activeElement.id)).toBe('input-1');});-it('clicking checkbox should activate it', async ({ page, browserName, headless, platform }) => {+it('FO-007 clicking checkbox should activate it', async ({ page, browserName, headless, platform }) => {it.skip(browserName === 'webkit', 'Safari does not focus on click');await page.setContent(`<input type=checkbox></input>`);@@ -117,7 +117,7 @@ it('clicking checkbox should activate it', async ({ page, browserName, headless,expect(nodeName).toBe('INPUT');});-it('tab should cycle between single input and browser', {+it('FO-008 tab should cycle between single input and browser', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32339' }}, async ({ page, browserName, isHeadlessShell }) => {it.skip(browserName === 'chromium' && !isHeadlessShell, 'Chromium keeps input focused.');@@ -144,7 +144,7 @@ it('tab should cycle between single input and browser', {expect(await page.evaluate(() => (window as any).focusEvents)).toEqual(['focus', 'blur', 'focus']);});-it('tab should cycle between document elements and browser', {+it('FO-009 tab should cycle between document elements and browser', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32339' }}, async ({ page, browserName, isHeadlessShell }) => {it.skip(browserName === 'chromium' && !isHeadlessShell, 'Chromium keeps last input focused.');@@ -180,7 +180,7 @@ it('tab should cycle between document elements and browser', {expect(await page.evaluate(() => (window as any).focusEvents)).toEqual(['focus1', 'blur1', 'focus2', 'blur2', 'focus1']);});-it('keeps focus on element when attempting to focus a non-focusable element', async ({ page }) => {+it('FO-010 keeps focus on element when attempting to focus a non-focusable element', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/14254' });await page.setContent(`@@ -208,7 +208,7 @@ it('keeps focus on element when attempting to focus a non-focusable element', as]);});-it('should move focus from an iframe to its parent', async ({ page, server }) => {+it('FO-011 should move focus from an iframe to its parent', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43280' });server.setRoute('/frame.html', (req, res) => {res.setHeader('content-type', 'text/html');@@ -223,7 +223,7 @@ it('should move focus from an iframe to its parent', async ({ page, server }) =>expect(await page.frameLocator('iframe').locator('#inner').evaluate(e => e === document.activeElement)).toBe(false);});-it('should tab from an iframe to its parent', async ({ page, server }) => {+it('FO-012 should tab from an iframe to its parent', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43280' });server.setRoute('/frame.html', (req, res) => {res.setHeader('content-type', 'text/html');diff --git a/tests/page/page-goto.spec.ts b/tests/page/page-goto.spec.tsindex 1e7194e7c6..5d56498a92 100644--- a/tests/page/page-goto.spec.ts+++ b/tests/page/page-goto.spec.ts@@ -19,12 +19,12 @@ import url from 'url';import { test as it, expect } from './pageTest';import { expectedSSLError } from '../config/utils';-it('should work @smoke', async ({ page, server }) => {+it('NA-001 should work @smoke', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(page.url()).toBe(server.EMPTY_PAGE);});-it('should work with file URL', async ({ page, asset, isAndroid, mode, channel }) => {+it('NA-002 should work with file URL', async ({ page, asset, isAndroid, mode, channel }) => {it.skip(isAndroid, 'No files on Android');it.skip(channel === 'webkit-wsl', 'separate filesystem on wsl');@@ -34,7 +34,7 @@ it('should work with file URL', async ({ page, asset, isAndroid, mode, channel }expect(page.frames().length).toBe(1);});-it('should navigate from file URL to about:blank', async ({ page, asset, isAndroid, channel }) => {+it('NA-003 should navigate from file URL to about:blank', async ({ page, asset, isAndroid, channel }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42050' });it.skip(isAndroid, 'No files on Android');it.skip(channel === 'webkit-wsl', 'separate filesystem on wsl');@@ -43,7 +43,7 @@ it('should navigate from file URL to about:blank', async ({ page, asset, isAndroawait page.goto('about:blank');});-it('should work with file URL with subframes', async ({ page, asset, isAndroid, mode, channel }) => {+it('NA-004 should work with file URL with subframes', async ({ page, asset, isAndroid, mode, channel }) => {it.skip(isAndroid, 'No files on Android');it.skip(channel === 'webkit-wsl', 'separate filesystem on wsl');@@ -53,14 +53,14 @@ it('should work with file URL with subframes', async ({ page, asset, isAndroid,expect(page.frames().length).toBe(3);});-it('should use http for no protocol', async ({ page, server, isAndroid }) => {+it('NA-005 should use http for no protocol', async ({ page, server, isAndroid }) => {it.skip(isAndroid);await page.goto(server.EMPTY_PAGE.substring('http://'.length));expect(page.url()).toBe(server.EMPTY_PAGE);});-it('should work cross-process', async ({ page, server }) => {+it('NA-006 should work cross-process', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(page.url()).toBe(server.EMPTY_PAGE);@@ -77,7 +77,7 @@ it('should work cross-process', async ({ page, server }) => {expect(response.url()).toBe(url);});-it('should work with cross-process that fails before committing', async ({ page, server }) => {+it('NA-007 should work with cross-process that fails before committing', async ({ page, server }) => {server.setRoute('/empty.html', (req, res) => {req.socket.destroy();});@@ -87,7 +87,7 @@ it('should work with cross-process that fails before committing', async ({ page,expect(error instanceof Error).toBeTruthy();});-it('should work with Cross-Origin-Opener-Policy', async ({ page, server }) => {+it('NA-008 should work with Cross-Origin-Opener-Policy', async ({ page, server }) => {server.setRoute('/empty.html', (req, res) => {res.setHeader('Cross-Origin-Opener-Policy', 'same-origin');// Note: without 'onload', Firefox sometimes does not fire the load event@@ -124,7 +124,7 @@ it('should work with Cross-Origin-Opener-Policy', async ({ page, server }) => {});for (const crossOriginEmbedderPolicy of [undefined, 'require-corp']) {- it(`should work with Cross-Origin-Opener-Policy${crossOriginEmbedderPolicy ? ' and Cross-Origin-Embedder-Policy' : ''} and history state`, async ({ page, server }) => {+ it(`NA-009 should work with Cross-Origin-Opener-Policy${crossOriginEmbedderPolicy ? ' and Cross-Origin-Embedder-Policy' : ''} and history state`, async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42731' });server.setRoute('/empty.html', (req, res) => {res.setHeader('Cross-Origin-Opener-Policy', 'same-origin');@@ -144,7 +144,7 @@ for (const crossOriginEmbedderPolicy of [undefined, 'require-corp']) {});}-it('should work with Cross-Origin-Opener-Policy and interception', async ({ page, server }) => {+it('NA-010 should work with Cross-Origin-Opener-Policy and interception', async ({ page, server }) => {server.setRoute('/empty.html', (req, res) => {res.setHeader('Cross-Origin-Opener-Policy', 'same-origin');// Note: without 'onload', Firefox sometimes does not fire the load event@@ -184,7 +184,7 @@ it('should work with Cross-Origin-Opener-Policy and interception', async ({ pageexpect(response.request().failure()).toBeNull();});-it('should work with Cross-Origin-Opener-Policy after redirect', async ({ page, server }) => {+it('NA-011 should work with Cross-Origin-Opener-Policy after redirect', async ({ page, server }) => {server.setRedirect('/redirect', '/empty.html');server.setRoute('/empty.html', (req, res) => {res.setHeader('Cross-Origin-Opener-Policy', 'same-origin');@@ -224,7 +224,7 @@ it('should work with Cross-Origin-Opener-Policy after redirect', async ({ page,expect(firstRequest.url()).toBe(server.PREFIX + '/redirect');});-it('should capture iframe navigation request', async ({ page, server }) => {+it('NA-012 should capture iframe navigation request', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(page.url()).toBe(server.EMPTY_PAGE);@@ -242,7 +242,7 @@ it('should capture iframe navigation request', async ({ page, server }) => {expect(requestFrame).toBe(page.frames()[1]);});-it('should capture cross-process iframe navigation request', async ({ page, server }) => {+it('NA-013 should capture cross-process iframe navigation request', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(page.url()).toBe(server.EMPTY_PAGE);@@ -260,7 +260,7 @@ it('should capture cross-process iframe navigation request', async ({ page, servexpect(requestFrame).toBe(page.frames()[1]);});-it('should work with anchor navigation', async ({ page, server }) => {+it('NA-014 should work with anchor navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(page.url()).toBe(server.EMPTY_PAGE);await page.goto(server.EMPTY_PAGE + '#foo');@@ -269,7 +269,7 @@ it('should work with anchor navigation', async ({ page, server }) => {expect(page.url()).toBe(server.EMPTY_PAGE + '#bar');});-it('should work with redirects', async ({ page, server }) => {+it('NA-015 should work with redirects', async ({ page, server }) => {server.setRedirect('/redirect/1.html', '/redirect/2.html');server.setRedirect('/redirect/2.html', '/empty.html');const response = await page.goto(server.PREFIX + '/redirect/1.html');@@ -277,17 +277,17 @@ it('should work with redirects', async ({ page, server }) => {expect(page.url()).toBe(server.EMPTY_PAGE);});-it('should navigate to about:blank', async ({ page, server }) => {+it('NA-016 should navigate to about:blank', async ({ page, server }) => {const response = await page.goto('about:blank');expect(response).toBe(null);});-it('should return response when page changes its URL after load', async ({ page, server }) => {+it('NA-017 should return response when page changes its URL after load', async ({ page, server }) => {const response = await page.goto(server.PREFIX + '/historyapi.html');expect(response.status()).toBe(200);});-it('should work with subframes return 204', async ({ page, server }) => {+it('NA-018 should work with subframes return 204', async ({ page, server }) => {server.setRoute('/frames/frame.html', (req, res) => {res.statusCode = 204;res.end();@@ -295,7 +295,7 @@ it('should work with subframes return 204', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');});-it('should work with subframes return 204 with domcontentloaded', async ({ page, server }) => {+it('NA-019 should work with subframes return 204 with domcontentloaded', async ({ page, server }) => {server.setRoute('/frames/frame.html', (req, res) => {res.statusCode = 204;res.end();@@ -303,7 +303,7 @@ it('should work with subframes return 204 with domcontentloaded', async ({ page,await page.goto(server.PREFIX + '/frames/one-frame.html', { waitUntil: 'domcontentloaded' });});-it('should fail when server returns 204', async ({ page, server, browserName, isLinux }) => {+it('NA-020 should fail when server returns 204', async ({ page, server, browserName, isLinux }) => {it.fixme(browserName === 'webkit' && isLinux, 'Regressed in https://github.com/microsoft/playwright-browsers/pull/1297');// WebKit just loads an empty page.server.setRoute('/empty.html', (req, res) => {@@ -321,12 +321,12 @@ it('should fail when server returns 204', async ({ page, server, browserName, isexpect(error.message).toContain('NS_BINDING_ABORTED');});-it('should navigate to empty page with domcontentloaded', async ({ page, server }) => {+it('NA-021 should navigate to empty page with domcontentloaded', async ({ page, server }) => {const response = await page.goto(server.EMPTY_PAGE, { waitUntil: 'domcontentloaded' });expect(response.status()).toBe(200);});-it('should work when page calls history API in beforeunload', async ({ page, server }) => {+it('NA-022 should work when page calls history API in beforeunload', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.evaluate(() => {window.addEventListener('beforeunload', () => history.replaceState(null, 'initial', window.location.href), false);@@ -335,7 +335,7 @@ it('should work when page calls history API in beforeunload', async ({ page, serexpect(response.status()).toBe(200);});-it('should fail when navigating to bad url', async ({ page, browserName, isBidi }) => {+it('NA-023 should fail when navigating to bad url', async ({ page, browserName, isBidi }) => {let error = null;await page.goto('asdfasdf').catch(e => error = e);if (browserName === 'chromium' && isBidi)@@ -348,7 +348,7 @@ it('should fail when navigating to bad url', async ({ page, browserName, isBidiexpect(error.message).toContain('Invalid url');});-it('should fail when navigating to bad SSL', async ({ page, browserName, httpsServer, platform, channel }) => {+it('NA-024 should fail when navigating to bad SSL', async ({ page, browserName, httpsServer, platform, channel }) => {// Make sure that network events do not emit 'undefined'.// @see https://crbug.com/750469page.on('request', request => expect(request).toBeTruthy());@@ -359,7 +359,7 @@ it('should fail when navigating to bad SSL', async ({ page, browserName, httpsSeexpect(error.message).toMatch(expectedSSLError(browserName, platform, channel));});-it('should fail when navigating to bad SSL after redirects', async ({ page, browserName, server, httpsServer, platform, channel }) => {+it('NA-025 should fail when navigating to bad SSL after redirects', async ({ page, browserName, server, httpsServer, platform, channel }) => {server.setRedirect('/redirect/1.html', '/redirect/2.html');server.setRedirect('/redirect/2.html', '/empty.html');let error = null;@@ -367,24 +367,24 @@ it('should fail when navigating to bad SSL after redirects', async ({ page, browexpect(error.message).toMatch(expectedSSLError(browserName, platform, channel));});-it('should not crash when navigating to bad SSL after a cross origin navigation', async ({ page, server, httpsServer }) => {+it('NA-026 should not crash when navigating to bad SSL after a cross origin navigation', async ({ page, server, httpsServer }) => {await page.goto(server.CROSS_PROCESS_PREFIX + '/empty.html');await page.goto(httpsServer.EMPTY_PAGE).catch(e => void 0);});-it('should not throw if networkidle0 is passed as an option', async ({ page, server }) => {+it('NA-027 should not throw if networkidle0 is passed as an option', async ({ page, server }) => {// @ts-expect-error networkidle0 is undocumentedawait page.goto(server.EMPTY_PAGE, { waitUntil: 'networkidle0' });});-it('should throw if networkidle2 is passed as an option', async ({ page, server }) => {+it('NA-028 should throw if networkidle2 is passed as an option', async ({ page, server }) => {let error = null;// @ts-expect-error networkidle2 is not allowedawait page.goto(server.EMPTY_PAGE, { waitUntil: 'networkidle2' }).catch(err => error = err);expect(error.message).toContain(`waitUntil: expected one of (load|domcontentloaded|networkidle|commit)`);});-it('should fail when main resources failed to load', async ({ page, browserName, isWindows, mode, channel }) => {+it('NA-029 should fail when main resources failed to load', async ({ page, browserName, isWindows, mode, channel }) => {it.skip(channel === 'webkit-wsl', 'Networking mode mirrored ends up stalling connections rather than terminating them, see https://github.com/microsoft/WSL/issues/10855.');let error = null;await page.goto('http://localhost:44123/non-existing-url').catch(e => error = e);@@ -398,7 +398,7 @@ it('should fail when main resources failed to load', async ({ page, browserName,expect(error.message).toContain('NS_ERROR_CONNECTION_REFUSED');});-it('should fail when exceeding maximum navigation timeout', async ({ page, server, playwright }) => {+it('NA-030 should fail when exceeding maximum navigation timeout', async ({ page, server, playwright }) => {// Hang for request to the empty.htmlserver.setRoute('/empty.html', (req, res) => { });let error = null;@@ -408,7 +408,7 @@ it('should fail when exceeding maximum navigation timeout', async ({ page, serveexpect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should fail when exceeding default maximum navigation timeout', async ({ page, server, playwright, isAndroid, isElectron }) => {+it('NA-031 should fail when exceeding default maximum navigation timeout', async ({ page, server, playwright, isAndroid, isElectron }) => {it.skip(isAndroid || isElectron, 'No context per test');// Hang for request to the empty.html@@ -422,7 +422,7 @@ it('should fail when exceeding default maximum navigation timeout', async ({ pagexpect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should fail when exceeding browser context navigation timeout', async ({ page, server, playwright, isAndroid, isElectron }) => {+it('NA-032 should fail when exceeding browser context navigation timeout', async ({ page, server, playwright, isAndroid, isElectron }) => {it.skip(isAndroid || isElectron, 'No context per test');// Hang for request to the empty.html@@ -435,7 +435,7 @@ it('should fail when exceeding browser context navigation timeout', async ({ pagexpect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should fail when exceeding default maximum timeout', async ({ page, server, playwright, isAndroid, isElectron }) => {+it('NA-033 should fail when exceeding default maximum timeout', async ({ page, server, playwright, isAndroid, isElectron }) => {it.skip(isAndroid || isElectron, 'No context per test');// Hang for request to the empty.html@@ -451,7 +451,7 @@ it('should fail when exceeding default maximum timeout', async ({ page, server,expect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should fail when exceeding browser context timeout', async ({ page, server, playwright, isAndroid, isElectron }) => {+it('NA-034 should fail when exceeding browser context timeout', async ({ page, server, playwright, isAndroid, isElectron }) => {it.skip(isAndroid || isElectron, 'No context per test');// Hang for request to the empty.html@@ -466,7 +466,7 @@ it('should fail when exceeding browser context timeout', async ({ page, server,expect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should prioritize default navigation timeout over default timeout', async ({ page, server, playwright }) => {+it('NA-035 should prioritize default navigation timeout over default timeout', async ({ page, server, playwright }) => {// Hang for request to the empty.htmlserver.setRoute('/empty.html', (req, res) => { });let error = null;@@ -478,7 +478,7 @@ it('should prioritize default navigation timeout over default timeout', async ({expect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should disable timeout when its set to 0', async ({ page, server }) => {+it('NA-036 should disable timeout when its set to 0', async ({ page, server }) => {let error = null;let loaded = false;page.once('load', () => loaded = true);@@ -487,7 +487,7 @@ it('should disable timeout when its set to 0', async ({ page, server }) => {expect(loaded).toBe(true);});-it('should fail when replaced by another navigation', async ({ page, server, browserName, isBidi }) => {+it('NA-037 should fail when replaced by another navigation', async ({ page, server, browserName, isBidi }) => {let anotherPromise;server.setRoute('/empty.html', (req, res) => {anotherPromise = page.goto(server.PREFIX + '/one-style.html');@@ -508,7 +508,7 @@ it('should fail when replaced by another navigation', async ({ page, server, bro}});-it('js redirect overrides url bar navigation ', async ({ page, server, browserName, trace }) => {+it('NA-038 js redirect overrides url bar navigation ', async ({ page, server, browserName, trace }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/20749' });it.skip(trace === 'on', 'tracing waits for snapshot that never arrives because pending navigation');@@ -559,7 +559,7 @@ it('js redirect overrides url bar navigation ', async ({ page, server, browserNa}});-it('should succeed on url bar navigation when there is pending navigation', async ({ page, server, browserName }) => {+it('NA-039 should succeed on url bar navigation when there is pending navigation', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21574' });it.skip(process.env.PW_CLOCK === 'frozen');server.setRoute('/a', (req, res) => {@@ -600,23 +600,23 @@ it('should succeed on url bar navigation when there is pending navigation', asyn});-it('should work when navigating to valid url', async ({ page, server }) => {+it('NA-040 should work when navigating to valid url', async ({ page, server }) => {const response = await page.goto(server.EMPTY_PAGE);expect(response.ok()).toBe(true);});-it('should work when navigating to data url', async ({ page, server }) => {+it('NA-041 should work when navigating to data url', async ({ page, server }) => {const response = await page.goto('data:text/html,hello');expect(response).toBe(null);});-it('should work when navigating to 404', async ({ page, server }) => {+it('NA-042 should work when navigating to 404', async ({ page, server }) => {const response = await page.goto(server.PREFIX + '/not-found');expect(response.ok()).toBe(false);expect(response.status()).toBe(404);});-it('should return last response in redirect chain', async ({ page, server }) => {+it('NA-043 should return last response in redirect chain', async ({ page, server }) => {server.setRedirect('/redirect/1.html', '/redirect/2.html');server.setRedirect('/redirect/2.html', '/redirect/3.html');server.setRedirect('/redirect/3.html', server.EMPTY_PAGE);@@ -625,7 +625,7 @@ it('should return last response in redirect chain', async ({ page, server }) =>expect(response.url()).toBe(server.EMPTY_PAGE);});-it('should not leak listeners during navigation', async ({ page, server }) => {+it('NA-044 should not leak listeners during navigation', async ({ page, server }) => {let warning = null;const warningHandler = w => warning = w;process.on('warning', warningHandler);@@ -635,7 +635,7 @@ it('should not leak listeners during navigation', async ({ page, server }) => {expect(warning).toBe(null);});-it('should not leak listeners during bad navigation', async ({ page, server }) => {+it('NA-045 should not leak listeners during bad navigation', async ({ page, server }) => {let warning = null;const warningHandler = w => warning = w;process.on('warning', warningHandler);@@ -645,7 +645,7 @@ it('should not leak listeners during bad navigation', async ({ page, server }) =expect(warning).toBe(null);});-it('should not leak listeners during 20 waitForNavigation', async ({ page, server }) => {+it('NA-046 should not leak listeners during 20 waitForNavigation', async ({ page, server }) => {let warning = null;const warningHandler = w => warning = w;process.on('warning', warningHandler);@@ -656,7 +656,7 @@ it('should not leak listeners during 20 waitForNavigation', async ({ page, serveexpect(warning).toBe(null);});-it('should navigate to dataURL and not fire dataURL requests', async ({ page, server }) => {+it('NA-047 should navigate to dataURL and not fire dataURL requests', async ({ page, server }) => {const requests = [];page.on('request', request => requests.push(request));const dataURL = 'data:text/html,<div>yo</div>';@@ -665,7 +665,7 @@ it('should navigate to dataURL and not fire dataURL requests', async ({ page, seexpect(requests.length).toBe(0);});-it('should navigate to URL with hash and fire requests without hash', async ({ page, server }) => {+it('NA-048 should navigate to URL with hash and fire requests without hash', async ({ page, server }) => {const requests = [];page.on('request', request => requests.push(request));const response = await page.goto(server.EMPTY_PAGE + '#hash');@@ -675,13 +675,13 @@ it('should navigate to URL with hash and fire requests without hash', async ({ pexpect(requests[0].url()).toBe(server.EMPTY_PAGE);});-it('should work with self requesting page', async ({ page, server }) => {+it('NA-049 should work with self requesting page', async ({ page, server }) => {const response = await page.goto(server.PREFIX + '/self-request.html');expect(response.status()).toBe(200);expect(response.url()).toContain('self-request.html');});-it('should fail when navigating and show the url at the error message', async function({ page, server, httpsServer }) {+it('NA-050 should fail when navigating and show the url at the error message', async function({ page, server, httpsServer }) {const url = httpsServer.PREFIX + '/redirect/1.html';let error = null;try {@@ -692,14 +692,14 @@ it('should fail when navigating and show the url at the error message', async fuexpect(error.message).toContain(url);});-it('should be able to navigate to a page controlled by service worker', async ({ page, server, isElectron }) => {+it('NA-051 should be able to navigate to a page controlled by service worker', async ({ page, server, isElectron }) => {it.skip(isElectron);await page.goto(server.PREFIX + '/serviceworkers/fetch/sw.html');await page.evaluate(() => window['activationPromise']);await page.goto(server.PREFIX + '/serviceworkers/fetch/sw.html');});-it('should send referer', async ({ page, server }) => {+it('NA-052 should send referer', async ({ page, server }) => {const [request1, request2] = await Promise.all([server.waitForRequest('/grid.html'),server.waitForRequest('/digits/1.png'),@@ -713,7 +713,7 @@ it('should send referer', async ({ page, server }) => {expect(page.url()).toBe(server.PREFIX + '/grid.html');});-it('should send referer of cross-origin URL', async ({ page, server }) => {+it('NA-053 should send referer of cross-origin URL', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27765' });const [request1, request2] = await Promise.all([server.waitForRequest('/grid.html'),@@ -728,7 +728,7 @@ it('should send referer of cross-origin URL', async ({ page, server }) => {expect(page.url()).toBe(server.PREFIX + '/grid.html');});-it('should reject referer option when setExtraHTTPHeaders provides referer', async ({ page, server }) => {+it('NA-054 should reject referer option when setExtraHTTPHeaders provides referer', async ({ page, server }) => {await page.setExtraHTTPHeaders({ 'referer': 'http://microsoft.com/' });let error;await page.goto(server.PREFIX + '/grid.html', {@@ -738,7 +738,7 @@ it('should reject referer option when setExtraHTTPHeaders provides referer', asyexpect(error.message).toContain(server.PREFIX + '/grid.html');});-it('should override referrer-policy', async ({ page, server }) => {+it('NA-055 should override referrer-policy', async ({ page, server }) => {server.setRoute('/grid.html', (req, res) => {res.setHeader('Referrer-Policy', 'no-referrer');server.serveFile(req, res);@@ -756,7 +756,7 @@ it('should override referrer-policy', async ({ page, server }) => {expect(page.url()).toBe(server.PREFIX + '/grid.html');});-it('should fail when canceled by another navigation', async ({ page, server }) => {+it('NA-056 should fail when canceled by another navigation', async ({ page, server }) => {server.setRoute('/one-style.html', (req, res) => {});const failed = page.goto(server.PREFIX + '/one-style.html').catch(e => e);await server.waitForRequest('/one-style.html');@@ -765,14 +765,14 @@ it('should fail when canceled by another navigation', async ({ page, server }) =expect(error.message).toBeTruthy();});-it('should work with lazy loading iframes', async ({ page, server, isAndroid }) => {+it('NA-057 should work with lazy loading iframes', async ({ page, server, isAndroid }) => {it.fixme(isAndroid);await page.goto(server.PREFIX + '/frames/lazy-frame.html');expect(page.frames().length).toBe(2);});-it('should report raw buffer for main resource', async ({ page, server, browserName, platform, channel }) => {+it('NA-058 should report raw buffer for main resource', async ({ page, server, browserName, platform, channel }) => {it.fail(browserName === 'chromium', 'Chromium sends main resource as text');it.fail(browserName === 'webkit' && platform === 'win32' && channel !== 'webkit-wsl', 'Same here');@@ -785,12 +785,12 @@ it('should report raw buffer for main resource', async ({ page, server, browserNexpect(body.toString()).toBe('Ü (lowercase ü)');});-it('should not throw unhandled rejections on invalid url', async ({ page, server }) => {+it('NA-059 should not throw unhandled rejections on invalid url', async ({ page, server }) => {const e = await page.goto('https://www.youtube Panel Title.com/').catch(e => e);expect(e.toString()).toContain('Panel Title');});-it('should not crash when RTCPeerConnection is used', async ({ page, server, browserName, platform }) => {+it('NA-060 should not crash when RTCPeerConnection is used', async ({ page, server, browserName, platform }) => {server.setRoute('/rtc.html', (_, res) => {res.end(`<!DOCTYPE html>@@ -814,7 +814,7 @@ it('should not crash when RTCPeerConnection is used', async ({ page, server, bro});});-it('should properly wait for load', async ({ page, server, browserName }) => {+it('NA-061 should properly wait for load', async ({ page, server, browserName }) => {server.setRoute('/slow.js', async (req, res) => {await new Promise(x => setTimeout(x, 100));res.writeHead(200, { 'Content-Type': 'application/javascript' });@@ -831,7 +831,7 @@ it('should properly wait for load', async ({ page, server, browserName }) => {]);});-it('should not resolve goto upon window.stop()', async ({ browserName, page, server, isBidi }) => {+it('NA-062 should not resolve goto upon window.stop()', async ({ browserName, page, server, isBidi }) => {it.fixme(browserName === 'firefox' && !isBidi, 'load/domcontentloaded events are flaky');it.skip(process.env.PW_CLOCK === 'frozen');@@ -850,7 +850,7 @@ it('should not resolve goto upon window.stop()', async ({ browserName, page, serexpect(done).toBe(false);});-it('should return from goto if new navigation is started', async ({ page, server, browserName, isAndroid }) => {+it('NA-063 should return from goto if new navigation is started', async ({ page, server, browserName, isAndroid }) => {it.fixme(isAndroid);server.setRoute('/slow.js', async (req, res) => void 0);let finished = false;@@ -864,7 +864,7 @@ it('should return from goto if new navigation is started', async ({ page, serverexpect((await navigation).status()).toBe(200);});-it('should return when navigation is committed if commit is specified', async ({ page, server }) => {+it('NA-064 should return when navigation is committed if commit is specified', async ({ page, server }) => {server.setRoute('/script.js', (req, res) => {});server.setRoute('/empty.html', (req, res) => {res.setHeader('content-type', 'text/html');@@ -875,7 +875,7 @@ it('should return when navigation is committed if commit is specified', async ({expect(await page.title()).toBe('Hello');});-it('should wait for load when iframe attaches and detaches', async ({ page, server }) => {+it('NA-065 should wait for load when iframe attaches and detaches', async ({ page, server }) => {it.skip(process.env.PW_CLOCK === 'frozen');server.setRoute('/empty.html', (req, res) => {res.writeHead(200, { 'content-type': 'text/html' });@@ -908,7 +908,7 @@ it('should wait for load when iframe attaches and detaches', async ({ page, servexpect(await page.$('iframe')).toBe(null);});-it('should return url with basic auth info', async ({ page, server, loopback }) => {+it('NA-066 should return url with basic auth info', async ({ page, server, loopback }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23138' });const url = `http://admin:admin@${loopback || 'localhost'}:${server.PORT}/empty.html`;await page.goto(url);diff --git a/tests/page/page-history.spec.ts b/tests/page/page-history.spec.tsindex 8d76bb89a6..274f88dc27 100644--- a/tests/page/page-history.spec.ts+++ b/tests/page/page-history.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import url from 'url';-it('page.goBack should work @smoke', async ({ page, server }) => {+it('NA-071 page.goBack should work @smoke', async ({ page, server }) => {expect(await page.goBack()).toBe(null);await page.goto(server.EMPTY_PAGE);@@ -36,7 +36,7 @@ it('page.goBack should work @smoke', async ({ page, server }) => {expect(response).toBe(null);});-it('page.goBack should work with HistoryAPI', async ({ page, server }) => {+it('NA-072 page.goBack should work with HistoryAPI', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.evaluate(() => {history.pushState({}, '', '/first.html');@@ -52,7 +52,7 @@ it('page.goBack should work with HistoryAPI', async ({ page, server }) => {expect(page.url()).toBe(server.PREFIX + '/first.html');});-it('page.goBack should work for file urls', async ({ page, server, asset, channel, isAndroid, mode }) => {+it('NA-073 page.goBack should work for file urls', async ({ page, server, asset, channel, isAndroid, mode }) => {it.skip(isAndroid, 'No files on Android');it.skip(channel === 'webkit-wsl');@@ -91,7 +91,7 @@ it('page.goBack should work for file urls', async ({ page, server, asset, channeawait page.screenshot();});-it('goBack/goForward should work with bfcache-able pages', async ({ page, server }) => {+it('NA-074 goBack/goForward should work with bfcache-able pages', async ({ page, server }) => {await page.goto(server.PREFIX + '/cached/bfcached.html');await page.setContent(`<a href=${JSON.stringify(server.PREFIX + '/cached/bfcached.html?foo')}>click me</a>`);await page.click('a');@@ -105,21 +105,21 @@ it('goBack/goForward should work with bfcache-able pages', async ({ page, serverexpect(response.url()).toBe(server.PREFIX + '/cached/bfcached.html?foo');});-it('page.reload should work', async ({ page, server }) => {+it('NA-075 page.reload should work', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.evaluate(() => window['_foo'] = 10);await page.reload();expect(await page.evaluate(() => window['_foo'])).toBe(undefined);});-it('page.reload should work with data url', async ({ page, server }) => {+it('NA-076 page.reload should work with data url', async ({ page, server }) => {await page.goto('data:text/html,hello');expect(await page.content()).toContain('hello');expect(await page.reload()).toBe(null);expect(await page.content()).toContain('hello');});-it('page.reload during renderer-initiated navigation', async ({ page, server }) => {+it('NA-077 page.reload during renderer-initiated navigation', async ({ page, server }) => {await page.goto(server.PREFIX + '/one-style.html');await page.setContent(`<form method='POST' action='/post'>Form is here<input type='submit'></form>`);server.setRoute('/post', (req, res) => {});@@ -139,7 +139,7 @@ it('page.reload during renderer-initiated navigation', async ({ page, server })await page.waitForSelector('text=hello');});-it('page.reload should not resolve with same-document navigation', async ({ page, server }) => {+it('NA-078 page.reload should not resolve with same-document navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);// 1. Make sure execution contexts are ready for fast evaluate.await page.evaluate('1');@@ -171,7 +171,7 @@ it('page.reload should not resolve with same-document navigation', async ({ pageexpect(await gotResponse.text()).toBe('hello');});-it('page.reload should work with same origin redirect', async ({ page, server }) => {+it('NA-079 page.reload should work with same origin redirect', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16147' });await page.goto(server.EMPTY_PAGE);server.setRedirect('/empty.html', server.PREFIX + '/title.html');@@ -179,7 +179,7 @@ it('page.reload should work with same origin redirect', async ({ page, server })await expect(page).toHaveURL(server.PREFIX + '/title.html');});-it('page.reload should work with cross-origin redirect', async ({ page, server, browserName }) => {+it('NA-080 page.reload should work with cross-origin redirect', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16147' });await page.goto(server.EMPTY_PAGE);server.setRedirect('/empty.html', server.CROSS_PROCESS_PREFIX + '/title.html');@@ -187,21 +187,21 @@ it('page.reload should work with cross-origin redirect', async ({ page, server,await expect(page).toHaveURL(server.CROSS_PROCESS_PREFIX + '/title.html');});-it('page.reload should work on a page with a hash', async ({ page, server }) => {+it('NA-081 page.reload should work on a page with a hash', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21145' });await page.goto(server.EMPTY_PAGE + '#hash');await page.reload();await expect(page).toHaveURL(server.EMPTY_PAGE + '#hash');});-it('page.reload should work on a page with a hash at the end', async ({ page, server }) => {+it('NA-082 page.reload should work on a page with a hash at the end', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21430' });await page.goto(server.EMPTY_PAGE + '#');await page.reload();await expect(page).toHaveURL(server.EMPTY_PAGE + '#');});-it('page.goBack during renderer-initiated navigation', async ({ page, server }) => {+it('NA-083 page.goBack during renderer-initiated navigation', async ({ page, server }) => {await page.goto(server.PREFIX + '/one-style.html');await page.goto(server.EMPTY_PAGE);await page.setContent(`<form method='POST' action='/post'>Form is here<input type='submit'></form>`);@@ -222,7 +222,7 @@ it('page.goBack during renderer-initiated navigation', async ({ page, server })await page.waitForSelector('text=hello');});-it('page.goForward during renderer-initiated navigation', async ({ page, server }) => {+it('NA-084 page.goForward during renderer-initiated navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.goto(server.PREFIX + '/one-style.html');await page.goBack();@@ -245,7 +245,7 @@ it('page.goForward during renderer-initiated navigation', async ({ page, serverawait page.waitForSelector('text=hello');});-it('regression test for issue 20791', async ({ page, server }) => {+it('NA-085 regression test for issue 20791', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/20791' });it.skip(process.env.PW_CLOCK === 'frozen');server.setRoute('/iframe.html', (req, res) => {@@ -277,7 +277,7 @@ it('regression test for issue 20791', async ({ page, server }) => {await expect.poll(() => messages).toEqual(['foo', 'foo']);});-it('should reload proper page', async ({ page, server }) => {+it('NA-086 should reload proper page', async ({ page, server }) => {let mainRequest = 0;let popupRequest = 0;server.setRoute('/main.html', (req, res) => {diff --git a/tests/page/page-keyboard.spec.ts b/tests/page/page-keyboard.spec.tsindex d79ba409d3..49690f578c 100644--- a/tests/page/page-keyboard.spec.ts+++ b/tests/page/page-keyboard.spec.ts@@ -20,7 +20,7 @@ import { attachFrame } from '../config/utils';it.skip(({ isAndroid }) => isAndroid);-it('should type into a textarea @smoke', async ({ page }) => {+it('KB-001 should type into a textarea @smoke', async ({ page }) => {await page.evaluate(() => {const textarea = document.createElement('textarea');document.body.appendChild(textarea);@@ -31,7 +31,7 @@ it('should type into a textarea @smoke', async ({ page }) => {expect(await page.evaluate(() => document.querySelector('textarea').value)).toBe(text);});-it('should move with the arrow keys', async ({ page, server }) => {+it('KB-002 should move with the arrow keys', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.type('textarea', 'Hello World!');expect(await page.evaluate(() => document.querySelector('textarea').value)).toBe('Hello World!');@@ -47,7 +47,7 @@ it('should move with the arrow keys', async ({ page, server }) => {expect(await page.evaluate(() => document.querySelector('textarea').value)).toBe('Hello World!');});-it('should send a character with ElementHandle.press', async ({ page, server }) => {+it('KB-003 should send a character with ElementHandle.press', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');const textarea = await page.$('textarea');await textarea.press('a');@@ -59,7 +59,7 @@ it('should send a character with ElementHandle.press', async ({ page, server })expect(await page.evaluate(() => document.querySelector('textarea').value)).toBe('a');});-it('should send a character with insertText', async ({ page, server }) => {+it('KB-004 should send a character with insertText', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.focus('textarea');await page.keyboard.insertText('嗨');@@ -69,7 +69,7 @@ it('should send a character with insertText', async ({ page, server }) => {expect(await page.evaluate(() => document.querySelector('textarea').value)).toBe('嗨a');});-it('should not type text with Alt modifier', {+it('KB-005 should not type text with Alt modifier', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42928' },}, async ({ page }) => {await page.setContent(`<input><textarea></textarea><div contenteditable></div>`);@@ -87,7 +87,7 @@ it('should not type text with Alt modifier', {await expect(page.locator('div')).toHaveText('c');});-it('insertText should only emit input event', async ({ page, server }) => {+it('KB-006 insertText should only emit input event', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.focus('textarea');page.on('console', m => console.log(m.text()));@@ -103,7 +103,7 @@ it('insertText should only emit input event', async ({ page, server }) => {expect(await events.jsonValue()).toEqual(['input']);});-it('should emit keydown, keypress, textInput and input when typing a character', async ({ page }) => {+it('KB-007 should emit keydown, keypress, textInput and input when typing a character', async ({ page }) => {await page.setContent(`<input>`);const events = await page.evaluateHandle(() => {const events: string[] = [];@@ -116,7 +116,7 @@ it('should emit keydown, keypress, textInput and input when typing a character',expect(await events.jsonValue()).toEqual(['keydown', 'keypress', 'textInput', 'input', 'keyup']);});-it('should dispatch key events in separate tasks', async ({ page, browserName, isBidi }) => {+it('KB-008 should dispatch key events in separate tasks', async ({ page, browserName, isBidi }) => {it.skip(browserName === 'firefox' && !isBidi, 'Firefox/Juggler dispatches keydown and keypress in the same task');await page.setContent(`<input>`);const log = await page.evaluateHandle(() => {@@ -133,7 +133,7 @@ it('should dispatch key events in separate tasks', async ({ page, browserName, iexpect(await log.jsonValue()).toEqual(['keydown', 'microtask-keydown', 'keypress', 'microtask-keypress']);});-it('should report shiftKey', async ({ page, server }) => {+it('KB-009 should report shiftKey', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/keyboard.html');const keyboard = page.keyboard;const codeForKey = { 'Shift': 16, 'Alt': 18, 'Control': 17 };@@ -154,7 +154,7 @@ it('should report shiftKey', async ({ page, server }) => {}});-it('should report multiple modifiers', async ({ page, server }) => {+it('KB-010 should report multiple modifiers', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/keyboard.html');const keyboard = page.keyboard;await keyboard.down('Control');@@ -171,7 +171,7 @@ it('should report multiple modifiers', async ({ page, server }) => {expect(await page.evaluate('getResult()')).toBe('Keyup: Alt AltLeft LEFT []');});-it('should send proper codes while typing', async ({ page, server }) => {+it('KB-011 should send proper codes while typing', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/keyboard.html');await page.keyboard.type('!');expect(await page.evaluate('getResult()')).toBe(@@ -185,7 +185,7 @@ it('should send proper codes while typing', async ({ page, server }) => {'Keyup: ^ Digit6 STANDARD []'].join('\n'));});-it('should send proper codes while typing with shift', async ({ page, server }) => {+it('KB-012 should send proper codes while typing with shift', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/keyboard.html');const keyboard = page.keyboard;await keyboard.down('Shift');@@ -198,7 +198,7 @@ it('should send proper codes while typing with shift', async ({ page, server })await keyboard.up('Shift');});-it('should not type canceled events', async ({ page, server }) => {+it('KB-013 should not type canceled events', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.focus('textarea');await page.evaluate(() => {@@ -215,7 +215,7 @@ it('should not type canceled events', async ({ page, server }) => {expect(await page.$eval('textarea', textarea => textarea.value)).toBe('He Wrd!');});-it('should press plus', async ({ page, server }) => {+it('KB-014 should press plus', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/keyboard.html');await page.keyboard.press('+');expect(await page.evaluate('getResult()')).toBe(@@ -224,7 +224,7 @@ it('should press plus', async ({ page, server }) => {'Keyup: + Equal STANDARD []'].join('\n'));});-it('should press shift plus', async ({ page, server }) => {+it('KB-015 should press shift plus', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/keyboard.html');await page.keyboard.press('Shift++');expect(await page.evaluate('getResult()')).toBe(@@ -235,7 +235,7 @@ it('should press shift plus', async ({ page, server }) => {'Keyup: Shift ShiftLeft LEFT []'].join('\n'));});-it('should support plus-separated modifiers', async ({ page, server }) => {+it('KB-016 should support plus-separated modifiers', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/keyboard.html');await page.keyboard.press('Shift+~');expect(await page.evaluate('getResult()')).toBe(@@ -246,7 +246,7 @@ it('should support plus-separated modifiers', async ({ page, server }) => {'Keyup: Shift ShiftLeft LEFT []'].join('\n'));});-it('should support multiple plus-separated modifiers', async ({ page, server }) => {+it('KB-017 should support multiple plus-separated modifiers', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/keyboard.html');await page.keyboard.press('Control+Shift+~');expect(await page.evaluate('getResult()')).toBe(@@ -258,7 +258,7 @@ it('should support multiple plus-separated modifiers', async ({ page, server })'Keyup: Control ControlLeft LEFT []'].join('\n'));});-it('should shift raw codes', async ({ page, server }) => {+it('KB-018 should shift raw codes', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/keyboard.html');await page.keyboard.press('Shift+Digit3');expect(await page.evaluate('getResult()')).toBe(@@ -269,7 +269,7 @@ it('should shift raw codes', async ({ page, server }) => {'Keyup: Shift ShiftLeft LEFT []'].join('\n'));});-it('should specify repeat property', async ({ page, server }) => {+it('KB-019 should specify repeat property', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.focus('textarea');const lastEvent = await captureLastKeydown(page);@@ -288,7 +288,7 @@ it('should specify repeat property', async ({ page, server }) => {expect(await lastEvent.evaluate(e => e.repeat)).toBe(false);});-it('should type all kinds of characters', async ({ page, server }) => {+it('KB-020 should type all kinds of characters', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.focus('textarea');const text = 'This text goes onto two lines.\nThis character is 嗨.';@@ -296,7 +296,7 @@ it('should type all kinds of characters', async ({ page, server }) => {expect(await page.$eval('textarea', t => t.value)).toBe(text);});-it('should specify location', async ({ page, server }) => {+it('KB-021 should specify location', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');const lastEvent = await captureLastKeydown(page);const textarea = await page.$('textarea');@@ -322,7 +322,7 @@ it('should specify location', async ({ page, server }) => {expect.soft(await lastEvent.evaluate(e => e.code)).toBe('NumpadSubtract');});-it('should specify numpad location on keyup', async ({ page, server }) => {+it('KB-022 should specify numpad location on keyup', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/keyboard.html');await page.keyboard.press('NumpadSubtract');expect(await page.evaluate('getResult()')).toBe(@@ -331,7 +331,7 @@ it('should specify numpad location on keyup', async ({ page, server }) => {'Keyup: - NumpadSubtract NUMPAD []'].join('\n'));});-it('should press NumpadDecimal as Delete', async ({ page }) => {+it('KB-023 should press NumpadDecimal as Delete', async ({ page }) => {await page.setContent('<textarea></textarea>');const lastEvent = await captureLastKeydown(page);const textarea = page.locator('textarea');@@ -343,7 +343,7 @@ it('should press NumpadDecimal as Delete', async ({ page }) => {await expect(textarea).toHaveValue('');});-it('should type numpad digits with Shift', async ({ page }) => {+it('KB-024 should type numpad digits with Shift', async ({ page }) => {await page.setContent('<textarea></textarea>');const textarea = page.locator('textarea');await textarea.press('Shift+Numpad1');@@ -352,7 +352,7 @@ it('should type numpad digits with Shift', async ({ page }) => {await expect(textarea).toHaveValue('1.9');});-it('should press Enter', async ({ page, server }) => {+it('KB-025 should press Enter', async ({ page, server }) => {await page.setContent('<textarea></textarea>');await page.focus('textarea');const lastEventHandle = await captureLastKeydown(page);@@ -372,7 +372,7 @@ it('should press Enter', async ({ page, server }) => {}});-it('should press audio and media control keys', async ({ page, browserName }) => {+it('KB-026 should press audio and media control keys', async ({ page, browserName }) => {await page.setContent('<input autofocus>');await page.focus('input');const lastEvent = await captureLastKeydown(page);@@ -393,7 +393,7 @@ it('should press audio and media control keys', async ({ page, browserName }) =>}});-it('should throw on unknown keys', async ({ page, server }) => {+it('KB-027 should throw on unknown keys', async ({ page, server }) => {let error = await page.keyboard.press('NotARealKey').catch(e => e);expect(error.message).toContain('Unknown key: "NotARealKey"');@@ -404,13 +404,13 @@ it('should throw on unknown keys', async ({ page, server }) => {expect(error && error.message).toContain('Unknown key: "😊"');});-it('should type emoji', async ({ page, server }) => {+it('KB-028 should type emoji', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.type('textarea', '👹 Tokyo street Japan 🇯🇵');expect(await page.$eval('textarea', textarea => textarea.value)).toBe('👹 Tokyo street Japan 🇯🇵');});-it('should type emoji into an iframe', async ({ page, server }) => {+it('KB-029 should type emoji into an iframe', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'emoji-test', server.PREFIX + '/input/textarea.html');const frame = page.frames()[1];@@ -419,7 +419,7 @@ it('should type emoji into an iframe', async ({ page, server }) => {expect(await frame.$eval('textarea', textarea => textarea.value)).toBe('👹 Tokyo street Japan 🇯🇵');});-it('should handle selectAll', async ({ page, server, isMac }) => {+it('KB-030 should handle selectAll', async ({ page, server, isMac }) => {await page.goto(server.PREFIX + '/input/textarea.html');const textarea = await page.$('textarea');await textarea.type('some text');@@ -430,7 +430,7 @@ it('should handle selectAll', async ({ page, server, isMac }) => {expect(await page.$eval('textarea', textarea => textarea.value)).toBe('');});-it('pressing Meta should not result in any text insertion on any platform', async ({ page, server, isMac }) => {+it('KB-031 pressing Meta should not result in any text insertion on any platform', async ({ page, server, isMac }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28495' });await page.setContent('<input type="text" value="hello world">');const input = page.locator('input');@@ -440,7 +440,7 @@ it('pressing Meta should not result in any text insertion on any platform', asynawait expect(input).toHaveValue('hello world');});-it('should be able to prevent selectAll', async ({ page, server, isMac }) => {+it('KB-032 should be able to prevent selectAll', async ({ page, server, isMac }) => {await page.goto(server.PREFIX + '/input/textarea.html');const textarea = await page.$('textarea');await textarea.type('some text');@@ -457,7 +457,7 @@ it('should be able to prevent selectAll', async ({ page, server, isMac }) => {expect(await page.$eval('textarea', textarea => textarea.value)).toBe('some tex');});-it('should support MacOS shortcuts', async ({ page, server, platform, browserName }) => {+it('KB-033 should support MacOS shortcuts', async ({ page, server, platform, browserName }) => {it.skip(platform !== 'darwin');// @see https://github.com/microsoft/playwright/issues/5721it.fixme(browserName === 'firefox' && platform === 'darwin');@@ -471,7 +471,7 @@ it('should support MacOS shortcuts', async ({ page, server, platform, browserNamexpect(await page.$eval('textarea', textarea => textarea.value)).toBe('some ');});-it('should press the meta key', async ({ page }) => {+it('KB-034 should press the meta key', async ({ page }) => {const lastEvent = await captureLastKeydown(page);await page.keyboard.press('Meta');const { key, code, metaKey } = await lastEvent.jsonValue();@@ -480,14 +480,14 @@ it('should press the meta key', async ({ page }) => {expect(metaKey).toBe(true);});-it('should work with keyboard events with empty.html', async ({ page, server }) => {+it('KB-035 should work with keyboard events with empty.html', async ({ page, server }) => {await page.goto(server.PREFIX + '/empty.html');const lastEvent = await captureLastKeydown(page);await page.keyboard.press('a');expect(await lastEvent.evaluate(l => l.key)).toBe('a');});-it('should work after a cross origin navigation', async ({ page, server }) => {+it('KB-036 should work after a cross origin navigation', async ({ page, server }) => {await page.goto(server.PREFIX + '/empty.html');await page.goto(server.CROSS_PROCESS_PREFIX + '/empty.html');const lastEvent = await captureLastKeydown(page);@@ -495,7 +495,7 @@ it('should work after a cross origin navigation', async ({ page, server }) => {expect(await lastEvent.evaluate(l => l.key)).toBe('a');});-it('should expose keyIdentifier in webkit', async ({ page, browserName }) => {+it('KB-037 should expose keyIdentifier in webkit', async ({ page, browserName }) => {it.skip(browserName !== 'webkit', 'event.keyIdentifier has been removed from all browsers except WebKit');const lastEvent = await captureLastKeydown(page);@@ -517,7 +517,7 @@ it('should expose keyIdentifier in webkit', async ({ page, browserName }) => {}});-it('should scroll with PageDown', async ({ page, server }) => {+it('KB-038 should scroll with PageDown', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/scrollable.html');// A click is required for WebKit to send the event into the body.await page.click('body');@@ -526,7 +526,7 @@ it('should scroll with PageDown', async ({ page, server }) => {await page.waitForFunction(() => scrollY > 0);});-it('should move around the selection in a contenteditable', async ({ page, isMac }) => {+it('KB-039 should move around the selection in a contenteditable', async ({ page, isMac }) => {await page.setContent(`<div contenteditable></div>`);await page.focus('div');const modifier = isMac ? 'Alt' : 'Control';@@ -539,7 +539,7 @@ it('should move around the selection in a contenteditable', async ({ page, isMacexpect(await page.evaluate(() => window.getSelection().toString())).toBe('World');});-it('should move to the start of the document', async ({ page, isMac }) => {+it('KB-040 should move to the start of the document', async ({ page, isMac }) => {it.skip(!isMac);await page.setContent(`<div contenteditable></div>`);await page.focus('div');@@ -548,7 +548,7 @@ it('should move to the start of the document', async ({ page, isMac }) => {expect(await page.evaluate(() => window.getSelection().toString())).toBe('1\n2\n3\n');});-it('should dispatch a click event on a button when Space gets pressed', async ({ page }) => {+it('KB-041 should dispatch a click event on a button when Space gets pressed', async ({ page }) => {await page.setContent(`<button type="button">a11y</button>`);const actual = await page.evaluateHandle(() => {const actual = { clicked: false };@@ -560,7 +560,7 @@ it('should dispatch a click event on a button when Space gets pressed', async ({expect((await actual.jsonValue()).clicked).toBe(true);});-it('should dispatch a click event on a button when Enter gets pressed', async ({ page }) => {+it('KB-042 should dispatch a click event on a button when Enter gets pressed', async ({ page }) => {await page.setContent(`<button type="button">a11y</button>`);const actual = await page.evaluateHandle(() => {const actual = { clicked: false };@@ -572,7 +572,7 @@ it('should dispatch a click event on a button when Enter gets pressed', async ({expect((await actual.jsonValue()).clicked).toBe(true);});-it('should support simple copy-pasting', async ({ page }) => {+it('KB-043 should support simple copy-pasting', async ({ page }) => {await page.setContent(`<div contenteditable>123</div>`);await page.focus('div');await page.keyboard.press(`ControlOrMeta+KeyA`);@@ -582,7 +582,7 @@ it('should support simple copy-pasting', async ({ page }) => {expect(await page.evaluate(() => document.querySelector('div').textContent)).toBe('123123');});-it('should support simple cut-pasting', async ({ page }) => {+it('KB-044 should support simple cut-pasting', async ({ page }) => {await page.setContent(`<div contenteditable>123</div>`);await page.focus('div');await page.keyboard.press(`ControlOrMeta+KeyA`);@@ -592,7 +592,7 @@ it('should support simple cut-pasting', async ({ page }) => {expect(await page.evaluate(() => document.querySelector('div').textContent)).toBe('123123');});-it('should support undo-redo', async ({ page, browserName, isLinux, channel }) => {+it('KB-045 should support undo-redo', async ({ page, browserName, isLinux, channel }) => {it.fixme(browserName === 'webkit' && isLinux || channel === 'webkit-wsl', 'https://github.com/microsoft/playwright/issues/12000');await page.setContent(`<div contenteditable></div>`);const div = page.locator('div');@@ -605,7 +605,7 @@ it('should support undo-redo', async ({ page, browserName, isLinux, channel }) =await expect(div).toHaveText('123');});-it('should type repeatedly in contenteditable in shadow dom', async ({ page }) => {+it('KB-046 should type repeatedly in contenteditable in shadow dom', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/12941' });await page.setContent(`@@ -647,7 +647,7 @@ it('should type repeatedly in contenteditable in shadow dom', async ({ page }) =expect(await sectionEditor.textContent()).toBe('This is the second box.');});-it('should type repeatedly in contenteditable in shadow dom with nested elements', async ({ page }) => {+it('KB-047 should type repeatedly in contenteditable in shadow dom with nested elements', async ({ page }) => {await page.setContent(`<html><body>@@ -687,7 +687,7 @@ it('should type repeatedly in contenteditable in shadow dom with nested elementsexpect(await sectionEditor.textContent()).toBe('This is the second box: world');});-it('should type repeatedly in input in shadow dom', async ({ page }) => {+it('KB-048 should type repeatedly in input in shadow dom', async ({ page }) => {await page.setContent(`<html><body>@@ -727,7 +727,7 @@ it('should type repeatedly in input in shadow dom', async ({ page }) => {expect(await sectionEditor.inputValue()).toBe('This is the second box.');});-it('type to non-focusable element should maintain old focus', async ({ page }) => {+it('KB-049 type to non-focusable element should maintain old focus', async ({ page }) => {await page.setContent(`<div id="focusable" tabindex="0">focusable div</div><div id="non-focusable-and-non-editable">non-editable, non-focusable</div>@@ -762,7 +762,7 @@ async function captureLastKeydown(page) {return lastEvent;}-it('should dispatch insertText after context menu was opened', async ({ server, page, browserName, isWindows }) => {+it('KB-050 should dispatch insertText after context menu was opened', async ({ server, page, browserName, isWindows }) => {it.skip(browserName === 'chromium' && isWindows, 'context menu support is best-effort for Linux and MacOS');await page.goto(server.PREFIX + '/input/textarea.html');await page.evaluate(() => {@@ -781,7 +781,7 @@ it('should dispatch insertText after context menu was opened', async ({ server,await expect.poll(() => page.locator('textarea').inputValue()).toBe('嗨');});-it('should type after context menu was opened', async ({ server, page, browserName, isWindows }) => {+it('KB-051 should type after context menu was opened', async ({ server, page, browserName, isWindows }) => {it.skip(browserName === 'chromium' && isWindows, 'context menu support is best-effort for Linux and MacOS');await page.evaluate(() => {window['keys'] = [];@@ -801,7 +801,7 @@ it('should type after context menu was opened', async ({ server, page, browserNaawait expect.poll(() => page.evaluate('window.keys')).toEqual(['ArrowDown']);});-it('should have correct Keydown/Keyup order when pressing Escape key', async ({ page, server, browserName }) => {+it('KB-052 should have correct Keydown/Keyup order when pressing Escape key', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27709' });await page.goto(server.PREFIX + '/input/keyboard.html');@@ -812,7 +812,7 @@ Keyup: Escape Escape STANDARD []`.trim());});-it('should close dialog on Escape key press in contenteditable', {+it('KB-053 should close dialog on Escape key press in contenteditable', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36727' }}, async ({ page, isFrozenWebkit }) => {it.skip(isFrozenWebkit);diff --git a/tests/page/page-leaks.spec.ts b/tests/page/page-leaks.spec.tsindex d38488932f..2178669b34 100644--- a/tests/page/page-leaks.spec.ts+++ b/tests/page/page-leaks.spec.ts@@ -82,7 +82,7 @@ test.afterEach(() => {(globalThis as any).leakedJSHandles = null;});-test('click should not leak', async ({ page, toImpl }) => {+test('LE-001 click should not leak', async ({ page, toImpl }) => {await page.setContent(`<button>static button 1</button><button>static button 2</button>@@ -107,7 +107,7 @@ test('click should not leak', async ({ page, toImpl }) => {await checkWeakRefs(toImpl(page), 2, 25);});-test('fill should not leak', async ({ page, mode, toImpl }) => {+test('LE-002 fill should not leak', async ({ page, mode, toImpl }) => {test.skip(mode !== 'default');await page.setContent(`@@ -133,7 +133,7 @@ test('fill should not leak', async ({ page, mode, toImpl }) => {await checkWeakRefs(toImpl(page), 2, 25);});-test('expect should not leak', async ({ page, mode, toImpl }) => {+test('LE-003 expect should not leak', async ({ page, mode, toImpl }) => {test.skip(mode !== 'default');await page.setContent(`@@ -161,7 +161,7 @@ test('expect should not leak', async ({ page, mode, toImpl }) => {await checkWeakRefs(toImpl(page), 2, 25);});-test('waitFor should not leak', async ({ page, mode, toImpl }) => {+test('LE-004 waitFor should not leak', async ({ page, mode, toImpl }) => {test.skip(mode !== 'default');await page.setContent(`diff --git a/tests/page/page-listeners.spec.ts b/tests/page/page-listeners.spec.tsindex 737a7b9432..5ad39769bc 100644--- a/tests/page/page-listeners.spec.ts+++ b/tests/page/page-listeners.spec.ts@@ -22,7 +22,7 @@ const { ManualPromise } = iso;// This test is mostly for type checking, the actual tests are in the library/events.-it('should not throw with ignoreErrors', async ({ page }) => {+it('EE-001 should not throw with ignoreErrors', async ({ page }) => {const reachedHandler = new ManualPromise();const releaseHandler = new ManualPromise();page.on('console', async () => {@@ -37,7 +37,7 @@ it('should not throw with ignoreErrors', async ({ page }) => {await page.waitForTimeout(1000);});-it('should wait', async ({ page }) => {+it('EE-002 should wait', async ({ page }) => {const reachedHandler = new ManualPromise();const releaseHandler = new ManualPromise();let value = 0;@@ -53,7 +53,7 @@ it('should wait', async ({ page }) => {expect(value).toBe(42);});-it('wait should throw', async ({ page }) => {+it('EE-003 wait should throw', async ({ page }) => {const reachedHandler = new ManualPromise();const releaseHandler = new ManualPromise();page.on('console', async () => {diff --git a/tests/page/page-localstorage.spec.ts b/tests/page/page-localstorage.spec.tsindex c02d2df50c..7565bab038 100644--- a/tests/page/page-localstorage.spec.ts+++ b/tests/page/page-localstorage.spec.ts@@ -18,17 +18,17 @@ import { test as it, expect } from './pageTest';it.skip(({ isElectron }) => !!isElectron, 'Electron shares a single context between tests');-it('localStorage.items returns empty array on fresh origin', async ({ page, server }) => {+it('ST-023 localStorage.items returns empty array on fresh origin', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(await page.localStorage.items()).toEqual([]);});-it('localStorage.getItem returns null for missing key', async ({ page, server }) => {+it('ST-024 localStorage.getItem returns null for missing key', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(await page.localStorage.getItem('absent')).toBeNull();});-it('localStorage.setItem persists and surfaces in items()/getItem()', async ({ page, server }) => {+it('ST-025 localStorage.setItem persists and surfaces in items()/getItem()', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.localStorage.setItem('alpha', '1');await page.localStorage.setItem('beta', '2');@@ -41,14 +41,14 @@ it('localStorage.setItem persists and surfaces in items()/getItem()', async ({ pexpect(await page.evaluate(() => localStorage.getItem('alpha'))).toBe('1');});-it('localStorage.setItem overwrites existing value', async ({ page, server }) => {+it('ST-026 localStorage.setItem overwrites existing value', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.localStorage.setItem('k', 'first');await page.localStorage.setItem('k', 'second');expect(await page.localStorage.getItem('k')).toBe('second');});-it('localStorage.removeItem removes a single item', async ({ page, server }) => {+it('ST-027 localStorage.removeItem removes a single item', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.localStorage.setItem('a', '1');await page.localStorage.setItem('b', '2');@@ -57,7 +57,7 @@ it('localStorage.removeItem removes a single item', async ({ page, server }) =>expect(await page.localStorage.items()).toEqual([{ name: 'b', value: '2' }]);});-it('localStorage.clear empties storage', async ({ page, server }) => {+it('ST-028 localStorage.clear empties storage', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.localStorage.setItem('a', '1');await page.localStorage.setItem('b', '2');@@ -66,7 +66,7 @@ it('localStorage.clear empties storage', async ({ page, server }) => {expect(await page.localStorage.items()).toEqual([]);});-it('sessionStorage round-trip', async ({ page, server }) => {+it('ST-029 sessionStorage round-trip', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(await page.sessionStorage.items()).toEqual([]);@@ -85,7 +85,7 @@ it('sessionStorage round-trip', async ({ page, server }) => {expect(await page.sessionStorage.items()).toEqual([]);});-it('localStorage and sessionStorage are independent', async ({ page, server }) => {+it('ST-030 localStorage and sessionStorage are independent', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.localStorage.setItem('shared', 'local');await page.sessionStorage.setItem('shared', 'session');@@ -98,7 +98,7 @@ it('localStorage and sessionStorage are independent', async ({ page, server }) =expect(await page.sessionStorage.getItem('shared')).toBe('session');});-it('storage methods are scoped to the current origin', async ({ page, server, isAndroid }) => {+it('ST-031 storage methods are scoped to the current origin', async ({ page, server, isAndroid }) => {it.skip(isAndroid, 'these are same origins on Android due to our test server limitation');await page.goto(server.PREFIX + '/empty.html');diff --git a/tests/page/page-mouse.spec.ts b/tests/page/page-mouse.spec.tsindex ccfba3840f..e612cf8c21 100644--- a/tests/page/page-mouse.spec.ts+++ b/tests/page/page-mouse.spec.ts@@ -27,7 +27,7 @@ function dimensions() {};}-it('should click the document @smoke', async ({ page, server }) => {+it('MO-001 should click the document @smoke', async ({ page, server }) => {await page.evaluate(() => {window['clickPromise'] = new Promise(resolve => {document.addEventListener('click', event => {@@ -52,7 +52,7 @@ it('should click the document @smoke', async ({ page, server }) => {expect(event.button).toBe(0);});-it('should dblclick the div', async ({ page, server }) => {+it('MO-002 should dblclick the div', async ({ page, server }) => {await page.setContent(`<div style='width: 100px; height: 100px;'>Click me</div>`);await page.evaluate(() => {window['dblclickPromise'] = new Promise(resolve => {@@ -78,7 +78,7 @@ it('should dblclick the div', async ({ page, server }) => {expect(event.button).toBe(0);});-it('down and up should generate click', async ({ page, server }) => {+it('MO-003 down and up should generate click', async ({ page, server }) => {await page.evaluate(() => {window['clickPromise'] = new Promise(resolve => {document.addEventListener('click', event => {@@ -105,7 +105,7 @@ it('down and up should generate click', async ({ page, server }) => {expect(event.button).toBe(0);});-it('should pointerdown the div with a custom button', async ({ page, server, browserName }) => {+it('MO-004 should pointerdown the div with a custom button', async ({ page, server, browserName }) => {await page.setContent(`<div style='width: 100px; height: 100px;'>Click me</div>`);await page.evaluate(() => {window['pointerdownPromise'] = new Promise(resolve => {@@ -137,7 +137,7 @@ it('should pointerdown the div with a custom button', async ({ page, server, broexpect(event.pointerId).toBe(browserName === 'firefox' ? 0 : 1);});-it('should report correct buttons property', async ({ page }) => {+it('MO-005 should report correct buttons property', async ({ page }) => {await page.evaluate(() => {(window as any).__EVENTS = [];const handler = event => {@@ -171,7 +171,7 @@ it('should report correct buttons property', async ({ page }) => {]);});-it('should report correct pointerType property', {+it('MO-006 should report correct pointerType property', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/38376' },}, async ({ page }) => {await page.mouse.move(50, 60);@@ -197,7 +197,7 @@ it('should report correct pointerType property', {]);});-it('should select the text with mouse', async ({ page, server }) => {+it('MO-007 should select the text with mouse', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/textarea.html');await page.focus('textarea');const text = 'This is the text that we are going to try to select. Let\'s see how it goes.';@@ -216,7 +216,7 @@ it('should select the text with mouse', async ({ page, server }) => {})).toBe(text);});-it('should trigger hover state', async ({ page, server, headless }) => {+it('MO-008 should trigger hover state', async ({ page, server, headless }) => {it.skip(!headless, 'headed messes up with hover');await page.goto(server.PREFIX + '/input/scrollable.html');@@ -228,7 +228,7 @@ it('should trigger hover state', async ({ page, server, headless }) => {expect(await page.evaluate(() => document.querySelector('button:hover').id)).toBe('button-91');});-it('should trigger hover state on disabled button', async ({ page, server, headless }) => {+it('MO-009 should trigger hover state on disabled button', async ({ page, server, headless }) => {it.skip(!headless, 'headed messes up with hover');await page.goto(server.PREFIX + '/input/scrollable.html');@@ -237,7 +237,7 @@ it('should trigger hover state on disabled button', async ({ page, server, headlexpect(await page.evaluate(() => document.querySelector('button:hover').id)).toBe('button-6');});-it('should trigger hover state with removed window.Node', async ({ page, server, headless }) => {+it('MO-010 should trigger hover state with removed window.Node', async ({ page, server, headless }) => {it.skip(!headless, 'headed messes up with hover');await page.goto(server.PREFIX + '/input/scrollable.html');@@ -246,7 +246,7 @@ it('should trigger hover state with removed window.Node', async ({ page, server,expect(await page.evaluate(() => document.querySelector('button:hover').id)).toBe('button-6');});-it('should set modifier keys on click', async ({ page, server, browserName, isMac }) => {+it('MO-011 should set modifier keys on click', async ({ page, server, browserName, isMac }) => {await page.goto(server.PREFIX + '/input/scrollable.html');await page.evaluate(() => document.querySelector('#button-3').addEventListener('mousedown', e => window['lastEvent'] = e, true));const modifiers = { 'Shift': 'shiftKey', 'Control': 'ctrlKey', 'Alt': 'altKey', 'Meta': 'metaKey' };@@ -267,7 +267,7 @@ it('should set modifier keys on click', async ({ page, server, browserName, isMa}});-it('should tween mouse movement', async ({ page, browserName, isAndroid, headless }) => {+it('MO-012 should tween mouse movement', async ({ page, browserName, isAndroid, headless }) => {it.skip(isAndroid, 'Bad rounding');it.skip(!headless, 'actual mouse interferes with the exact mousemove events');@@ -291,7 +291,7 @@ it('should tween mouse movement', async ({ page, browserName, isAndroid, headles]);});-it('should always round down', async ({ page }) => {+it('MO-013 should always round down', async ({ page }) => {await page.evaluate(() => {document.addEventListener('mousedown', event => {window['result'] = [event.clientX, event.clientY];@@ -301,7 +301,7 @@ it('should always round down', async ({ page }) => {expect(await page.evaluate('result')).toEqual([50, 50]);});-it('should not crash on mouse drag with any button', async ({ page }) => {+it('MO-014 should not crash on mouse drag with any button', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16609' });await page.evaluate(() => {// Do not show contextmenu on right click since it is poorly supported.@@ -314,7 +314,7 @@ it('should not crash on mouse drag with any button', async ({ page }) => {}});-it('should dispatch mouse move after context menu was opened', async ({ page, browserName, isWindows }) => {+it('MO-015 should dispatch mouse move after context menu was opened', async ({ page, browserName, isWindows }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/20823' });it.fixme(browserName === 'chromium' && isWindows, 'context menu support is best-effort for Linux and MacOS');await page.evaluate(() => {@@ -338,7 +338,7 @@ it('should dispatch mouse move after context menu was opened', async ({ page, br}});-it('should track hover across iframe boundaries', async ({ page, headless }) => {+it('MO-016 should track hover across iframe boundaries', async ({ page, headless }) => {it.skip(!headless, 'headed messes up with hover');await page.setContent(`diff --git a/tests/page/page-navigation.spec.ts b/tests/page/page-navigation.spec.tsindex 1aaf521742..f7923f0ea6 100644--- a/tests/page/page-navigation.spec.ts+++ b/tests/page/page-navigation.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should work with _blank target', async ({ page, server }) => {+it('NA-067 should work with _blank target', async ({ page, server }) => {server.setRoute('/empty.html', (req, res) => {res.end(`<a href="${server.EMPTY_PAGE}" target="_blank">Click me</a>`);});@@ -25,7 +25,7 @@ it('should work with _blank target', async ({ page, server }) => {await page.click('"Click me"');});-it('should work with cross-process _blank target', async ({ page, server }) => {+it('NA-068 should work with cross-process _blank target', async ({ page, server }) => {server.setRoute('/empty.html', (req, res) => {res.end(`<a href="${server.CROSS_PROCESS_PREFIX}/empty.html" target="_blank">Click me</a>`);});@@ -33,7 +33,7 @@ it('should work with cross-process _blank target', async ({ page, server }) => {await page.click('"Click me"');});-it('should work with _blank target in form', async ({ page, server }) => {+it('NA-069 should work with _blank target in form', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18392' });server.setRoute('/done.html?', (req, res) => {res.end(`Done`);@@ -60,7 +60,7 @@ it('should work with _blank target in form', async ({ page, server }) => {]);});-it('should not throw TargetClosedException on cross-origin redirect after click', async ({ page, server }) => {+it('NA-070 should not throw TargetClosedException on cross-origin redirect after click', async ({ page, server }) => {server.setRoute('/target.html', (req, res) => res.end('<title>final page</title>'));server.setRedirect('/redirect', server.CROSS_PROCESS_PREFIX + '/target.html');await page.goto(server.PREFIX + '/empty.html');diff --git a/tests/page/page-network-idle.spec.ts b/tests/page/page-network-idle.spec.tsindex d0a818dc49..25944c5942 100644--- a/tests/page/page-network-idle.spec.ts+++ b/tests/page/page-network-idle.spec.ts@@ -19,7 +19,7 @@ import { test as it, expect } from './pageTest';import type { Frame } from 'playwright-core';import type { TestServer } from '../config/testserver';-it('should navigate to empty page with networkidle', async ({ page, server }) => {+it('NE-070 should navigate to empty page with networkidle', async ({ page, server }) => {const response = await page.goto(server.EMPTY_PAGE, { waitUntil: 'networkidle' });expect(response.status()).toBe(200);});@@ -81,13 +81,13 @@ async function networkIdleTest(frame: Frame, server: TestServer, action: () => Pexpect(response.ok()).toBe(true);}-it('should wait for networkidle to succeed navigation', async ({ page, server }) => {+it('NE-071 should wait for networkidle to succeed navigation', async ({ page, server }) => {await networkIdleTest(page.mainFrame(), server, () => {return page.goto(server.PREFIX + '/networkidle.html', { waitUntil: 'networkidle' });});});-it('should wait for networkidle to succeed navigation with request from previous navigation', async ({ page, server }) => {+it('NE-072 should wait for networkidle to succeed navigation with request from previous navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);server.setRoute('/foo.js', () => {});await page.setContent(`<script>fetch('foo.js');</script>`);@@ -96,7 +96,7 @@ it('should wait for networkidle to succeed navigation with request from previous});});-it('should wait for networkidle in waitForNavigation', async ({ page, server }) => {+it('NE-073 should wait for networkidle in waitForNavigation', async ({ page, server }) => {await networkIdleTest(page.mainFrame(), server, () => {const promise = page.waitForNavigation({ waitUntil: 'networkidle' });void page.goto(server.PREFIX + '/networkidle.html');@@ -104,14 +104,14 @@ it('should wait for networkidle in waitForNavigation', async ({ page, server })});});-it('should wait for networkidle in setContent', async ({ page, server }) => {+it('NE-074 should wait for networkidle in setContent', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await networkIdleTest(page.mainFrame(), server, () => {return page.setContent(`<script src='networkidle.js'></script>`, { waitUntil: 'networkidle' });}, true);});-it('should wait for networkidle in setContent with request from previous navigation', async ({ page, server }) => {+it('NE-075 should wait for networkidle in setContent with request from previous navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);server.setRoute('/foo.js', () => {});await page.setContent(`<script>fetch('foo.js');</script>`);@@ -120,26 +120,26 @@ it('should wait for networkidle in setContent with request from previous navigat}, true);});-it('should wait for networkidle when navigating iframe', async ({ page, server }) => {+it('NE-076 should wait for networkidle when navigating iframe', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');const frame = page.mainFrame().childFrames()[0];await networkIdleTest(frame, server, () => frame.goto(server.PREFIX + '/networkidle.html', { waitUntil: 'networkidle' }));});-it('should wait for networkidle in setContent from the child frame', async ({ page, server }) => {+it('NE-077 should wait for networkidle in setContent from the child frame', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await networkIdleTest(page.mainFrame(), server, () => {return page.setContent(`<iframe src='networkidle.html'></iframe>`, { waitUntil: 'networkidle' });}, true);});-it('should wait for networkidle from the child frame', async ({ page, server }) => {+it('NE-078 should wait for networkidle from the child frame', async ({ page, server }) => {await networkIdleTest(page.mainFrame(), server, () => {return page.goto(server.PREFIX + '/networkidle-frame.html', { waitUntil: 'networkidle' });});});-it('should wait for networkidle from the popup', async ({ page, server }) => {+it('NE-079 should wait for networkidle from the popup', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<button id=box1 onclick="window.open('./popup/popup.html')">Button1</button>@@ -157,7 +157,7 @@ it('should wait for networkidle from the popup', async ({ page, server }) => {}});-it('should wait for networkidle when iframe attaches and detaches', async ({ page, server }) => {+it('NE-080 should wait for networkidle when iframe attaches and detaches', async ({ page, server }) => {server.setRoute('/empty.html', () => {});let done = false;const promise = page.setContent(`@@ -178,7 +178,7 @@ it('should wait for networkidle when iframe attaches and detaches', async ({ pagexpect(done).toBe(true);});-it('should work after repeated navigations in the same page', async ({ page, server }) => {+it('NE-081 should work after repeated navigations in the same page', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18283' });let requestCount = 0;@@ -208,7 +208,7 @@ it('should work after repeated navigations in the same page', async ({ page, serexpect(requestCount).toBe(2);});-it('should not wait for an open EventSource connection', async ({ page, server }) => {+it('NE-082 should not wait for an open EventSource connection', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37226' });server.setRoute('/sse', (req, res) => {@@ -228,7 +228,7 @@ it('should not wait for an open EventSource connection', async ({ page, server }expect(response.status()).toBe(200);});-it('should not wait for an open EventSource connection in setContent', async ({ page, server }) => {+it('NE-083 should not wait for an open EventSource connection in setContent', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37226' });server.setRoute('/sse', (req, res) => {diff --git a/tests/page/page-network-request.spec.ts b/tests/page/page-network-request.spec.tsindex 9f478474aa..1d5dacb1bd 100644--- a/tests/page/page-network-request.spec.ts+++ b/tests/page/page-network-request.spec.ts@@ -25,7 +25,7 @@ function adjustServerHeaders(headers: Object, browserName: string) {return headers;}-it('should work for main frame navigation request', async ({ page, server }) => {+it('NE-001 should work for main frame navigation request', async ({ page, server }) => {const requests = [];page.on('request', request => requests.push(request));await page.goto(server.EMPTY_PAGE);@@ -33,7 +33,7 @@ it('should work for main frame navigation request', async ({ page, server }) =>expect(requests[0].frame()).toBe(page.mainFrame());});-it('should work for subframe navigation request', async ({ page, server }) => {+it('NE-002 should work for subframe navigation request', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const requests = [];page.on('request', request => requests.push(request));@@ -42,7 +42,7 @@ it('should work for subframe navigation request', async ({ page, server }) => {expect(requests[0].frame()).toBe(page.frames()[1]);});-it('should work for fetch requests @smoke', async ({ page, server }) => {+it('NE-003 should work for fetch requests @smoke', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const requests = [];page.on('request', request => requests.push(request));@@ -51,7 +51,7 @@ it('should work for fetch requests @smoke', async ({ page, server }) => {expect(requests[0].frame()).toBe(page.mainFrame());});-it('should work for a redirect', async ({ page, server }) => {+it('NE-004 should work for a redirect', async ({ page, server }) => {server.setRedirect('/foo.html', '/empty.html');const requests = [];page.on('request', request => requests.push(request));@@ -63,7 +63,7 @@ it('should work for a redirect', async ({ page, server }) => {});// https://github.com/microsoft/playwright/issues/3993-it('should not work for a redirect and interception', async ({ page, server }) => {+it('NE-005 should not work for a redirect and interception', async ({ page, server }) => {server.setRedirect('/foo.html', '/empty.html');const requests = [];await page.route('**', route => {@@ -78,7 +78,7 @@ it('should not work for a redirect and interception', async ({ page, server }) =expect(requests[0].url()).toBe(server.PREFIX + '/foo.html');});-it('should return headers', async ({ page, server, browserName }) => {+it('NE-006 should return headers', async ({ page, server, browserName }) => {const response = await page.goto(server.EMPTY_PAGE);if (browserName === 'chromium')expect(response.request().headers()['user-agent']).toContain('Chrome');@@ -88,7 +88,7 @@ it('should return headers', async ({ page, server, browserName }) => {expect(response.request().headers()['user-agent']).toContain('WebKit');});-it('should get the same headers as the server', async ({ page, server, browserName, platform, isElectron, browserMajorVersion, channel }) => {+it('NE-007 should get the same headers as the server', async ({ page, server, browserName, platform, isElectron, browserMajorVersion, channel }) => {it.skip(isElectron && browserMajorVersion < 99, 'This needs Chromium >= 99');it.fail(browserName === 'webkit' && platform === 'win32' && channel !== 'webkit-wsl', 'Curl does not show accept-encoding and accept-language');let serverRequest;@@ -101,7 +101,7 @@ it('should get the same headers as the server', async ({ page, server, browserNaexpect(headers).toEqual(adjustServerHeaders(serverRequest.headers, browserName));});-it('should not return allHeaders() until they are available', async ({ page, server, browserName, platform, isElectron, browserMajorVersion, channel }) => {+it('NE-008 should not return allHeaders() until they are available', async ({ page, server, browserName, platform, isElectron, browserMajorVersion, channel }) => {it.skip(isElectron && browserMajorVersion < 99, 'This needs Chromium >= 99');it.fail(browserName === 'webkit' && platform === 'win32' && channel !== 'webkit-wsl', 'Curl does not show accept-encoding and accept-language');@@ -126,7 +126,7 @@ it('should not return allHeaders() until they are available', async ({ page, serexpect(responseHeaders['foo']).toBe('bar');});-it('should get the same headers as the server CORS', async ({ page, server, browserName, platform, isElectron, browserMajorVersion, channel }) => {+it('NE-009 should get the same headers as the server CORS', async ({ page, server, browserName, platform, isElectron, browserMajorVersion, channel }) => {it.skip(isElectron && browserMajorVersion < 99, 'This needs Chromium >= 99');it.fail(browserName === 'webkit' && platform === 'win32' && channel !== 'webkit-wsl', 'Curl does not show accept-encoding and accept-language');@@ -148,7 +148,7 @@ it('should get the same headers as the server CORS', async ({ page, server, browexpect(headers).toEqual(adjustServerHeaders(serverRequest.headers, browserName));});-it('should not get preflight CORS requests when intercepting', async ({ page, server, browserName, isAndroid, isBidi }) => {+it('NE-010 should not get preflight CORS requests when intercepting', async ({ page, server, browserName, isAndroid, isBidi }) => {it.fail(isAndroid, 'Playwright does not get CORS pre-flight on Android');await page.goto(server.PREFIX + '/empty.html');@@ -207,7 +207,7 @@ it('should not get preflight CORS requests when intercepting', async ({ page, se}});-it('should return postData', async ({ page, server }) => {+it('NE-011 should return postData', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);server.setRoute('/post', (req, res) => res.end());let request = null;@@ -217,7 +217,7 @@ it('should return postData', async ({ page, server }) => {expect(request.postData()).toBe('{"foo":"bar"}');});-it('should work with binary post data', async ({ page, server }) => {+it('NE-012 should work with binary post data', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);server.setRoute('/post', (req, res) => res.end());let request = null;@@ -232,7 +232,7 @@ it('should work with binary post data', async ({ page, server }) => {expect(buffer[i]).toBe(i);});-it('should work with binary post data and interception', async ({ page, server }) => {+it('NE-013 should work with binary post data and interception', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);server.setRoute('/post', (req, res) => res.end());let request = null;@@ -248,7 +248,7 @@ it('should work with binary post data and interception', async ({ page, server }expect(buffer[i]).toBe(i);});-it('should override post data content type', async ({ page, server }) => {+it('NE-014 should override post data content type', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let request = null;server.setRoute('/post', (req, res) => {@@ -270,12 +270,12 @@ it('should override post data content type', async ({ page, server }) => {expect(request.headers['content-type']).toBe('application/x-www-form-urlencoded; charset=UTF-8');});-it('should get |undefined| with postData() when there is no post data', async ({ page, server }) => {+it('NE-015 should get |undefined| with postData() when there is no post data', async ({ page, server }) => {const response = await page.goto(server.EMPTY_PAGE);expect(response.request().postData()).toBe(null);});-it('should parse the json post data', async ({ page, server }) => {+it('NE-016 should parse the json post data', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);server.setRoute('/post', (req, res) => res.end());let request = null;@@ -285,7 +285,7 @@ it('should parse the json post data', async ({ page, server }) => {expect(request.postDataJSON()).toEqual({ 'foo': 'bar' });});-it('should parse the data if content-type is application/x-www-form-urlencoded', async ({ page, server }) => {+it('NE-017 should parse the data if content-type is application/x-www-form-urlencoded', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);server.setRoute('/post', (req, res) => res.end());let request = null;@@ -296,7 +296,7 @@ it('should parse the data if content-type is application/x-www-form-urlencoded',expect(request.postDataJSON()).toEqual({ 'foo': 'bar', 'baz': '123' });});-it('should parse the data if content-type is application/x-www-form-urlencoded; charset=UTF-8', async ({ page, server }) => {+it('NE-018 should parse the data if content-type is application/x-www-form-urlencoded; charset=UTF-8', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29872' });await page.goto(server.EMPTY_PAGE);const requestPromise = page.waitForRequest('**/post');@@ -310,12 +310,12 @@ it('should parse the data if content-type is application/x-www-form-urlencoded;expect((await requestPromise).postDataJSON()).toEqual({ 'foo': 'bar', 'baz': '123' });});-it('should get |undefined| with postDataJSON() when there is no post data', async ({ page, server }) => {+it('NE-019 should get |undefined| with postDataJSON() when there is no post data', async ({ page, server }) => {const response = await page.goto(server.EMPTY_PAGE);expect(response.request().postDataJSON()).toBe(null);});-it('should return multipart/form-data', async ({ page, server, browserName, browserMajorVersion }) => {+it('NE-020 should return multipart/form-data', async ({ page, server, browserName, browserMajorVersion }) => {it.fixme(browserName === 'webkit', 'File content is missing in WebKit');it.skip(browserName === 'chromium' && browserMajorVersion < 126, 'Requires a recent enough protocol');@@ -340,7 +340,7 @@ it('should return multipart/form-data', async ({ page, server, browserName, browexpect(request.postDataBuffer().toString('utf8')).toEqual(expected);});-it('should return event source', async ({ page, server }) => {+it('NE-021 should return event source', async ({ page, server }) => {const SSE_MESSAGE = { foo: 'bar' };// 1. Setup server-sent events on server that immediately sends a message to the client.server.setRoute('/sse', (req, res) => {@@ -365,7 +365,7 @@ it('should return event source', async ({ page, server }) => {expect(requests[0].resourceType()).toBe('eventsource');});-it('should return navigation bit', async ({ page, server }) => {+it('NE-022 should return navigation bit', async ({ page, server }) => {const requests = new Map();page.on('request', request => requests.set(request.url().split('/').pop(), request));server.setRedirect('/rrredirect', '/frames/one-frame.html');@@ -377,14 +377,14 @@ it('should return navigation bit', async ({ page, server }) => {expect(requests.get('style.css').isNavigationRequest()).toBe(false);});-it('should return navigation bit when navigating to image', async ({ page, server }) => {+it('NE-023 should return navigation bit when navigating to image', async ({ page, server }) => {const requests = [];page.on('request', request => requests.push(request));await page.goto(server.PREFIX + '/pptr.png');expect(requests[0].isNavigationRequest()).toBe(true);});-it('should report raw headers', async ({ page, server, browserName, platform, isElectron, browserMajorVersion, channel }) => {+it('NE-024 should report raw headers', async ({ page, server, browserName, platform, isElectron, browserMajorVersion, channel }) => {it.skip(isElectron && browserMajorVersion < 99, 'This needs Chromium >= 99');let expectedHeaders: { name: string, value: string }[];@@ -430,7 +430,7 @@ it('should report raw headers', async ({ page, server, browserName, platform, isexpect(await request.headerValue('not-there')).toEqual(null);});-it('should report raw response headers in redirects', async ({ page, server, browserName }) => {+it('NE-025 should report raw response headers in redirects', async ({ page, server, browserName }) => {it.skip(browserName === 'webkit', `WebKit won't give us raw headers for redirects`);server.setExtraHeaders('/redirect/1.html', { 'sec-test-header': '1.html' });server.setExtraHeaders('/redirect/2.html', { 'sec-test-header': '2.html' });@@ -455,7 +455,7 @@ it('should report raw response headers in redirects', async ({ page, server, broexpect(headersChain).toEqual(expectedHeaders);});-it('should report all cookies in one header', async ({ page, server, isElectron, browserMajorVersion }) => {+it('NE-026 should report all cookies in one header', async ({ page, server, isElectron, browserMajorVersion }) => {it.skip(isElectron && browserMajorVersion < 99, 'This needs Chromium >= 99');const expectedHeaders = {};@@ -475,7 +475,7 @@ it('should report all cookies in one header', async ({ page, server, isElectron,expect(cookie).toBe('myCookie=myValue; myOtherCookie=myOtherValue');});-it('should not allow to access frame on popup main request', async ({ page, server }) => {+it('NE-027 should not allow to access frame on popup main request', async ({ page, server }) => {await page.setContent(`<a target=_blank href="${server.EMPTY_PAGE}">click me</a>`);const requestPromise = page.context().waitForEvent('request');const popupPromise = page.context().waitForEvent('page');@@ -498,7 +498,7 @@ it('should not allow to access frame on popup main request', async ({ page, servawait clicked;});-it('page.reload return 304 status code', async ({ page, server, browserName, isBidi }) => {+it('NE-028 page.reload return 304 status code', async ({ page, server, browserName, isBidi }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28779' });it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29441' });it.fixme(browserName === 'firefox' && !isBidi, 'Does not send second request');@@ -532,7 +532,7 @@ it('page.reload return 304 status code', async ({ page, server, browserName, isB}});-it('should handle mixed-content blocked requests', async ({ page, asset, browserName }) => {+it('NE-029 should handle mixed-content blocked requests', async ({ page, asset, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29833' });it.skip(browserName !== 'chromium', 'FF and WK actually succeed with the request, and block afterwards');diff --git a/tests/page/page-network-response.spec.ts b/tests/page/page-network-response.spec.tsindex d1bbf7593c..79ac18f7fa 100644--- a/tests/page/page-network-response.spec.ts+++ b/tests/page/page-network-response.spec.ts@@ -20,7 +20,7 @@ import url from 'url';import zlib from 'zlib';import { expect, test as it } from './pageTest';-it('should work @smoke', async ({ page, server }) => {+it('NE-030 should work @smoke', async ({ page, server }) => {server.setRoute('/empty.html', (req, res) => {res.setHeader('foo', 'bar');res.setHeader('BaZ', 'bAz');@@ -32,7 +32,7 @@ it('should work @smoke', async ({ page, server }) => {expect((await response.allHeaders())['BaZ']).toBe(undefined);});-it('should return multiple header value', async ({ page, server, browserName, platform }) => {+it('NE-031 should return multiple header value', async ({ page, server, browserName, platform }) => {it.skip(browserName === 'webkit' && platform === 'win32', 'libcurl does not support non-set-cookie multivalue headers');server.setRoute('/headers', (req, res) => {@@ -52,19 +52,19 @@ it('should return multiple header value', async ({ page, server, browserName, plexpect(response.headers()['name-a']).toBe('v1, v2, v3');});-it('should return text', async ({ page, server }) => {+it('NE-032 should return text', async ({ page, server }) => {const response = await page.goto(server.PREFIX + '/simple.json');expect(await response.text()).toBe('{"foo": "bar"}\n');});-it('should return uncompressed text', async ({ page, server }) => {+it('NE-033 should return uncompressed text', async ({ page, server }) => {server.enableGzip('/simple.json');const response = await page.goto(server.PREFIX + '/simple.json');expect(response.headers()['content-encoding']).toBe('gzip');expect(await response.text()).toBe('{"foo": "bar"}\n');});-it('should return uncompressed text for brotli encoding', {+it('NE-034 should return uncompressed text for brotli encoding', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39160' },}, async ({ page, server, browserName, isAndroid }) => {it.fixme(isAndroid, 'net::ERR_CONTENT_DECODING_FAILED');@@ -83,7 +83,7 @@ it('should return uncompressed text for brotli encoding', {expect(await response.text()).toBe(text);});-it('should return text for identity encoding', {+it('NE-035 should return text for identity encoding', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42501' },}, async ({ page, server }) => {const text = '<div>hello</div>';@@ -99,7 +99,7 @@ it('should return text for identity encoding', {expect(await response.text()).toBe(text);});-it('should throw when requesting body of redirected response', async ({ page, server }) => {+it('NE-036 should throw when requesting body of redirected response', async ({ page, server }) => {server.setRedirect('/foo.html', '/empty.html');const response = await page.goto(server.PREFIX + '/foo.html');const redirectedFrom = response.request().redirectedFrom();@@ -111,7 +111,7 @@ it('should throw when requesting body of redirected response', async ({ page, seexpect(error.message).toContain('Response body is unavailable for redirect responses');});-it('should wait until response completes', async ({ page, server }) => {+it('NE-037 should wait until response completes', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);// Setup server to trap request.let serverResponse = null;@@ -145,19 +145,19 @@ it('should wait until response completes', async ({ page, server }) => {expect(await responseText).toBe('hello world!');});-it('should return json', async ({ page, server }) => {+it('NE-038 should return json', async ({ page, server }) => {const response = await page.goto(server.PREFIX + '/simple.json');expect(await response.json()).toEqual({ foo: 'bar' });});-it('should return body', async ({ page, server, asset }) => {+it('NE-039 should return body', async ({ page, server, asset }) => {const response = await page.goto(server.PREFIX + '/pptr.png');const imageBuffer = fs.readFileSync(asset('pptr.png'));const responseBuffer = await response.body();expect(responseBuffer.equals(imageBuffer)).toBe(true);});-it('should return body with compression', async ({ page, server, asset }) => {+it('NE-040 should return body with compression', async ({ page, server, asset }) => {server.enableGzip('/pptr.png');const response = await page.goto(server.PREFIX + '/pptr.png');const imageBuffer = fs.readFileSync(asset('pptr.png'));@@ -165,7 +165,7 @@ it('should return body with compression', async ({ page, server, asset }) => {expect(responseBuffer.equals(imageBuffer)).toBe(true);});-it('should return non-utf8 body even when content-type says utf8', {+it('NE-041 should return non-utf8 body even when content-type says utf8', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40510' },}, async ({ page, server, browserName, browserMajorVersion }) => {it.fixme(browserName === 'webkit', 'webkit encodes the response body');@@ -191,7 +191,7 @@ it('should return non-utf8 body even when content-type says utf8', {expect(Array.from(bytesReceived)).toEqual(bytes);});-it('should return status text', async ({ page, server }) => {+it('NE-042 should return status text', async ({ page, server }) => {server.setRoute('/cool', (req, res) => {res.writeHead(200, 'cool!');res.end();@@ -200,7 +200,7 @@ it('should return status text', async ({ page, server }) => {expect(response.statusText()).toBe('cool!');});-it('should report all headers', async ({ page, server, browserName, platform, isElectron, browserMajorVersion }) => {+it('NE-043 should report all headers', async ({ page, server, browserName, platform, isElectron, browserMajorVersion }) => {it.skip(isElectron && browserMajorVersion < 99, 'This needs Chromium >= 99');it.skip(browserName === 'webkit' && platform === 'win32', 'libcurl does not support non-set-cookie multivalue headers');@@ -236,7 +236,7 @@ it('should report all headers', async ({ page, server, browserName, platform, isexpect(actualHeaders).toEqual(expectedHeaders);});-it('should report multiple set-cookie headers', async ({ page, server, isElectron, browserMajorVersion }) => {+it('NE-044 should report multiple set-cookie headers', async ({ page, server, isElectron, browserMajorVersion }) => {it.skip(isElectron && browserMajorVersion < 99, 'This needs Chromium >= 99');server.setRoute('/headers', (req, res) => {@@ -260,7 +260,7 @@ it('should report multiple set-cookie headers', async ({ page, server, isElectroexpect(await response.headerValues('set-cookie')).toEqual(['a=b', 'c=d']);});-it('should behave the same way for headers and allHeaders', async ({ page, server, browserName, platform }) => {+it('NE-045 should behave the same way for headers and allHeaders', async ({ page, server, browserName, platform }) => {it.skip(browserName === 'webkit' && platform === 'win32', 'libcurl does not support non-set-cookie multivalue headers');server.setRoute('/headers', (req, res) => {const headers = {@@ -292,7 +292,7 @@ it('should behave the same way for headers and allHeaders', async ({ page, serveexpect(allHeaders['name-b']).toEqual('v4');});-it('should provide a Response with a file URL', async ({ page, asset, isAndroid, isElectron, isWindows, browserName, mode, channel }) => {+it('NE-046 should provide a Response with a file URL', async ({ page, asset, isAndroid, isElectron, isWindows, browserName, mode, channel }) => {it.skip(isAndroid, 'No files on Android');it.skip(browserName === 'firefox', 'Firefox does return null for file:// URLs');it.skip(channel === 'webkit-wsl');@@ -306,7 +306,7 @@ it('should provide a Response with a file URL', async ({ page, asset, isAndroid,expect(response.ok()).toBe(true);});-it('should return set-cookie header after route.fulfill', async ({ page, server, browserName }) => {+it('NE-047 should return set-cookie header after route.fulfill', async ({ page, server, browserName }) => {it.fail(browserName === 'webkit' || browserName === 'chromium', 'https://github.com/microsoft/playwright/issues/11035');await page.route('**/*', async route => {await route.fulfill({@@ -323,7 +323,7 @@ it('should return set-cookie header after route.fulfill', async ({ page, server,expect(headers['set-cookie']).toBe('a=b');});-it('should return headers after route.fulfill', async ({ page, server }) => {+it('NE-048 should return headers after route.fulfill', async ({ page, server }) => {await page.route('**/*', async route => {await route.fulfill({status: 200,@@ -344,7 +344,7 @@ it('should return headers after route.fulfill', async ({ page, server }) => {});});-it('should report if request was fromServiceWorker', async ({ page, server, isAndroid, isElectron }) => {+it('NE-049 should report if request was fromServiceWorker', async ({ page, server, isAndroid, isElectron }) => {it.skip(isAndroid || isElectron);{const res = await page.goto(server.PREFIX + '/serviceworkers/fetch/sw.html');@@ -360,7 +360,7 @@ it('should report if request was fromServiceWorker', async ({ page, server, isAn}});-it('should return body for prefetch script', async ({ page, server, browserName, browserMajorVersion }) => {+it('NE-050 should return body for prefetch script', async ({ page, server, browserName, browserMajorVersion }) => {it.skip(browserName === 'webkit', 'No prefetch in WebKit: https://caniuse.com/link-rel-prefetch');it.skip(browserName === 'chromium' && browserMajorVersion < 138, 'Requires Sec-Purpose header, shipped in Chrome 138');const [response] = await Promise.all([@@ -371,7 +371,7 @@ it('should return body for prefetch script', async ({ page, server, browserName,expect(body.toString()).toBe('// Scripts will be pre-fetched');});-it('should return body for image with evicted body', {+it('NE-051 should return body for image with evicted body', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42002' },}, async ({ page, server, isMac, browserName }) => {it.fixme(isMac && browserName === 'webkit', 'WebKit on Mac evicts the body and returns empty buffer');@@ -392,7 +392,7 @@ it('should return body for image with evicted body', {expect(body.toString('base64')).toBe(imageBase64);});-it('should bypass disk cache when page interception is enabled', async ({ page, server }) => {+it('NE-052 should bypass disk cache when page interception is enabled', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30000' });await page.goto(server.PREFIX + '/frames/one-frame.html');await page.route('**/api*', route => route.continue());@@ -443,7 +443,7 @@ it('should bypass disk cache when page interception is enabled', async ({ page,}});-it('request.existingResponse should return null before response is received', async ({ page, server }) => {+it('NE-053 request.existingResponse should return null before response is received', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let serverResponse = null;server.setRoute('/get', (req, res) => {@@ -471,18 +471,18 @@ it('request.existingResponse should return null before response is received', asexpect(existingResponse.status()).toBe(200);});-it('request.existingResponse should return the response after it is received', async ({ page, server }) => {+it('NE-054 request.existingResponse should return the response after it is received', async ({ page, server }) => {const response = await page.goto(server.EMPTY_PAGE);const request = response.request();expect(request.existingResponse()).toBe(response);});-it('should return http version', async ({ page, server }) => {+it('NE-055 should return http version', async ({ page, server }) => {const response = await page.goto(server.EMPTY_PAGE);expect(await response.httpVersion()).toBe('HTTP/1.1');});-it('Response.formData() should parse multipart/form-data in page context', async ({ page, server, browserName }) => {+it('NE-056 Response.formData() should parse multipart/form-data in page context', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40244' });await page.goto(server.EMPTY_PAGE);const result = await page.evaluate(async () => {@@ -515,7 +515,7 @@ it('Response.formData() should parse multipart/form-data in page context', asyncexpect(result.fileContent).toBe('hello');});-it('should give a readable error when response.body() races with navigation', async ({ page, server, browserName }) => {+it('NE-057 should give a readable error when response.body() races with navigation', async ({ page, server, browserName }) => {it.skip(browserName === 'firefox', 'Firefox keeps the response body available after navigating away, so it never throws');it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41512' });const [response] = await Promise.all([diff --git a/tests/page/page-network-sizes.spec.ts b/tests/page/page-network-sizes.spec.tsindex fcc0d201f1..8c861a1ce6 100644--- a/tests/page/page-network-sizes.spec.ts+++ b/tests/page/page-network-sizes.spec.ts@@ -22,7 +22,7 @@ import { test as it, expect } from './pageTest';it.skip(({ isElectron, browserMajorVersion }) => isElectron && browserMajorVersion < 99, 'This needs Chromium >= 99');-it('should set bodySize and headersSize', async ({ page, server }) => {+it('NE-058 should set bodySize and headersSize', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [request] = await Promise.all([page.waitForEvent('request'),@@ -33,7 +33,7 @@ it('should set bodySize and headersSize', async ({ page, server }) => {expect(sizes.requestHeadersSize).toBeGreaterThanOrEqual(250);});-it('should set bodySize to 0 if there was no body', async ({ page, server, browserName, platform }) => {+it('NE-059 should set bodySize to 0 if there was no body', async ({ page, server, browserName, platform }) => {await page.goto(server.EMPTY_PAGE);const [request] = await Promise.all([page.waitForEvent('request'),@@ -44,7 +44,7 @@ it('should set bodySize to 0 if there was no body', async ({ page, server, browsexpect(sizes.requestHeadersSize).toBeGreaterThanOrEqual(190);});-it('should set bodySize, headersSize, and transferSize', async ({ page, server }) => {+it('NE-060 should set bodySize, headersSize, and transferSize', async ({ page, server }) => {server.setRoute('/get', (req, res) => {// In Firefox, |fetch| will be hanging until it receives |Content-Type| header// from server.@@ -62,20 +62,20 @@ it('should set bodySize, headersSize, and transferSize', async ({ page, server }expect(sizes.responseHeadersSize).toBeGreaterThanOrEqual(100);});-it('should set bodySize to 0 when there was no response body', async ({ page, server }) => {+it('NE-061 should set bodySize to 0 when there was no response body', async ({ page, server }) => {const response = await page.goto(server.EMPTY_PAGE);const sizes = await response.request().sizes();expect(sizes.responseBodySize).toBe(0);expect(sizes.responseHeadersSize).toBeGreaterThanOrEqual(150);});-it('should have the correct responseBodySize', async ({ page, server, asset, browserName }) => {+it('NE-062 should have the correct responseBodySize', async ({ page, server, asset, browserName }) => {const response = await page.goto(server.PREFIX + '/simplezip.json');const sizes = await response.request().sizes();expect(sizes.responseBodySize).toBe(fs.statSync(asset('simplezip.json')).size);});-it('should have the correct responseBodySize for chunked request', async ({ page, server, asset, browserName, platform }) => {+it('NE-063 should have the correct responseBodySize for chunked request', async ({ page, server, asset, browserName, platform }) => {it.fixme(browserName === 'firefox');it.fixme(browserName === 'webkit' && platform !== 'darwin');const content = fs.readFileSync(asset('simplezip.json'));@@ -101,7 +101,7 @@ it('should have the correct responseBodySize for chunked request', async ({ pageexpect(sizes.responseBodySize).toBe(5175);});-it('should have the correct responseBodySize with gzip compression', async ({ page, server, asset }, testInfo) => {+it('NE-064 should have the correct responseBodySize with gzip compression', async ({ page, server, asset }, testInfo) => {server.enableGzip('/simplezip.json');await page.goto(server.EMPTY_PAGE);const [response] = await Promise.all([@@ -119,7 +119,7 @@ it('should have the correct responseBodySize with gzip compression', async ({ paexpect(sizes.responseBodySize).toBe(Buffer.concat(chunks).length);});-it('should handle redirects', async ({ page, server }) => {+it('NE-065 should handle redirects', async ({ page, server }) => {server.setRedirect('/foo', '/bar');server.setRoute('/bar', (req, resp) => resp.end('bar'));await page.goto(server.EMPTY_PAGE);@@ -135,7 +135,7 @@ it('should handle redirects', async ({ page, server }) => {expect((await newRequest.sizes()).responseBodySize).toBe(3);});-it('should throw for failed requests', async ({ page, server }) => {+it('NE-066 should throw for failed requests', async ({ page, server }) => {server.setRoute('/one-style.css', (req, res) => {res.setHeader('Content-Type', 'text/css');res.connection.destroy();@@ -149,7 +149,7 @@ it('should throw for failed requests', async ({ page, server }) => {});for (const statusCode of [200, 401, 404, 500]) {- it(`should work with ${statusCode} status code`, async ({ page, server }) => {+ it(`NE-067 should work with ${statusCode} status code`, async ({ page, server }) => {server.setRoute('/foo', (req, resp) => {resp.writeHead(statusCode, {'Content-Type': 'text/plain; charset=utf-8',@@ -172,7 +172,7 @@ for (const statusCode of [200, 401, 404, 500]) {});}-it('should have correct responseBodySize for 404 with content', async ({ page, server, browserName }) => {+it('NE-068 should have correct responseBodySize for 404 with content', async ({ page, server, browserName }) => {it.fixme(browserName === 'chromium');server.setRoute('/broken-image.png', (req, resp) => {@@ -201,7 +201,7 @@ it('should have correct responseBodySize for 404 with content', async ({ page, s});-it('should return sizes without hanging', async ({ page, server, browserName }) => {+it('NE-069 should return sizes without hanging', async ({ page, server, browserName }) => {it.fixme(browserName === 'chromium');server.setRoute('/has-abandoned-fetch', (req, resp) => {diff --git a/tests/page/page-request-continue.spec.ts b/tests/page/page-request-continue.spec.tsindex a6b4137912..f59ef146c9 100644--- a/tests/page/page-request-continue.spec.ts+++ b/tests/page/page-request-continue.spec.ts@@ -19,12 +19,12 @@ import { test as it, expect } from './pageTest';import type { Route } from 'playwright-core';import type * as http from 'http';-it('should work', async ({ page, server }) => {+it('RO-057 should work', async ({ page, server }) => {await page.route('**/*', route => route.continue());await page.goto(server.EMPTY_PAGE);});-it('should amend HTTP headers', async ({ page, server }) => {+it('RO-058 should amend HTTP headers', async ({ page, server }) => {await page.route('**/*', route => {const headers = {...route.request().headers(),@@ -40,7 +40,7 @@ it('should amend HTTP headers', async ({ page, server }) => {expect(request.headers['foo']).toBe('bar');});-it('should not allow to override unsafe HTTP headers', async ({ page, server, browserName, isAndroid, isElectron }) => {+it('RO-059 should not allow to override unsafe HTTP headers', async ({ page, server, browserName, isAndroid, isElectron }) => {it.skip(isAndroid);let resolve;const routePromise = new Promise<Route>(f => resolve = f);@@ -60,7 +60,7 @@ it('should not allow to override unsafe HTTP headers', async ({ page, server, brexpect(serverRequest.headers['host']).toBe(new URL(server.EMPTY_PAGE).host);});-it('should delete header with undefined value', async ({ page, server, browserName }) => {+it('RO-060 should delete header with undefined value', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/13106' });await page.goto(server.PREFIX + '/empty.html');@@ -98,7 +98,7 @@ it('should delete header with undefined value', async ({ page, server, browserNaexpect(serverRequest.headers.bar).toBe('b');});-it('should amend method', async ({ page, server }) => {+it('RO-061 should amend method', async ({ page, server }) => {const sRequest = server.waitForRequest('/sleep.zzz');await page.goto(server.EMPTY_PAGE);await page.route('**/*', route => route.continue({ method: 'POST' }));@@ -110,7 +110,7 @@ it('should amend method', async ({ page, server }) => {expect((await sRequest).method).toBe('POST');});-it('should override request url', async ({ page, server }) => {+it('RO-062 should override request url', async ({ page, server }) => {const serverRequest = server.waitForRequest('/global-var.html');await page.route('**/foo', route => {void route.continue({ url: server.PREFIX + '/global-var.html' });@@ -122,7 +122,7 @@ it('should override request url', async ({ page, server }) => {expect((await serverRequest).method).toBe('GET');});-it('should not allow changing protocol when overriding url', async ({ page, server }) => {+it('RO-063 should not allow changing protocol when overriding url', async ({ page, server }) => {let resolve;const errorPromise = new Promise<Error|null>(f => resolve = f);await page.route('**/*', async route => {@@ -139,7 +139,7 @@ it('should not allow changing protocol when overriding url', async ({ page, servexpect(error.message).toContain('New URL must have same protocol as overridden URL');});-it('should not throw if request was cancelled by the page', async ({ page, server, isAndroid }) => {+it('RO-064 should not throw if request was cancelled by the page', async ({ page, server, isAndroid }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28490' });it.fixme(isAndroid, 'net::ERR_CONNECTION_RESET');@@ -159,7 +159,7 @@ it('should not throw if request was cancelled by the page', async ({ page, serveawait route.continue(); // Should not throw.});-it('should override method along with url', async ({ page, server }) => {+it('RO-065 should override method along with url', async ({ page, server }) => {const request = server.waitForRequest('/empty.html');await page.route('**/foo', route => {void route.continue({@@ -171,7 +171,7 @@ it('should override method along with url', async ({ page, server }) => {expect((await request).method).toBe('POST');});-it('should amend method on main request', async ({ page, server }) => {+it('RO-066 should amend method on main request', async ({ page, server }) => {const request = server.waitForRequest('/empty.html');await page.route('**/*', route => route.continue({ method: 'POST' }));await page.goto(server.EMPTY_PAGE);@@ -179,7 +179,7 @@ it('should amend method on main request', async ({ page, server }) => {});it.describe('post data', () => {- it('should amend post data', async ({ page, server }) => {+ it('RO-067 should amend post data', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/*', route => {void route.continue({ postData: 'doggo' });@@ -191,7 +191,7 @@ it.describe('post data', () => {expect((await serverRequest.postBody).toString('utf8')).toBe('doggo');});- it('should compute content-length from post data', async ({ page, server }) => {+ it('RO-068 should compute content-length from post data', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16027' });await page.goto(server.EMPTY_PAGE);const data = 'a'.repeat(7500);@@ -209,7 +209,7 @@ it.describe('post data', () => {expect(serverRequest.headers['content-type']).toBe('application/json');});- it('should amend method and post data', async ({ page, server }) => {+ it('RO-069 should amend method and post data', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/*', route => {void route.continue({ method: 'POST', postData: 'doggo' });@@ -222,7 +222,7 @@ it.describe('post data', () => {expect((await serverRequest.postBody).toString('utf8')).toBe('doggo');});- it('should amend utf8 post data', async ({ page, server }) => {+ it('RO-070 should amend utf8 post data', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/*', route => {void route.continue({ postData: 'пушкин' });@@ -235,7 +235,7 @@ it.describe('post data', () => {expect((await serverRequest.postBody).toString('utf8')).toBe('пушкин');});- it('should amend longer post data', async ({ page, server }) => {+ it('RO-071 should amend longer post data', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/*', route => {void route.continue({ postData: 'doggo-is-longer-than-birdy' });@@ -248,7 +248,7 @@ it.describe('post data', () => {expect((await serverRequest.postBody).toString('utf8')).toBe('doggo-is-longer-than-birdy');});- it('should amend binary post data', async ({ page, server }) => {+ it('RO-072 should amend binary post data', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const arr = Array.from(Array(256).keys());await page.route('**/*', route => {@@ -265,7 +265,7 @@ it.describe('post data', () => {expect(arr[i]).toBe(buffer[i]);});- it('should use content-type from original request', async ({ page, server, browserName }) => {+ it('RO-073 should use content-type from original request', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16736' });await page.goto(server.EMPTY_PAGE);@@ -285,7 +285,7 @@ it.describe('post data', () => {});});-it('should work with Cross-Origin-Opener-Policy', async ({ page, server, browserName }) => {+it('RO-074 should work with Cross-Origin-Opener-Policy', async ({ page, server, browserName }) => {it.fail(browserName === 'webkit', 'https://github.com/microsoft/playwright/issues/8796');let serverHeaders;const serverRequests = [];@@ -343,7 +343,7 @@ it('should work with Cross-Origin-Opener-Policy', async ({ page, server, browserexpect(response.request().failure()).toBeNull();});-it('should not delete the origin header', async ({ page, server, isAndroid }) => {+it('RO-075 should not delete the origin header', async ({ page, server, isAndroid }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/13106' });it.skip(isAndroid, 'No cross-process on Android');@@ -372,7 +372,7 @@ it('should not delete the origin header', async ({ page, server, isAndroid }) =>expect(serverRequest.headers.origin).toBe(server.PREFIX);});-it('should continue preload link requests', async ({ page, server }) => {+it('RO-076 should continue preload link requests', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16745' });let intercepted = false;await page.route('**/one-style.css', route => {@@ -395,7 +395,7 @@ it('should continue preload link requests', async ({ page, server }) => {expect(color).toBe('rgb(255, 192, 203)');});-it('should respect set-cookie in redirect response', {+it('RO-077 should respect set-cookie in redirect response', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35154' }}, async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);@@ -421,7 +421,7 @@ it('should respect set-cookie in redirect response', {expect.soft(await page.evaluate(() => document.cookie)).toBe('foo=bar');});-it('continue should not propagate cookie override to redirects', {+it('RO-078 continue should not propagate cookie override to redirects', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35168' },]@@ -448,7 +448,7 @@ it('continue should not propagate cookie override to redirects', {expect(serverRequest.headers['cookie']).toBe('foo=bar');});-it('continue should not override cookie', {+it('RO-079 continue should not override cookie', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35168' },]@@ -477,7 +477,7 @@ it('continue should not override cookie', {expect(serverRequest.headers['custom']).toBe('value');});-it('continue with headers should send fresh cookie from the browser cookie store', {+it('RO-080 continue with headers should send fresh cookie from the browser cookie store', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41428' },]@@ -503,7 +503,7 @@ it('continue with headers should send fresh cookie from the browser cookie storeexpect(serverRequest.headers['cookie']).toBe('foo=v2');});-it('continue with headers should send fresh cookie after a redirect', {+it('RO-081 continue with headers should send fresh cookie after a redirect', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41428' },]@@ -533,7 +533,7 @@ it('continue with headers should send fresh cookie after a redirect', {expect(serverRequest.headers['cookie']).toBe('foo=v2');});-it('redirect after continue should be able to delete cookie', {+it('RO-082 redirect after continue should be able to delete cookie', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35168' },]@@ -565,7 +565,7 @@ it('redirect after continue should be able to delete cookie', {expect(serverRequest.headers['cookie']).toBeFalsy();});-it('continue should propagate headers to redirects', {+it('RO-083 continue should propagate headers to redirects', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28758' },{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32045' },@@ -587,7 +587,7 @@ it('continue should propagate headers to redirects', {expect(serverRequest.headers['custom']).toBe('value');});-it('continue should drop content-length on redirects', {+it('RO-084 continue should drop content-length on redirects', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36029' }}, async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);@@ -611,7 +611,7 @@ it('continue should drop content-length on redirects', {expect.soft(serverRequest.headers['custom']).toBe('value');});-it('redirected requests should report overridden headers', {+it('RO-085 redirected requests should report overridden headers', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31351' },{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32045' },@@ -634,7 +634,7 @@ it('redirected requests should report overridden headers', {expect((await response.request().allHeaders())['custom']).toBe('value');});-it('continue should delete headers on redirects', {+it('RO-086 continue should delete headers on redirects', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/13106' },{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32045' },@@ -669,7 +669,7 @@ it('continue should delete headers on redirects', {expect(serverRequest.headers.foo).toBeFalsy();});-it('propagate headers same origin redirect', {+it('RO-087 propagate headers same origin redirect', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/13106' },{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32045' },@@ -713,7 +713,7 @@ it('propagate headers same origin redirect', {expect.soft(serverRequest.headers['custom']).toBe('foo');});-it('propagate headers cross origin', {+it('RO-088 propagate headers cross origin', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/13106' },{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32045' },@@ -756,7 +756,7 @@ it('propagate headers cross origin', {expect.soft(serverRequest.headers['custom']).toBe('foo');});-it('propagate headers cross origin redirect', {+it('RO-089 propagate headers cross origin redirect', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/13106' },{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32045' },@@ -809,7 +809,7 @@ it('propagate headers cross origin redirect', {expect.soft(serverRequest.headers['custom']).toBe('foo');});-it('propagate headers cross origin redirect after interception', {+it('RO-090 propagate headers cross origin redirect after interception', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/13106' },{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32045' },@@ -872,7 +872,7 @@ it('propagate headers cross origin redirect after interception', {expect.soft(serverRequest.headers['custom']).toBe('foo');});-it('continue should pass on 307 cross-origin redirect', {+it('RO-091 continue should pass on 307 cross-origin redirect', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41690' }}, async ({ page, server, isAndroid }) => {it.skip(isAndroid, 'No cross-process on Android');@@ -901,7 +901,7 @@ it('continue should pass on 307 cross-origin redirect', {await expect(page.locator('p')).toHaveText('ok');});-it('should intercept css variable with background url', async ({ page, server }) => {+it('RO-092 should intercept css variable with background url', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/19158' });server.setRoute('/test.html', (request, response) => {@@ -935,7 +935,7 @@ it('should intercept css variable with background url', async ({ page, server })expect(interceptedRequests).toBe(1);});-it('continue should not change multipart/form-data body', async ({ page, server, browserName }) => {+it('RO-093 continue should not change multipart/form-data body', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/19158' });await page.goto(server.EMPTY_PAGE);server.setRoute('/upload', (request, response) => {@@ -974,7 +974,7 @@ it('continue should not change multipart/form-data body', async ({ page, server,expect.soft((await reqAfter.postBody).toString('utf8')).toContain(fileContent);});-it('should not forward Host header on cross-origin redirect', {+it('RO-094 should not forward Host header on cross-origin redirect', {annotation: {type: 'issue',description: 'https://github.com/microsoft/playwright/issues/36719'@@ -1011,7 +1011,7 @@ it('should not forward Host header on cross-origin redirect', {expect(redirectedHost).toBe(new URL(server.CROSS_PROCESS_PREFIX).host);});-it('postData should return empty string when overriding body with empty string', async ({ page, server }) => {+it('RO-095 postData should return empty string when overriding body with empty string', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/*', route => {void route.continue({ postData: '' });diff --git a/tests/page/page-request-fallback.spec.ts b/tests/page/page-request-fallback.spec.tsindex bee570d251..a6fb1d2bb6 100644--- a/tests/page/page-request-fallback.spec.ts+++ b/tests/page/page-request-fallback.spec.ts@@ -17,12 +17,12 @@import { test as it, expect } from './pageTest';-it('should work', async ({ page, server }) => {+it('RO-120 should work', async ({ page, server }) => {await page.route('**/*', route => route.fallback());await page.goto(server.EMPTY_PAGE);});-it('should fall back', async ({ page, server }) => {+it('RO-121 should fall back', async ({ page, server }) => {const intercepted = [];await page.route('**/empty.html', route => {intercepted.push(1);@@ -40,7 +40,7 @@ it('should fall back', async ({ page, server }) => {expect(intercepted).toEqual([3, 2, 1]);});-it('should fall back async', async ({ page, server }) => {+it('RO-122 should fall back async', async ({ page, server }) => {const intercepted = [];await page.route('**/empty.html', async route => {intercepted.push(1);@@ -61,7 +61,7 @@ it('should fall back async', async ({ page, server }) => {expect(intercepted).toEqual([3, 2, 1]);});-it('should not chain fulfill', async ({ page, server }) => {+it('RO-123 should not chain fulfill', async ({ page, server }) => {let failed = false;await page.route('**/empty.html', route => {failed = true;@@ -78,7 +78,7 @@ it('should not chain fulfill', async ({ page, server }) => {expect(failed).toBeFalsy();});-it('should not chain abort', async ({ page, server }) => {+it('RO-124 should not chain abort', async ({ page, server }) => {let failed = false;await page.route('**/empty.html', route => {failed = true;@@ -94,7 +94,7 @@ it('should not chain abort', async ({ page, server }) => {expect(failed).toBeFalsy();});-it('should fall back after exception', async ({ page, server }) => {+it('RO-125 should fall back after exception', async ({ page, server }) => {await page.route('**/empty.html', route => {void route.continue();});@@ -108,7 +108,7 @@ it('should fall back after exception', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);});-it('should chain once', async ({ page, server }) => {+it('RO-126 should chain once', async ({ page, server }) => {await page.route('**/empty.html', route => {void route.fulfill({ status: 200, body: 'fulfilled one' });}, { times: 1 });@@ -120,7 +120,7 @@ it('should chain once', async ({ page, server }) => {expect(body.toString()).toEqual('fulfilled one');});-it('should amend HTTP headers', async ({ page, server }) => {+it('RO-127 should amend HTTP headers', async ({ page, server }) => {const values = [];await page.route('**/sleep.zzz', async route => {values.push(route.request().headers().foo);@@ -139,7 +139,7 @@ it('should amend HTTP headers', async ({ page, server }) => {expect(values).toEqual(['bar', 'bar', 'bar']);});-it('should delete header with undefined value', async ({ page, server, browserName }) => {+it('RO-128 should delete header with undefined value', async ({ page, server, browserName }) => {await page.goto(server.PREFIX + '/empty.html');server.setRoute('/something', (request, response) => {response.writeHead(200, { 'Access-Control-Allow-Origin': '*' });@@ -178,7 +178,7 @@ it('should delete header with undefined value', async ({ page, server, browserNaexpect(serverRequest.headers.bar).toBe('b');});-it('should amend method', async ({ page, server }) => {+it('RO-129 should amend method', async ({ page, server }) => {const sRequest = server.waitForRequest('/sleep.zzz');await page.goto(server.EMPTY_PAGE);@@ -198,7 +198,7 @@ it('should amend method', async ({ page, server }) => {expect((await sRequest).method).toBe('POST');});-it('should override request url', async ({ page, server }) => {+it('RO-130 should override request url', async ({ page, server }) => {const serverRequest = server.waitForRequest('/global-var.html');let url: string;@@ -218,7 +218,7 @@ it('should override request url', async ({ page, server }) => {});it.describe('post data', () => {- it('should amend post data', async ({ page, server }) => {+ it('RO-131 should amend post data', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let postData: string;await page.route('**/*', route => {@@ -236,7 +236,7 @@ it.describe('post data', () => {expect((await serverRequest.postBody).toString('utf8')).toBe('doggo');});- it('should amend binary post data', async ({ page, server }) => {+ it('RO-132 should amend binary post data', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const arr = Array.from(Array(256).keys());let postDataBuffer: Buffer;@@ -260,7 +260,7 @@ it.describe('post data', () => {}});- it('should amend json post data', async ({ page, server }) => {+ it('RO-133 should amend json post data', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let postData: string;await page.route('**/*', route => {diff --git a/tests/page/page-request-fulfill.spec.ts b/tests/page/page-request-fulfill.spec.tsindex d1772c9c0f..38b27459eb 100644--- a/tests/page/page-request-fulfill.spec.ts+++ b/tests/page/page-request-fulfill.spec.ts@@ -35,7 +35,7 @@ const it = base.extend<{})});-it('should work', async ({ page, server }) => {+it('RO-096 should work', async ({ page, server }) => {await page.route('**/*', route => {void route.fulfill({status: 201,@@ -52,7 +52,7 @@ it('should work', async ({ page, server }) => {expect(await page.evaluate(() => document.body.textContent)).toBe('Yo, page!');});-it('should work with buffer as body', async ({ page, server, browserName, isLinux }) => {+it('RO-097 should work with buffer as body', async ({ page, server, browserName, isLinux }) => {await page.route('**/*', route => {void route.fulfill({status: 200,@@ -65,7 +65,7 @@ it('should work with buffer as body', async ({ page, server, browserName, isLinuexpect(await page.evaluate(() => document.body.textContent)).toBe('Yo, page!');});-it('should work with status code 422', async ({ page, server }) => {+it('RO-098 should work with status code 422', async ({ page, server }) => {await page.route('**/*', route => {void route.fulfill({status: 422,@@ -78,7 +78,7 @@ it('should work with status code 422', async ({ page, server }) => {expect(await page.evaluate(() => document.body.textContent)).toBe('Yo, page!');});-it('should fulfill with unuassigned status codes', async ({ page, server, browserName }) => {+it('RO-099 should fulfill with unuassigned status codes', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28490' });it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30773' });let fulfillPromiseCallback;@@ -100,7 +100,7 @@ it('should fulfill with unuassigned status codes', async ({ page, server, browseexpect(response.statusText).toBe('Unknown');});-it('should not throw if request was cancelled by the page', async ({ page, server }) => {+it('RO-100 should not throw if request was cancelled by the page', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28490' });let interceptCallback;const interceptPromise = new Promise<Route>(f => interceptCallback = f);@@ -119,7 +119,7 @@ it('should not throw if request was cancelled by the page', async ({ page, serveawait route.fulfill({ status: 200 }); // Should not throw.});-it('should allow mocking binary responses', async ({ page, server, browserName, headless, asset, isAndroid, mode }) => {+it('RO-101 should allow mocking binary responses', async ({ page, server, browserName, headless, asset, isAndroid, mode }) => {it.skip(browserName === 'firefox' && !headless, 'Firefox headed produces a different image.');it.skip(isAndroid);@@ -140,7 +140,7 @@ it('should allow mocking binary responses', async ({ page, server, browserName,expect(await img.screenshot()).toMatchSnapshot('mock-binary-response.png');});-it('should allow mocking svg with charset', async ({ page, server, browserName, headless, isAndroid, isElectron, electronMajorVersion }) => {+it('RO-102 should allow mocking svg with charset', async ({ page, server, browserName, headless, isAndroid, isElectron, electronMajorVersion }) => {it.skip(browserName === 'firefox' && !headless, 'Firefox headed produces a different image.');it.skip(isAndroid);it.skip(isElectron && electronMajorVersion < 30, 'Protocol error (Storage.getCookies): Browser context management is not supported');@@ -161,7 +161,7 @@ it('should allow mocking svg with charset', async ({ page, server, browserName,expect(await img.screenshot()).toMatchSnapshot('mock-svg.png');});-it('should work with file path', async ({ page, server, asset, mode, isAndroid }) => {+it('RO-103 should work with file path', async ({ page, server, asset, mode, isAndroid }) => {it.skip(isAndroid);await page.route('**/*', route => route.fulfill({ contentType: 'shouldBeIgnored', path: asset('pptr.png') }));@@ -175,7 +175,7 @@ it('should work with file path', async ({ page, server, asset, mode, isAndroid }expect(await img.screenshot()).toMatchSnapshot('mock-binary-response.png');});-it('should stringify intercepted request response headers', async ({ page, server }) => {+it('RO-104 should stringify intercepted request response headers', async ({ page, server }) => {await page.route('**/*', route => {void route.fulfill({status: 200,@@ -192,7 +192,7 @@ it('should stringify intercepted request response headers', async ({ page, serveexpect(await page.evaluate(() => document.body.textContent)).toBe('Yo, page!');});-it('should not modify the headers sent to the server', async ({ page, server }) => {+it('RO-105 should not modify the headers sent to the server', async ({ page, server }) => {await page.goto(server.PREFIX + '/empty.html');const interceptedRequests = [];@@ -229,7 +229,7 @@ it('should not modify the headers sent to the server', async ({ page, server })expect(interceptedRequests[1].headers).toEqual(interceptedRequests[0].headers);});-it('should include the origin header', async ({ page, server, isAndroid }) => {+it('RO-106 should include the origin header', async ({ page, server, isAndroid }) => {it.skip(isAndroid, 'No cross-process on Android');await page.goto(server.PREFIX + '/empty.html');@@ -253,7 +253,7 @@ it('should include the origin header', async ({ page, server, isAndroid }) => {expect(interceptedRequest.headers()['origin']).toEqual(server.PREFIX);});-it('should fulfill with global fetch result', async ({ playwright, page, server, isElectron, electronMajorVersion, rewriteAndroidLoopbackURL }) => {+it('RO-107 should fulfill with global fetch result', async ({ playwright, page, server, isElectron, electronMajorVersion, rewriteAndroidLoopbackURL }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');await page.route('**/*', async route => {const request = await playwright.request.newContext();@@ -265,7 +265,7 @@ it('should fulfill with global fetch result', async ({ playwright, page, server,expect(await response.json()).toEqual({ 'foo': 'bar' });});-it('should fulfill with fetch result', async ({ page, server, isElectron, electronMajorVersion, rewriteAndroidLoopbackURL }) => {+it('RO-108 should fulfill with fetch result', async ({ page, server, isElectron, electronMajorVersion, rewriteAndroidLoopbackURL }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');await page.route('**/*', async route => {const response = await page.request.get(rewriteAndroidLoopbackURL(server.PREFIX + '/simple.json'));@@ -276,7 +276,7 @@ it('should fulfill with fetch result', async ({ page, server, isElectron, electrexpect(await response.json()).toEqual({ 'foo': 'bar' });});-it('should fulfill with fetch result and overrides', async ({ page, server, isElectron, electronMajorVersion, rewriteAndroidLoopbackURL }) => {+it('RO-109 should fulfill with fetch result and overrides', async ({ page, server, isElectron, electronMajorVersion, rewriteAndroidLoopbackURL }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');await page.route('**/*', async route => {const response = await page.request.get(rewriteAndroidLoopbackURL(server.PREFIX + '/simple.json'));@@ -295,7 +295,7 @@ it('should fulfill with fetch result and overrides', async ({ page, server, isElexpect(await response.json()).toEqual({ 'foo': 'bar' });});-it('should fetch original request and fulfill', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {+it('RO-110 should fetch original request and fulfill', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');await page.route('**/*', async route => {@@ -309,7 +309,7 @@ it('should fetch original request and fulfill', async ({ page, server, isElectroexpect(await page.title()).toEqual('Woof-Woof');});-it('should fulfill with multiple set-cookie', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {+it('RO-111 should fulfill with multiple set-cookie', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 14, 'Electron 14+ is required');it.skip(isAndroid, 'Android does not have an isolated context per test, so we get cookies from other tests');@@ -331,7 +331,7 @@ it('should fulfill with multiple set-cookie', async ({ page, server, isElectron,expect(await response.headerValue('X-Header-2')).toBe('v2');});-it('should fulfill with fetch response that has multiple set-cookie', async ({ playwright, page, server, isAndroid }) => {+it('RO-112 should fulfill with fetch response that has multiple set-cookie', async ({ playwright, page, server, isAndroid }) => {it.fixme(isAndroid);server.setRoute('/empty.html', (req, res) => {res.setHeader('Set-Cookie', ['a=b', 'c=d']);@@ -348,7 +348,7 @@ it('should fulfill with fetch response that has multiple set-cookie', async ({ pexpect(cookie.split(';').map(s => s.trim()).sort()).toEqual(['a=b', 'c=d']);});-it('headerValue should return set-cookie from intercepted response', async ({ page, server, browserName }) => {+it('RO-113 headerValue should return set-cookie from intercepted response', async ({ page, server, browserName }) => {it.fail(browserName === 'chromium', 'Set-Cookie is missing in response after interception');it.skip(browserName === 'webkit', 'Set-Cookie with \n in intercepted response does not pass validation in WebCore, see also https://github.com/microsoft/playwright/pull/9273');await page.route('**/empty.html', async route => {@@ -364,7 +364,7 @@ it('headerValue should return set-cookie from intercepted response', async ({ paexpect(await response.headerValue('Set-Cookie')).toBe('a=b');});-it('should fulfill with har response', async ({ page, asset }) => {+it('RO-114 should fulfill with har response', async ({ page, asset }) => {const harPath = asset('har-fulfill.har');const har = JSON.parse(await fs.promises.readFile(harPath, 'utf-8')) as har.HARFile;await page.route('**/*', async route => {@@ -396,7 +396,7 @@ function findResponse(har: har.HARFile, url: string): har.Response {return entry?.response;}-it('should fulfill preload link requests', async ({ page, server, browserName }) => {+it('RO-115 should fulfill preload link requests', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16745' });let intercepted = false;await page.route('**/one-style.css', route => {@@ -422,7 +422,7 @@ it('should fulfill preload link requests', async ({ page, server, browserName })expect(color).toBe('rgb(0, 128, 0)');});-it('should fulfill json', async ({ page, server }) => {+it('RO-116 should fulfill json', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/data.json', route => {void route.fulfill({@@ -442,7 +442,7 @@ it('should fulfill json', async ({ page, server }) => {expect(body).toBe(JSON.stringify({ bar: 'baz' }));});-it('should fulfill with gzip and readback', {+it('RO-117 should fulfill with gzip and readback', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29261' },}, async ({ page, server, isAndroid, isElectron, electronMajorVersion }) => {it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');@@ -460,7 +460,7 @@ it('should fulfill with gzip and readback', {expect(await response.text()).toContain(`<div>hello, world!</div>`);});-it('should not go to the network for fulfilled requests body', {+it('RO-118 should not go to the network for fulfilled requests body', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30760' },}, async ({ page, server }) => {await page.route('**/one-style.css', async route => {@@ -486,7 +486,7 @@ it('should not go to the network for fulfilled requests body', {expect(serverHit).toBe(false);});-it('should return body for fulfilled responses', {+it('RO-119 should return body for fulfilled responses', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright-java/issues/1792' },}, async ({ page, server }) => {for (const status of [100, 200, 404, 500]) {diff --git a/tests/page/page-request-gc.spec.ts b/tests/page/page-request-gc.spec.tsindex adbd0384c7..25df20a028 100644--- a/tests/page/page-request-gc.spec.ts+++ b/tests/page/page-request-gc.spec.ts@@ -16,7 +16,7 @@import { test, expect } from './pageTest';-test('should work', async ({ page }) => {+test('RO-149 should work', async ({ page }) => {await page.evaluate(() => {globalThis.objectToDestroy = { hello: 'world' };globalThis.weakRef = new WeakRef(globalThis.objectToDestroy);@@ -33,7 +33,7 @@ test('should work', async ({ page }) => {expect(await page.evaluate(() => globalThis.weakRef.deref())).toBe(undefined);});-test('should collect element retained by locator hit-target interceptor after detach', async ({ page, browserName }) => {+test('RO-150 should collect element retained by locator hit-target interceptor after detach', async ({ page, browserName }) => {test.fixme(browserName === 'firefox', 'Firefox hit-target interceptor does not release its element reference on detach');test.fixme(browserName === 'chromium', 'Chromium retains a native reference to the last hit-tested element; fix pending upstream discussion, see #41575');await page.setContent('<button id="btn">click me</button>');diff --git a/tests/page/page-request-intercept.spec.ts b/tests/page/page-request-intercept.spec.tsindex 34197011c4..136ee30f28 100644--- a/tests/page/page-request-intercept.spec.ts+++ b/tests/page/page-request-intercept.spec.ts@@ -33,7 +33,7 @@ const it = base.extend<{ rewriteAndroidLoopbackURL(url: string): string }>({})});-it('should fulfill intercepted response', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {+it('RO-134 should fulfill intercepted response', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');await page.route('**/*', async route => {@@ -55,7 +55,7 @@ it('should fulfill intercepted response', async ({ page, server, isElectron, eleexpect(await page.evaluate(() => document.body.textContent)).toBe('Yo, page!');});-it('should fulfill response with empty body', async ({ page, server, isAndroid, isElectron, electronMajorVersion, browserName, browserMajorVersion }) => {+it('RO-135 should fulfill response with empty body', async ({ page, server, isAndroid, isElectron, electronMajorVersion, browserName, browserMajorVersion }) => {it.skip(browserName === 'chromium' && browserMajorVersion <= 91, 'Fails in Electron that uses old Chromium');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');@@ -73,7 +73,7 @@ it('should fulfill response with empty body', async ({ page, server, isAndroid,expect(await response.text()).toBe('');});-it('should override with defaults when intercepted response not provided', async ({ page, server, browserName, isElectron, electronMajorVersion, isAndroid }) => {+it('RO-136 should override with defaults when intercepted response not provided', async ({ page, server, browserName, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');server.setRoute('/empty.html', (req, res) => {@@ -95,7 +95,7 @@ it('should override with defaults when intercepted response not provided', asyncexpect(response.headers()).toEqual({ });});-it('should fulfill with any response', async ({ page, server, isElectron, electronMajorVersion, rewriteAndroidLoopbackURL }) => {+it('RO-137 should fulfill with any response', async ({ page, server, isElectron, electronMajorVersion, rewriteAndroidLoopbackURL }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');server.setRoute('/sample', (req, res) => {@@ -117,7 +117,7 @@ it('should fulfill with any response', async ({ page, server, isElectron, electrexpect(response.headers()['foo']).toBe('bar');});-it('should support fulfill after intercept', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {+it('RO-138 should support fulfill after intercept', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');const requestPromise = server.waitForRequest('/title.html');@@ -132,7 +132,7 @@ it('should support fulfill after intercept', async ({ page, server, isElectron,expect(await response.text()).toBe(original);});-it('should give access to the intercepted response', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {+it('RO-139 should give access to the intercepted response', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');await page.goto(server.EMPTY_PAGE);@@ -156,7 +156,7 @@ it('should give access to the intercepted response', async ({ page, server, isElawait Promise.all([route.fulfill({ response }), evalPromise]);});-it('should give access to the intercepted response body', async ({ page, server, isAndroid, isElectron, electronMajorVersion }) => {+it('RO-140 should give access to the intercepted response body', async ({ page, server, isAndroid, isElectron, electronMajorVersion }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');await page.goto(server.EMPTY_PAGE);@@ -175,7 +175,7 @@ it('should give access to the intercepted response body', async ({ page, server,await Promise.all([route.fulfill({ response }), evalPromise]);});-it('should intercept multipart/form-data request body', async ({ page, server, asset, browserName }) => {+it('RO-141 should intercept multipart/form-data request body', async ({ page, server, asset, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/14624' });it.fixme(browserName !== 'firefox');await page.goto(server.PREFIX + '/input/fileupload.html');@@ -194,7 +194,7 @@ it('should intercept multipart/form-data request body', async ({ page, server, aexpect(request.postData()).toContain(fs.readFileSync(filePath, 'utf8'));});-it('should fulfill intercepted response using alias', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {+it('RO-142 should fulfill intercepted response using alias', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');await page.route('**/*', async route => {@@ -206,7 +206,7 @@ it('should fulfill intercepted response using alias', async ({ page, server, isEexpect(response.headers()['content-type']).toContain('text/html');});-it('should support timeout option in route.fetch', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {+it('RO-143 should support timeout option in route.fetch', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');@@ -224,7 +224,7 @@ it('should support timeout option in route.fetch', async ({ page, server, isElecexpect(error.message).toContain(`Timeout 2000ms exceeded`);});-it('should not follow redirects when maxRedirects is set to 0 in route.fetch', async ({ page, server, isAndroid, isElectron, electronMajorVersion }) => {+it('RO-144 should not follow redirects when maxRedirects is set to 0 in route.fetch', async ({ page, server, isAndroid, isElectron, electronMajorVersion }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');@@ -239,7 +239,7 @@ it('should not follow redirects when maxRedirects is set to 0 in route.fetch', aexpect(await page.content()).toContain('hello');});-it('should intercept with url override', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {+it('RO-145 should intercept with url override', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');await page.route('**/*.html', async route => {@@ -251,7 +251,7 @@ it('should intercept with url override', async ({ page, server, isElectron, elecexpect((await response.body()).toString()).toContain('one-style.css');});-it('should intercept with post data override', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {+it('RO-146 should intercept with post data override', async ({ page, server, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');const requestPromise = server.waitForRequest('/empty.html');@@ -266,7 +266,7 @@ it('should intercept with post data override', async ({ page, server, isElectronexpect((await request.postBody).toString()).toBe(JSON.stringify({ 'foo': 'bar' }));});-it('request.postData is not null when fetching FormData with a Blob', {+it('RO-147 request.postData is not null when fetching FormData with a Blob', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/24077' }}, async ({ server, page, browserName, isElectron, electronMajorVersion, isAndroid }) => {it.skip(isElectron && electronMajorVersion < 31);@@ -303,7 +303,7 @@ it('request.postData is not null when fetching FormData with a Blob', {expect(postData).toContain('\r\nhello\r\n');});-it('should abort favicon requests if interception is enabled', async ({ page, server, browserName }) => {+it('RO-148 should abort favicon requests if interception is enabled', async ({ page, server, browserName }) => {let requestCount = 0;server.setRoute('/favicon.ico', (req, res) => {++requestCount;diff --git a/tests/page/page-route.spec.ts b/tests/page/page-route.spec.tsindex cc3a007e43..e7887a52ce 100644--- a/tests/page/page-route.spec.ts+++ b/tests/page/page-route.spec.ts@@ -19,7 +19,7 @@ import type * as http from 'http';import type { Route } from 'playwright-core';import { test as it, expect } from './pageTest';-it('should intercept @smoke', async ({ page, server }) => {+it('RO-001 should intercept @smoke', async ({ page, server }) => {let intercepted = false;await page.route('**/empty.html', (route, request) => {expect(route.request()).toBe(request);@@ -39,7 +39,7 @@ it('should intercept @smoke', async ({ page, server }) => {expect(intercepted).toBe(true);});-it('should unroute', async ({ page, server }) => {+it('RO-002 should unroute', async ({ page, server }) => {let intercepted = [];await page.route('**/*', route => {intercepted.push(1);@@ -72,7 +72,7 @@ it('should unroute', async ({ page, server }) => {expect(intercepted).toEqual([1]);});-it('should not support ? in glob pattern', async ({ page, server }) => {+it('RO-003 should not support ? in glob pattern', async ({ page, server }) => {server.setRoute('/index', (req, res) => res.end('index-no-hello'));server.setRoute('/index123hello', (req, res) => res.end('index123hello'));server.setRoute('/index?hello', (req, res) => res.end('index?hello'));@@ -99,7 +99,7 @@ it('should not support ? in glob pattern', async ({ page, server }) => {expect(await page.content()).toContain('index123hello');});-it('should work when POST is redirected with 302', async ({ page, server }) => {+it('RO-004 should work when POST is redirected with 302', async ({ page, server }) => {server.setRedirect('/rredirect', '/empty.html');await page.goto(server.EMPTY_PAGE);await page.route('**/*', route => route.continue());@@ -115,7 +115,7 @@ it('should work when POST is redirected with 302', async ({ page, server }) => {});// @see https://github.com/GoogleChrome/puppeteer/issues/3973-it('should work when header manipulation headers with redirect', async ({ page, server }) => {+it('RO-005 should work when header manipulation headers with redirect', async ({ page, server }) => {server.setRedirect('/rrredirect', '/empty.html');await page.route('**/*', route => {const headers = Object.assign({}, route.request().headers(), {@@ -127,7 +127,7 @@ it('should work when header manipulation headers with redirect', async ({ page,});// @see https://github.com/GoogleChrome/puppeteer/issues/4743-it('should be able to remove headers', async ({ page, server }) => {+it('RO-006 should be able to remove headers', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/*', async route => {const headers = { ...route.request().headers() };@@ -142,7 +142,7 @@ it('should be able to remove headers', async ({ page, server }) => {expect(serverRequest.headers.foo).toBe(undefined);});-it('should contain referer header', async ({ page, server }) => {+it('RO-007 should contain referer header', async ({ page, server }) => {const requests = [];await page.route('**/*', route => {requests.push(route.request());@@ -153,7 +153,7 @@ it('should contain referer header', async ({ page, server }) => {expect(requests[1].headers().referer).toContain('/one-style.html');});-it('should properly return navigation response when URL has cookies', async ({ page, server, isAndroid, isElectron, electronMajorVersion }) => {+it('RO-008 should properly return navigation response when URL has cookies', async ({ page, server, isAndroid, isElectron, electronMajorVersion }) => {it.skip(isAndroid, 'No isolated context');it.skip(isElectron && electronMajorVersion < 30, 'error: Browser context management is not supported.');@@ -167,7 +167,7 @@ it('should properly return navigation response when URL has cookies', async ({ pexpect(response.status()).toBe(200);});-it('should not override cookie header', async ({ page, server, browserName }) => {+it('RO-009 should not override cookie header', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16773' });await page.goto(server.EMPTY_PAGE);@@ -189,7 +189,7 @@ it('should not override cookie header', async ({ page, server, browserName }) =>expect.soft(serverReq.headers['cookie']).toBe('original=value');});-it('should show custom HTTP headers', async ({ page, server }) => {+it('RO-010 should show custom HTTP headers', async ({ page, server }) => {await page.setExtraHTTPHeaders({foo: 'bar'});@@ -202,7 +202,7 @@ it('should show custom HTTP headers', async ({ page, server }) => {});// @see https://github.com/GoogleChrome/puppeteer/issues/4337-it('should work with redirect inside sync XHR', async ({ page, server, browserName }) => {+it('RO-011 should work with redirect inside sync XHR', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28461' });it.fixme(browserName === 'webkit', 'No Network.requestIntercepted for the request');await page.goto(server.EMPTY_PAGE);@@ -222,7 +222,7 @@ it('should work with redirect inside sync XHR', async ({ page, server, browserNaawait continuePromise;});-it('should pause intercepted XHR until continue', async ({ page, server, browserName }) => {+it('RO-012 should pause intercepted XHR until continue', async ({ page, server, browserName }) => {it.fixme(browserName === 'webkit', 'Redirected request is not paused in WebKit');await page.goto(server.EMPTY_PAGE);@@ -250,7 +250,7 @@ it('should pause intercepted XHR until continue', async ({ page, server, browserexpect(status).toBe(200);});-it('should pause intercepted fetch request until continue', async ({ page, server }) => {+it('RO-013 should pause intercepted fetch request until continue', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let resolveRoute;const routePromise = new Promise(r => resolveRoute = r);@@ -274,7 +274,7 @@ it('should pause intercepted fetch request until continue', async ({ page, serveexpect(status).toBe(200);});-it('should work with custom referer headers', async ({ page, server, browserName, browserMajorVersion }) => {+it('RO-014 should work with custom referer headers', async ({ page, server, browserName, browserMajorVersion }) => {await page.setExtraHTTPHeaders({ 'referer': server.EMPTY_PAGE });await page.route('**/*', route => {// See https://github.com/microsoft/playwright/issues/8999@@ -288,7 +288,7 @@ it('should work with custom referer headers', async ({ page, server, browserNameexpect(response.ok()).toBe(true);});-it('should be abortable', async ({ page, server }) => {+it('RO-015 should be abortable', async ({ page, server }) => {await page.route(/\.css$/, route => route.abort());let failed = false;page.on('requestfailed', request => {@@ -301,7 +301,7 @@ it('should be abortable', async ({ page, server }) => {expect(failed).toBe(true);});-it('should be abortable with custom error codes', async ({ page, server, browserName, isMac, macVersion }) => {+it('RO-016 should be abortable with custom error codes', async ({ page, server, browserName, isMac, macVersion }) => {await page.route('**/*', route => route.abort('internetdisconnected'));let failedRequest = null;page.on('requestfailed', request => failedRequest = request);@@ -315,7 +315,7 @@ it('should be abortable with custom error codes', async ({ page, server, browserexpect(failedRequest.failure().errorText).toBe('net::ERR_INTERNET_DISCONNECTED');});-it('should not throw if request was cancelled by the page', async ({ page, server }) => {+it('RO-017 should not throw if request was cancelled by the page', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28490' });let interceptCallback;const interceptPromise = new Promise<Route>(f => interceptCallback = f);@@ -333,7 +333,7 @@ it('should not throw if request was cancelled by the page', async ({ page, serveawait route.abort(); // Should not throw.});-it('should send referer', async ({ page, server }) => {+it('RO-018 should send referer', async ({ page, server }) => {await page.setExtraHTTPHeaders({referer: 'http://google.com/'});@@ -345,7 +345,7 @@ it('should send referer', async ({ page, server }) => {expect(request.headers['referer']).toBe('http://google.com/');});-it('should fail navigation when aborting main resource', async ({ page, server, browserName, isMac, macVersion, isBidi }) => {+it('RO-019 should fail navigation when aborting main resource', async ({ page, server, browserName, isMac, macVersion, isBidi }) => {await page.route('**/*', route => route.abort());let error = null;await page.goto(server.EMPTY_PAGE).catch(e => error = e);@@ -360,7 +360,7 @@ it('should fail navigation when aborting main resource', async ({ page, server,expect(error.message).toContain('net::ERR_FAILED');});-it('should not work with redirects', async ({ page, server }) => {+it('RO-020 should not work with redirects', async ({ page, server }) => {const intercepted = [];await page.route('**/*', route => {void route.continue();@@ -395,7 +395,7 @@ it('should not work with redirects', async ({ page, server }) => {expect(chain[i].redirectedTo()).toBe(i ? chain[i - 1] : null);});-it('should chain fallback w/ dynamic URL', async ({ page, server }) => {+it('RO-021 should chain fallback w/ dynamic URL', async ({ page, server }) => {const intercepted = [];await page.route('**/bar', route => {intercepted.push(1);@@ -415,7 +415,7 @@ it('should chain fallback w/ dynamic URL', async ({ page, server }) => {expect(intercepted).toEqual([3, 2, 1]);});-it('should work with redirects for subresources', async ({ page, server }) => {+it('RO-022 should work with redirects for subresources', async ({ page, server }) => {const intercepted = [];await page.route('**/*', route => {void route.continue();@@ -443,7 +443,7 @@ it('should work with redirects for subresources', async ({ page, server }) => {expect(r).toBe(null);});-it('should work with equal requests', async ({ page, server }) => {+it('RO-023 should work with equal requests', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let responseCount = 1;server.setRoute('/zzz', (req, res) => res.end((responseCount++) * 11 + ''));@@ -460,7 +460,7 @@ it('should work with equal requests', async ({ page, server }) => {expect(results).toEqual(['11', 'FAILED', '22']);});-it('should navigate to dataURL and not fire dataURL requests', async ({ page, server }) => {+it('RO-024 should navigate to dataURL and not fire dataURL requests', async ({ page, server }) => {const requests = [];await page.route('**/*', route => {requests.push(route.request());@@ -472,7 +472,7 @@ it('should navigate to dataURL and not fire dataURL requests', async ({ page, seexpect(requests.length).toBe(0);});-it('should be able to fetch dataURL and not fire dataURL requests', async ({ page, server }) => {+it('RO-025 should be able to fetch dataURL and not fire dataURL requests', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const requests = [];await page.route('**/*', route => {@@ -485,7 +485,7 @@ it('should be able to fetch dataURL and not fire dataURL requests', async ({ pagexpect(requests.length).toBe(0);});-it('should navigate to URL with hash and and fire requests without hash', async ({ page, server }) => {+it('RO-026 should navigate to URL with hash and and fire requests without hash', async ({ page, server }) => {const requests = [];await page.route('**/*', route => {requests.push(route.request());@@ -498,7 +498,7 @@ it('should navigate to URL with hash and and fire requests without hash', asyncexpect(requests[0].url()).toBe(server.EMPTY_PAGE);});-it('should work with encoded server', async ({ page, server }) => {+it('RO-027 should work with encoded server', async ({ page, server }) => {// The requestWillBeSent will report encoded URL, whereas interception will// report URL as-is. @see crbug.com/759388await page.route('**/*', route => route.continue());@@ -506,14 +506,14 @@ it('should work with encoded server', async ({ page, server }) => {expect(response.status()).toBe(404);});-it('should work with badly encoded server', async ({ page, server }) => {+it('RO-028 should work with badly encoded server', async ({ page, server }) => {server.setRoute('/malformed?rnd=%911', (req, res) => res.end());await page.route('**/*', route => route.continue());const response = await page.goto(server.PREFIX + '/malformed?rnd=%911');expect(response.status()).toBe(200);});-it('should work with encoded server - 2', async ({ page, server, browserName }) => {+it('RO-029 should work with encoded server - 2', async ({ page, server, browserName }) => {// The requestWillBeSent will report URL as-is, whereas interception will// report encoded URL for stylesheet. @see crbug.com/759388await page.goto(server.EMPTY_PAGE);@@ -527,7 +527,7 @@ it('should work with encoded server - 2', async ({ page, server, browserName })expect((await requests[0].response()).status()).toBe(404);});-it('should not throw "Invalid Interception Id" if the request was cancelled', async ({ page, server }) => {+it('RO-030 should not throw "Invalid Interception Id" if the request was cancelled', async ({ page, server }) => {await page.setContent('<iframe></iframe>');let route = null;await page.route('**/*', async r => route = r);@@ -541,7 +541,7 @@ it('should not throw "Invalid Interception Id" if the request was cancelled', asexpect(error).toBe(null);});-it('should intercept main resource during cross-process navigation', async ({ page, server }) => {+it('RO-031 should intercept main resource during cross-process navigation', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let intercepted = false;await page.route(server.CROSS_PROCESS_PREFIX + '/empty.html', route => {@@ -553,7 +553,7 @@ it('should intercept main resource during cross-process navigation', async ({ paexpect(intercepted).toBe(true);});-it('should fulfill with redirect status', async ({ page, server, browserName }) => {+it('RO-032 should fulfill with redirect status', async ({ page, server, browserName }) => {it.fixme(browserName === 'webkit', 'in WebKit the redirects are handled by the network stack and we intercept before');await page.goto(server.PREFIX + '/title.html');@@ -576,7 +576,7 @@ it('should fulfill with redirect status', async ({ page, server, browserName })expect(text).toBe('foo');});-it('should not fulfill with redirect status', async ({ page, server, browserName }) => {+it('RO-033 should not fulfill with redirect status', async ({ page, server, browserName }) => {it.skip(browserName !== 'webkit', 'we should support fulfill with redirect in webkit and delete this test');await page.goto(server.PREFIX + '/empty.html');@@ -610,7 +610,7 @@ it('should not fulfill with redirect status', async ({ page, server, browserName}});-it('should support cors with GET', async ({ page, server, browserName, channel }) => {+it('RO-034 should support cors with GET', async ({ page, server, browserName, channel }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/cars*', async (route, request) => {const headers = { 'access-control-allow-origin': request.url().endsWith('allow') ? '*' : 'none' };@@ -644,7 +644,7 @@ it('should support cors with GET', async ({ page, server, browserName, channel }}});-it('should add Access-Control-Allow-Origin by default when fulfill', async ({ page, server }) => {+it('RO-035 should add Access-Control-Allow-Origin by default when fulfill', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/cars', async route => {await route.fulfill({@@ -670,7 +670,7 @@ it('should add Access-Control-Allow-Origin by default when fulfill', async ({ paexpect(await response.headerValue('Access-Control-Allow-Origin')).toBe(server.PREFIX);});-it('should allow null origin for about:blank', async ({ page, server, browserName }) => {+it('RO-036 should allow null origin for about:blank', async ({ page, server, browserName }) => {await page.route('**/something', async route => {await route.fulfill({contentType: 'text/plain',@@ -693,7 +693,7 @@ it('should allow null origin for about:blank', async ({ page, server, browserNamexpect(await response.headerValue('Access-Control-Allow-Origin')).toBe('null');});-it('should respect cors overrides', async ({ page, server, browserName, isAndroid }) => {+it('RO-037 should respect cors overrides', async ({ page, server, browserName, isAndroid }) => {it.fail(isAndroid, 'no cors error in android emulator');await page.goto(server.EMPTY_PAGE);server.setRoute('/something', (request, response) => {@@ -737,7 +737,7 @@ it('should respect cors overrides', async ({ page, server, browserName, isAndroi}});-it('should not auto-intercept non-preflight OPTIONS without network interception', async ({ page, server, isAndroid, browserName }) => {+it('RO-038 should not auto-intercept non-preflight OPTIONS without network interception', async ({ page, server, isAndroid, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/20469' });it.fixme(isAndroid);@@ -778,7 +778,7 @@ it('should not auto-intercept non-preflight OPTIONS without network interception});// Make sure this runs in a new context as preflight results could be cached.-it('should not auto-intercept non-preflight OPTIONS with network interception', async ({ page, server, isAndroid, browserName, isBidi }) => {+it('RO-039 should not auto-intercept non-preflight OPTIONS with network interception', async ({ page, server, isAndroid, browserName, isBidi }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/20469' });it.fixme(isAndroid);@@ -823,7 +823,7 @@ it('should not auto-intercept non-preflight OPTIONS with network interception',}});-it('should support cors with POST', async ({ page, server }) => {+it('RO-040 should support cors with POST', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/cars', async route => {await route.fulfill({@@ -845,7 +845,7 @@ it('should support cors with POST', async ({ page, server }) => {expect(resp).toEqual(['electric', 'gas']);});-it('should support cors with credentials', async ({ page, server }) => {+it('RO-041 should support cors with credentials', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/cars', async route => {await route.fulfill({@@ -871,7 +871,7 @@ it('should support cors with credentials', async ({ page, server }) => {expect(resp).toEqual(['electric', 'gas']);});-it('should not abort preflighted cross-origin redirect when a route is registered', {+it('RO-042 should not abort preflighted cross-origin redirect when a route is registered', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43242' },}, async ({ page, server, isAndroid }) => {it.skip(isAndroid, 'No cross-process on Android');@@ -907,7 +907,7 @@ it('should not abort preflighted cross-origin redirect when a route is registereexpect(result).toBe('200 file contents');});-it('should reject cors with disallowed credentials', async ({ page, server }) => {+it('RO-043 should reject cors with disallowed credentials', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/cars', async route => {await route.fulfill({@@ -939,7 +939,7 @@ it('should reject cors with disallowed credentials', async ({ page, server }) =>expect(error).toBeTruthy();});-it('should support cors for different methods', async ({ page, server }) => {+it('RO-044 should support cors for different methods', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.route('**/cars', async (route, request) => {await route.fulfill({@@ -977,7 +977,7 @@ it('should support cors for different methods', async ({ page, server }) => {}});-it('should support the times parameter with route matching', async ({ page, server }) => {+it('RO-045 should support the times parameter with route matching', async ({ page, server }) => {const intercepted = [];await page.route('**/empty.html', route => {intercepted.push(1);@@ -989,7 +989,7 @@ it('should support the times parameter with route matching', async ({ page, servexpect(intercepted).toHaveLength(1);});-it('should work if handler with times parameter was removed from another handler', async ({ page, server }) => {+it('RO-046 should work if handler with times parameter was removed from another handler', async ({ page, server }) => {const intercepted = [];const handler = async route => {intercepted.push('first');@@ -1008,7 +1008,7 @@ it('should work if handler with times parameter was removed from another handlerexpect(intercepted).toEqual(['second']);});-it('should support async handler w/ times', async ({ page, server }) => {+it('RO-047 should support async handler w/ times', async ({ page, server }) => {await page.route('**/empty.html', async route => {await new Promise(f => setTimeout(f, 100));await route.fulfill({@@ -1022,7 +1022,7 @@ it('should support async handler w/ times', async ({ page, server }) => {await expect(page.locator('body')).not.toHaveText('intercepted');});-it('route abort with times: 1 should not affect second sequential fetch', async ({ page, server, browserName, browserMajorVersion }) => {+it('RO-048 route abort with times: 1 should not affect second sequential fetch', async ({ page, server, browserName, browserMajorVersion }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41802' });it.skip(browserName === 'chromium' && browserMajorVersion < 155, 'Chromium drops a request that is intercepted while Fetch.disable is being processed; fix is not rolled yet');@@ -1048,7 +1048,7 @@ it('route abort with times: 1 should not affect second sequential fetch', asyncexpect(results).toEqual(['aborted', '200']);});-it('should contain raw request header', async ({ page, server }) => {+it('RO-049 should contain raw request header', async ({ page, server }) => {let headers: any;await page.route('**/*', async route => {headers = await route.request().allHeaders();@@ -1058,7 +1058,7 @@ it('should contain raw request header', async ({ page, server }) => {expect(headers.accept).toBeTruthy();});-it('should contain sec-fetch headers in route', async ({ page, server, browserName }) => {+it('RO-050 should contain sec-fetch headers in route', async ({ page, server, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42620' });it.fail(browserName === 'chromium', 'Fetch.requestPaused fires before Chromium attaches Fetch Metadata headers');@@ -1099,7 +1099,7 @@ it('should contain sec-fetch headers in route', async ({ page, server, browserNa}});-it('should contain raw response header', async ({ page, server }) => {+it('RO-051 should contain raw response header', async ({ page, server }) => {let request: any;await page.route('**/*', async route => {request = route.request();@@ -1111,7 +1111,7 @@ it('should contain raw response header', async ({ page, server }) => {expect(headers['content-type']).toBeTruthy();});-it('should contain raw response header after fulfill', async ({ page, server }) => {+it('RO-052 should contain raw response header after fulfill', async ({ page, server }) => {let request: any;await page.route('**/*', async route => {request = route.request();@@ -1128,7 +1128,7 @@ it('should contain raw response header after fulfill', async ({ page, server })});for (const method of ['fulfill', 'continue', 'fallback', 'abort'] as const) {- it(`route.${method} should throw if called twice`, async ({ page, server }) => {+ it(`RO-053 route.${method} should throw if called twice`, async ({ page, server }) => {let resolve;const resolvePromise = new Promise<Route>(f => resolve = f);await page.route('**/*', resolve);@@ -1140,7 +1140,7 @@ for (const method of ['fulfill', 'continue', 'fallback', 'abort'] as const) {});}-it('should intercept when postData is more than 1MB', async ({ page, server, isAndroid }) => {+it('RO-054 should intercept when postData is more than 1MB', async ({ page, server, isAndroid }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22753' });it.fixme(isAndroid);@@ -1159,7 +1159,7 @@ it('should intercept when postData is more than 1MB', async ({ page, server, isAexpect(await interceptionPromise).toBe(POST_BODY);});-it('should be able to intercept every navigation to a page controlled by service worker', async ({ page, server, isElectron, browserName }) => {+it('RO-055 should be able to intercept every navigation to a page controlled by service worker', async ({ page, server, isElectron, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/33561' });it.skip(isElectron);@@ -1176,7 +1176,7 @@ it('should be able to intercept every navigation to a page controlled by serviceexpect(interceptions).toBe(2);});-it('should respect URLPattern ignoreCase', async ({ page, server }) => {+it('RO-056 should respect URLPattern ignoreCase', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42918' });it.skip(globalThis.URLPattern === undefined, 'URLPattern is not supported in this environment');diff --git a/tests/page/page-screenshot.spec.ts b/tests/page/page-screenshot.spec.tsindex a386f0692b..d77080c5da 100644--- a/tests/page/page-screenshot.spec.ts+++ b/tests/page/page-screenshot.spec.ts@@ -28,14 +28,14 @@ it.describe('page screenshot', () => {it.skip(({ browserName, headless }) => browserName === 'firefox' && !headless, 'Firefox headed produces a different image.');it.skip(({ isAndroid }) => isAndroid, 'Different viewport');- it('should work @smoke', async ({ page, server }) => {+ it('SS-001 should work @smoke', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const screenshot = await page.screenshot();expect(screenshot).toMatchSnapshot('screenshot-sanity.png');});- it('should not capture blinking caret by default', async ({ page, server, browserName }) => {+ it('SS-002 should not capture blinking caret by default', async ({ page, server, browserName }) => {await page.setContent(`<!-- Refer to stylesheet from other origin. Accessing thisstylesheet rules will throw.@@ -62,7 +62,7 @@ it.describe('page screenshot', () => {}});- it('should capture blinking caret if explicitly asked for', async ({ page, server, browserName }) => {+ it('SS-003 should capture blinking caret if explicitly asked for', async ({ page, server, browserName }) => {it.skip(browserName === 'firefox', 'browser-level screenshot API in firefox does not capture caret');await page.setContent(`@@ -93,7 +93,7 @@ it.describe('page screenshot', () => {expect(hasDifferentScreenshots).toBe(true);});- it('should capture blinking caret in shadow dom', async ({ page, browserName }) => {+ it('SS-004 should capture blinking caret in shadow dom', async ({ page, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16732' });await page.addScriptTag({content: `@@ -137,7 +137,7 @@ it.describe('page screenshot', () => {expect(hasDifferentScreenshots).toBe(false);});- it('should clip rect', async ({ page, server }) => {+ it('SS-005 should clip rect', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const screenshot = await page.screenshot({@@ -151,7 +151,7 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-clip-rect.png');});- it('should clip rect with fullPage', async ({ page, server }) => {+ it('SS-006 should clip rect with fullPage', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');await page.evaluate(() => window.scrollBy(150, 200));@@ -167,7 +167,7 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-clip-rect.png');});- it('should clip elements to the viewport', async ({ page, server }) => {+ it('SS-007 should clip elements to the viewport', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const screenshot = await page.screenshot({@@ -181,7 +181,7 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-offscreen-clip.png');});- it('should throw on clip outside the viewport', async ({ page, server }) => {+ it('SS-008 should throw on clip outside the viewport', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const screenshotError = await page.screenshot({@@ -195,7 +195,7 @@ it.describe('page screenshot', () => {expect(screenshotError.message).toContain('Clipped area is either empty or outside the resulting image');});- it('should throw on a negative clip size', async ({ page, server }) => {+ it('SS-009 should throw on a negative clip size', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const screenshotError = await page.screenshot({@@ -209,7 +209,7 @@ it.describe('page screenshot', () => {expect(screenshotError.message).toContain('Expected options.clip.width to be greater than 0');});- it('should run in parallel', async ({ page, server }) => {+ it('SS-010 should run in parallel', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const promises = [];@@ -227,7 +227,7 @@ it.describe('page screenshot', () => {expect(screenshots[1]).toMatchSnapshot('grid-cell-1.png');});- it('should take fullPage screenshots', async ({ page, server }) => {+ it('SS-011 should take fullPage screenshots', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const screenshot = await page.screenshot({@@ -236,7 +236,7 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-grid-fullpage.png');});- it('should take fullPage screenshots and mask elements outside of it', async ({ page, server }) => {+ it('SS-012 should take fullPage screenshots and mask elements outside of it', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30770' });await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');@@ -247,7 +247,7 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-grid-fullpage-mask-outside-viewport.png');});- it('should restore viewport after fullPage screenshot', async ({ page, server }) => {+ it('SS-013 should restore viewport after fullPage screenshot', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const screenshot = await page.screenshot({ fullPage: true });@@ -255,7 +255,7 @@ it.describe('page screenshot', () => {await verifyViewport(page, 500, 500);});- it('should allow transparency', async ({ page, browserName, isBidi }) => {+ it('SS-014 should allow transparency', async ({ page, browserName, isBidi }) => {it.fail(browserName === 'firefox' || isBidi);await page.setViewportSize({ width: 300, height: 300 });@@ -272,14 +272,14 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('transparent.png');});- it('should render white background on jpeg file', async ({ page, server, isElectron }) => {+ it('SS-015 should render white background on jpeg file', async ({ page, server, isElectron }) => {await page.setViewportSize({ width: 300, height: 300 });await page.goto(server.EMPTY_PAGE);const screenshot = await page.screenshot({ omitBackground: true, type: 'jpeg' });expect(screenshot).toMatchSnapshot('white.jpg');});- it('should produce a valid webp screenshot', async ({ page, server }) => {+ it('SS-016 should produce a valid webp screenshot', async ({ page, server }) => {await page.setViewportSize({ width: 300, height: 300 });await page.goto(server.EMPTY_PAGE);await page.evaluate(() => (document.body.style.background = 'rgb(255, 0, 0)'));@@ -287,7 +287,7 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('red.webp');});- it('path option should detect webp', async ({ page, server }, testInfo) => {+ it('SS-017 path option should detect webp', async ({ page, server }, testInfo) => {await page.setViewportSize({ width: 300, height: 300 });await page.goto(server.EMPTY_PAGE);await page.evaluate(() => (document.body.style.background = 'rgb(255, 0, 0)'));@@ -297,20 +297,20 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('red.webp');});- it('quality option should work for webp', async ({ page, server }) => {+ it('SS-018 quality option should work for webp', async ({ page, server }) => {await page.goto(server.PREFIX + '/grid.html');const lowQuality = await page.screenshot({ type: 'webp', quality: 0 });const highQuality = await page.screenshot({ type: 'webp', quality: 100 });expect(lowQuality.byteLength).toBeLessThan(highQuality.byteLength);});- it('webp screenshots should be lossless by default', async ({ page, server }) => {+ it('SS-019 webp screenshots should be lossless by default', async ({ page, server }) => {await page.goto(server.PREFIX + '/grid.html');expect(utils.isLosslessWebp(await page.screenshot({ type: 'webp' }))).toBe(true);expect(utils.isLosslessWebp(await page.screenshot({ type: 'webp', quality: 80 }))).toBe(false);});- it('should allow transparency with webp', async ({ page, browserName, isBidi }) => {+ it('SS-020 should allow transparency with webp', async ({ page, browserName, isBidi }) => {it.skip(isBidi, 'transparency is not supported via WebDriver BiDi');it.fail(browserName === 'firefox');@@ -334,12 +334,12 @@ it.describe('page screenshot', () => {expect(pixel(150, 250)[3]).toBe(0);});- it('quality option should throw for webp when out of range', async ({ page }) => {+ it('SS-021 quality option should throw for webp when out of range', async ({ page }) => {const error = await page.screenshot({ type: 'webp', quality: 101 }).catch(e => e);expect(error.message).toContain('Expected options.quality to be between 0 and 100');});- it('should work with odd clip size on Retina displays', async ({ page, isElectron }) => {+ it('SS-022 should work with odd clip size on Retina displays', async ({ page, isElectron }) => {it.skip(isElectron, 'electron does not set device scale factor to 1');const screenshot = await page.screenshot({@@ -353,7 +353,7 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-clip-odd-size.png');});- it('should work for canvas', async ({ page, server }) => {+ it('SS-023 should work for canvas', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/screenshots/canvas.html');const screenshot = await page.screenshot();@@ -361,7 +361,7 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-canvas.png', { maxDiffPixels: 4 });});- it('should capture canvas changes', async ({ page, isElectron }) => {+ it('SS-024 should capture canvas changes', async ({ page, isElectron }) => {it.skip(isElectron);await page.goto('data:text/html,<canvas></canvas>');await page.evaluate(() => {@@ -391,7 +391,7 @@ it.describe('page screenshot', () => {}});- it('should work for webgl', async ({ page, server, browserName, platform, isElectron }) => {+ it('SS-025 should work for webgl', async ({ page, server, browserName, platform, isElectron }) => {it.skip(browserName === 'webkit' && platform === 'darwin' && os.arch() === 'x64', 'WebGL is not available on Intel macOS - https://bugs.webkit.org/show_bug.cgi?id=278277');it.skip(isElectron, 'different rendering in electron');@@ -401,14 +401,14 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-webgl.png');});- it('should work for translateZ', async ({ page, server }) => {+ it('SS-026 should work for translateZ', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/screenshots/translateZ.html');const screenshot = await page.screenshot();expect(screenshot).toMatchSnapshot('screenshot-translateZ.png');});- it('should work while navigating', async ({ page, server }) => {+ it('SS-027 should work while navigating', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/redirectloop1.html');for (let i = 0; i < 10; i++) {@@ -421,13 +421,13 @@ it.describe('page screenshot', () => {}});- it('should work with iframe in shadow', async ({ page, server }) => {+ it('SS-028 should work with iframe in shadow', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid-iframe-in-shadow.html');expect(await page.screenshot()).toMatchSnapshot('screenshot-iframe.png');});- it('path option should work', async ({ page, server }, testInfo) => {+ it('SS-029 path option should work', async ({ page, server }, testInfo) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const outputPath = testInfo.outputPath('screenshot.png');@@ -435,7 +435,7 @@ it.describe('page screenshot', () => {expect(await fs.promises.readFile(outputPath)).toMatchSnapshot('screenshot-sanity.png');});- it('path option should create subdirectories', async ({ page, server }, testInfo) => {+ it('SS-030 path option should create subdirectories', async ({ page, server }, testInfo) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const outputPath = testInfo.outputPath(path.join('these', 'are', 'directories', 'screenshot.png'));@@ -443,7 +443,7 @@ it.describe('page screenshot', () => {expect(await fs.promises.readFile(outputPath)).toMatchSnapshot('screenshot-sanity.png');});- it('path option should detect jpeg', {+ it('SS-031 path option should detect jpeg', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43323' },}, async ({ page, server, isElectron }, testInfo) => {await page.setViewportSize({ width: 300, height: 300 });@@ -457,35 +457,35 @@ it.describe('page screenshot', () => {expect(await fs.promises.readFile(upperCasePath)).toMatchSnapshot('white.jpg');});- it('path option should throw for unsupported mime type', async ({ page }) => {+ it('SS-032 path option should throw for unsupported mime type', async ({ page }) => {const error = await page.screenshot({ path: 'file.txt' }).catch(e => e);expect(error.message).toContain('path: unsupported mime type "text/plain"');});- it('quality option should throw for png', async ({ page }) => {+ it('SS-033 quality option should throw for png', async ({ page }) => {const error = await page.screenshot({ quality: 10 }).catch(e => e);expect(error.message).toContain('options.quality is unsupported for the png');});- it('zero quality option should throw for png', async ({ page }) => {+ it('SS-034 zero quality option should throw for png', async ({ page }) => {const error = await page.screenshot({ quality: 0, type: 'png' }).catch(e => e);expect(error.message).toContain('options.quality is unsupported for the png');});- it('quality option should work for jpeg', async ({ page, server }) => {+ it('SS-035 quality option should work for jpeg', async ({ page, server }) => {await page.goto(server.PREFIX + '/grid.html');const zeroQuality = await page.screenshot({ type: 'jpeg', quality: 0 });const highQuality = await page.screenshot({ type: 'jpeg', quality: 100 });expect(zeroQuality.byteLength).toBeLessThan(highQuality.byteLength);});- it('should prefer type over extension', async ({ page }, testInfo) => {+ it('SS-036 should prefer type over extension', async ({ page }, testInfo) => {const outputPath = testInfo.outputPath('file.png');const buffer = await page.screenshot({ path: outputPath, type: 'jpeg' });expect([buffer[0], buffer[1], buffer[2]]).toEqual([0xFF, 0xD8, 0xFF]);});- it('should not issue resize event', async ({ page, server }) => {+ it('SS-037 should not issue resize event', async ({ page, server }) => {await page.goto(server.PREFIX + '/grid.html');let resizeTriggered = false;await page.exposeFunction('resize', () => {@@ -498,7 +498,7 @@ it.describe('page screenshot', () => {expect(resizeTriggered).toBeFalsy();});- it('should work with Array deleted', async ({ page, server }) => {+ it('SS-038 should work with Array deleted', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');await page.evaluate(() => delete window.Array);@@ -506,7 +506,7 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-grid-fullpage.png');});- it('should take fullPage screenshots during navigation', async ({ page, server }) => {+ it('SS-039 should take fullPage screenshots during navigation', async ({ page, server }) => {it.slow();await page.setViewportSize({ width: 500, height: 500 });@@ -526,7 +526,7 @@ it.describe('page screenshot', () => {});it.describe('mask option', () => {- it('should work', async ({ page, server }) => {+ it('SS-040 should work', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');expect(await page.screenshot({@@ -534,7 +534,7 @@ it.describe('page screenshot', () => {})).toMatchSnapshot('mask-should-work.png');});- it('should work with locator', async ({ page, server }) => {+ it('SS-041 should work with locator', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const bodyLocator = page.locator('body');@@ -543,7 +543,7 @@ it.describe('page screenshot', () => {})).toMatchSnapshot('mask-should-work-with-locator.png');});- it('should work with elementhandle', async ({ page, server }) => {+ it('SS-042 should work with elementhandle', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const bodyHandle = await page.$('body');@@ -552,7 +552,7 @@ it.describe('page screenshot', () => {})).toMatchSnapshot('mask-should-work-with-elementhandle.png');});- it('should mask multiple elements', async ({ page, server }) => {+ it('SS-043 should mask multiple elements', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');expect(await page.screenshot({@@ -563,7 +563,7 @@ it.describe('page screenshot', () => {})).toMatchSnapshot('should-mask-multiple-elements.png');});- it('should mask inside iframe', async ({ page, server }) => {+ it('SS-044 should mask inside iframe', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');await attachFrame(page, 'frame1', server.PREFIX + '/grid.html');@@ -576,7 +576,7 @@ it.describe('page screenshot', () => {})).toMatchSnapshot('should-mask-inside-iframe.png');});- it('should mask in parallel', async ({ page, server }) => {+ it('SS-045 should mask in parallel', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await attachFrame(page, 'frame1', server.PREFIX + '/grid.html');await attachFrame(page, 'frame2', server.PREFIX + '/grid.html');@@ -593,7 +593,7 @@ it.describe('page screenshot', () => {expect(screenshots[1]).toMatchSnapshot('should-mask-in-parallel-2.png');});- it('should remove mask after screenshot', async ({ page, server }) => {+ it('SS-046 should remove mask after screenshot', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');const screenshot1 = await page.screenshot();@@ -604,7 +604,7 @@ it.describe('page screenshot', () => {expect(screenshot1.equals(screenshot2)).toBe(true);});- it('should work when subframe has stalled navigation', async ({ page, server }) => {+ it('SS-047 should work when subframe has stalled navigation', async ({ page, server }) => {let cb;const routeReady = new Promise<Route>(f => cb = f);await page.route('**/subframe.html', cb); // Stalling subframe.@@ -618,7 +618,7 @@ it.describe('page screenshot', () => {await done;});- it('should work when subframe used document.open after a weird url', async ({ page, server }) => {+ it('SS-048 should work when subframe used document.open after a weird url', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.evaluate(() => {const iframe = document.createElement('iframe');@@ -631,7 +631,7 @@ it.describe('page screenshot', () => {await page.screenshot({ mask: [page.locator('non-existent')] });});- it('should work when mask color is not pink #F0F', async ({ page, server }) => {+ it('SS-049 should work when mask color is not pink #F0F', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');expect(await page.screenshot({@@ -640,7 +640,7 @@ it.describe('page screenshot', () => {})).toMatchSnapshot('mask-color-should-work.png');});- it('should hide elements based on attr', async ({ page, server }) => {+ it('SS-050 should hide elements based on attr', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');await page.locator('div').nth(5).evaluate(element => {@@ -655,7 +655,7 @@ it.describe('page screenshot', () => {expect(visibility).toBe('');});- it('should remove elements based on attr', async ({ page, server }) => {+ it('SS-051 should remove elements based on attr', async ({ page, server }) => {await page.setViewportSize({ width: 500, height: 500 });await page.goto(server.PREFIX + '/grid.html');await page.locator('div').nth(5).evaluate(element => {@@ -680,7 +680,7 @@ declare global {}it.describe('page screenshot animations', () => {- it('should not capture infinite css animation', async ({ page, server }) => {+ it('SS-052 should not capture infinite css animation', async ({ page, server }) => {await page.goto(server.PREFIX + '/rotate-z.html');const div = page.locator('div');const screenshot = await div.screenshot({@@ -695,7 +695,7 @@ it.describe('page screenshot animations', () => {}});- it('should not capture pseudo element css animation', async ({ page, server }) => {+ it('SS-053 should not capture pseudo element css animation', async ({ page, server }) => {await page.goto(server.PREFIX + '/rotate-pseudo.html');const div = page.locator('div');const screenshot = await div.screenshot({@@ -710,7 +710,7 @@ it.describe('page screenshot animations', () => {}});- it('should not capture css animations in shadow DOM', async ({ page, server, isAndroid }) => {+ it('SS-054 should not capture css animations in shadow DOM', async ({ page, server, isAndroid }) => {it.skip(isAndroid, 'Different viewport');await page.goto(server.PREFIX + '/rotate-z-shadow-dom.html');const screenshot = await page.screenshot({@@ -725,7 +725,7 @@ it.describe('page screenshot animations', () => {}});- it('should stop animations that happen right before screenshot', async ({ page, server, mode, isAndroid }) => {+ it('SS-055 should stop animations that happen right before screenshot', async ({ page, server, mode, isAndroid }) => {it.skip(mode !== 'default');it.skip(isAndroid, 'Different viewport');await page.goto(server.PREFIX + '/rotate-z.html');@@ -745,7 +745,7 @@ it.describe('page screenshot animations', () => {expect(comparePNGs(buffer1, buffer2)).toBe(null);});- it('should resume infinite animations', async ({ page, server }) => {+ it('SS-056 should resume infinite animations', async ({ page, server }) => {await page.goto(server.PREFIX + '/rotate-z.html');await page.screenshot({animations: 'disabled',@@ -756,7 +756,7 @@ it.describe('page screenshot animations', () => {expect(comparePNGs(buffer1, buffer2, { maxDiffPixels: 50 })).not.toBe(null);});- it('should not capture infinite web animations', async ({ page, server }) => {+ it('SS-057 should not capture infinite web animations', async ({ page, server }) => {await page.goto(server.PREFIX + '/web-animation.html');const div = page.locator('div');const screenshot = await div.screenshot({@@ -776,7 +776,7 @@ it.describe('page screenshot animations', () => {expect(comparePNGs(buffer1, buffer2, { maxDiffPixels: 50 })).not.toBe(null);});- it('should fire transitionend for finite transitions', async ({ page, server, browserName, platform }) => {+ it('SS-058 should fire transitionend for finite transitions', async ({ page, server, browserName, platform }) => {await page.goto(server.PREFIX + '/css-transition.html');const div = page.locator('div');await div.evaluate(el => {@@ -802,7 +802,7 @@ it.describe('page screenshot animations', () => {expect(await page.evaluate(() => window['__TRANSITION_END'])).toBe(true);});- it('should capture screenshots after layoutchanges in transitionend event', async ({ page, server, browserName, platform }) => {+ it('SS-059 should capture screenshots after layoutchanges in transitionend event', async ({ page, server, browserName, platform }) => {await page.goto(server.PREFIX + '/css-transition.html');const div = page.locator('div');await div.evaluate(el => {@@ -840,7 +840,7 @@ it.describe('page screenshot animations', () => {expect(screenshot1.equals(screenshot2)).toBe(true);});- it('should not change animation with playbackRate equal to 0', async ({ page, server, isAndroid }) => {+ it('SS-060 should not change animation with playbackRate equal to 0', async ({ page, server, isAndroid }) => {it.skip(isAndroid, 'Different viewport');await page.goto(server.PREFIX + '/rotate-z.html');await page.evaluate(async () => {@@ -867,7 +867,7 @@ it.describe('page screenshot animations', () => {});});- it('should trigger particular events for css transitions', async ({ page, server }) => {+ it('SS-061 should trigger particular events for css transitions', async ({ page, server }) => {await page.goto(server.PREFIX + '/css-transition.html');const div = page.locator('div');await div.evaluate(async el => {@@ -891,7 +891,7 @@ it.describe('page screenshot animations', () => {]);});- it('should trigger particular events for INfinite css animation', async ({ page, server }) => {+ it('SS-062 should trigger particular events for INfinite css animation', async ({ page, server }) => {await page.goto(server.PREFIX + '/rotate-z.html');const div = page.locator('div');await div.evaluate(async el => {@@ -915,7 +915,7 @@ it.describe('page screenshot animations', () => {]);});- it('should trigger particular events for finite css animation', async ({ page, server }) => {+ it('SS-063 should trigger particular events for finite css animation', async ({ page, server }) => {await page.goto(server.PREFIX + '/rotate-z.html');const div = page.locator('div');await div.evaluate(async el => {@@ -943,7 +943,7 @@ it.describe('page screenshot animations', () => {]);});- it('should wait for fonts to load', async ({ page, server, isWindows, isAndroid }) => {+ it('SS-064 should wait for fonts to load', async ({ page, server, isWindows, isAndroid }) => {it.fixme(isWindows, 'This requires a windows-specific test expectations. https://github.com/microsoft/playwright/issues/12707');it.skip(isAndroid, 'Different viewport');await page.setViewportSize({ width: 500, height: 500 });@@ -971,7 +971,7 @@ it.describe('page screenshot animations', () => {});});-it('should throw if screenshot size is too large', async ({ page, browserName, isMac, isBidi }) => {+it('SS-065 should throw if screenshot size is too large', async ({ page, browserName, isMac, isBidi }) => {const maxSize = browserName === 'firefox' && isBidi ? 65535 : 32767;it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16727' });{@@ -989,7 +989,7 @@ it('should throw if screenshot size is too large', async ({ page, browserName, i}});-it('page screenshot should capture css transform', async function({ page, browserName, isElectron, isAndroid }) {+it('SS-066 page screenshot should capture css transform', async function({ page, browserName, isElectron, isAndroid }) {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/26447' });it.fixme(browserName === 'webkit');it.skip(isElectron || isAndroid, 'Returns screenshot of a different size.');@@ -1033,7 +1033,7 @@ it('page screenshot should capture css transform', async function({ page, browseawait expect(page).toHaveScreenshot();});-it('should capture css box-shadow', async ({ page, isElectron, isAndroid }) => {+it('SS-067 should capture css box-shadow', async ({ page, isElectron, isAndroid }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21620' });it.skip(isElectron || isAndroid, 'Returns screenshot of a different size.');await page.setContent(`<div style="box-shadow: red 10px 10px 10px; width: 50px; height: 50px;"></div>`);diff --git a/tests/page/page-screenshot.spec.ts-snapshots/page-screenshot-should-capture-css-transform-1-bidi-chromium.png b/tests/page/page-screenshot.spec.ts-snapshots/SS-066-page-screenshot-should-capture-css-transform-1-bidi-chromium.pngsimilarity index 100%rename from tests/page/page-screenshot.spec.ts-snapshots/page-screenshot-should-capture-css-transform-1-bidi-chromium.pngrename to tests/page/page-screenshot.spec.ts-snapshots/SS-066-page-screenshot-should-capture-css-transform-1-bidi-chromium.pngdiff --git a/tests/page/page-screenshot.spec.ts-snapshots/page-screenshot-should-capture-css-transform-1-chromium.png b/tests/page/page-screenshot.spec.ts-snapshots/SS-066-page-screenshot-should-capture-css-transform-1-chromium.pngsimilarity index 100%rename from tests/page/page-screenshot.spec.ts-snapshots/page-screenshot-should-capture-css-transform-1-chromium.pngrename to tests/page/page-screenshot.spec.ts-snapshots/SS-066-page-screenshot-should-capture-css-transform-1-chromium.pngdiff --git a/tests/page/page-screenshot.spec.ts-snapshots/page-screenshot-should-capture-css-transform-1-firefox.png b/tests/page/page-screenshot.spec.ts-snapshots/SS-066-page-screenshot-should-capture-css-transform-1-firefox.pngsimilarity index 100%rename from tests/page/page-screenshot.spec.ts-snapshots/page-screenshot-should-capture-css-transform-1-firefox.pngrename to tests/page/page-screenshot.spec.ts-snapshots/SS-066-page-screenshot-should-capture-css-transform-1-firefox.pngdiff --git a/tests/page/page-screenshot.spec.ts-snapshots/page-screenshot-should-capture-css-transform-1-moz-firefox-nightly.png b/tests/page/page-screenshot.spec.ts-snapshots/SS-066-page-screenshot-should-capture-css-transform-1-moz-firefox-nightly.pngsimilarity index 100%rename from tests/page/page-screenshot.spec.ts-snapshots/page-screenshot-should-capture-css-transform-1-moz-firefox-nightly.pngrename to tests/page/page-screenshot.spec.ts-snapshots/SS-066-page-screenshot-should-capture-css-transform-1-moz-firefox-nightly.pngdiff --git a/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-bidi-chromium.png b/tests/page/page-screenshot.spec.ts-snapshots/SS-067-should-capture-css-box-shadow-1-bidi-chromium.pngsimilarity index 100%rename from tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-bidi-chromium.pngrename to tests/page/page-screenshot.spec.ts-snapshots/SS-067-should-capture-css-box-shadow-1-bidi-chromium.pngdiff --git a/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-chromium.png b/tests/page/page-screenshot.spec.ts-snapshots/SS-067-should-capture-css-box-shadow-1-chromium.pngsimilarity index 100%rename from tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-chromium.pngrename to tests/page/page-screenshot.spec.ts-snapshots/SS-067-should-capture-css-box-shadow-1-chromium.pngdiff --git a/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-firefox.png b/tests/page/page-screenshot.spec.ts-snapshots/SS-067-should-capture-css-box-shadow-1-firefox.pngsimilarity index 100%rename from tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-firefox.pngrename to tests/page/page-screenshot.spec.ts-snapshots/SS-067-should-capture-css-box-shadow-1-firefox.pngdiff --git a/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-moz-firefox-nightly.png b/tests/page/page-screenshot.spec.ts-snapshots/SS-067-should-capture-css-box-shadow-1-moz-firefox-nightly.pngsimilarity index 100%rename from tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-moz-firefox-nightly.pngrename to tests/page/page-screenshot.spec.ts-snapshots/SS-067-should-capture-css-box-shadow-1-moz-firefox-nightly.pngdiff --git a/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-webkit.png b/tests/page/page-screenshot.spec.ts-snapshots/SS-067-should-capture-css-box-shadow-1-webkit.pngsimilarity index 100%rename from tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-webkit.pngrename to tests/page/page-screenshot.spec.ts-snapshots/SS-067-should-capture-css-box-shadow-1-webkit.pngdiff --git a/tests/page/page-select-option.spec.ts b/tests/page/page-select-option.spec.tsindex 56c12367df..b675b3e251 100644--- a/tests/page/page-select-option.spec.ts+++ b/tests/page/page-select-option.spec.ts@@ -20,63 +20,63 @@ import { test as it, expect, rafraf } from './pageTest';const giveItAChanceToResolve = (page: Page) => rafraf(page, 5);-it('should select single option @smoke', async ({ page, server }) => {+it('SO-001 should select single option @smoke', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.selectOption('select', 'blue');expect(await page.evaluate(() => window['result'].onInput)).toEqual(['blue']);expect(await page.evaluate(() => window['result'].onChange)).toEqual(['blue']);});-it('should select single option by value', async ({ page, server }) => {+it('SO-002 should select single option by value', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.selectOption('select', { value: 'blue' });expect(await page.evaluate(() => window['result'].onInput)).toEqual(['blue']);expect(await page.evaluate(() => window['result'].onChange)).toEqual(['blue']);});-it('should fall back to selecting by label', async ({ page, server }) => {+it('SO-003 should fall back to selecting by label', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.selectOption('select', 'Blue');expect(await page.evaluate(() => window['result'].onInput)).toEqual(['blue']);expect(await page.evaluate(() => window['result'].onChange)).toEqual(['blue']);});-it('should select single option by label', async ({ page, server }) => {+it('SO-004 should select single option by label', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.selectOption('select', { label: 'Indigo' });expect(await page.evaluate(() => window['result'].onInput)).toEqual(['indigo']);expect(await page.evaluate(() => window['result'].onChange)).toEqual(['indigo']);});-it('should select single option by label with html whitespace', async ({ page, server }) => {+it('SO-005 should select single option by label with html whitespace', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.selectOption('select', { label: 'HTML' });expect(await page.evaluate(() => window['result'].onInput)).toEqual(['html']);expect(await page.evaluate(() => window['result'].onChange)).toEqual(['html']);});-it('should select single option by handle', async ({ page, server }) => {+it('SO-006 should select single option by handle', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.selectOption('select', await page.$('[id=whiteOption]'));expect(await page.evaluate(() => window['result'].onInput)).toEqual(['white']);expect(await page.evaluate(() => window['result'].onChange)).toEqual(['white']);});-it('should select single option by index', async ({ page, server }) => {+it('SO-007 should select single option by index', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.selectOption('select', { index: 2 });expect(await page.evaluate(() => window['result'].onInput)).toEqual(['brown']);expect(await page.evaluate(() => window['result'].onChange)).toEqual(['brown']);});-it('should select single option by multiple attributes', async ({ page, server }) => {+it('SO-008 should select single option by multiple attributes', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.selectOption('select', { value: 'green', label: 'Green' });expect(await page.evaluate(() => window['result'].onInput)).toEqual(['green']);expect(await page.evaluate(() => window['result'].onChange)).toEqual(['green']);});-it('should not select single option when some attributes do not match', async ({ page, server }) => {+it('SO-009 should not select single option when some attributes do not match', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.$eval('select', s => s.value = undefined);try {@@ -87,14 +87,14 @@ it('should not select single option when some attributes do not match', async ({expect(await page.evaluate(() => document.querySelector('select').value)).toEqual('');});-it('should select only first option', async ({ page, server }) => {+it('SO-010 should select only first option', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.selectOption('select', ['blue', 'green', 'red']);expect(await page.evaluate(() => window['result'].onInput)).toEqual(['blue']);expect(await page.evaluate(() => window['result'].onChange)).toEqual(['blue']);});-it('should not throw when select causes navigation', async ({ page, server }) => {+it('SO-011 should not throw when select causes navigation', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.$eval('select', select => select.addEventListener('input', () => window.location.href = '/empty.html'));await Promise.all([@@ -104,7 +104,7 @@ it('should not throw when select causes navigation', async ({ page, server }) =>expect(page.url()).toContain('empty.html');});-it('should select multiple options', async ({ page, server }) => {+it('SO-012 should select multiple options', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.evaluate(() => window['makeMultiple']());await page.selectOption('select', ['blue', 'green', 'red']);@@ -112,7 +112,7 @@ it('should select multiple options', async ({ page, server }) => {expect(await page.evaluate(() => window['result'].onChange)).toEqual(['blue', 'green', 'red']);});-it('should select multiple options with attributes', async ({ page, server }) => {+it('SO-013 should select multiple options with attributes', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.evaluate(() => window['makeMultiple']());await page.selectOption('select', [{ value: 'blue' }, { label: 'Green' }, { index: 4 }]);@@ -120,46 +120,46 @@ it('should select multiple options with attributes', async ({ page, server }) =>expect(await page.evaluate(() => window['result'].onChange)).toEqual(['blue', 'gray', 'green']);});-it('should respect event bubbling', async ({ page, server }) => {+it('SO-014 should respect event bubbling', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.selectOption('select', 'blue');expect(await page.evaluate(() => window['result'].onBubblingInput)).toEqual(['blue']);expect(await page.evaluate(() => window['result'].onBubblingChange)).toEqual(['blue']);});-it('should throw when element is not a <select>', async ({ page, server }) => {+it('SO-015 should throw when element is not a <select>', async ({ page, server }) => {let error = null;await page.goto(server.PREFIX + '/input/select.html');await page.selectOption('body', '').catch(e => error = e);expect(error.message).toContain('Element is not a <select> element');});-it('should return [] on no matched values', async ({ page, server }) => {+it('SO-016 should return [] on no matched values', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');const result = await page.selectOption('select', []);expect(result).toEqual([]);});-it('should return an array of matched values', async ({ page, server }) => {+it('SO-017 should return an array of matched values', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.evaluate(() => window['makeMultiple']());const result = await page.selectOption('select', ['blue', 'black', 'magenta']);expect(result.reduce((accumulator, current) => ['blue', 'black', 'magenta'].includes(current) && accumulator, true)).toEqual(true);});-it('should return an array of one element when multiple is not set', async ({ page, server }) => {+it('SO-018 should return an array of one element when multiple is not set', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');const result = await page.selectOption('select', ['42', 'blue', 'black', 'magenta']);expect(result.length).toEqual(1);});-it('should return [] on no values', async ({ page, server }) => {+it('SO-019 should return [] on no values', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');const result = await page.selectOption('select', []);expect(result).toEqual([]);});-it('should not allow null items', async ({ page, server }) => {+it('SO-020 should not allow null items', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.evaluate(() => window['makeMultiple']());let error = null;@@ -167,7 +167,7 @@ it('should not allow null items', async ({ page, server }) => {expect(error.message).toContain('options[1]: expected object, got null');});-it('should unselect with null', async ({ page, server }) => {+it('SO-021 should unselect with null', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.evaluate(() => window['makeMultiple']());const result = await page.selectOption('select', ['blue', 'black', 'magenta']);@@ -176,7 +176,7 @@ it('should unselect with null', async ({ page, server }) => {expect(await page.$eval('select', select => Array.from(select.options).every(option => !option.selected))).toEqual(true);});-it('should deselect all options when passed no values for a multiple select', async ({ page, server }) => {+it('SO-022 should deselect all options when passed no values for a multiple select', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.evaluate(() => window['makeMultiple']());await page.selectOption('select', ['blue', 'black', 'magenta']);@@ -184,14 +184,14 @@ it('should deselect all options when passed no values for a multiple select', asexpect(await page.$eval('select', select => Array.from(select.options).every(option => !option.selected))).toEqual(true);});-it('should deselect all options when passed no values for a select without multiple', async ({ page, server }) => {+it('SO-023 should deselect all options when passed no values for a select without multiple', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.selectOption('select', ['blue', 'black', 'magenta']);await page.selectOption('select', []);expect(await page.$eval('select', select => Array.from(select.options).every(option => !option.selected))).toEqual(true);});-it('should throw if passed wrong types', async ({ page, server }) => {+it('SO-024 should throw if passed wrong types', async ({ page, server }) => {let error;await page.setContent('<select><option value="12"/></select>');@@ -232,7 +232,7 @@ it('should throw if passed wrong types', async ({ page, server }) => {expect(error.message).toContain('options[0].index: expected integer, got string');});// @see https://github.com/GoogleChrome/puppeteer/issues/3327-it('should work when re-defining top-level Event class', async ({ page, server }) => {+it('SO-025 should work when re-defining top-level Event class', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.evaluate(() => window.Event = null);await page.selectOption('select', 'blue');@@ -240,7 +240,7 @@ it('should work when re-defining top-level Event class', async ({ page, server }expect(await page.evaluate(() => window['result'].onChange)).toEqual(['blue']);});-it('should wait for option to be present', async ({ page, server }) => {+it('SO-026 should wait for option to be present', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');const selectPromise = page.selectOption('select', 'scarlet');let didSelect = false;@@ -257,7 +257,7 @@ it('should wait for option to be present', async ({ page, server }) => {expect(items).toStrictEqual(['scarlet']);});-it('should wait for option index to be present', async ({ page, server }) => {+it('SO-027 should wait for option index to be present', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');const len = await page.$eval('select', select => select.options.length);const selectPromise = page.selectOption('select', { index: len });@@ -275,7 +275,7 @@ it('should wait for option index to be present', async ({ page, server }) => {expect(items).toStrictEqual(['scarlet']);});-it('should wait for multiple options to be present', async ({ page, server }) => {+it('SO-028 should wait for multiple options to be present', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/select.html');await page.evaluate(() => window['makeMultiple']());const selectPromise = page.selectOption('select', ['green', 'scarlet']);@@ -293,7 +293,7 @@ it('should wait for multiple options to be present', async ({ page, server }) =>expect(items).toStrictEqual(['green', 'scarlet']);});-it('input event.composed should be true and cross shadow dom boundary', async ({ page, server }) => {+it('SO-029 input event.composed should be true and cross shadow dom boundary', async ({ page, server }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28726' });await page.goto(server.EMPTY_PAGE);await page.setContent(`<body><script>@@ -327,7 +327,7 @@ it('input event.composed should be true and cross shadow dom boundary', async ({expect(await page.evaluate(() => window['firedBodyEvents'])).toEqual(['input:true']);});-it('should wait for select to be enabled', async ({ page }) => {+it('SO-030 should wait for select to be enabled', async ({ page }) => {await page.setContent(`<select disabled><option>one</option>@@ -353,7 +353,7 @@ it('should wait for select to be enabled', async ({ page }) => {await expect(page.locator('select')).toHaveValue('two');});-it('should wait for option to be enabled', async ({ page }) => {+it('SO-031 should wait for option to be enabled', async ({ page }) => {await page.setContent(`<select><option>one</option>@@ -383,7 +383,7 @@ it('should wait for option to be enabled', async ({ page }) => {await expect(page.locator('select')).toHaveValue('two');});-it('should wait for optgroup to be enabled', async ({ page }) => {+it('SO-032 should wait for optgroup to be enabled', async ({ page }) => {await page.setContent(`<select><option>one</option>@@ -415,7 +415,7 @@ it('should wait for optgroup to be enabled', async ({ page }) => {await expect(page.locator('select')).toHaveValue('two');});-it('should wait for select to be swapped', async ({ page }) => {+it('SO-033 should wait for select to be swapped', async ({ page }) => {await page.setContent(`<select disabled><option>one</option>diff --git a/tests/page/page-set-content.spec.ts b/tests/page/page-set-content.spec.tsindex 6993d61b63..5c3f70ad05 100644--- a/tests/page/page-set-content.spec.ts+++ b/tests/page/page-set-content.spec.ts@@ -21,32 +21,32 @@ const { nullProgress } = coreServer;const expectedOutput = '<html><head></head><body><div>hello</div></body></html>';-it('should work @smoke', async ({ page, server }) => {+it('PA-020 should work @smoke', async ({ page, server }) => {await page.setContent('<div>hello</div>');const result = await page.content();expect(result).toBe(expectedOutput);});-it('should work with domcontentloaded', async ({ page, server }) => {+it('PA-021 should work with domcontentloaded', async ({ page, server }) => {await page.setContent('<div>hello</div>', { waitUntil: 'domcontentloaded' });const result = await page.content();expect(result).toBe(expectedOutput);});-it('should work with commit', async ({ page }) => {+it('PA-022 should work with commit', async ({ page }) => {await page.setContent('<div>hello</div>', { waitUntil: 'commit' });const result = await page.content();expect(result).toBe(expectedOutput);});-it('should work with doctype', async ({ page, server }) => {+it('PA-023 should work with doctype', async ({ page, server }) => {const doctype = '<!DOCTYPE html>';await page.setContent(`${doctype}<div>hello</div>`);const result = await page.content();expect(result).toBe(`${doctype}${expectedOutput}`);});-it('should work with HTML 4 doctype', async ({ page, server }) => {+it('PA-024 should work with HTML 4 doctype', async ({ page, server }) => {const doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" ' +'"http://www.w3.org/TR/html4/strict.dtd">';await page.setContent(`${doctype}<div>hello</div>`);@@ -54,7 +54,7 @@ it('should work with HTML 4 doctype', async ({ page, server }) => {expect(result).toBe(`${doctype}${expectedOutput}`);});-it('should include shadow roots', async ({ page }) => {+it('PA-025 should include shadow roots', async ({ page }) => {const html = '<!DOCTYPE html><html lang="en"><head></head><body><div id="host"><template shadowrootmode="open"><div id="nested"><template shadowrootmode="open"><span>nested</span></template><slot></slot></div></template><span>light</span></div><div id="closed"></div></body></html>';// Closed shadow roots are not accessible from script and are never serialized.await page.setContent(html.replace('<div id="closed">', '<div id="closed"><template shadowrootmode="closed"><span>closed</span></template>'));@@ -62,7 +62,7 @@ it('should include shadow roots', async ({ page }) => {expect(await page.content({ includeShadow: true })).toBe(html);});-it('should respect timeout', async ({ page, server, playwright }) => {+it('PA-026 should respect timeout', async ({ page, server, playwright }) => {const imgPath = '/img.png';// stall for imageserver.setRoute(imgPath, (req, res) => {});@@ -71,7 +71,7 @@ it('should respect timeout', async ({ page, server, playwright }) => {expect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should respect default navigation timeout', async ({ page, server, playwright }) => {+it('PA-027 should respect default navigation timeout', async ({ page, server, playwright }) => {page.setDefaultNavigationTimeout(1);const imgPath = '/img.png';// stall for image@@ -81,7 +81,7 @@ it('should respect default navigation timeout', async ({ page, server, playwrighexpect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should await resources to load', async ({ page, server }) => {+it('PA-028 should await resources to load', async ({ page, server }) => {const imgPath = '/img.png';let imgResponse = null;server.setRoute(imgPath, (req, res) => imgResponse = res);@@ -93,32 +93,32 @@ it('should await resources to load', async ({ page, server }) => {await contentPromise;});-it('should work fast enough', async ({ page, server }) => {+it('PA-029 should work fast enough', async ({ page, server }) => {for (let i = 0; i < 20; ++i)await page.setContent('<div>yo</div>');});-it('should work with tricky content', async ({ page, server }) => {+it('PA-030 should work with tricky content', async ({ page, server }) => {await page.setContent('<div>hello world</div>' + '\x7F');expect(await page.$eval('div', div => div.textContent)).toBe('hello world');});-it('should work with accents', async ({ page, server }) => {+it('PA-031 should work with accents', async ({ page, server }) => {await page.setContent('<div>aberración</div>');expect(await page.$eval('div', div => div.textContent)).toBe('aberración');});-it('should work with emojis', async ({ page, server }) => {+it('PA-032 should work with emojis', async ({ page, server }) => {await page.setContent('<div>🐥</div>');expect(await page.$eval('div', div => div.textContent)).toBe('🐥');});-it('should work with newline', async ({ page, server }) => {+it('PA-033 should work with newline', async ({ page, server }) => {await page.setContent('<div>\n</div>');expect(await page.$eval('div', div => div.textContent)).toBe('\n');});-it('content() should throw nice error during navigation', async ({ page, server }) => {+it('PA-034 content() should throw nice error during navigation', async ({ page, server }) => {for (let timeout = 0; timeout < 200; timeout += 20) {await page.setContent('<div>hello</div>');const promise = page.goto(server.EMPTY_PAGE);@@ -133,14 +133,14 @@ it('content() should throw nice error during navigation', async ({ page, server}});-it('should return empty content there is no iframe src', async ({ page, browserName }) => {+it('PA-035 should return empty content there is no iframe src', async ({ page, browserName }) => {it.fixme(browserName === 'webkit', 'there is no utility context');await page.setContent(`<iframe src="javascript:console.log(1)"></iframe>`);expect(page.frames().length).toBe(2);expect(await page.frames()[1].content()).toBe('<html><head></head><body></body></html>');});-it('should handle timeout properly', async ({ page, toImpl, browserName }) => {+it('PA-036 should handle timeout properly', async ({ page, toImpl, browserName }) => {it.skip(browserName === 'firefox', 'tampering with console.debug in utility world does not work');await toImpl(page).mainFrame().evaluateExpression(nullProgress, String(() => {@@ -158,7 +158,7 @@ it('should handle timeout properly', async ({ page, toImpl, browserName }) => {await expect(page.locator('div')).toHaveText('world');});-it('should handle timeout properly 2', async ({ page, toImpl, trace }) => {+it('PA-037 should handle timeout properly 2', async ({ page, toImpl, trace }) => {it.skip(trace === 'on');await toImpl(page).mainFrame().evaluateExpression(nullProgress, String(() => {diff --git a/tests/page/page-set-extra-http-headers.spec.ts b/tests/page/page-set-extra-http-headers.spec.tsindex 192168dbec..ec157228c0 100644--- a/tests/page/page-set-extra-http-headers.spec.ts+++ b/tests/page/page-set-extra-http-headers.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should work @smoke', async ({ page, server }) => {+it('NE-114 should work @smoke', async ({ page, server }) => {await page.setExtraHTTPHeaders({foo: 'bar',});@@ -29,7 +29,7 @@ it('should work @smoke', async ({ page, server }) => {expect(request.headers['baz']).toBe(undefined);});-it('should work with redirects', async ({ page, server }) => {+it('NE-115 should work with redirects', async ({ page, server }) => {server.setRedirect('/foo.html', '/empty.html');await page.setExtraHTTPHeaders({foo: 'bar'@@ -41,7 +41,7 @@ it('should work with redirects', async ({ page, server }) => {expect(request.headers['foo']).toBe('bar');});-it('should work with extra headers from browser context', async ({ page, server }) => {+it('NE-116 should work with extra headers from browser context', async ({ page, server }) => {await page.context().setExtraHTTPHeaders({'foo': 'bar',});@@ -52,7 +52,7 @@ it('should work with extra headers from browser context', async ({ page, serverexpect(request.headers['foo']).toBe('bar');});-it('should throw for non-string header values', async ({ page }) => {+it('NE-117 should throw for non-string header values', async ({ page }) => {// @ts-expect-error headers must be stringsconst error1 = await page.setExtraHTTPHeaders({ 'foo': 1 }).catch(e => e);expect(error1.message).toContain('Expected value of header "foo" to be String, but "number" is found.');@@ -61,7 +61,7 @@ it('should throw for non-string header values', async ({ page }) => {expect(error2.message).toContain('Expected value of header "foo" to be String, but "boolean" is found.');});-it('should not duplicate referer header', async ({ page, server, browserName, browserMajorVersion }) => {+it('NE-118 should not duplicate referer header', async ({ page, server, browserName, browserMajorVersion }) => {it.fail(browserName === 'chromium' && browserMajorVersion < 154, 'Request has referer and Referer');await page.setExtraHTTPHeaders({ 'referer': server.EMPTY_PAGE });const response = await page.goto(server.EMPTY_PAGE);diff --git a/tests/page/page-set-input-files.spec.ts b/tests/page/page-set-input-files.spec.tsindex e08641689f..10924aed59 100644--- a/tests/page/page-set-input-files.spec.ts+++ b/tests/page/page-set-input-files.spec.ts@@ -21,7 +21,7 @@ import path from 'path';import fs from 'fs';import formidable from 'formidable';-test('should upload the file', async ({ page, server, asset }) => {+test('IF-001 should upload the file', async ({ page, server, asset }) => {await page.goto(server.PREFIX + '/input/fileupload.html');const filePath = path.relative(process.cwd(), asset('file-to-upload.txt'));const input = await page.$('input');@@ -35,7 +35,7 @@ test('should upload the file', async ({ page, server, asset }) => {}, input)).toBe('contents of the file');});-test('should upload a folder', async ({ page, server, isFrozenWebkit, isAndroid }) => {+test('IF-002 should upload a folder', async ({ page, server, isFrozenWebkit, isAndroid }) => {test.skip(isAndroid);test.skip(isFrozenWebkit);@@ -68,7 +68,7 @@ test('should upload a folder', async ({ page, server, isFrozenWebkit, isAndroid}});-test('should upload a folder via label', {+test('IF-003 should upload a folder via label', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43367' },}, async ({ page, isFrozenWebkit, isAndroid }) => {test.skip(isAndroid);@@ -82,7 +82,7 @@ test('should upload a folder via label', {expect(await page.locator('input').evaluate((e: HTMLInputElement) => [...e.files].map(f => f.webkitRelativePath))).toEqual(['file-upload-test/file1.txt']);});-test('should upload a folder and throw for multiple directories', async ({ page, server, isAndroid, isFrozenWebkit }) => {+test('IF-004 should upload a folder and throw for multiple directories', async ({ page, server, isAndroid, isFrozenWebkit }) => {test.skip(isAndroid);test.skip(isFrozenWebkit);@@ -101,7 +101,7 @@ test('should upload a folder and throw for multiple directories', async ({ page,])).rejects.toThrow('Multiple directories are not supported');});-test('should throw if a directory and files are passed', async ({ page, server, isAndroid, isFrozenWebkit }) => {+test('IF-005 should throw if a directory and files are passed', async ({ page, server, isAndroid, isFrozenWebkit }) => {test.skip(isAndroid);test.skip(isFrozenWebkit);@@ -118,7 +118,7 @@ test('should throw if a directory and files are passed', async ({ page, server,])).rejects.toThrow('File paths must be all files or a single directory');});-test('should throw when uploading a folder in a normal file upload input', async ({ page, server, isAndroid, isFrozenWebkit }) => {+test('IF-006 should throw when uploading a folder in a normal file upload input', async ({ page, server, isAndroid, isFrozenWebkit }) => {test.skip(isAndroid);test.skip(isFrozenWebkit);@@ -132,7 +132,7 @@ test('should throw when uploading a folder in a normal file upload input', asyncawait expect(input.setInputFiles(dir)).rejects.toThrow('File input does not support directories, pass individual files instead');});-test('should throw when uploading a file in a directory upload input', async ({ page, server, isAndroid, asset, isFrozenWebkit }) => {+test('IF-007 should throw when uploading a file in a directory upload input', async ({ page, server, isAndroid, asset, isFrozenWebkit }) => {test.skip(isAndroid);test.skip(isFrozenWebkit);@@ -141,7 +141,7 @@ test('should throw when uploading a file in a directory upload input', async ({await expect(input.setInputFiles(asset('file to upload.txt'))).rejects.toThrow('[webkitdirectory] input requires passing a path to a directory');});-test('should upload a file after popup', async ({ page, server, asset }) => {+test('IF-008 should upload a file after popup', async ({ page, server, asset }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29923' });await page.goto(server.PREFIX + '/input/fileupload.html');{@@ -157,7 +157,7 @@ test('should upload a file after popup', async ({ page, server, asset }) => {expect(await page.evaluate(e => e.files[0].name, input)).toBe('file-to-upload.txt');});-test('should upload large file', async ({ page, server, isAndroid, mode }, testInfo) => {+test('IF-009 should upload large file', async ({ page, server, isAndroid, mode }, testInfo) => {test.skip(isAndroid);test.slow();@@ -205,7 +205,7 @@ test('should upload large file', async ({ page, server, isAndroid, mode }, testIawait Promise.all([uploadFile, file1.filepath].map(fs.promises.unlink));});-test('should throw an error if the file does not exist', async ({ page, server, asset }) => {+test('IF-010 should throw an error if the file does not exist', async ({ page, server, asset }) => {await page.goto(server.PREFIX + '/input/fileupload.html');const input = await page.$('input');const error = await input.setInputFiles('i actually do not exist.txt').catch(e => e);@@ -213,7 +213,7 @@ test('should throw an error if the file does not exist', async ({ page, server,expect(error.message).toContain('i actually do not exist.txt');});-test('should upload large file with relative path', async ({ page, server, isAndroid, mode }, testInfo) => {+test('IF-011 should upload large file with relative path', async ({ page, server, isAndroid, mode }, testInfo) => {test.skip(isAndroid);test.slow();@@ -263,7 +263,7 @@ test('should upload large file with relative path', async ({ page, server, isAndawait Promise.all([uploadFile, file1.filepath].map(fs.promises.unlink));});-test('should upload the file with spaces in name', async ({ page, server, asset }) => {+test('IF-012 should upload the file with spaces in name', async ({ page, server, asset }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/17451' });await page.goto(server.PREFIX + '/input/fileupload.html');const filePath = path.relative(process.cwd(), asset('file to upload.txt'));@@ -279,14 +279,14 @@ test('should upload the file with spaces in name', async ({ page, server, asset});-test('should work @smoke', async ({ page, asset }) => {+test('IF-013 should work @smoke', async ({ page, asset }) => {await page.setContent(`<input type=file>`);await page.setInputFiles('input', asset('file-to-upload.txt'));expect(await page.$eval('input', input => input.files.length)).toBe(1);expect(await page.$eval('input', input => input.files[0].name)).toBe('file-to-upload.txt');});-test('should set from memory', async ({ page }) => {+test('IF-014 should set from memory', async ({ page }) => {await page.setContent(`<input type=file>`);await page.setInputFiles('input', {name: 'test.txt',@@ -297,7 +297,7 @@ test('should set from memory', async ({ page }) => {expect(await page.$eval('input', input => input.files[0].name)).toBe('test.txt');});-test('should work with CSP', async ({ page, server, asset }) => {+test('IF-015 should work with CSP', async ({ page, server, asset }) => {server.setCSP('/empty.html', 'default-src "none"');await page.goto(server.EMPTY_PAGE);await page.setContent(`<input type=file>`);@@ -306,7 +306,7 @@ test('should work with CSP', async ({ page, server, asset }) => {expect(await page.$eval('input', input => input.files[0].name)).toBe('file-to-upload.txt');});-test('should detect mime type', async ({ page, server, asset }) => {+test('IF-016 should detect mime type', async ({ page, server, asset }) => {let files: Record<string, formidable.File>;server.setRoute('/upload', async (req, res) => {@@ -341,7 +341,7 @@ test('should detect mime type', async ({ page, server, asset }) => {});// @see https://github.com/microsoft/playwright/issues/4704-test('should not trim big uploaded files', async ({ page, server }) => {+test('IF-017 should not trim big uploaded files', async ({ page, server }) => {let files: Record<string, formidable.File>;server.setRoute('/upload', async (req, res) => {@@ -365,7 +365,7 @@ test('should not trim big uploaded files', async ({ page, server }) => {expect(files.file.size).toBe(DATA_SIZE);});-test('should emit input and change events', async ({ page, asset }) => {+test('IF-018 should emit input and change events', async ({ page, asset }) => {const events = [];await page.exposeFunction('eventHandled', e => events.push(e));await page.setContent(`@@ -380,7 +380,7 @@ test('should emit input and change events', async ({ page, asset }) => {expect(events[1].type).toBe('change');});-test('input event.composed should be true and cross shadow dom boundary', async ({ page, server, asset }) => {+test('IF-019 input event.composed should be true and cross shadow dom boundary', async ({ page, server, asset }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28726' });await page.goto(server.EMPTY_PAGE);await page.setContent(`<body><script>@@ -415,7 +415,7 @@ test('input event.composed should be true and cross shadow dom boundary', asyncexpect(await page.evaluate(() => window['firedBodyEvents'])).toEqual(['input:true']);});-test('input should trigger events when files changed second time', async ({ page, asset }) => {+test('IF-020 input should trigger events when files changed second time', async ({ page, asset }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/20079' });await page.setContent(`<input type=file multiple=true/>`);@@ -438,7 +438,7 @@ test('input should trigger events when files changed second time', async ({ pageexpect(await events.evaluate(e => e)).toEqual(['input', 'change']);});-test('should preserve lastModified timestamp', async ({ page, asset }) => {+test('IF-021 should preserve lastModified timestamp', async ({ page, asset }) => {test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27452' });await page.setContent(`<input type=file multiple=true/>`);const input = page.locator('input');diff --git a/tests/page/page-strict.spec.ts b/tests/page/page-strict.spec.tsindex afbc317116..78c2d0d9e3 100644--- a/tests/page/page-strict.spec.ts+++ b/tests/page/page-strict.spec.ts@@ -16,7 +16,7 @@import { test as it, expect } from './pageTest';-it('should fail page.textContent in strict mode', async ({ page }) => {+it('SM-001 should fail page.textContent in strict mode', async ({ page }) => {await page.setContent(`<span>span1</span><div><span>target</span></div>`);const error = await page.textContent('span', { strict: true }).catch(e => e);expect(error.message).toContain('strict mode violation');@@ -24,13 +24,13 @@ it('should fail page.textContent in strict mode', async ({ page }) => {expect(error.message).toContain(`2) <span>target</span> aka getByText('target')`);});-it('should fail page.getAttribute in strict mode', async ({ page }) => {+it('SM-002 should fail page.getAttribute in strict mode', async ({ page }) => {await page.setContent(`<span>span1</span><div><span>target</span></div>`);const error = await page.getAttribute('span', 'id', { strict: true }).catch(e => e);expect(error.message).toContain('strict mode violation');});-it('should fail page.fill in strict mode', async ({ page }) => {+it('SM-003 should fail page.fill in strict mode', async ({ page }) => {await page.setContent(`<input></input><div><input></input></div>`);const error = await page.fill('input', 'text', { strict: true }).catch(e => e);expect(error.message).toContain('strict mode violation');@@ -38,19 +38,19 @@ it('should fail page.fill in strict mode', async ({ page }) => {expect(error.message).toContain(`2) <input/> aka locator('div').getByRole('textbox')`);});-it('should fail page.$ in strict mode', async ({ page }) => {+it('SM-004 should fail page.$ in strict mode', async ({ page }) => {await page.setContent(`<span>span1</span><div><span>target</span></div>`);const error = await page.$('span', { strict: true }).catch(e => e);expect(error.message).toContain('strict mode violation');});-it('should fail page.waitForSelector in strict mode', async ({ page }) => {+it('SM-005 should fail page.waitForSelector in strict mode', async ({ page }) => {await page.setContent(`<span>span1</span><div><span>target</span></div>`);const error = await page.waitForSelector('span', { strict: true }).catch(e => e);expect(error.message).toContain('strict mode violation');});-it('should fail page.dispatchEvent in strict mode', async ({ page }) => {+it('SM-006 should fail page.dispatchEvent in strict mode', async ({ page }) => {await page.setContent(`<span></span><div><span></span></div>`);const error = await page.dispatchEvent('span', 'click', {}, { strict: true }).catch(e => e);expect(error.message).toContain('strict mode violation');@@ -58,7 +58,7 @@ it('should fail page.dispatchEvent in strict mode', async ({ page }) => {expect(error.message).toContain(`2) <span></span> aka locator('div span')`);});-it('should properly format :nth-child() in strict mode message', async ({ page }) => {+it('SM-007 should properly format :nth-child() in strict mode message', async ({ page }) => {await page.setContent(`<div><div>@@ -84,7 +84,7 @@ it('should properly format :nth-child() in strict mode message', async ({ page }expect(error.message).toContain('body > div:nth-child(2) > div:nth-child(2)');});-it('should escape class names', async ({ page }) => {+it('SM-008 should escape class names', async ({ page }) => {await page.setContent(`<div><div></div>@@ -106,7 +106,7 @@ it('should escape class names', async ({ page }) => {expect(error.message).toContain('<div class=\"foo bar:1');});-it('should escape tag names', async ({ page }) => {+it('SM-009 should escape tag names', async ({ page }) => {await page.setContent(`<q:template> </q:template><span>special test description</span>@@ -120,7 +120,7 @@ it('should escape tag names', async ({ page }) => {expect(error.message).toContain(`locator('q\\\\:template').filter({ hasText: 'special test description' })`);});-it('should keep the engine name for a "text=.." selector in strict mode', async ({ page }) => {+it('SM-010 should keep the engine name for a "text=.." selector in strict mode', async ({ page }) => {await page.setContent(`<div>..loading</div><div>..loading</div>`);const error = await page.locator('text=..loading').hover().catch(e => e);expect(error.message).toContain('strict mode violation');diff --git a/tests/page/page-transition.spec.ts b/tests/page/page-transition.spec.tsindex 1a359718a8..376b2755d7 100644--- a/tests/page/page-transition.spec.ts+++ b/tests/page/page-transition.spec.ts@@ -16,7 +16,7 @@import { test as it, expect } from './pageTest';-it('should not crash when filter transition completes', async ({ page, browserName }) => {+it('PA-038 should not crash when filter transition completes', async ({ page, browserName }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42637' });it.fixme(browserName === 'webkit', 'Web process crashes on the compositor thread when a filter transitions to none');diff --git a/tests/page/page-wait-for-function.spec.ts b/tests/page/page-wait-for-function.spec.tsindex 8b0368cbb0..8c29ea679f 100644--- a/tests/page/page-wait-for-function.spec.ts+++ b/tests/page/page-wait-for-function.spec.ts@@ -18,20 +18,20 @@import { attachFrame, detachFrame } from '../config/utils';import { test as it, expect } from './pageTest';-it('should timeout', async ({ page }) => {+it('WA-001 should timeout', async ({ page }) => {const startTime = Date.now();const timeout = 42;await page.waitForTimeout(timeout);expect(Date.now() - startTime).not.toBeLessThan(timeout / 2);});-it('should accept a string', async ({ page }) => {+it('WA-002 should accept a string', async ({ page }) => {const watchdog = page.waitForFunction('window.__FOO === 1');await page.evaluate(() => window['__FOO'] = 1);await watchdog;});-it('should work when resolved right before execution context disposal', async ({ page }) => {+it('WA-003 should work when resolved right before execution context disposal', async ({ page }) => {await page.addInitScript(() => window['__RELOADED'] = true);await page.waitForFunction(() => {if (!window['__RELOADED'])@@ -40,7 +40,7 @@ it('should work when resolved right before execution context disposal', async ({});});-it('should poll on interval', async ({ page, server }) => {+it('WA-004 should poll on interval', async ({ page, server }) => {const polling = 100;const timeDelta = await page.waitForFunction(() => {if (!window['__startTime']) {@@ -52,7 +52,7 @@ it('should poll on interval', async ({ page, server }) => {expect(await timeDelta.jsonValue()).not.toBeLessThan(polling);});-it('should avoid side effects after timeout', async ({ page }) => {+it('WA-005 should avoid side effects after timeout', async ({ page }) => {let counter = 0;page.on('console', () => ++counter);@@ -68,24 +68,24 @@ it('should avoid side effects after timeout', async ({ page }) => {expect(counter).toBe(savedCounter);});-it('should throw on polling:mutation', async ({ page }) => {+it('WA-006 should throw on polling:mutation', async ({ page }) => {// @ts-expect-error mutation is not a valid polling strategyconst error = await page.waitForFunction(() => true, {}, { polling: 'mutation' }).catch(e => e);expect(error.message).toContain('Unknown polling option: mutation');});-it('should poll on raf', async ({ page }) => {+it('WA-007 should poll on raf', async ({ page }) => {const watchdog = page.waitForFunction(() => window['__FOO'] === 'hit', {}, { polling: 'raf' });await page.evaluate(() => window['__FOO'] = 'hit');await watchdog;});-it('should fail with predicate throwing on first call', async ({ page }) => {+it('WA-008 should fail with predicate throwing on first call', async ({ page }) => {const error = await page.waitForFunction(() => { throw new Error('oh my'); }).catch(e => e);expect(error.message).toContain('oh my');});-it('should fail with predicate throwing sometimes', async ({ page }) => {+it('WA-009 should fail with predicate throwing sometimes', async ({ page }) => {const error = await page.waitForFunction(() => {window['counter'] = (window['counter'] || 0) + 1;if (window['counter'] === 3)@@ -95,13 +95,13 @@ it('should fail with predicate throwing sometimes', async ({ page }) => {expect(error.message).toContain('Bad counter!');});-it('should fail with ReferenceError on wrong page', async ({ page }) => {+it('WA-010 should fail with ReferenceError on wrong page', async ({ page }) => {// @ts-ignoreconst error = await page.waitForFunction(() => globalVar === 123).catch(e => e);expect(error.message).toContain('globalVar');});-it('should work with strict CSP policy', async ({ page, server }) => {+it('WA-011 should work with strict CSP policy', async ({ page, server }) => {server.setCSP('/empty.html', 'script-src ' + server.PREFIX);await page.goto(server.EMPTY_PAGE);let error = null;@@ -112,7 +112,7 @@ it('should work with strict CSP policy', async ({ page, server }) => {expect(error).toBe(null);});-it('should throw on bad polling value', async ({ page }) => {+it('WA-012 should throw on bad polling value', async ({ page }) => {let error = null;try {// @ts-expect-error 'unknown' is not a valid polling strategy@@ -124,7 +124,7 @@ it('should throw on bad polling value', async ({ page }) => {expect(error.message).toContain('polling');});-it('should throw negative polling interval', async ({ page }) => {+it('WA-013 should throw negative polling interval', async ({ page }) => {let error = null;try {await page.waitForFunction(() => !!document.body, {}, { polling: -10 });@@ -135,15 +135,15 @@ it('should throw negative polling interval', async ({ page }) => {expect(error.message).toContain('Cannot poll with non-positive interval');});-it('should return the success value as a JSHandle', async ({ page }) => {+it('WA-014 should return the success value as a JSHandle', async ({ page }) => {expect(await (await page.waitForFunction(() => 5)).jsonValue()).toBe(5);});-it('should return the window as a success value', async ({ page }) => {+it('WA-015 should return the window as a success value', async ({ page }) => {expect(await page.waitForFunction(() => window)).toBeTruthy();});-it('should accept ElementHandle arguments', async ({ page }) => {+it('WA-016 should accept ElementHandle arguments', async ({ page }) => {await page.setContent('<div></div>');const div = await page.$('div');let resolved = false;@@ -153,7 +153,7 @@ it('should accept ElementHandle arguments', async ({ page }) => {await waitForFunction;});-it('should respect timeout', async ({ page, playwright }) => {+it('WA-017 should respect timeout', async ({ page, playwright }) => {let error = null;await page.waitForFunction('false', {}, { timeout: 10 }).catch(e => error = e);expect(error).toBeTruthy();@@ -161,7 +161,7 @@ it('should respect timeout', async ({ page, playwright }) => {expect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should respect default timeout', async ({ page, playwright }) => {+it('WA-018 should respect default timeout', async ({ page, playwright }) => {page.setDefaultTimeout(1);let error = null;await page.waitForFunction('false').catch(e => error = e);@@ -169,7 +169,7 @@ it('should respect default timeout', async ({ page, playwright }) => {expect(error.message).toContain('page.waitForFunction: Timeout 1ms exceeded');});-it('should disable timeout when its set to 0', async ({ page }) => {+it('WA-019 should disable timeout when its set to 0', async ({ page }) => {const watchdog = page.waitForFunction(() => {window['__counter'] = (window['__counter'] || 0) + 1;return window['__injected'];@@ -179,7 +179,7 @@ it('should disable timeout when its set to 0', async ({ page }) => {await watchdog;});-it('should survive cross-process navigation', async ({ page, server }) => {+it('WA-020 should survive cross-process navigation', async ({ page, server }) => {let fooFound = false;const waitForFunction = page.waitForFunction('window.__FOO === 1').then(() => fooFound = true);await page.goto(server.EMPTY_PAGE);@@ -193,7 +193,7 @@ it('should survive cross-process navigation', async ({ page, server }) => {expect(fooFound).toBe(true);});-it('should survive navigations', async ({ page, server }) => {+it('WA-021 should survive navigations', async ({ page, server }) => {const watchdog = page.waitForFunction(() => window['__done']);await page.goto(server.EMPTY_PAGE);await page.goto(server.PREFIX + '/consolelog.html');@@ -201,18 +201,18 @@ it('should survive navigations', async ({ page, server }) => {await watchdog;});-it('should work with multiline body', async ({ page }) => {+it('WA-022 should work with multiline body', async ({ page }) => {const result = await page.waitForFunction(`(() => true)()`);expect(await result.jsonValue()).toBe(true);});-it('should wait for predicate with arguments', async ({ page }) => {+it('WA-023 should wait for predicate with arguments', async ({ page }) => {await page.waitForFunction(({ arg1, arg2 }) => arg1 + arg2 === 3, { arg1: 1, arg2: 2 });});-it('should not be called after finishing successfully', async ({ page, server }) => {+it('WA-024 should not be called after finishing successfully', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const messages = [];@@ -239,7 +239,7 @@ it('should not be called after finishing successfully', async ({ page, server })expect(messages.join('|')).toBe('waitForFunction1|waitForFunction2|waitForFunction3');});-it('should not be called after finishing unsuccessfully', async ({ page, server }) => {+it('WA-025 should not be called after finishing unsuccessfully', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const messages = [];@@ -266,7 +266,7 @@ it('should not be called after finishing unsuccessfully', async ({ page, serverexpect(messages.join('|')).toBe('waitForFunction1|waitForFunction2|waitForFunction3');});-it('should throw when frame is detached', async ({ page, server }) => {+it('WA-026 should throw when frame is detached', async ({ page, server }) => {await attachFrame(page, 'frame1', server.EMPTY_PAGE);const frame = page.frames()[1];const promise = frame.waitForFunction(() => false).catch(e => e);diff --git a/tests/page/page-wait-for-load-state.spec.ts b/tests/page/page-wait-for-load-state.spec.tsindex 95d03275c0..af461f75f2 100644--- a/tests/page/page-wait-for-load-state.spec.ts+++ b/tests/page/page-wait-for-load-state.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import type { Route } from 'playwright-core';-it('should pick up ongoing navigation', async ({ page, server }) => {+it('WA-077 should pick up ongoing navigation', async ({ page, server }) => {let response = null;server.setRoute('/one-style.css', (req, res) => response = res);await Promise.all([@@ -31,7 +31,7 @@ it('should pick up ongoing navigation', async ({ page, server }) => {await waitPromise;});-it('should respect timeout', async ({ page, server }) => {+it('WA-078 should respect timeout', async ({ page, server }) => {server.setRoute('/one-style.css', (req, res) => void 0);await page.goto(server.PREFIX + '/one-style.html', { waitUntil: 'domcontentloaded' });const error = await page.waitForLoadState('load', { timeout: 1 }).catch(e => e);@@ -39,26 +39,26 @@ it('should respect timeout', async ({ page, server }) => {expect(error.stack.split('\n')[1]).toContain(__filename);});-it('should resolve immediately if loaded', async ({ page, server }) => {+it('WA-079 should resolve immediately if loaded', async ({ page, server }) => {await page.goto(server.PREFIX + '/one-style.html');await page.waitForLoadState();});-it('should throw for bad state', async ({ page, server }) => {+it('WA-080 should throw for bad state', async ({ page, server }) => {await page.goto(server.PREFIX + '/one-style.html');// @ts-expect-error 'bad' is not a valid load stateconst error = await page.waitForLoadState('bad').catch(e => e);expect(error.message).toContain(`state: expected one of (load|domcontentloaded|networkidle|commit)`);});-it('should resolve immediately if load state matches', async ({ page, server }) => {+it('WA-081 should resolve immediately if load state matches', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);server.setRoute('/one-style.css', (req, res) => void 0);await page.goto(server.PREFIX + '/one-style.html', { waitUntil: 'domcontentloaded' });await page.waitForLoadState('domcontentloaded');});-it('should work with pages that have loaded before being connected to', async ({ page, server }) => {+it('WA-082 should work with pages that have loaded before being connected to', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [popup] = await Promise.all([page.waitForEvent('popup'),@@ -70,7 +70,7 @@ it('should work with pages that have loaded before being connected to', async ({expect(popup.url()).toBe(server.EMPTY_PAGE);});-it('should wait for load state of empty url popup', async ({ page, browserName, isBidi, browserMajorVersion }) => {+it('WA-083 should wait for load state of empty url popup', async ({ page, browserName, isBidi, browserMajorVersion }) => {const [popup, readyState] = await Promise.all([page.waitForEvent('popup'),page.evaluate(() => {@@ -84,7 +84,7 @@ it('should wait for load state of empty url popup', async ({ page, browserName,expect(await popup.evaluate(() => document.readyState)).toBe(isOldFirefox && !isBidi ? 'uninitialized' : 'complete');});-it('should wait for load state of about:blank popup ', async ({ page }) => {+it('WA-084 should wait for load state of about:blank popup ', async ({ page }) => {const [popup] = await Promise.all([page.waitForEvent('popup'),page.evaluate(() => window.open('about:blank') && 1),@@ -93,7 +93,7 @@ it('should wait for load state of about:blank popup ', async ({ page }) => {expect(await popup.evaluate(() => document.readyState)).toBe('complete');});-it('should wait for load state of about:blank popup with noopener ', async ({ page }) => {+it('WA-085 should wait for load state of about:blank popup with noopener ', async ({ page }) => {const [popup] = await Promise.all([page.waitForEvent('popup'),page.evaluate(() => window.open('about:blank', null, 'noopener') && 1),@@ -102,7 +102,7 @@ it('should wait for load state of about:blank popup with noopener ', async ({ paexpect(await popup.evaluate(() => document.readyState)).toBe('complete');});-it('should wait for load state of popup with network url ', async ({ page, server }) => {+it('WA-086 should wait for load state of popup with network url ', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [popup] = await Promise.all([page.waitForEvent('popup'),@@ -112,7 +112,7 @@ it('should wait for load state of popup with network url ', async ({ page, serveexpect(await popup.evaluate(() => document.readyState)).toBe('complete');});-it('should wait for load state of popup with network url and noopener ', async ({ page, server }) => {+it('WA-087 should wait for load state of popup with network url and noopener ', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [popup] = await Promise.all([page.waitForEvent('popup'),@@ -122,7 +122,7 @@ it('should wait for load state of popup with network url and noopener ', async (expect(await popup.evaluate(() => document.readyState)).toBe('complete');});-it('should work with clicking target=_blank', async ({ page, server }) => {+it('WA-088 should work with clicking target=_blank', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent('<a target=_blank rel="opener" href="/one-style.html">yo</a>');const [popup] = await Promise.all([@@ -133,7 +133,7 @@ it('should work with clicking target=_blank', async ({ page, server }) => {expect(await popup.evaluate(() => document.readyState)).toBe('complete');});-it('should wait for load state of newPage', async ({ page, isElectron }) => {+it('WA-089 should wait for load state of newPage', async ({ page, isElectron }) => {it.fixme(isElectron, 'BrowserContext.newPage does not work in Electron');const [newPage] = await Promise.all([@@ -144,7 +144,7 @@ it('should wait for load state of newPage', async ({ page, isElectron }) => {expect(await newPage.evaluate(() => document.readyState)).toBe('complete');});-it('should resolve after popup load', async ({ page, server }) => {+it('WA-090 should resolve after popup load', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);// Stall the 'load' by delaying css.let cssResponse;@@ -166,7 +166,7 @@ it('should resolve after popup load', async ({ page, server }) => {expect(popup.url()).toBe(server.PREFIX + '/one-style.html');});-it('should work for frame', async ({ page, server }) => {+it('WA-091 should work for frame', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');const frame = page.frames()[1];@@ -182,7 +182,7 @@ it('should work for frame', async ({ page, server }) => {await loadPromise;});-it('should work with javascript: iframe', async ({ page, server, browserName }) => {+it('WA-092 should work with javascript: iframe', async ({ page, server, browserName }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<iframe src="javascript:false"></iframe>`, { waitUntil: 'commit' });await page.waitForLoadState('domcontentloaded');@@ -190,7 +190,7 @@ it('should work with javascript: iframe', async ({ page, server, browserName })await page.waitForLoadState('networkidle');});-it('should work with broken data-url iframe', async ({ page, server }) => {+it('WA-093 should work with broken data-url iframe', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<iframe src="data:text/html"></iframe>`, { waitUntil: 'commit' });await page.waitForLoadState('domcontentloaded');@@ -198,7 +198,7 @@ it('should work with broken data-url iframe', async ({ page, server }) => {await page.waitForLoadState('networkidle');});-it('should work with broken blob-url iframe', async ({ page, server, browserName }) => {+it('WA-094 should work with broken blob-url iframe', async ({ page, server, browserName }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<iframe src="blob:"></iframe>`, { waitUntil: 'commit' });await page.waitForLoadState('domcontentloaded');diff --git a/tests/page/page-wait-for-navigation.spec.ts b/tests/page/page-wait-for-navigation.spec.tsindex ecc677b485..e73f9b051a 100644--- a/tests/page/page-wait-for-navigation.spec.ts+++ b/tests/page/page-wait-for-navigation.spec.ts@@ -19,7 +19,7 @@ import { test as it, expect } from './pageTest';import type { Frame } from 'playwright-core';import { expectedSSLError } from '../config/utils';-it('should work', async ({ page, server }) => {+it('WA-095 should work', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [response] = await Promise.all([page.waitForNavigation(),@@ -29,7 +29,7 @@ it('should work', async ({ page, server }) => {expect(response.url()).toContain('grid.html');});-it('should respect timeout', async ({ page, server }) => {+it('WA-096 should respect timeout', async ({ page, server }) => {const promise = page.waitForNavigation({ url: '**/frame.html', timeout: 5000 });await page.goto(server.EMPTY_PAGE);const error = await promise.catch(e => e);@@ -38,7 +38,7 @@ it('should respect timeout', async ({ page, server }) => {expect(error.message).toContain(`navigated to "${server.EMPTY_PAGE}"`);});-it('should work with both domcontentloaded and load', async ({ page, server }) => {+it('WA-097 should work with both domcontentloaded and load', async ({ page, server }) => {let response = null;server.setRoute('/one-style.css', (req, res) => response = res);const navigationPromise = page.goto(server.PREFIX + '/one-style.html');@@ -60,7 +60,7 @@ it('should work with both domcontentloaded and load', async ({ page, server }) =await navigationPromise;});-it('should work with commit', async ({ page, server }) => {+it('WA-098 should work with commit', async ({ page, server }) => {server.setRoute('/script.js', (req, res) => {});server.setRoute('/empty.html', (req, res) => {res.setHeader('content-type', 'text/html');@@ -71,7 +71,7 @@ it('should work with commit', async ({ page, server }) => {expect(await page.title()).toBe('Hello');});-it('should work with clicking on anchor links', async ({ page, server }) => {+it('WA-099 should work with clicking on anchor links', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<a href='#foobar'>foobar</a>`);const [response] = await Promise.all([@@ -82,7 +82,7 @@ it('should work with clicking on anchor links', async ({ page, server }) => {expect(page.url()).toBe(server.EMPTY_PAGE + '#foobar');});-it('should work with clicking on links which do not commit navigation', async ({ page, server, httpsServer, browserName, platform, channel }) => {+it('WA-100 should work with clicking on links which do not commit navigation', async ({ page, server, httpsServer, browserName, platform, channel }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<a href='${httpsServer.EMPTY_PAGE}'>foobar</a>`);const [error] = await Promise.all([@@ -92,7 +92,7 @@ it('should work with clicking on links which do not commit navigation', async ({expect(error.message).toMatch(expectedSSLError(browserName, platform, channel));});-it('should work with history.pushState()', async ({ page, server }) => {+it('WA-101 should work with history.pushState()', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<a onclick='javascript:pushState()'>SPA</a>@@ -108,7 +108,7 @@ it('should work with history.pushState()', async ({ page, server }) => {expect(page.url()).toBe(server.PREFIX + '/wow.html');});-it('should work with history.replaceState()', async ({ page, server }) => {+it('WA-102 should work with history.replaceState()', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<a onclick='javascript:replaceState()'>SPA</a>@@ -124,7 +124,7 @@ it('should work with history.replaceState()', async ({ page, server }) => {expect(page.url()).toBe(server.PREFIX + '/replaced.html');});-it('should work with DOM history.back()/history.forward()', async ({ page, server }) => {+it('WA-103 should work with DOM history.back()/history.forward()', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<a id=back onclick='javascript:goBack()'>back</a>@@ -151,7 +151,7 @@ it('should work with DOM history.back()/history.forward()', async ({ page, serveexpect(page.url()).toBe(server.PREFIX + '/second.html');});-it('should work when subframe issues window.stop()', async ({ browserName, page, server }) => {+it('WA-104 should work when subframe issues window.stop()', async ({ browserName, page, server }) => {it.fixme(browserName === 'webkit', 'WebKit issues load event in some cases, but not always');server.setRoute('/frames/style.css', (req, res) => {});@@ -166,7 +166,7 @@ it('should work when subframe issues window.stop()', async ({ browserName, page,expect(done).toBe(true);});-it('should work with url match', async ({ page, server }) => {+it('WA-105 should work with url match', async ({ page, server }) => {let response1 = null;const response1Promise = page.waitForNavigation({ url: /one-style\.html/ }).then(response => response1 = response);let response2 = null;@@ -201,7 +201,7 @@ it('should work with url match', async ({ page, server }) => {expect(response3.url()).toBe(server.PREFIX + '/frame.html?foo=bar');});-it('should work with url match for same document navigations', async ({ page, server }) => {+it('WA-106 should work with url match for same document navigations', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let resolved = false;const waitPromise = page.waitForNavigation({ url: /third\.html/ }).then(() => resolved = true);@@ -221,7 +221,7 @@ it('should work with url match for same document navigations', async ({ page, seexpect(resolved).toBe(true);});-it('should work for cross-process navigations', async ({ page, server }) => {+it('WA-107 should work for cross-process navigations', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const waitPromise = page.waitForNavigation({ waitUntil: 'domcontentloaded' });const url = server.CROSS_PROCESS_PREFIX + '/empty.html';@@ -233,7 +233,7 @@ it('should work for cross-process navigations', async ({ page, server }) => {await gotoPromise;});-it('should work on frame', async ({ page, server }) => {+it('WA-108 should work on frame', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');const frame = page.frames()[1];const [response] = await Promise.all([@@ -246,7 +246,7 @@ it('should work on frame', async ({ page, server }) => {expect(page.url()).toContain('/frames/one-frame.html');});-it('should fail when frame detaches', async ({ page, server }) => {+it('WA-109 should fail when frame detaches', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');const frame = page.frames()[1];server.setRoute('/empty.html', () => {});diff --git a/tests/page/page-wait-for-request.spec.ts b/tests/page/page-wait-for-request.spec.tsindex 9032af3f86..63db0d780b 100644--- a/tests/page/page-wait-for-request.spec.ts+++ b/tests/page/page-wait-for-request.spec.ts@@ -18,7 +18,7 @@import { test as it, expect } from './pageTest';import vm from 'vm';-it('should work', async ({ page, server }) => {+it('WA-121 should work', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [request] = await Promise.all([page.waitForRequest(server.PREFIX + '/digits/2.png'),@@ -31,7 +31,7 @@ it('should work', async ({ page, server }) => {expect(request.url()).toBe(server.PREFIX + '/digits/2.png');});-it('should work with predicate', async ({ page, server }) => {+it('WA-122 should work with predicate', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [request] = await Promise.all([page.waitForEvent('request', request => request.url() === server.PREFIX + '/digits/2.png'),@@ -44,7 +44,7 @@ it('should work with predicate', async ({ page, server }) => {expect(request.url()).toBe(server.PREFIX + '/digits/2.png');});-it('should respect timeout', async ({ page, playwright }) => {+it('WA-123 should respect timeout', async ({ page, playwright }) => {let error = null;await page.waitForEvent('request', { predicate: () => false, timeout: 1 }).catch(e => error = e);expect(error).toBeInstanceOf(playwright.errors.TimeoutError);@@ -54,19 +54,19 @@ it('should respect timeout', async ({ page, playwright }) => {expect(firstFrame).toContain(__filename);});-it('should respect default timeout', async ({ page, playwright }) => {+it('WA-124 should respect default timeout', async ({ page, playwright }) => {let error = null;page.setDefaultTimeout(1);await page.waitForEvent('request', () => false).catch(e => error = e);expect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should log the url', async ({ page }) => {+it('WA-125 should log the url', async ({ page }) => {const error = await page.waitForRequest('long-long-long-long-long-long-long-long-long-long-long-long-long-long.css', { timeout: 1000 }).catch(e => e);expect(error.message).toContain('waiting for request "long-long-long-long-long-long-long-long-long-long…"');});-it('should work with no timeout', async ({ page, server }) => {+it('WA-126 should work with no timeout', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [request] = await Promise.all([page.waitForRequest(server.PREFIX + '/digits/2.png', { timeout: 0 }),@@ -79,7 +79,7 @@ it('should work with no timeout', async ({ page, server }) => {expect(request.url()).toBe(server.PREFIX + '/digits/2.png');});-it('should work with url match', async ({ page, server }) => {+it('WA-127 should work with url match', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [request] = await Promise.all([page.waitForRequest(/digits\/\d\.png/),@@ -90,7 +90,7 @@ it('should work with url match', async ({ page, server }) => {expect(request.url()).toBe(server.PREFIX + '/digits/1.png');});-it('should work with url match regular expression from a different context', async ({ page, server }) => {+it('WA-128 should work with url match regular expression from a different context', async ({ page, server }) => {const ctx = vm.createContext();const regexp = vm.runInContext('new RegExp(/digits\\/\\d\\.png/)', ctx);diff --git a/tests/page/page-wait-for-response.spec.ts b/tests/page/page-wait-for-response.spec.tsindex e673492560..77a73a3df6 100644--- a/tests/page/page-wait-for-response.spec.ts+++ b/tests/page/page-wait-for-response.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should work', async ({ page, server }) => {+it('WA-129 should work', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [response] = await Promise.all([page.waitForResponse(server.PREFIX + '/digits/2.png'),@@ -30,13 +30,13 @@ it('should work', async ({ page, server }) => {expect(response.url()).toBe(server.PREFIX + '/digits/2.png');});-it('should respect timeout', async ({ page, playwright }) => {+it('WA-130 should respect timeout', async ({ page, playwright }) => {let error = null;await page.waitForEvent('response', { predicate: () => false, timeout: 1 }).catch(e => error = e);expect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should respect default timeout', async ({ page, playwright }) => {+it('WA-131 should respect default timeout', async ({ page, playwright }) => {let error = null;page.setDefaultTimeout(1);await page.waitForResponse(() => false).catch(e => error = e);@@ -46,14 +46,14 @@ it('should respect default timeout', async ({ page, playwright }) => {expect(firstFrame).toContain(__filename);});-it('should log the url', async ({ page }) => {+it('WA-132 should log the url', async ({ page }) => {const error1 = await page.waitForResponse('foo.css', { timeout: 1000 }).catch(e => e);expect(error1.message).toContain('waiting for response "foo.css"');const error2 = await page.waitForResponse(/foo.css/i, { timeout: 1000 }).catch(e => e);expect(error2.message).toContain('waiting for response /foo.css/i');});-it('should work with predicate', async ({ page, server }) => {+it('WA-133 should work with predicate', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [response] = await Promise.all([page.waitForEvent('response', response => response.url() === server.PREFIX + '/digits/2.png'),@@ -66,7 +66,7 @@ it('should work with predicate', async ({ page, server }) => {expect(response.url()).toBe(server.PREFIX + '/digits/2.png');});-it('should work with async predicate', async ({ page, server }) => {+it('WA-134 should work with async predicate', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [response1, response2] = await Promise.all([page.waitForEvent('response', async response => {@@ -86,7 +86,7 @@ it('should work with async predicate', async ({ page, server }) => {expect(response2.url()).toBe(server.PREFIX + '/simple.json');});-it('sync predicate should be only called once', async ({ page, server }) => {+it('WA-135 sync predicate should be only called once', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let counter = 0;const [response] = await Promise.all([@@ -104,7 +104,7 @@ it('sync predicate should be only called once', async ({ page, server }) => {expect(counter).toBe(1);});-it('should work with no timeout', async ({ page, server }) => {+it('WA-136 should work with no timeout', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const [response] = await Promise.all([page.waitForResponse(server.PREFIX + '/digits/2.png', { timeout: 0 }),diff --git a/tests/page/page-wait-for-selector-1.spec.ts b/tests/page/page-wait-for-selector-1.spec.tsindex 6ee01e29e8..8f5913eaa6 100644--- a/tests/page/page-wait-for-selector-1.spec.ts+++ b/tests/page/page-wait-for-selector-1.spec.ts@@ -25,7 +25,7 @@ async function giveItTimeToLog(frame: Frame) {const addElement = (tag: string) => document.body.appendChild(document.createElement(tag));-it('should throw on waitFor', async ({ page, server }) => {+it('WA-027 should throw on waitFor', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let error;// @ts-expect-error waitFor is undocumented@@ -33,7 +33,7 @@ it('should throw on waitFor', async ({ page, server }) => {expect(error!.message).toContain('options.waitFor is not supported, did you mean options.state?');});-it('should tolerate waitFor=visible', async ({ page, server }) => {+it('WA-028 should tolerate waitFor=visible', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let error = false;// @ts-expect-error waitFor is undocumented@@ -41,7 +41,7 @@ it('should tolerate waitFor=visible', async ({ page, server }) => {expect(error).toBe(false);});-it('should immediately resolve promise if node exists', async ({ page, server }) => {+it('WA-029 should immediately resolve promise if node exists', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const frame = page.mainFrame();await frame.waitForSelector('*');@@ -49,14 +49,14 @@ it('should immediately resolve promise if node exists', async ({ page, server })await frame.waitForSelector('div', { state: 'attached' });});-it('elementHandle.waitForSelector should immediately resolve if node exists', async ({ page }) => {+it('WA-030 elementHandle.waitForSelector should immediately resolve if node exists', async ({ page }) => {await page.setContent(`<span>extra</span><div><span>target</span></div>`);const div = (await page.$('div'))!;const span = await div.waitForSelector('span', { state: 'attached' });expect(await span.evaluate(e => e.textContent)).toBe('target');});-it('elementHandle.waitForSelector should wait', async ({ page }) => {+it('WA-031 elementHandle.waitForSelector should wait', async ({ page }) => {await page.setContent(`<div></div>`);const div = (await page.$('div'))!;const promise = div.waitForSelector('span', { state: 'attached' });@@ -65,14 +65,14 @@ it('elementHandle.waitForSelector should wait', async ({ page }) => {expect(await span.evaluate(e => e.textContent)).toBe('target');});-it('elementHandle.waitForSelector should timeout', async ({ page }) => {+it('WA-032 elementHandle.waitForSelector should timeout', async ({ page }) => {await page.setContent(`<div></div>`);const div = (await page.$('div'))!;const error = await div.waitForSelector('span', { timeout: 100 }).catch(e => e);expect(error.message).toContain('Timeout 100ms exceeded.');});-it('elementHandle.waitForSelector should throw on navigation', async ({ page, server }) => {+it('WA-033 elementHandle.waitForSelector should throw on navigation', async ({ page, server }) => {await page.setContent(`<div></div>`);const div = (await page.$('div'))!;const promise = div.waitForSelector('span').catch(e => e);@@ -84,7 +84,7 @@ it('elementHandle.waitForSelector should throw on navigation', async ({ page, seexpect(error.message).toContain(`waiting for locator('span') to be visible`);});-it('should work with removed MutationObserver', async ({ page }) => {+it('WA-034 should work with removed MutationObserver', async ({ page }) => {await page.evaluate(() => delete (window as any).MutationObserver);const [handle] = await Promise.all([page.waitForSelector('.zombo'),@@ -93,7 +93,7 @@ it('should work with removed MutationObserver', async ({ page }) => {expect(await page.evaluate(x => x.textContent, handle)).toBe('anything');});-it('should resolve promise when node is added', async ({ page, server }) => {+it('WA-035 should resolve promise when node is added', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const frame = page.mainFrame();const watchdog = frame.waitForSelector('div', { state: 'attached' });@@ -104,7 +104,7 @@ it('should resolve promise when node is added', async ({ page, server }) => {expect(tagName).toBe('DIV');});-it('should report logs while waiting for visible', async ({ page, server }) => {+it('WA-036 should report logs while waiting for visible', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const frame = page.mainFrame();const watchdog = frame.waitForSelector('div', { timeout: 5000 });@@ -138,7 +138,7 @@ it('should report logs while waiting for visible', async ({ page, server }) => {expect(error.message).toContain(`locator resolved to hidden <div class="another"></div>`);});-it('should report logs while waiting for hidden', async ({ page, server }) => {+it('WA-037 should report logs while waiting for hidden', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const frame = page.mainFrame();await frame.evaluate(() => {@@ -168,7 +168,7 @@ it('should report logs while waiting for hidden', async ({ page, server }) => {expect(error.message).toContain(`locator resolved to visible <div class="another">hello</div>`);});-it('should report logs when the selector resolves to multiple elements', async ({ page, server }) => {+it('WA-038 should report logs when the selector resolves to multiple elements', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<button style="display: none; position: absolute; top: 0px; left: 0px; width: 100%;">Reset</button>@@ -180,7 +180,7 @@ it('should report logs when the selector resolves to multiple elements', async (expect(error.toString()).toContain('locator resolved to 2 elements. Proceeding with the first one: <button>Reset</button>');});-it('should resolve promise when node is added in shadow dom', async ({ page, server }) => {+it('WA-039 should resolve promise when node is added in shadow dom', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const watchdog = page.waitForSelector('span');await page.evaluate(() => {@@ -198,7 +198,7 @@ it('should resolve promise when node is added in shadow dom', async ({ page, serexpect(await handle.evaluate(e => e.textContent)).toBe('Hello from shadow');});-it('should work when node is added through innerHTML', async ({ page, server }) => {+it('WA-040 should work when node is added through innerHTML', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const watchdog = page.waitForSelector('h3 div', { state: 'attached' });await page.evaluate(addElement, 'span');@@ -206,7 +206,7 @@ it('should work when node is added through innerHTML', async ({ page, server })await watchdog;});-it('page.waitForSelector is shortcut for main frame', async ({ page, server }) => {+it('WA-041 page.waitForSelector is shortcut for main frame', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await attachFrame(page, 'frame1', server.EMPTY_PAGE);const otherFrame = page.frames()[1];@@ -217,7 +217,7 @@ it('page.waitForSelector is shortcut for main frame', async ({ page, server }) =expect(await eHandle.ownerFrame()).toBe(page.mainFrame());});-it('should run in specified frame', async ({ page, server }) => {+it('WA-042 should run in specified frame', async ({ page, server }) => {await attachFrame(page, 'frame1', server.EMPTY_PAGE);await attachFrame(page, 'frame2', server.EMPTY_PAGE);const frame1 = page.frames()[1];@@ -229,7 +229,7 @@ it('should run in specified frame', async ({ page, server }) => {expect(await eHandle.ownerFrame()).toBe(frame2);});-it('should throw when frame is detached', async ({ page, server }) => {+it('WA-043 should throw when frame is detached', async ({ page, server }) => {await attachFrame(page, 'frame1', server.EMPTY_PAGE);const frame = page.frames()[1];let waitError = null;diff --git a/tests/page/page-wait-for-selector-2.spec.ts b/tests/page/page-wait-for-selector-2.spec.tsindex 8a8955a7e3..deaeed5ce6 100644--- a/tests/page/page-wait-for-selector-2.spec.ts+++ b/tests/page/page-wait-for-selector-2.spec.ts@@ -20,7 +20,7 @@ import { attachFrame, detachFrame } from '../config/utils';const addElement = (tag: string) => document.body.appendChild(document.createElement(tag));-it('should survive cross-process navigation', async ({ page, server }) => {+it('WA-044 should survive cross-process navigation', async ({ page, server }) => {let boxFound = false;const waitForSelector = page.waitForSelector('.box').then(() => boxFound = true);await page.goto(server.EMPTY_PAGE);@@ -32,7 +32,7 @@ it('should survive cross-process navigation', async ({ page, server }) => {expect(boxFound).toBe(true);});-it('should wait for visible', async ({ page, server }) => {+it('WA-045 should wait for visible', async ({ page, server }) => {let divFound = false;const waitForSelector = page.waitForSelector('div').then(() => divFound = true);await page.setContent(`<div style='display: none; visibility: hidden;'>1</div>`);@@ -44,7 +44,7 @@ it('should wait for visible', async ({ page, server }) => {expect(divFound).toBe(true);});-it('should not consider visible when zero-sized', async ({ page, server }) => {+it('WA-046 should not consider visible when zero-sized', async ({ page, server }) => {await page.setContent(`<div style='width: 0; height: 0;'>1</div>`);let error = await page.waitForSelector('div', { timeout: 1000 }).catch(e => e);expect(error.message).toContain('page.waitForSelector: Timeout 1000ms exceeded');@@ -55,7 +55,7 @@ it('should not consider visible when zero-sized', async ({ page, server }) => {expect(await page.waitForSelector('div', { timeout: 1000 })).toBeTruthy();});-it('should wait for visible recursively', async ({ page, server }) => {+it('WA-047 should wait for visible recursively', async ({ page, server }) => {let divVisible = false;const waitForSelector = page.waitForSelector('div#inner').then(() => divVisible = true);await page.setContent(`<div style='display: none; visibility: hidden;'><div id="inner">hi</div></div>`);@@ -67,7 +67,7 @@ it('should wait for visible recursively', async ({ page, server }) => {expect(divVisible).toBe(true);});-it('should consider outside of viewport visible', async ({ page }) => {+it('WA-048 should consider outside of viewport visible', async ({ page }) => {await page.setContent(`<style>.cover {@@ -88,7 +88,7 @@ it('should consider outside of viewport visible', async ({ page }) => {await expect(cover).toBeVisible();});-it('hidden should wait for hidden', async ({ page, server }) => {+it('WA-049 hidden should wait for hidden', async ({ page, server }) => {let divHidden = false;await page.setContent(`<div style='display: block;'>content</div>`);const waitForSelector = page.waitForSelector('div', { state: 'hidden' }).then(() => divHidden = true);@@ -99,7 +99,7 @@ it('hidden should wait for hidden', async ({ page, server }) => {expect(divHidden).toBe(true);});-it('hidden should wait for display: none', async ({ page, server }) => {+it('WA-050 hidden should wait for display: none', async ({ page, server }) => {let divHidden = false;await page.setContent(`<div style='display: block;'>content</div>`);const waitForSelector = page.waitForSelector('div', { state: 'hidden' }).then(() => divHidden = true);@@ -110,7 +110,7 @@ it('hidden should wait for display: none', async ({ page, server }) => {expect(divHidden).toBe(true);});-it('hidden should wait for removal', async ({ page, server }) => {+it('WA-051 hidden should wait for removal', async ({ page, server }) => {await page.setContent(`<div>content</div>`);let divRemoved = false;const waitForSelector = page.waitForSelector('div', { state: 'hidden' }).then(() => divRemoved = true);@@ -121,12 +121,12 @@ it('hidden should wait for removal', async ({ page, server }) => {expect(divRemoved).toBe(true);});-it('should return null if waiting to hide non-existing element', async ({ page, server }) => {+it('WA-052 should return null if waiting to hide non-existing element', async ({ page, server }) => {const handle = await page.waitForSelector('non-existing', { state: 'hidden' });expect(handle).toBe(null);});-it('should respect timeout', async ({ page, playwright }) => {+it('WA-053 should respect timeout', async ({ page, playwright }) => {let error: Error | undefined;await page.waitForSelector('div', { timeout: 3000, state: 'attached' }).catch(e => error = e);expect(error).toBeTruthy();@@ -135,7 +135,7 @@ it('should respect timeout', async ({ page, playwright }) => {expect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should have an error message specifically for awaiting an element to be hidden', async ({ page, server }) => {+it('WA-054 should have an error message specifically for awaiting an element to be hidden', async ({ page, server }) => {await page.setContent(`<div>content</div>`);let error: Error | undefined;await page.waitForSelector('div', { state: 'hidden', timeout: 1000 }).catch(e => error = e);@@ -144,7 +144,7 @@ it('should have an error message specifically for awaiting an element to be hiddexpect(error!.message).toContain('waiting for locator(\'div\') to be hidden');});-it('should respond to node attribute mutation', async ({ page, server }) => {+it('WA-055 should respond to node attribute mutation', async ({ page, server }) => {let divFound = false;const waitForSelector = page.waitForSelector('.zombo', { state: 'attached' }).then(() => divFound = true);await page.setContent(`<div class='notZombo'></div>`);@@ -153,47 +153,47 @@ it('should respond to node attribute mutation', async ({ page, server }) => {expect(await waitForSelector).toBe(true);});-it('should return the element handle', async ({ page, server }) => {+it('WA-056 should return the element handle', async ({ page, server }) => {const waitForSelector = page.waitForSelector('.zombo');await page.setContent(`<div class='zombo'>anything</div>`);expect(await page.evaluate(x => x.textContent, await waitForSelector)).toBe('anything');});-it('should have correct stack trace for timeout', async ({ page, server }) => {+it('WA-057 should have correct stack trace for timeout', async ({ page, server }) => {let error;await page.waitForSelector('.zombo', { timeout: 10 }).catch(e => error = e);expect(error!.stack).toContain('wait-for-selector');});-it('should throw for unknown state option', async ({ page, server }) => {+it('WA-058 should throw for unknown state option', async ({ page, server }) => {await page.setContent('<section>test</section>');// @ts-expect-error state is not an option of waitForSelectorconst error = await page.waitForSelector('section', { state: 'foo' }).catch(e => e);expect(error.message).toContain('state: expected one of (attached|detached|visible|hidden)');});-it('should throw for visibility option', async ({ page, server }) => {+it('WA-059 should throw for visibility option', async ({ page, server }) => {await page.setContent('<section>test</section>');// @ts-expect-error visibility is not an option of waitForSelectorconst error = await page.waitForSelector('section', { visibility: 'hidden' }).catch(e => e);expect(error.message).toContain('options.visibility is not supported, did you mean options.state?');});-it('should throw for true state option', async ({ page, server }) => {+it('WA-060 should throw for true state option', async ({ page, server }) => {await page.setContent('<section>test</section>');// @ts-expect-error state is not an option of waitForSelectorconst error = await page.waitForSelector('section', { state: true }).catch(e => e);expect(error.message).toContain('state: expected one of (attached|detached|visible|hidden)');});-it('should throw for false state option', async ({ page, server }) => {+it('WA-061 should throw for false state option', async ({ page, server }) => {await page.setContent('<section>test</section>');// @ts-expect-error state is not an option of waitForSelectorconst error = await page.waitForSelector('section', { state: false }).catch(e => e);expect(error.message).toContain('state: expected one of (attached|detached|visible|hidden)');});-it('should support >> selector syntax', async ({ page, server }) => {+it('WA-062 should support >> selector syntax', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const frame = page.mainFrame();const watchdog = frame.waitForSelector('css=div >> css=span', { state: 'attached' });@@ -205,12 +205,12 @@ it('should support >> selector syntax', async ({ page, server }) => {expect(tagName).toBe('SPAN');});-it('should wait for detached if already detached', async ({ page, server }) => {+it('WA-063 should wait for detached if already detached', async ({ page, server }) => {await page.setContent('<section id="testAttribute">43543</section>');expect(await page.waitForSelector('css=div', { state: 'detached' })).toBe(null);});-it('should wait for detached', async ({ page, server }) => {+it('WA-064 should wait for detached', async ({ page, server }) => {await page.setContent('<section id="testAttribute"><div>43543</div></section>');let done = false;const waitFor = page.waitForSelector('css=div', { state: 'detached' }).then(() => done = true);@@ -222,13 +222,13 @@ it('should wait for detached', async ({ page, server }) => {expect(done).toBe(true);});-it('should support some fancy xpath', async ({ page, server }) => {+it('WA-065 should support some fancy xpath', async ({ page, server }) => {await page.setContent(`<p>red herring</p><p>hello world </p>`);const waitForXPath = page.waitForSelector('//p[normalize-space(.)="hello world"]');expect(await page.evaluate(x => x.textContent, await waitForXPath)).toBe('hello world ');});-it('should respect timeout xpath', async ({ page, playwright }) => {+it('WA-066 should respect timeout xpath', async ({ page, playwright }) => {let error: Error | undefined;await page.waitForSelector('//div', { state: 'attached', timeout: 3000 }).catch(e => error = e);expect(error).toBeTruthy();@@ -237,7 +237,7 @@ it('should respect timeout xpath', async ({ page, playwright }) => {expect(error).toBeInstanceOf(playwright.errors.TimeoutError);});-it('should run in specified frame xpath', async ({ page, server }) => {+it('WA-067 should run in specified frame xpath', async ({ page, server }) => {await attachFrame(page, 'frame1', server.EMPTY_PAGE);await attachFrame(page, 'frame2', server.EMPTY_PAGE);const frame1 = page.frames()[1];@@ -249,7 +249,7 @@ it('should run in specified frame xpath', async ({ page, server }) => {expect(await eHandle.ownerFrame()).toBe(frame2);});-it('should throw when frame is detached xpath', async ({ page, server }) => {+it('WA-068 should throw when frame is detached xpath', async ({ page, server }) => {await attachFrame(page, 'frame1', server.EMPTY_PAGE);const frame = page.frames()[1];let waitError: Error | undefined;@@ -260,19 +260,19 @@ it('should throw when frame is detached xpath', async ({ page, server }) => {expect(waitError!.message).toContain('frame.waitForSelector: Frame was detached');});-it('should return the element handle xpath', async ({ page, server }) => {+it('WA-069 should return the element handle xpath', async ({ page, server }) => {const waitForXPath = page.waitForSelector('//*[@class="zombo"]');await page.setContent(`<div class='zombo'>anything</div>`);expect(await page.evaluate(x => x.textContent, await waitForXPath)).toBe('anything');});-it('should allow you to select an element with single slash xpath', async ({ page, server }) => {+it('WA-070 should allow you to select an element with single slash xpath', async ({ page, server }) => {await page.setContent(`<div>some text</div>`);const waitForXPath = page.waitForSelector('//html/body/div');expect(await page.evaluate(x => x.textContent, await waitForXPath)).toBe('some text');});-it('should correctly handle hidden shadow host', async ({ page, server }) => {+it('WA-071 should correctly handle hidden shadow host', async ({ page, server }) => {await page.setContent(`<x-host hidden></x-host><script>@@ -290,7 +290,7 @@ it('should correctly handle hidden shadow host', async ({ page, server }) => {await page.waitForSelector('div', { state: 'hidden' });});-it('should work when navigating before node adoption', async ({ page, mode, server }) => {+it('WA-072 should work when navigating before node adoption', async ({ page, mode, server }) => {it.skip(mode !== 'default');await page.goto(server.EMPTY_PAGE);@@ -310,7 +310,7 @@ it('should work when navigating before node adoption', async ({ page, mode, servexpect(await div.textContent()).toBe('hello, world!');});-it('should fail when navigating while on handle', async ({ page, mode, server }) => {+it('WA-073 should fail when navigating while on handle', async ({ page, mode, server }) => {it.skip(mode !== 'default');await page.goto(server.EMPTY_PAGE);@@ -329,7 +329,7 @@ it('should fail when navigating while on handle', async ({ page, mode, server })expect(error.message).toContain(`waiting for locator('div') to be visible`);});-it('should fail if element handle was detached while waiting', async ({ page, server }) => {+it('WA-074 should fail if element handle was detached while waiting', async ({ page, server }) => {await page.setContent(`<button>hello</button>`);const button = await page.$('button');const promise = button.waitForSelector('something').catch(e => e);@@ -339,7 +339,7 @@ it('should fail if element handle was detached while waiting', async ({ page, seexpect(error.message).toContain('Element is not attached to the DOM');});-it('should succeed if element handle was detached while waiting for hidden', async ({ page, server }) => {+it('WA-075 should succeed if element handle was detached while waiting for hidden', async ({ page, server }) => {await page.setContent(`<button>hello</button>`);const button = await page.$('button');const promise = button.waitForSelector('something', { state: 'hidden' });@@ -348,7 +348,7 @@ it('should succeed if element handle was detached while waiting for hidden', asyawait promise;});-it('should succeed if element handle was detached while waiting for detached', async ({ page, server }) => {+it('WA-076 should succeed if element handle was detached while waiting for detached', async ({ page, server }) => {await page.setContent(`<button>hello</button>`);const button = await page.$('button');const promise = button.waitForSelector('something', { state: 'detached' });diff --git a/tests/page/page-wait-for-url.spec.ts b/tests/page/page-wait-for-url.spec.tsindex 8f9c56c53c..c3d328416a 100644--- a/tests/page/page-wait-for-url.spec.ts+++ b/tests/page/page-wait-for-url.spec.ts@@ -17,20 +17,20 @@import { test as it, expect } from './pageTest';-it('should work', async ({ page, server }) => {+it('WA-110 should work', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.evaluate(url => window.location.href = url, server.PREFIX + '/grid.html');await page.waitForURL('**/grid.html');});-it('should respect timeout', async ({ page, server }) => {+it('WA-111 should respect timeout', async ({ page, server }) => {const promise = page.waitForURL('**/frame.html', { timeout: 2500 }).catch(e => e);await page.goto(server.EMPTY_PAGE);const error = await promise;expect(error.message).toContain('page.waitForURL: Timeout 2500ms exceeded.');});-it('should work with both domcontentloaded and load', async ({ page, server }) => {+it('WA-112 should work with both domcontentloaded and load', async ({ page, server }) => {let response = null;server.setRoute('/one-style.css', (req, res) => response = res);const navigationPromise = page.goto(server.PREFIX + '/one-style.html');@@ -49,7 +49,7 @@ it('should work with both domcontentloaded and load', async ({ page, server }) =await navigationPromise;});-it('should work with commit', async ({ page, server }) => {+it('WA-113 should work with commit', async ({ page, server }) => {server.setRoute('/script.js', (req, res) => {});server.setRoute('/empty.html', (req, res) => {res.setHeader('content-type', 'text/html');@@ -60,18 +60,18 @@ it('should work with commit', async ({ page, server }) => {expect(await page.title()).toBe('Hello');});-it('should work with commit and about:blank', async ({ page, server }) => {+it('WA-114 should work with commit and about:blank', async ({ page, server }) => {await page.waitForURL('about:blank', { waitUntil: 'commit' });});-it('should work with clicking on anchor links', async ({ page, server }) => {+it('WA-115 should work with clicking on anchor links', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<a href='#foobar'>foobar</a>`);await page.click('a');await page.waitForURL('**/*#foobar');});-it('should work with history.pushState()', async ({ page, server }) => {+it('WA-116 should work with history.pushState()', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<a onclick='javascript:pushState()'>SPA</a>@@ -84,7 +84,7 @@ it('should work with history.pushState()', async ({ page, server }) => {expect(page.url()).toBe(server.PREFIX + '/wow.html');});-it('should work with history.replaceState()', async ({ page, server }) => {+it('WA-117 should work with history.replaceState()', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<a onclick='javascript:replaceState()'>SPA</a>@@ -97,7 +97,7 @@ it('should work with history.replaceState()', async ({ page, server }) => {expect(page.url()).toBe(server.PREFIX + '/replaced.html');});-it('should work with DOM history.back()/history.forward()', async ({ page, server }) => {+it('WA-118 should work with DOM history.back()/history.forward()', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);await page.setContent(`<a id=back onclick='javascript:goBack()'>back</a>@@ -120,7 +120,7 @@ it('should work with DOM history.back()/history.forward()', async ({ page, serveexpect(page.url()).toBe(server.PREFIX + '/second.html');});-it('should work with url match for same document navigations', async ({ page, server }) => {+it('WA-119 should work with url match for same document navigations', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);let resolved = false;const waitPromise = page.waitForURL(/third\.html/).then(() => resolved = true);@@ -140,7 +140,7 @@ it('should work with url match for same document navigations', async ({ page, seexpect(resolved).toBe(true);});-it('should work on frame', async ({ page, server }) => {+it('WA-120 should work on frame', async ({ page, server }) => {await page.goto(server.PREFIX + '/frames/one-frame.html');const frame = page.frames()[1];await frame.evaluate(url => window.location.href = url, server.PREFIX + '/grid.html');diff --git a/tests/page/queryselector.spec.ts b/tests/page/queryselector.spec.tsindex 79d300596a..1bcbd5b338 100644--- a/tests/page/queryselector.spec.ts+++ b/tests/page/queryselector.spec.ts@@ -17,47 +17,47 @@import { test as it, expect } from './pageTest';-it('should throw for non-string selector', async ({ page }) => {+it('QS-001 should throw for non-string selector', async ({ page }) => {const error = await page.$(null).catch(e => e);expect(error.message).toContain('selector: expected string, got object');});-it('should query existing element with css selector @smoke', async ({ page, server }) => {+it('QS-002 should query existing element with css selector @smoke', async ({ page, server }) => {await page.setContent('<section>test</section>');const element = await page.$('css=section');expect(element).toBeTruthy();});-it('should query existing element with text selector', async ({ page, server }) => {+it('QS-003 should query existing element with text selector', async ({ page, server }) => {await page.setContent('<section>test</section>');const element = await page.$('text="test"');expect(element).toBeTruthy();});-it('should query existing element with xpath selector', async ({ page, server }) => {+it('QS-004 should query existing element with xpath selector', async ({ page, server }) => {await page.setContent('<section>test</section>');const element = await page.$('xpath=/html/body/section');expect(element).toBeTruthy();});-it('should return null for non-existing element', async ({ page, server }) => {+it('QS-005 should return null for non-existing element', async ({ page, server }) => {const element = await page.$('non-existing-element');expect(element).toBe(null);});-it('should auto-detect xpath selector', async ({ page, server }) => {+it('QS-006 should auto-detect xpath selector', async ({ page, server }) => {await page.setContent('<section>test</section>');const element = await page.$('//html/body/section');expect(element).toBeTruthy();});-it('should auto-detect xpath selector with starting parenthesis', async ({ page, server }) => {+it('QS-007 should auto-detect xpath selector with starting parenthesis', async ({ page, server }) => {await page.setContent('<section>test</section>');const element = await page.$('(//section)[1]');expect(element).toBeTruthy();});-it('should auto-detect xpath selector starting with ..', async ({ page, server }) => {+it('QS-008 should auto-detect xpath selector starting with ..', async ({ page, server }) => {await page.setContent('<div><section>test</section><span></span></div>');const span = await page.$('"test" >> ../span');expect(await span.evaluate(e => e.nodeName)).toBe('SPAN');@@ -65,25 +65,25 @@ it('should auto-detect xpath selector starting with ..', async ({ page, server }expect(await div.evaluate(e => e.nodeName)).toBe('DIV');});-it('should auto-detect text selector', async ({ page, server }) => {+it('QS-009 should auto-detect text selector', async ({ page, server }) => {await page.setContent('<section>test</section>');const element = await page.$('"test"');expect(element).toBeTruthy();});-it('should auto-detect css selector', async ({ page, server }) => {+it('QS-010 should auto-detect css selector', async ({ page, server }) => {await page.setContent('<section>test</section>');const element = await page.$('section');expect(element).toBeTruthy();});-it('should support >> syntax', async ({ page, server }) => {+it('QS-011 should support >> syntax', async ({ page, server }) => {await page.setContent('<section><div>test</div></section>');const element = await page.$('css=section >> css=div');expect(element).toBeTruthy();});-it('should query existing elements', async ({ page, server }) => {+it('QS-012 should query existing elements', async ({ page, server }) => {await page.setContent('<div>A</div><br/><div>B</div>');const elements = await page.$$('div');expect(elements.length).toBe(2);@@ -91,31 +91,31 @@ it('should query existing elements', async ({ page, server }) => {expect(await Promise.all(promises)).toEqual(['A', 'B']);});-it('should return empty array if nothing is found', async ({ page, server }) => {+it('QS-013 should return empty array if nothing is found', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);const elements = await page.$$('div');expect(elements.length).toBe(0);});-it('xpath should query existing element', async ({ page, server }) => {+it('QS-014 xpath should query existing element', async ({ page, server }) => {await page.setContent('<section>test</section>');const elements = await page.$$('xpath=/html/body/section');expect(elements[0]).toBeTruthy();expect(elements.length).toBe(1);});-it('xpath should return empty array for non-existing element', async ({ page, server }) => {+it('QS-015 xpath should return empty array for non-existing element', async ({ page, server }) => {const element = await page.$$('//html/body/non-existing-element');expect(element).toEqual([]);});-it('xpath should return multiple elements', async ({ page, server }) => {+it('QS-016 xpath should return multiple elements', async ({ page, server }) => {await page.setContent('<div></div><div></div>');const elements = await page.$$('xpath=/html/body/div');expect(elements.length).toBe(2);});-it('$$ should work with bogus Array.from', async ({ page, server }) => {+it('QS-017 $$ should work with bogus Array.from', async ({ page, server }) => {await page.setContent('<div>hello</div><div></div>');const div1 = await page.evaluateHandle(() => {Array.from = () => [];diff --git a/tests/page/retarget.spec.ts b/tests/page/retarget.spec.tsindex 741758c5f7..921d850e49 100644--- a/tests/page/retarget.spec.ts+++ b/tests/page/retarget.spec.ts@@ -20,7 +20,7 @@ import { test as it, expect, rafraf } from './pageTest';const giveItAChanceToResolve = (page: Page) => rafraf(page, 5);-it('element state checks should work as expected for label with zero-sized input', async ({ page, server }) => {+it('RE-001 element state checks should work as expected for label with zero-sized input', async ({ page, server }) => {await page.setContent(`<label>Click me@@ -36,7 +36,7 @@ it('element state checks should work as expected for label with zero-sized inputexpect(await page.isDisabled('text=Click me')).toBe(true);});-it('should wait for enclosing disabled button', async ({ page }) => {+it('RE-002 should wait for enclosing disabled button', async ({ page }) => {await page.setContent('<button><span>Target</span></button>');const span = (await page.$('text=Target'))!;let done = false;@@ -47,7 +47,7 @@ it('should wait for enclosing disabled button', async ({ page }) => {await promise;});-it('should wait for enclosing button with a disabled fieldset', async ({ page }) => {+it('RE-003 should wait for enclosing button with a disabled fieldset', async ({ page }) => {await page.setContent('<fieldset disabled=true><button><span>Target</span></button></div>');const span = (await page.$('text=Target'))!;let done = false;@@ -58,7 +58,7 @@ it('should wait for enclosing button with a disabled fieldset', async ({ page })await promise;});-it('should wait for enclosing enabled button', async ({ page, server }) => {+it('RE-004 should wait for enclosing enabled button', async ({ page, server }) => {await page.setContent('<button disabled><span>Target</span></button>');const span = (await page.$('text=Target'))!;let done = false;@@ -69,7 +69,7 @@ it('should wait for enclosing enabled button', async ({ page, server }) => {await promise;});-it('should check the box outside shadow dom label', async ({ page }) => {+it('RE-005 should check the box outside shadow dom label', async ({ page }) => {await page.setContent('<div></div>');await page.$eval('div', div => {const root = div.attachShadow({ mode: 'open' });@@ -86,7 +86,7 @@ it('should check the box outside shadow dom label', async ({ page }) => {expect(await page.$eval('input', input => input.checked)).toBe(true);});-it('setInputFiles should work with label', async ({ page, asset }) => {+it('RE-006 setInputFiles should work with label', async ({ page, asset }) => {await page.setContent(`<label for=target>Choose a file</label><input id=target type=file>`);await page.setInputFiles('text=Choose a file', asset('file-to-upload.txt'));expect(await page.$eval('input', (input: HTMLInputElement) => input.files!.length)).toBe(1);@@ -101,7 +101,7 @@ const domStandalone = (dom: string) => dom;const domInButton = (dom: string, options?: Options) => `<button ${optionsToAttributes(options)}>Button ${dom}</button>`;const domInLink = (dom: string, options?: Options) => `<button ${optionsToAttributes(options)}>Button ${dom}</button>`;-it('enabled/disabled retargeting', async ({ page, asset }) => {+it('RE-007 enabled/disabled retargeting', async ({ page, asset }) => {const cases = [{ dom: domInLabel(`<input id=target>`), enabled: true, locator: 'label' },{ dom: domLabelFor(`<input id=target>`), enabled: true, locator: 'label' },@@ -139,7 +139,7 @@ it('enabled/disabled retargeting', async ({ page, asset }) => {}});-it('visible/hidden retargeting', async ({ page, asset }) => {+it('RE-008 visible/hidden retargeting', async ({ page, asset }) => {const cases = [{ dom: domInLabel(`<span id=target>content</span>`), visible: true, locator: 'label' },{ dom: domInLabel(`<span id=target hidden>content</span>`), visible: true, locator: 'label' },@@ -177,7 +177,7 @@ it('visible/hidden retargeting', async ({ page, asset }) => {}});-it('editable retargeting', async ({ page, asset }) => {+it('RE-009 editable retargeting', async ({ page, asset }) => {const cases = [{ dom: domInLabel(`<input id=target>`), editable: true, locator: 'label' },{ dom: domLabelFor(`<input id=target>`), editable: true, locator: 'label' },@@ -209,7 +209,7 @@ it('editable retargeting', async ({ page, asset }) => {}});-it('input value retargeting', async ({ page, browserName }) => {+it('RE-010 input value retargeting', async ({ page, browserName }) => {const cases = [{ dom: domInLabel(`<input id=target>`), locator: 'label' },{ dom: domLabelFor(`<input id=target>`), locator: 'label' },@@ -244,7 +244,7 @@ it('input value retargeting', async ({ page, browserName }) => {}});-it('selection retargeting', async ({ page, browserName }) => {+it('RE-011 selection retargeting', async ({ page, browserName }) => {const cases = [{ dom: domStandalone(`<div contenteditable id=target>content</div>`), locator: 'div' },{ dom: domInButton(`<div contenteditable id=target>content</div>`), locator: 'div' },@@ -270,7 +270,7 @@ it('selection retargeting', async ({ page, browserName }) => {}});-it('select options retargeting', async ({ page }) => {+it('RE-012 select options retargeting', async ({ page }) => {const cases = [{ dom: domInLabel(`<select id=target multiple><option value=dog selected>Dog</option><option value=cat>Cat</option></select>`), locator: 'label' },{ dom: domLabelFor(`<select id=target multiple><option value=dog selected>Dog</option><option value=cat>Cat</option></select>`), locator: 'label' },@@ -299,7 +299,7 @@ it('select options retargeting', async ({ page }) => {}});-it('direct actions retargeting', async ({ page }) => {+it('RE-013 direct actions retargeting', async ({ page }) => {const cases = [{ dom: domInLabel(`<div>content</div><input id=target value=oh>`), locator: 'div' },{ dom: domLabelFor(`<div>content</div><input id=target value=oh>`), locator: 'div' },@@ -334,7 +334,7 @@ it('direct actions retargeting', async ({ page }) => {}});-it('check retargeting', async ({ page, asset }) => {+it('RE-014 check retargeting', async ({ page, asset }) => {const cases = [{ dom: domInLabel(`<input type=checkbox id=target>`), locator: 'label' },{ dom: domLabelFor(`<input type=checkbox id=target>`), locator: 'label' },@@ -368,7 +368,7 @@ it('check retargeting', async ({ page, asset }) => {}});-it('should not retarget anchor into parent label', async ({ page }) => {+it('RE-015 should not retarget anchor into parent label', async ({ page }) => {await page.setContent(`<label disabled>Text<a href='#' onclick='window.__clicked=1'>Target</a></label>`);diff --git a/tests/page/selectors-css.spec.ts b/tests/page/selectors-css.spec.tsindex 95980e1fdd..a144b0156d 100644--- a/tests/page/selectors-css.spec.ts+++ b/tests/page/selectors-css.spec.ts@@ -18,7 +18,7 @@import type { ElementHandle } from '@playwright/test';import { test as it, expect } from './pageTest';-it('should work with large DOM @smoke', async ({ page, server }) => {+it('SE-001 should work with large DOM @smoke', async ({ page, server }) => {await page.evaluate(() => {let id = 0;const next = (tag: string) => {@@ -74,7 +74,7 @@ it('should work with large DOM @smoke', async ({ page, server }) => {}});-it('should work for open shadow roots', async ({ page, server }) => {+it('SE-002 should work for open shadow roots', async ({ page, server }) => {await page.goto(server.PREFIX + '/deep-shadow.html');expect(await page.$eval(`css=span`, e => e.textContent)).toBe('Hello from root1');expect(await page.$eval(`css=[attr="value\\ space"]`, e => e.textContent)).toBe('Hello from root3 #2');@@ -102,7 +102,7 @@ it('should work for open shadow roots', async ({ page, server }) => {expect(await root3.$(`css:light=[attr*="value"]`)).toBe(null);});-it('should work with > combinator and spaces', async ({ page, server }) => {+it('SE-003 should work with > combinator and spaces', async ({ page, server }) => {await page.setContent(`<div foo="bar" bar="baz"><span></span></div>`);expect(await page.$eval(`div[foo="bar"] > span`, e => e.outerHTML)).toBe(`<span></span>`);expect(await page.$eval(`div[foo="bar"]> span`, e => e.outerHTML)).toBe(`<span></span>`);@@ -120,7 +120,7 @@ it('should work with > combinator and spaces', async ({ page, server }) => {expect(await page.$eval(`div[foo="bar"][bar="baz"] >span`, e => e.outerHTML)).toBe(`<span></span>`);});-it('should work with comma separated list', async ({ page, server }) => {+it('SE-004 should work with comma separated list', async ({ page, server }) => {await page.goto(server.PREFIX + '/deep-shadow.html');expect(await page.$$eval(`css=span,section #root1`, els => els.length)).toBe(5);expect(await page.$$eval(`css=section #root1, div span`, els => els.length)).toBe(5);@@ -133,7 +133,7 @@ it('should work with comma separated list', async ({ page, server }) => {expect(await page.$$eval(`css=#target,[data-testid="foo"],[attr="value\\ space"],span`, els => els.length)).toBe(4);});-it('should keep dom order with comma separated list', async ({ page }) => {+it('SE-005 should keep dom order with comma separated list', async ({ page }) => {await page.setContent(`<section><span><div><x></x><y></y></div></span></section>`);expect(await page.$$eval(`css=span,div`, els => els.map(e => e.nodeName).join(','))).toBe('SPAN,DIV');expect(await page.$$eval(`css=div,span`, els => els.map(e => e.nodeName).join(','))).toBe('SPAN,DIV');@@ -144,17 +144,17 @@ it('should keep dom order with comma separated list', async ({ page }) => {expect(await page.$$eval(`css=section >> *css=div,span >> css=y`, els => els.map(e => e.nodeName).join(','))).toBe('SPAN,DIV');});-it('should return multiple captures for the same node', async ({ page }) => {+it('SE-006 should return multiple captures for the same node', async ({ page }) => {await page.setContent(`<div><div><div><span></span></div></div></div>`);expect(await page.$$eval(`*css=div >> span`, els => els.map(e => e.nodeName).join(','))).toBe('DIV,DIV,DIV');});-it('should return multiple captures when going up the hierarchy', async ({ page }) => {+it('SE-007 should return multiple captures when going up the hierarchy', async ({ page }) => {await page.setContent(`<section>Hello<ul><li></li><li></li></ul></section>`);expect(await page.$$eval(`*css=li >> ../.. >> text=Hello`, els => els.map(e => e.nodeName).join(','))).toBe('LI,LI');});-it('should work with comma separated list in various positions', async ({ page }) => {+it('SE-008 should work with comma separated list in various positions', async ({ page }) => {await page.setContent(`<section><span><div><x></x><y></y></div></span></section>`);expect(await page.$$eval(`css=span,div >> css=x,y`, els => els.map(e => e.nodeName).join(','))).toBe('X,Y');expect(await page.$$eval(`css=span,div >> css=x`, els => els.map(e => e.nodeName).join(','))).toBe('X');@@ -168,7 +168,7 @@ it('should work with comma separated list in various positions', async ({ page }expect(await page.$$eval(`css=section >> css=span >> css=x,y`, els => els.map(e => e.nodeName).join(','))).toBe('X,Y');});-it('should work with comma inside text', async ({ page }) => {+it('SE-009 should work with comma inside text', async ({ page }) => {await page.setContent(`<span></span><div attr="hello,world!"></div>`);expect(await page.$eval(`css=div[attr="hello,world!"]`, e => e.outerHTML)).toBe('<div attr="hello,world!"></div>');expect(await page.$eval(`css=[attr="hello,world!"]`, e => e.outerHTML)).toBe('<div attr="hello,world!"></div>');@@ -177,7 +177,7 @@ it('should work with comma inside text', async ({ page }) => {expect(await page.$eval(`css=div[attr="hello,world!"],span`, e => e.outerHTML)).toBe('<span></span>');});-it('should work with attribute selectors', async ({ page }) => {+it('SE-010 should work with attribute selectors', async ({ page }) => {await page.setContent(`<div attr="hello world" attr2="hello-''>>foo=bar[]" attr3="] span"><span></span></div>`);await page.evaluate(() => (window as any)['div'] = document.querySelector('div'));const selectors = [@@ -201,19 +201,19 @@ it('should work with attribute selectors', async ({ page }) => {expect(await page.$eval(`[attr3="] span"] >> span`, e => e.parentNode === (window as any)['div'])).toBe(true);});-it('should not match root after >>', async ({ page, server }) => {+it('SE-011 should not match root after >>', async ({ page, server }) => {await page.setContent('<section><div>test</div></section>');const element = await page.$('css=section >> css=section');expect(element).toBe(null);});-it('should work with numerical id', async ({ page, server }) => {+it('SE-012 should work with numerical id', async ({ page, server }) => {await page.setContent('<section id="123"></section>');const element = await page.$('#\\31\\32\\33');expect(element).toBeTruthy();});-it('should work with wrong-case id', async ({ page }) => {+it('SE-013 should work with wrong-case id', async ({ page }) => {await page.setContent('<section id="Hello"></section>');expect(await page.$eval('#Hello', e => e.tagName)).toBe('SECTION');expect(await page.$eval('#hello', e => e.tagName)).toBe('SECTION');@@ -221,7 +221,7 @@ it('should work with wrong-case id', async ({ page }) => {expect(await page.$eval('#helLO', e => e.tagName)).toBe('SECTION');});-it('should work with *', async ({ page }) => {+it('SE-014 should work with *', async ({ page }) => {await page.setContent('<div id=div1></div><div id=div2><span><span></span></span></div>');// Includes html, head and body.expect(await page.$$eval('*', els => els.length)).toBe(7);@@ -260,7 +260,7 @@ it('should work with *', async ({ page }) => {expect(await body.$$eval('* *:not(span)', els => els.length)).toBe(0);});-it('should work with :nth-child', async ({ page, server }) => {+it('SE-015 should work with :nth-child', async ({ page, server }) => {await page.goto(server.PREFIX + '/deep-shadow.html');expect(await page.$$eval(`css=span:nth-child(odd)`, els => els.length)).toBe(3);expect(await page.$$eval(`css=span:nth-child(even)`, els => els.length)).toBe(1);@@ -274,7 +274,7 @@ it('should work with :nth-child', async ({ page, server }) => {expect(await page.$$eval(`css=span:nth-child(23n+2)`, els => els.length)).toBe(1);});-it('should work with :nth-child(of) notation with nested functions', async ({ page, browserName, browserMajorVersion }) => {+it('SE-016 should work with :nth-child(of) notation with nested functions', async ({ page, browserName, browserMajorVersion }) => {it.skip(browserName === 'chromium' && browserMajorVersion < 111, 'https://caniuse.com/css-nth-child-of');await page.setContent(`@@ -298,14 +298,14 @@ it('should work with :nth-child(of) notation with nested functions', async ({ paexpect(await page.$$eval(`css=span:nth-child(1 of .foo:nth-child(6))`, els => els.map(e => e.textContent))).toEqual([]);});-it('should work with :not', async ({ page, server }) => {+it('SE-017 should work with :not', async ({ page, server }) => {await page.goto(server.PREFIX + '/deep-shadow.html');expect(await page.$$eval(`css=div:not(#root1)`, els => els.length)).toBe(2);expect(await page.$$eval(`css=body :not(span)`, els => els.length)).toBe(4);expect(await page.$$eval(`css=div > :not(span):not(div)`, els => els.length)).toBe(0);});-it('should work with ~', async ({ page }) => {+it('SE-018 should work with ~', async ({ page }) => {await page.setContent(`<div id=div1></div><div id=div2></div>@@ -329,7 +329,7 @@ it('should work with ~', async ({ page }) => {expect(await page.$$eval(`css=#div3 ~ #div4 ~ #div5`, els => els.length)).toBe(1);});-it('should work with +', async ({ page }) => {+it('SE-019 should work with +', async ({ page }) => {await page.setContent(`<section><div id=div1></div>@@ -361,7 +361,7 @@ it('should work with +', async ({ page }) => {expect(await page.$eval(`css=div:has(:scope + #div5)`, e => e.id)).toBe('div4');});-it('should work with spaces in :nth-child and :not', async ({ page, server }) => {+it('SE-020 should work with spaces in :nth-child and :not', async ({ page, server }) => {await page.goto(server.PREFIX + '/deep-shadow.html');expect(await page.$$eval(`css=span:nth-child(23n +2)`, els => els.length)).toBe(1);expect(await page.$$eval(`css=span:nth-child(23n+ 2)`, els => els.length)).toBe(1);@@ -375,7 +375,7 @@ it('should work with spaces in :nth-child and :not', async ({ page, server }) =>expect(await page.$$eval(`span:nth-child(23n+ 2) >> xpath=.`, els => els.length)).toBe(1);});-it('should work with :is', async ({ page, server }) => {+it('SE-021 should work with :is', async ({ page, server }) => {await page.goto(server.PREFIX + '/deep-shadow.html');expect(await page.$$eval(`css=div:is(#root1)`, els => els.length)).toBe(1);expect(await page.$$eval(`css=div:is(#root1, #target)`, els => els.length)).toBe(1);@@ -389,7 +389,7 @@ it('should work with :is', async ({ page, server }) => {expect(await page.$$eval(`css=#root1:has(:is(:scope, #root1))`, els => els.length)).toBe(1);});-it('should work with :has', async ({ page, server }) => {+it('SE-022 should work with :has', async ({ page, server }) => {await page.goto(server.PREFIX + '/deep-shadow.html');expect(await page.$$eval(`css=div:has(#target)`, els => els.length)).toBe(2);expect(await page.$$eval(`css=div:has([data-testid=foo])`, els => els.length)).toBe(3);@@ -403,7 +403,7 @@ it('should work with :has', async ({ page, server }) => {expect(await page.$$eval(`section:has(span, br, div)`, els => els.length)).toBe(2);});-it('should work with :scope', async ({ page, server }) => {+it('SE-023 should work with :scope', async ({ page, server }) => {await page.goto(server.PREFIX + '/deep-shadow.html');// 'is' does not change the scope, so it remains 'html'.expect(await page.$$eval(`css=div:is(:scope#root1)`, els => els.length)).toBe(0);@@ -438,7 +438,7 @@ it('should work with :scope', async ({ page, server }) => {// expect(await page.$$eval(`#span1 >> span:is(:scope,#inner)`, els => els.map(e => e.id))).toEqual(['span1', 'inner']);});-it('should work with :scope and class', async ({ page }) => {+it('SE-024 should work with :scope and class', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/17824' });await page.setContent(`<div class="apple"></div><div class="apple selected"></div>`);@@ -447,7 +447,7 @@ it('should work with :scope and class', async ({ page }) => {await expect(selectedApples).toHaveCount(1);});-it('should absolutize relative selectors', async ({ page, server }) => {+it('SE-025 should absolutize relative selectors', async ({ page, server }) => {await page.setContent(`<div><span>Hi</span></div>`);expect(await page.$eval('div >> >span', e => e.textContent)).toBe('Hi');expect(await page.locator('div').locator('>span').textContent()).toBe('Hi');@@ -455,7 +455,7 @@ it('should absolutize relative selectors', async ({ page, server }) => {expect(await page.$('div:has(> div)')).toBe(null);});-it('css on the handle should be relative', async ({ page }) => {+it('SE-026 css on the handle should be relative', async ({ page }) => {await page.setContent(`<span class="find-me" id=target1>1</span><div>@@ -469,7 +469,7 @@ it('css on the handle should be relative', async ({ page }) => {expect(await page.$eval(`div >> .find-me`, e => e.id)).toBe('target2');});-it('should use light DOM structure for child combinator with slotted content', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37768' } }, async ({ page }) => {+it('SE-027 should use light DOM structure for child combinator with slotted content', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37768' } }, async ({ page }) => {await page.setContent(`<my-button><template shadowrootmode="open">diff --git a/tests/page/selectors-frame.spec.ts b/tests/page/selectors-frame.spec.tsindex 62d5899a9f..4d26424c5f 100644--- a/tests/page/selectors-frame.spec.ts+++ b/tests/page/selectors-frame.spec.ts@@ -46,7 +46,7 @@ async function routeIframe(page: Page) {});}-it('should work for iframe @smoke', async ({ page, server }) => {+it('SE-098 should work for iframe @smoke', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.locator('iframe >> internal:control=enter-frame >> button');@@ -56,7 +56,7 @@ it('should work for iframe @smoke', async ({ page, server }) => {await button.click();});-it('should work for iframe (handle)', async ({ page, server }) => {+it('SE-099 should work for iframe (handle)', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const body = await page.$('body');@@ -66,7 +66,7 @@ it('should work for iframe (handle)', async ({ page, server }) => {await button.click();});-it('should work for nested iframe', async ({ page, server }) => {+it('SE-100 should work for nested iframe', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.locator('iframe >> internal:control=enter-frame >> iframe >> internal:control=enter-frame >> button');@@ -76,7 +76,7 @@ it('should work for nested iframe', async ({ page, server }) => {await button.click();});-it('should work for nested iframe (handle)', async ({ page, server }) => {+it('SE-101 should work for nested iframe (handle)', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const body = await page.$('body');@@ -86,7 +86,7 @@ it('should work for nested iframe (handle)', async ({ page, server }) => {await button.click();});-it('should work for $ and $$', async ({ page, server }) => {+it('SE-102 should work for $ and $$', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const element = await page.$('iframe >> internal:control=enter-frame >> button');@@ -95,21 +95,21 @@ it('should work for $ and $$', async ({ page, server }) => {expect(elements).toHaveLength(2);});-it('$ should not wait for frame', async ({ page, server }) => {+it('SE-103 $ should not wait for frame', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(await page.$('iframe >> internal:control=enter-frame >> canvas')).toBeFalsy();const body = await page.$('body');expect(await body.$('iframe >> internal:control=enter-frame >> canvas')).toBeFalsy();});-it('$$ should not wait for frame', async ({ page, server }) => {+it('SE-104 $$ should not wait for frame', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(await page.$$('iframe >> internal:control=enter-frame >> canvas')).toHaveLength(0);const body = await page.$('body');expect(await body.$$('iframe >> internal:control=enter-frame >> canvas')).toHaveLength(0);});-it('$eval should throw for missing frame', async ({ page, server }) => {+it('SE-105 $eval should throw for missing frame', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);{const error = await page.$eval('iframe >> internal:control=enter-frame >> canvas', e => 1).catch(e => e);@@ -122,14 +122,14 @@ it('$eval should throw for missing frame', async ({ page, server }) => {}});-it('$$eval should not throw for missing frame', async ({ page, server }) => {+it('SE-106 $$eval should not throw for missing frame', async ({ page, server }) => {await page.goto(server.EMPTY_PAGE);expect(await page.$$eval('iframe >> internal:control=enter-frame >> canvas', e => e.length)).toBe(0);const body = await page.$('body');expect(await body.$$eval('iframe >> internal:control=enter-frame >> canvas', e => e.length)).toBe(0);});-it('should work for $ and $$ (handle)', async ({ page, server }) => {+it('SE-107 should work for $ and $$ (handle)', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const body = await page.$('body');@@ -139,14 +139,14 @@ it('should work for $ and $$ (handle)', async ({ page, server }) => {expect(elements).toHaveLength(2);});-it('should work for $eval', async ({ page, server }) => {+it('SE-108 should work for $eval', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const value = await page.$eval('iframe >> internal:control=enter-frame >> button', b => b.nodeName);expect(value).toBe('BUTTON');});-it('should work for $eval (handle)', async ({ page, server }) => {+it('SE-109 should work for $eval (handle)', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const body = await page.$('body');@@ -154,14 +154,14 @@ it('should work for $eval (handle)', async ({ page, server }) => {expect(value).toBe('BUTTON');});-it('should work for $$eval', async ({ page, server }) => {+it('SE-110 should work for $$eval', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const value = await page.$$eval('iframe >> internal:control=enter-frame >> span', ss => ss.map(s => s.textContent));expect(value).toEqual(['1', '2']);});-it('should work for $$eval (handle)', async ({ page, server }) => {+it('SE-111 should work for $$eval (handle)', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const body = await page.$('body');@@ -169,7 +169,7 @@ it('should work for $$eval (handle)', async ({ page, server }) => {expect(value).toEqual(['1', '2']);});-it('should not allow dangling enter-frame', async ({ page, server }) => {+it('SE-112 should not allow dangling enter-frame', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.locator('iframe >> internal:control=enter-frame');@@ -178,14 +178,14 @@ it('should not allow dangling enter-frame', async ({ page, server }) => {expect(error.message).toContain('iframe >> internal:control=enter-frame');});-it('should not allow leading enter-frame', async ({ page, server }) => {+it('SE-113 should not allow leading enter-frame', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const error = await page.waitForSelector('internal:control=enter-frame >> button').catch(e => e);expect(error.message).toContain('Selector cannot start with');});-it('should not allow capturing before enter-frame', async ({ page, server }) => {+it('SE-114 should not allow capturing before enter-frame', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.locator('*css=iframe >> internal:control=enter-frame >> div');@@ -193,14 +193,14 @@ it('should not allow capturing before enter-frame', async ({ page, server }) =>expect(error.message).toContain('Can not capture the selector before diving into the frame');});-it('should capture after the enter-frame', async ({ page, server }) => {+it('SE-115 should capture after the enter-frame', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const div = page.locator('iframe >> internal:control=enter-frame >> *css=div >> button');expect(await div.innerHTML()).toContain('<button>');});-it('should click in lazy iframe', async ({ page, server }) => {+it('SE-116 should click in lazy iframe', async ({ page, server }) => {await page.route('**/iframe.html', route => {route.fulfill({body: '<html><button>Hello iframe</button></html>',@@ -233,7 +233,7 @@ it('should click in lazy iframe', async ({ page, server }) => {expect(text).toBe('Hello iframe');});-it('waitFor should survive frame reattach', async ({ page, server }) => {+it('SE-117 waitFor should survive frame reattach', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.locator('iframe >> internal:control=enter-frame >> button:has-text("Hello nested iframe")');@@ -247,7 +247,7 @@ it('waitFor should survive frame reattach', async ({ page, server }) => {await promise;});-it('waitForSelector should survive frame reattach (handle)', async ({ page, server }) => {+it('SE-118 waitForSelector should survive frame reattach (handle)', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const body = await page.$('body');@@ -261,7 +261,7 @@ it('waitForSelector should survive frame reattach (handle)', async ({ page, servawait promise;});-it('waitForSelector should survive iframe navigation (handle)', async ({ page, server }) => {+it('SE-119 waitForSelector should survive iframe navigation (handle)', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const body = await page.$('body');@@ -270,7 +270,7 @@ it('waitForSelector should survive iframe navigation (handle)', async ({ page, sawait promise;});-it('click should survive frame reattach', async ({ page, server }) => {+it('SE-120 click should survive frame reattach', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.locator('iframe >> internal:control=enter-frame >> button:has-text("Hello nested iframe")');@@ -284,7 +284,7 @@ it('click should survive frame reattach', async ({ page, server }) => {await promise;});-it('click should survive iframe navigation', async ({ page, server }) => {+it('SE-121 click should survive iframe navigation', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.locator('iframe >> internal:control=enter-frame >> button:has-text("Hello nested iframe")');@@ -293,7 +293,7 @@ it('click should survive iframe navigation', async ({ page, server }) => {await promise;});-it('click should survive navigation', async ({ page, server }) => {+it('SE-122 click should survive navigation', async ({ page, server }) => {await routeIframe(page);await page.goto(server.PREFIX + '/iframe.html');const promise = page.click('button:has-text("Hello nested iframe")');@@ -302,7 +302,7 @@ it('click should survive navigation', async ({ page, server }) => {await promise;});-it('should non work for non-frame', async ({ page, server }) => {+it('SE-123 should non work for non-frame', async ({ page, server }) => {await routeIframe(page);await page.setContent('<div></div>');const button = page.locator('div >> internal:control=enter-frame >> button');@@ -311,7 +311,7 @@ it('should non work for non-frame', async ({ page, server }) => {expect(error.message).toContain('<iframe> was expected');});-it('should match in a descendant frame', async ({ page, server }) => {+it('SE-124 should match in a descendant frame', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);// The main frame has no <div>; only the iframe.html child frame does.@@ -321,7 +321,7 @@ it('should match in a descendant frame', async ({ page, server }) => {expect(await div.innerHTML()).toContain('<button>Hello iframe</button>');});-it('should match in a deeply nested frame', async ({ page, server }) => {+it('SE-125 should match in a deeply nested frame', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);// The main frame has no <div>; only the iframe.html child frame does.@@ -331,7 +331,7 @@ it('should match in a deeply nested frame', async ({ page, server }) => {expect(await button.textContent()).toBe('Hello nested iframe');});-it('should not match a chain across frames', async ({ page, server }) => {+it('SE-126 should not match a chain across frames', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);// The <div> lives in the iframe.html frame, while the button lives in the frame nested below it.@@ -339,7 +339,7 @@ it('should not match a chain across frames', async ({ page, server }) => {await expect(page.locator('internal:control=any-frame >> div >> button')).toHaveText('Hello iframe');});-it('should match multiple elements', async ({ page, server }) => {+it('SE-127 should match multiple elements', async ({ page, server }) => {await page.route('**/empty.html', route => {route.fulfill({ body: '<iframe src="a.html"></iframe><iframe src="b.html"></iframe>', contentType: 'text/html' }).catch(() => {});});@@ -355,7 +355,7 @@ it('should match multiple elements', async ({ page, server }) => {expect(texts).toEqual(['two', 'three']);});-it('should throw when matching elements in multiple frames', async ({ page, server }) => {+it('SE-128 should throw when matching elements in multiple frames', async ({ page, server }) => {await page.route('**/empty.html', route => {route.fulfill({ body: '<iframe src="a.html"></iframe><iframe src="b.html"></iframe>', contentType: 'text/html' }).catch(() => {});});@@ -379,14 +379,14 @@ it('should throw when matching elements in multiple frames', async ({ page, servexpect(error.message).toContain('frameLocator() matched elements in multiple frames');});-it('should not allow any-frame in the middle of a selector', async ({ page, server }) => {+it('SE-129 should not allow any-frame in the middle of a selector', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const error = await page.locator('iframe >> internal:control=any-frame >> div').waitFor().catch(e => e);expect(error.message).toContain('"any-frame" is only allowed as the first selector token');});-it('should allow entering frames from any frame', async ({ page, server }) => {+it('SE-130 should allow entering frames from any frame', async ({ page, server }) => {await routeIframe(page);await page.goto(server.EMPTY_PAGE);const button = page.locator('internal:control=any-frame >> iframe[src="iframe-2.html"] >> internal:control=enter-frame >> button');@@ -394,12 +394,12 @@ it('should allow entering frames from any frame', async ({ page, server }) => {expect(await button.innerText()).toBe('Hello nested iframe');});-it('should not allow any-frame after entering a frame', async ({ page }) => {+it('SE-131 should not allow any-frame after entering a frame', async ({ page }) => {const error = await page.locator('iframe >> internal:control=enter-frame >> internal:control=any-frame >> button').count().catch(e => e);expect(error.message).toContain('"any-frame" is only allowed as the first selector token');});-it('should not allow dangling enter-frame after any-frame', async ({ page }) => {+it('SE-132 should not allow dangling enter-frame after any-frame', async ({ page }) => {const error = await page.locator('internal:control=any-frame >> iframe >> internal:control=enter-frame').count().catch(e => e);expect(error.message).toContain('Selector cannot end with entering frame');});diff --git a/tests/page/selectors-get-by.spec.ts b/tests/page/selectors-get-by.spec.tsindex 1eca1ec308..9bc9a5e1c1 100644--- a/tests/page/selectors-get-by.spec.ts+++ b/tests/page/selectors-get-by.spec.ts@@ -16,14 +16,14 @@import { test as it, expect } from './pageTest';-it('getByTestId should work', async ({ page }) => {+it('SE-071 getByTestId should work', async ({ page }) => {await page.setContent('<div><div data-testid="Hello">Hello world</div></div>');await expect(page.getByTestId('Hello')).toHaveText('Hello world');await expect(page.mainFrame().getByTestId('Hello')).toHaveText('Hello world');await expect(page.locator('div').getByTestId('Hello')).toHaveText('Hello world');});-it('getByTestId with custom testId should work', async ({ page, playwright }) => {+it('SE-072 getByTestId with custom testId should work', async ({ page, playwright }) => {await page.setContent('<div><div data-my-custom-testid="Hello">Hello world</div></div>');playwright.selectors.setTestIdAttribute('data-my-custom-testid');await expect(page.getByTestId('Hello')).toHaveText('Hello world');@@ -31,7 +31,7 @@ it('getByTestId with custom testId should work', async ({ page, playwright }) =>await expect(page.locator('div').getByTestId('Hello')).toHaveText('Hello world');});-it('getByTestId with comma-separated testIdAttributes should match any', async ({ page, playwright }) => {+it('SE-073 getByTestId with comma-separated testIdAttributes should match any', async ({ page, playwright }) => {await page.setContent(`<section><div data-pw="Hello">first</div>@@ -46,19 +46,19 @@ it('getByTestId with comma-separated testIdAttributes should match any', async (await expect(page.locator('section').getByTestId('Hello')).toHaveCount(2);});-it('getByTestId should escape id', async ({ page }) => {+it('SE-074 getByTestId should escape id', async ({ page }) => {await page.setContent(`<div><div data-testid='He"llo'>Hello world</div></div>`);await expect(page.getByTestId('He"llo')).toHaveText('Hello world');});-it('getByTestId should work for regex', async ({ page }) => {+it('SE-075 getByTestId should work for regex', async ({ page }) => {await page.setContent('<div><div data-testid="Hello">Hello world</div></div>');await expect(page.getByTestId(/He[l]*o/)).toHaveText('Hello world');await expect(page.mainFrame().getByTestId('Hello')).toHaveText('Hello world');await expect(page.locator('div').getByTestId('Hello')).toHaveText('Hello world');});-it('getByText should work', async ({ page }) => {+it('SE-076 getByText should work', async ({ page }) => {await page.setContent(`<div>yo</div><div>ya</div><div>\nye </div>`);expect(await page.getByText('ye').evaluate(e => e.outerHTML)).toContain('>\nye </div>');expect(await page.getByText(/ye/).evaluate(e => e.outerHTML)).toContain('>\nye </div>');@@ -71,7 +71,7 @@ it('getByText should work', async ({ page }) => {expect(await page.getByText('Hello', { exact: true }).evaluate(e => e.outerHTML)).toContain('>Hello</div>');});-it('getByLabel should work', async ({ page }) => {+it('SE-077 getByLabel should work', async ({ page }) => {await page.setContent(`<div><label for=target>Name</label><input id=target type=text></div>`);expect(await page.getByText('Name').evaluate(e => e.nodeName)).toBe('LABEL');expect(await page.getByLabel('Name').evaluate(e => e.nodeName)).toBe('INPUT');@@ -79,7 +79,7 @@ it('getByLabel should work', async ({ page }) => {expect(await page.locator('div').getByLabel('Name').evaluate(e => e.nodeName)).toBe('INPUT');});-it('getByLabel should work with nested elements', async ({ page }) => {+it('SE-078 getByLabel should work with nested elements', async ({ page }) => {await page.setContent(`<label for=target>Last <span>Name</span></label><input id=target type=text>`);await expect(page.getByLabel('last name')).toHaveAttribute('id', 'target');@@ -95,18 +95,18 @@ it('getByLabel should work with nested elements', async ({ page }) => {expect(await page.getByLabel(/last name/).elementHandles()).toEqual([]);});-it('getByLabel should work with multiply-labelled input', async ({ page }) => {+it('SE-079 getByLabel should work with multiply-labelled input', async ({ page }) => {await page.setContent(`<label for=target>Name</label><input id=target type=text><label for=target>First or Last</label>`);expect(await page.getByLabel('Name').evaluate(e => e.id)).toBe('target');expect(await page.getByLabel('First or Last').evaluate(e => e.id)).toBe('target');});-it('getByLabel should work with ancestor label and multiple controls', async ({ page }) => {+it('SE-080 getByLabel should work with ancestor label and multiple controls', async ({ page }) => {await page.setContent(`<label>Name<button id=target>Click me</button><input type=text></label>`);expect(await page.getByLabel('Name').evaluate(e => e.id)).toBe('target');});-it('getByLabel should work with ancestor label and for', async ({ page }) => {+it('SE-081 getByLabel should work with ancestor label and for', async ({ page }) => {await page.setContent(`<label for=target>Name<input type=text id=nontarget></label><input type=text id=target>@@ -114,12 +114,12 @@ it('getByLabel should work with ancestor label and for', async ({ page }) => {expect(await page.getByLabel('Name').evaluate(e => e.id)).toBe('target');});-it('getByLabel should work with aria-labelledby', async ({ page }) => {+it('SE-082 getByLabel should work with aria-labelledby', async ({ page }) => {await page.setContent(`<label id=name-label>Name</label><button aria-labelledby=name-label>Click me</button>`);expect(await page.getByLabel('Name').evaluate(e => e.textContent)).toBe('Click me');});-it('getByLabel should prioritize aria-labelledby over native label', async ({ page }) => {+it('SE-083 getByLabel should prioritize aria-labelledby over native label', async ({ page }) => {await page.setContent(`<label id=name-label>Name</label><label>Wrong<button aria-labelledby=name-label>Click me</button></label>@@ -127,22 +127,22 @@ it('getByLabel should prioritize aria-labelledby over native label', async ({ paexpect(await page.getByLabel('Name').evaluate(e => e.textContent)).toBe('Click me');});-it('getByLabel should work with aria-label', async ({ page }) => {+it('SE-084 getByLabel should work with aria-label', async ({ page }) => {await page.setContent(`<input id=target aria-label="Name">`);expect(await page.getByLabel('Name').evaluate(e => e.id)).toBe('target');});-it('getByLabel should ignore empty aria-label', async ({ page }) => {+it('SE-085 getByLabel should ignore empty aria-label', async ({ page }) => {await page.setContent(`<label for=target>Last Name</label><input id=target type=text aria-label>`);expect(await page.getByLabel('Last Name').evaluate(e => e.id)).toBe('target');});-it('getByLabel should prioritize aria-labelledby over aria-label', async ({ page }) => {+it('SE-086 getByLabel should prioritize aria-labelledby over aria-label', async ({ page }) => {await page.setContent(`<label id=other-label>Other</label><input id=target aria-label="Name" aria-labelledby=other-label>`);expect(await page.getByLabel('Other').evaluate(e => e.id)).toBe('target');});-it('getByPlaceholder should work', async ({ page }) => {+it('SE-087 getByPlaceholder should work', async ({ page }) => {await page.setContent(`<div><input placeholder='Hello'><input placeholder='Hello World'>@@ -156,7 +156,7 @@ it('getByPlaceholder should work', async ({ page }) => {await expect(page.locator('div').getByPlaceholder('hello')).toHaveCount(2);});-it('getByAltText should work', async ({ page }) => {+it('SE-088 getByAltText should work', async ({ page }) => {await page.setContent(`<div><input alt='Hello'><input alt='Hello World'>@@ -170,7 +170,7 @@ it('getByAltText should work', async ({ page }) => {await expect(page.locator('div').getByAltText('hello')).toHaveCount(2);});-it('getByTitle should work', async ({ page }) => {+it('SE-089 getByTitle should work', async ({ page }) => {await page.setContent(`<div><input title='Hello'><input title='Hello World'>@@ -184,7 +184,7 @@ it('getByTitle should work', async ({ page }) => {await expect(page.locator('div').getByTitle('hello')).toHaveCount(2);});-it('getBy escaping', async ({ page }) => {+it('SE-090 getBy escaping', async ({ page }) => {await page.setContent(`<label id=label for=control>Hello mywo"rld</label><input id=control />`);await page.$eval('input', input => {@@ -240,7 +240,7 @@ world</label><input id=control />`);await expect.soft(page.getByTitle(/foo >> bar/)).toHaveAttribute('id', 'target');});-it('getByRole escaping', async ({ page }) => {+it('SE-091 getByRole escaping', async ({ page }) => {await page.setContent(`<a href="https://playwright.dev">issues 123</a><a href="https://playwright.dev">he llo 56</a>@@ -286,7 +286,7 @@ it('getByRole escaping', async ({ page }) => {]);});-it('getByRole should accept regexp with v flag', async ({ page }) => {+it('SE-092 getByRole should accept regexp with v flag', async ({ page }) => {// Regression test for https://github.com/microsoft/playwright/issues/41457await page.setContent(`<button>Click me</button><button>Submit</button>`);await expect(page.getByRole('button', { name: /Click me/v })).toHaveCount(1);@@ -294,7 +294,7 @@ it('getByRole should accept regexp with v flag', async ({ page }) => {await expect(page.getByRole('button', { name: /Missing/v })).toHaveCount(0, { timeout: 1000 });});-it('getByRole with description', async ({ page }) => {+it('SE-093 getByRole with description', async ({ page }) => {await page.setContent(`<div role="alert" aria-label="Upload successful" aria-description="File doc-2025.pdf was uploaded successfully">Alert 1</div><div role="alert" aria-label="Upload successful" aria-description="File report-2026.pdf was uploaded successfully">Alert 2</div>@@ -336,7 +336,7 @@ it('getByRole with description', async ({ page }) => {]);});-it('getByRole with description via aria-describedby', async ({ page }) => {+it('SE-094 getByRole with description via aria-describedby', async ({ page }) => {await page.setContent(`<button aria-describedby="desc1">Submit</button><span id="desc1">Submits the form data</span>@@ -352,7 +352,7 @@ it('getByRole with description via aria-describedby', async ({ page }) => {]);});-it('getByRole with description via title fallback', async ({ page }) => {+it('SE-095 getByRole with description via title fallback', async ({ page }) => {await page.setContent(`<button title="Submits the form">Submit</button><button title="Resets the form">Reset</button>@@ -366,7 +366,7 @@ it('getByRole with description via title fallback', async ({ page }) => {]);});-it('getByRole with description whitespace normalization', async ({ page }) => {+it('SE-096 getByRole with description whitespace normalization', async ({ page }) => {await page.setContent(`<div role="alert" aria-description="File doc-2025.pdf was uploaded successfully">Alert</div>`);@@ -376,7 +376,7 @@ it('getByRole with description whitespace normalization', async ({ page }) => {]);});-it('locators should not be affected by global and sticky regex flags', async ({ page }) => {+it('SE-097 locators should not be affected by global and sticky regex flags', async ({ page }) => {await page.setContent(`<div>foo</div><div>foo</div><div>foo</div><label>foo<input></label><label>foo<input></label><label>foo<input></label>diff --git a/tests/page/selectors-misc.spec.ts b/tests/page/selectors-misc.spec.tsindex f656e9d512..662203b5ce 100644--- a/tests/page/selectors-misc.spec.ts+++ b/tests/page/selectors-misc.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should work for open shadow roots', async ({ page, server }) => {+it('SE-133 should work for open shadow roots', async ({ page, server }) => {await page.goto(server.PREFIX + '/deep-shadow.html');expect(await page.$eval(`id=target`, e => e.textContent)).toBe('Hello from root2');expect(await page.$eval(`data-testid=foo`, e => e.textContent)).toBe('Hello from root1');@@ -27,14 +27,14 @@ it('should work for open shadow roots', async ({ page, server }) => {expect(await page.$$(`data-testid:light=foo`)).toEqual([]);});-it('should click on links in shadow dom', async ({ page, server, browserName, browserMajorVersion }) => {+it('SE-134 should click on links in shadow dom', async ({ page, server, browserName, browserMajorVersion }) => {await page.goto(server.PREFIX + '/shadow-dom-link.html');expect(await page.evaluate(() => (window as any).clickCount)).toBe(0);await page.click('#inner-link');expect(await page.evaluate(() => (window as any).clickCount)).toBe(1);});-it('should work with :visible', async ({ page }) => {+it('SE-135 should work with :visible', async ({ page }) => {await page.setContent(`<section><div id=target1></div>@@ -54,7 +54,7 @@ it('should work with :visible', async ({ page }) => {expect(await page.$eval('div:visible', div => div.id)).toBe('target2');});-it('should work with >> visible=', async ({ page }) => {+it('SE-136 should work with >> visible=', async ({ page }) => {await page.setContent(`<section><div id=target1></div>@@ -74,7 +74,7 @@ it('should work with >> visible=', async ({ page }) => {expect(await page.$eval('div >> visible=true', div => div.id)).toBe('target2');});-it('should work with >> visible=false', async ({ page }) => {+it('SE-137 should work with >> visible=false', async ({ page }) => {await page.setContent(`<section><div id=target1></div>@@ -86,7 +86,7 @@ it('should work with >> visible=false', async ({ page }) => {await expect(page.locator('div >> visible=false')).toHaveCount(1);});-it('should work with :nth-match', async ({ page }) => {+it('SE-138 should work with :nth-match', async ({ page }) => {await page.setContent(`<section><div id=target1></div>@@ -121,7 +121,7 @@ it('should work with :nth-match', async ({ page }) => {expect(await element.evaluate(e => e.id)).toBe('target3');});-it('should work with nth=', async ({ page }) => {+it('SE-139 should work with nth=', async ({ page }) => {await page.setContent(`<section><div id=target1></div>@@ -157,7 +157,7 @@ it('should work with nth=', async ({ page }) => {expect(await page.locator('div >> div >> span >> nth=1').textContent()).toBe('hello');});-it('should work with strict mode and chaining', async ({ page }) => {+it('SE-140 should work with strict mode and chaining', async ({ page }) => {await page.setContent(`<div><div>@@ -170,7 +170,7 @@ it('should work with strict mode and chaining', async ({ page }) => {expect(await page.locator('div >> div >> span').textContent()).toBe('hi');});-it('should work with layout selectors', async ({ page, trace }) => {+it('SE-141 should work with layout selectors', async ({ page, trace }) => {it.skip(trace === 'on');/*@@ -283,12 +283,12 @@ it('should work with layout selectors', async ({ page, trace }) => {expect(error.message).toContain('"near" engine expects a selector list and optional maximum distance in pixels');});-it('should escape the scope with >>', async ({ page }) => {+it('SE-142 should escape the scope with >>', async ({ page }) => {await page.setContent(`<div><label>Test</label><input id='myinput'></div>`);expect(await page.$eval(`label >> xpath=.. >> input`, e => e.id)).toBe('myinput');});-it('xpath should be relative', async ({ page }) => {+it('SE-143 xpath should be relative', async ({ page }) => {await page.setContent(`<span class="find-me" id=target1>1</span><div>@@ -309,7 +309,7 @@ it('xpath should be relative', async ({ page }) => {expect(await page.$eval(`div >> xpath=/*[@class="find-me"]`, e => e.id)).toBe('target2');});-it('should work with pipe in xpath', async ({ page, server }) => {+it('SE-144 should work with pipe in xpath', async ({ page, server }) => {await page.setContent(`<span class="find-me" id=t1>1</span><div>@@ -330,13 +330,13 @@ it('should work with pipe in xpath', async ({ page, server }) => {await page.click(`//code|//span[@id="t2"]`);});-it('should print original xpath in error', async ({ page, browserName }) => {+it('SE-145 should print original xpath in error', async ({ page, browserName }) => {const error = await page.locator(`//*[contains(@Class, 'foo']`).isVisible().catch(e => e);expect(error.message).toContain('//*[contains(@Class, \\\'foo\\\']');expect(error.message).not.toContain('.//*[contains(@Class, \'foo\']');});-it('data-testid on the handle should be relative', async ({ page }) => {+it('SE-146 data-testid on the handle should be relative', async ({ page }) => {await page.setContent(`<span data-testid="find-me" id=target1>1</span><div>@@ -350,7 +350,7 @@ it('data-testid on the handle should be relative', async ({ page }) => {expect(await page.$eval(`div >> data-testid=find-me`, e => e.id)).toBe('target2');});-it('should properly determine visibility of display:contents elements', async ({ page }) => {+it('SE-147 should properly determine visibility of display:contents elements', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/11202' });await page.setContent(`@@ -384,7 +384,7 @@ it('should properly determine visibility of display:contents elements', async ({await page.waitForSelector('article', { state: 'hidden' });});-it('should work with internal:has=', async ({ page, server }) => {+it('SE-148 should work with internal:has=', async ({ page, server }) => {await page.goto(server.PREFIX + '/deep-shadow.html');expect(await page.$$eval(`div >> internal:has="#target"`, els => els.length)).toBe(2);expect(await page.$$eval(`div >> internal:has="[data-testid=foo]"`, els => els.length)).toBe(3);@@ -418,7 +418,7 @@ it('should work with internal:has=', async ({ page, server }) => {expect(error4.message).toContain('Unexpected token "!" while parsing css selector "span!"');});-it('should work with internal:has-not=', async ({ page }) => {+it('SE-149 should work with internal:has-not=', async ({ page }) => {await page.setContent(`<section><span></span><div></div></section><section><br></section>`);expect(await page.$$eval(`section >> internal:has-not="span"`, els => els.length)).toBe(1);expect(await page.$$eval(`section >> internal:has-not="span, div, br"`, els => els.length)).toBe(0);@@ -427,7 +427,7 @@ it('should work with internal:has-not=', async ({ page }) => {expect(await page.$$eval(`section >> internal:has-not="article"`, els => els.length)).toBe(2);});-it('should work with internal:and=', async ({ page, server }) => {+it('SE-150 should work with internal:and=', async ({ page, server }) => {await page.setContent(`<div class=foo>hello</div><div class=bar>world</div><span class=foo>hello2</span><span class=bar>world2</span>@@ -440,7 +440,7 @@ it('should work with internal:and=', async ({ page, server }) => {expect(await page.$$eval(`.bar >> internal:and="span"`, els => els.map(e => e.textContent))).toEqual(['world2']);});-it('should work with internal:or=', async ({ page, server }) => {+it('SE-151 should work with internal:or=', async ({ page, server }) => {await page.setContent(`<div>hello</div><span>world</span>@@ -454,7 +454,7 @@ it('should work with internal:or=', async ({ page, server }) => {expect(await page.locator(`span >> internal:or="article"`).textContent()).toBe('world');});-it('should work with internal:chain=', async ({ page, server }) => {+it('SE-152 should work with internal:chain=', async ({ page, server }) => {await page.setContent(`<div>one <span>two</span> <button>three</button> </div><span>four</span>@@ -464,7 +464,7 @@ it('should work with internal:chain=', async ({ page, server }) => {expect(await page.$$eval(`div >> internal:chain="span >> internal:or=\\"button\\""`, els => els.map(e => e.textContent))).toEqual(['two', 'three']);});-it('chaining should work with large DOM @smoke', async ({ page, server }) => {+it('SE-153 chaining should work with large DOM @smoke', async ({ page, server }) => {await page.evaluate(() => {let last = document.body;for (let i = 0; i < 100; i++) {diff --git a/tests/page/selectors-register.spec.ts b/tests/page/selectors-register.spec.tsindex 0346d7e428..5adc2a89ee 100644--- a/tests/page/selectors-register.spec.ts+++ b/tests/page/selectors-register.spec.ts@@ -19,7 +19,7 @@ import { test as it, expect } from './pageTest';it.skip(!!process.env.PW_TEST_CONNECT_WS_ENDPOINT, 'selectors.register does not support reuse');-it('textContent should be atomic', async ({ playwright, page }) => {+it('SE-154 textContent should be atomic', async ({ playwright, page }) => {const createDummySelector = () => ({query(root, selector) {const result = root.querySelector(selector);@@ -41,7 +41,7 @@ it('textContent should be atomic', async ({ playwright, page }) => {expect(await page.evaluate(() => document.querySelector('div').textContent)).toBe('modified');});-it('innerText should be atomic', async ({ playwright, page }) => {+it('SE-155 innerText should be atomic', async ({ playwright, page }) => {const createDummySelector = () => ({query(root: HTMLElement, selector: string) {const result = root.querySelector(selector);@@ -63,7 +63,7 @@ it('innerText should be atomic', async ({ playwright, page }) => {expect(await page.evaluate(() => document.querySelector('div').innerText)).toBe('modified');});-it('innerHTML should be atomic', async ({ playwright, page }) => {+it('SE-156 innerHTML should be atomic', async ({ playwright, page }) => {const createDummySelector = () => ({query(root, selector) {const result = root.querySelector(selector);@@ -85,7 +85,7 @@ it('innerHTML should be atomic', async ({ playwright, page }) => {expect(await page.evaluate(() => document.querySelector('div').innerHTML)).toBe('modified');});-it('getAttribute should be atomic', async ({ playwright, page }) => {+it('SE-157 getAttribute should be atomic', async ({ playwright, page }) => {const createDummySelector = () => ({query(root: HTMLElement, selector: string) {const result = root.querySelector(selector);@@ -107,7 +107,7 @@ it('getAttribute should be atomic', async ({ playwright, page }) => {expect(await page.evaluate(() => document.querySelector('div').getAttribute('foo'))).toBe('modified');});-it('isVisible should be atomic', async ({ playwright, page }) => {+it('SE-158 isVisible should be atomic', async ({ playwright, page }) => {const createDummySelector = () => ({query(root, selector) {const result = root.querySelector(selector);@@ -129,7 +129,7 @@ it('isVisible should be atomic', async ({ playwright, page }) => {expect(await page.evaluate(() => document.querySelector('div').style.display)).toBe('none');});-it('should take java-style string', async ({ playwright, page }) => {+it('SE-159 should take java-style string', async ({ playwright, page }) => {const createDummySelector = `{query(root, selector) {return root.querySelector(selector);diff --git a/tests/page/selectors-role.spec.ts b/tests/page/selectors-role.spec.tsindex 50a4bd2d58..e1036f9411 100644--- a/tests/page/selectors-role.spec.ts+++ b/tests/page/selectors-role.spec.ts@@ -16,7 +16,7 @@import { test, expect } from './pageTest';-test('should detect roles', async ({ page }) => {+test('SE-050 should detect roles', async ({ page }) => {await page.setContent(`<button>Hello</button><select multiple="" size="2"></select>@@ -49,7 +49,7 @@ test('should detect roles', async ({ page }) => {]);});-test('should support selected', async ({ page }) => {+test('SE-051 should support selected', async ({ page }) => {await page.setContent(`<select><option>Hi</option>@@ -84,7 +84,7 @@ test('should support selected', async ({ page }) => {]);});-test('should support checked', async ({ page }) => {+test('SE-052 should support checked', async ({ page }) => {await page.setContent(`<input type=checkbox><input type=checkbox checked>@@ -132,7 +132,7 @@ test('should support checked', async ({ page }) => {]);});-test('should support pressed', async ({ page }) => {+test('SE-053 should support pressed', async ({ page }) => {await page.setContent(`<button>Hi</button><button aria-pressed="true">Hello</button>@@ -167,7 +167,7 @@ test('should support pressed', async ({ page }) => {]);});-test('should support expanded', async ({ page }) => {+test('SE-054 should support expanded', async ({ page }) => {await page.setContent(`<div role="treeitem">Hi</div><div role="treeitem" aria-expanded="true">Hello</div>@@ -208,7 +208,7 @@ test('should support expanded', async ({ page }) => {]);});-test('should support disabled', async ({ page }) => {+test('SE-055 should support disabled', async ({ page }) => {await page.setContent(`<button>Hi</button><button disabled>Bye</button>@@ -264,7 +264,7 @@ test('should support disabled', async ({ page }) => {]);});-test('should inherit disabled from the ancestor', async ({ page }) => {+test('SE-056 should inherit disabled from the ancestor', async ({ page }) => {await page.setContent(`<span aria-disabled="true"><button>Click me!</button>@@ -280,7 +280,7 @@ test('should inherit disabled from the ancestor', async ({ page }) => {await expect(page.locator('h1')).not.toBeDisabled();});-test('should support disabled fieldset', async ({ page }) => {+test('SE-057 should support disabled fieldset', async ({ page }) => {await page.setContent(`<fieldset disabled><input></input>@@ -322,7 +322,7 @@ test('should support disabled fieldset', async ({ page }) => {await expect.soft(page.getByTestId('deep-button')).toBeDisabled();});-test('should support level', async ({ page }) => {+test('SE-058 should support level', async ({ page }) => {await page.setContent(`<h1>Hello</h1><h3>Hi</h3>@@ -345,7 +345,7 @@ test('should support level', async ({ page }) => {]);});-test('should filter hidden, unless explicitly asked for', async ({ page }) => {+test('SE-059 should filter hidden, unless explicitly asked for', async ({ page }) => {await page.setContent(`<button>Hi</button><button hidden>Hello</button>@@ -433,7 +433,7 @@ test('should filter hidden, unless explicitly asked for', async ({ page }) => {]);});-test('should support name', async ({ page }) => {+test('SE-060 should support name', async ({ page }) => {await page.setContent(`<div role="button" aria-label=" Hello "></div><div role="button" aria-label="Hallo"></div>@@ -497,7 +497,7 @@ test('should support name', async ({ page }) => {]);});-test('should support option name with html whitespace', async ({ page }) => {+test('SE-061 should support option name with html whitespace', async ({ page }) => {await page.setContent(`<select><option value="html"> HTML</option>@@ -506,7 +506,7 @@ test('should support option name with html whitespace', async ({ page }) => {await expect(page.getByRole('option', { name: 'HTML' })).toHaveCount(1);});-test('errors', async ({ page }) => {+test('SE-062 errors', async ({ page }) => {const e0 = await page.$('role=[bar]').catch(e => e);expect(e0.message).toContain(`Role must not be empty`);@@ -535,7 +535,7 @@ test('errors', async ({ page }) => {expect(e8.message).toContain(`"expanded" must be one of true, false`);});-test('hidden with shadow dom slots', async ({ page }) => {+test('SE-063 hidden with shadow dom slots', async ({ page }) => {await page.setContent(`<div make-hidden><button>hidden1</button>@@ -568,12 +568,12 @@ test('hidden with shadow dom slots', async ({ page }) => {]);});-test('should support output accessible name', async ({ page }) => {+test('SE-064 should support output accessible name', async ({ page }) => {await page.setContent(`<label>Output1<output>output</output></label>`);await expect(page.getByRole('status', { name: 'Output1' })).toBeVisible();});-test('should not match scope by default', async ({ page }) => {+test('SE-065 should not match scope by default', async ({ page }) => {await page.setContent(`<ul><li aria-label="Parent list">@@ -590,7 +590,7 @@ test('should not match scope by default', async ({ page }) => {await expect(children).toHaveText(['child 1', 'child 2']);});-test('should not match inert elements, unless explicitly asked for', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36938' } }, async ({ page }) => {+test('SE-066 should not match inert elements, unless explicitly asked for', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36938' } }, async ({ page }) => {await page.setContent(`<button>Hi</button><button inert>Hello</button>@@ -643,7 +643,7 @@ test('should not match inert elements, unless explicitly asked for', { annotatio]);});-test('should not match elements outside of a modal dialog', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36938' } }, async ({ page }) => {+test('SE-067 should not match elements outside of a modal dialog', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36938' } }, async ({ page }) => {await page.setContent(`<button>Outside</button><dialog id=dialog>@@ -675,7 +675,7 @@ test('should not match elements outside of a modal dialog', { annotation: { type]);});-test('should match the topmost modal dialog', async ({ page }) => {+test('SE-068 should match the topmost modal dialog', async ({ page }) => {await page.setContent(`<button>Outside</button><dialog id=outer>@@ -707,7 +707,7 @@ test('should match the topmost modal dialog', async ({ page }) => {]);});-test('should respect PLAYWRIGHT_SKIP_INERT_CHECK', async ({ page, server, mode }) => {+test('SE-069 should respect PLAYWRIGHT_SKIP_INERT_CHECK', async ({ page, server, mode }) => {test.skip(mode !== 'default', 'Env variable is read by the in-process server');process.env.PLAYWRIGHT_SKIP_INERT_CHECK = '1';try {@@ -731,7 +731,7 @@ test('should respect PLAYWRIGHT_SKIP_INERT_CHECK', async ({ page, server, mode }}});-test('should respect PLAYWRIGHT_SKIP_DIALOG_CHECK', async ({ page, server, mode }) => {+test('SE-070 should respect PLAYWRIGHT_SKIP_DIALOG_CHECK', async ({ page, server, mode }) => {test.skip(mode !== 'default', 'Env variable is read by the in-process server');process.env.PLAYWRIGHT_SKIP_DIALOG_CHECK = '1';try {diff --git a/tests/page/selectors-text.spec.ts b/tests/page/selectors-text.spec.tsindex 0c0afa7b5a..cec4da10d8 100644--- a/tests/page/selectors-text.spec.ts+++ b/tests/page/selectors-text.spec.ts@@ -17,7 +17,7 @@import { test as it, expect } from './pageTest';-it('should work @smoke', async ({ page }) => {+it('SE-028 should work @smoke', async ({ page }) => {await page.setContent(`<div>yo</div><div>ya</div><div>\nye </div>`);expect(await page.$eval(`text=ya`, e => e.outerHTML)).toBe('<div>ya</div>');expect(await page.$eval(`text="ya"`, e => e.outerHTML)).toBe('<div>ya</div>');@@ -115,7 +115,7 @@ it('should work @smoke', async ({ page }) => {expect(await page.$eval(`text=/let\\'s/i >> span`, e => e.outerHTML)).toBe('<span>hello</span>');});-it('should work with :text', async ({ page }) => {+it('SE-029 should work with :text', async ({ page }) => {await page.setContent(`<div>yo</div><div>ya</div><div>\nHELLO \n world </div>`);expect(await page.$eval(`:text("ya")`, e => e.outerHTML)).toBe('<div>ya</div>');expect(await page.$eval(`:text-is("ya")`, e => e.outerHTML)).toBe('<div>ya</div>');@@ -136,7 +136,7 @@ it('should work with :text', async ({ page }) => {expect(error2.message).toContain(`"text" engine expects a single string`);});-it('should support empty string', async ({ page }) => {+it('SE-030 should support empty string', async ({ page }) => {await page.setContent(`<div></div><div>ya</div><div>\nHELLO \n world </div>`);expect(await page.$eval(`div:text-is("")`, e => e.outerHTML)).toBe('<div></div>');expect(await page.$$eval(`div:text-is("")`, els => els.length)).toBe(1);@@ -150,7 +150,7 @@ it('should support empty string', async ({ page }) => {expect(await page.$$eval(`div:text-matches("")`, els => els.length)).toBe(3);});-it('should work across nodes', async ({ page }) => {+it('SE-031 should work across nodes', async ({ page }) => {await page.setContent(`<div id=target1>Hello<i>,</i> <span id=target2>world</span><b>!</b></div>`);expect(await page.$eval(`:text("Hello, world!")`, e => e.id)).toBe('target1');@@ -183,7 +183,7 @@ it('should work across nodes', async ({ page }) => {expect(await page.$$eval(`text=/world/`, els => els.length)).toBe(1);});-it('text-is() should ignore comments', {+it('SE-032 text-is() should ignore comments', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/33976' }}, async ({ page }) => {await page.setContent(`<div id=me>hel<!-- comment -->lo@@ -194,7 +194,7 @@ it('text-is() should ignore comments', {expect(await page.getByText('hello world', { exact: true }).getAttribute('id')).toBe('me');});-it('should work with text nodes in quoted mode', async ({ page }) => {+it('SE-033 should work with text nodes in quoted mode', async ({ page }) => {await page.setContent(`<div id=target1>Hello<span id=target2>wo rld </span> Hi again </div>`);expect(await page.$eval(`text="Hello"`, e => e.id)).toBe('target1');expect(await page.$eval(`text="Hi again"`, e => e.id)).toBe('target1');@@ -208,7 +208,7 @@ it('should work with text nodes in quoted mode', async ({ page }) => {expect(await page.$eval(`text=hi again`, e => e.id)).toBe('target1');});-it('should clear caches', async ({ page }) => {+it('SE-034 should clear caches', async ({ page }) => {await page.setContent(`<div id=target1>text</div><div id=target2>text</div>`);const div = await page.$('#target1');@@ -233,7 +233,7 @@ it('should clear caches', async ({ page }) => {expect(await page.$$eval(`:text("text")`, els => els.length)).toBe(1);});-it('should work with :has-text', async ({ page }) => {+it('SE-035 should work with :has-text', async ({ page }) => {await page.setContent(`<input id=input2><div id=div1>@@ -266,7 +266,7 @@ it('should work with :has-text', async ({ page }) => {expect(error2.message).toContain(`"has-text" engine expects a single string`);});-it('should work with large DOM', async ({ page }) => {+it('SE-036 should work with large DOM', async ({ page }) => {await page.evaluate(() => {let id = 0;const next = (tag: string) => {@@ -323,20 +323,20 @@ it('should work with large DOM', async ({ page }) => {}});-it('should be case sensitive if quotes are specified', async ({ page }) => {+it('SE-037 should be case sensitive if quotes are specified', async ({ page }) => {await page.setContent(`<div>yo</div><div>ya</div><div>\nye </div>`);expect(await page.$eval(`text=yA`, e => e.outerHTML)).toBe('<div>ya</div>');expect(await page.$(`text="yA"`)).toBe(null);expect(await page.$(`text= "ya"`)).toBe(null);});-it('should search for a substring without quotes', async ({ page }) => {+it('SE-038 should search for a substring without quotes', async ({ page }) => {await page.setContent(`<div>textwithsubstring</div>`);expect(await page.$eval(`text=with`, e => e.outerHTML)).toBe('<div>textwithsubstring</div>');expect(await page.$(`text="with"`)).toBe(null);});-it('should skip head, script and style', async ({ page }) => {+it('SE-039 should skip head, script and style', async ({ page }) => {await page.setContent(`<head><title>title</title>@@ -362,14 +362,14 @@ it('should skip head, script and style', async ({ page }) => {}});-it('should match input[type=button|submit|reset]', async ({ page }) => {+it('SE-040 should match input[type=button|submit|reset]', async ({ page }) => {await page.setContent(`<input type="submit" value="hello"><input type="button" value="world"><input type="reset" value="clear">`);expect(await page.$eval(`text=hello`, e => e.outerHTML)).toBe('<input type="submit" value="hello">');expect(await page.$eval(`text=world`, e => e.outerHTML)).toBe('<input type="button" value="world">');expect(await page.$eval(`text=clear`, e => e.outerHTML)).toBe('<input type="reset" value="clear">');});-it('should work for open shadow roots', async ({ page, server }) => {+it('SE-041 should work for open shadow roots', async ({ page, server }) => {await page.goto(server.PREFIX + '/deep-shadow.html');expect(await page.$eval(`text=root1`, e => e.textContent)).toBe('Hello from root1');expect(await page.$eval(`text=root2`, e => e.textContent)).toBe('Hello from root2');@@ -381,7 +381,7 @@ it('should work for open shadow roots', async ({ page, server }) => {expect(await page.$(`text:light=root3`)).toBe(null);});-it('should prioritize light dom over shadow dom in the same parent', async ({ page, server }) => {+it('SE-042 should prioritize light dom over shadow dom in the same parent', async ({ page, server }) => {await page.evaluate(() => {const div = document.createElement('div');document.body.appendChild(div);@@ -398,7 +398,7 @@ it('should prioritize light dom over shadow dom in the same parent', async ({ paexpect(await page.$eval(`div >> text=Hello`, e => e.textContent)).toBe('Hello from light');});-it('should waitForSelector with distributed elements', async ({ page, server }) => {+it('SE-043 should waitForSelector with distributed elements', async ({ page, server }) => {const promise = page.waitForSelector(`div >> text=Hello`);await page.evaluate(() => {const div = document.createElement('div');@@ -418,7 +418,7 @@ it('should waitForSelector with distributed elements', async ({ page, server })expect(await handle.textContent()).toBe('Hello from light');});-it('should match root after >>', async ({ page, server }) => {+it('SE-044 should match root after >>', async ({ page, server }) => {await page.setContent('<section>test</section>');const element = await page.$('css=section >> text=test');expect(element).toBeTruthy();@@ -426,19 +426,19 @@ it('should match root after >>', async ({ page, server }) => {expect(element2).toBeTruthy();});-it('should match root after >> with *', async ({ page }) => {+it('SE-045 should match root after >> with *', async ({ page }) => {await page.setContent(`<button> hello world </button> <button> hellow <span> world </span> </button>`);expect(await page.$$eval('*css=button >> text=hello >> text=world', els => els.length)).toBe(2);});-it('should work with leading and trailing spaces', async ({ page }) => {+it('SE-046 should work with leading and trailing spaces', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/10997' });await page.setContent(`<button> Add widget </button>`);await expect(page.locator('text=Add widget')).toBeVisible();await expect(page.locator('text= Add widget ')).toBeVisible();});-it('should work with unpaired quotes when not at the start', async ({ page }) => {+it('SE-047 should work with unpaired quotes when not at the start', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/12719' });await page.setContent(`<div>hello"world<span>yay</span></div>@@ -465,7 +465,7 @@ it('should work with unpaired quotes when not at the start', async ({ page }) =>expect(await page.$(`text=\` >> span`)).toBe(null);});-it('should work with paired quotes in the middle of selector', async ({ page }) => {+it('SE-048 should work with paired quotes in the middle of selector', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16858' });await page.setContent(`<div>pattern "^-?\\d+$"</div>`);expect(await page.locator(`div >> text=pattern "^-?\\d+$`).isVisible());@@ -478,7 +478,7 @@ it('should work with paired quotes in the middle of selector', async ({ page })await expect(page.locator(`div >> text='pattern "^-?\\\\d+$"'`)).toBeVisible();});-it('hasText and internal:text should match full node text in strict mode', async ({ page }) => {+it('SE-049 hasText and internal:text should match full node text in strict mode', async ({ page }) => {await page.setContent(`<div id=div1>hello<span>world</span></div><div id=div2>hello</div>diff --git a/tests/page/to-match-aria-snapshot.spec.ts b/tests/page/to-match-aria-snapshot.spec.tsindex 14e4fb1bb1..76fc46a25a 100644--- a/tests/page/to-match-aria-snapshot.spec.ts+++ b/tests/page/to-match-aria-snapshot.spec.ts@@ -17,14 +17,14 @@import { stripAnsi } from '../config/utils';import { test, expect } from './pageTest';-test('should match page', async ({ page }) => {+test('AR-107 should match page', async ({ page }) => {await page.setContent(`<h1>title</h1>`);await expect(page).toMatchAriaSnapshot(`- heading "title"`);});-test('should match page complex', async ({ page }) => {+test('AR-108 should match page complex', async ({ page }) => {await page.setContent(`<h1>Microsoft</h1><div>Open source projects and samples from Microsoft</div>@@ -43,14 +43,14 @@ test('should match page complex', async ({ page }) => {`);});-test('should match page with not', async ({ page }) => {+test('AR-109 should match page with not', async ({ page }) => {await page.setContent(`<h1>title</h1>`);await expect(page).not.toMatchAriaSnapshot(`- heading "wrong"`);});-test('should fail page with timeout', async ({ page }) => {+test('AR-110 should fail page with timeout', async ({ page }) => {await page.setContent(`<h1>title</h1>`);const e = await expect(page).toMatchAriaSnapshot(`- heading "wrong"@@ -60,14 +60,14 @@ test('should fail page with timeout', async ({ page }) => {expect(stripAnsi(e.message)).not.toContain('Locator');});-test('should match', async ({ page }) => {+test('AR-111 should match', async ({ page }) => {await page.setContent(`<h1>title</h1>`);await expect(page).toMatchAriaSnapshot(`- heading "title"`);});-test('should match in list', async ({ page }) => {+test('AR-112 should match in list', async ({ page }) => {await page.setContent(`<h1>title</h1><h1>title 2</h1>@@ -77,7 +77,7 @@ test('should match in list', async ({ page }) => {`);});-test('should match list with accessible name', async ({ page }) => {+test('AR-113 should match list with accessible name', async ({ page }) => {await page.setContent(`<ul aria-label="my list"><li>one</li>@@ -91,7 +91,7 @@ test('should match list with accessible name', async ({ page }) => {`);});-test('should match deep item', async ({ page }) => {+test('AR-114 should match deep item', async ({ page }) => {await page.setContent(`<div><h1>title</h1>@@ -103,7 +103,7 @@ test('should match deep item', async ({ page }) => {`);});-test('should match complex', async ({ page }) => {+test('AR-115 should match complex', async ({ page }) => {await page.setContent(`<ul><li>@@ -118,7 +118,7 @@ test('should match complex', async ({ page }) => {`);});-test('should match regex', async ({ page }) => {+test('AR-116 should match regex', async ({ page }) => {{await page.setContent(`<h1>Issues 12</h1>`);await expect(page).toMatchAriaSnapshot(`@@ -145,7 +145,7 @@ test('should match regex', async ({ page }) => {}});-test('should allow text nodes', async ({ page }) => {+test('AR-117 should allow text nodes', async ({ page }) => {await page.setContent(`<h1>Microsoft</h1><div>Open source projects and samples from Microsoft</div>@@ -157,7 +157,7 @@ test('should allow text nodes', async ({ page }) => {`);});-test('details visibility', async ({ page }) => {+test('AR-118 details visibility', async ({ page }) => {await page.setContent(`<details><summary>Summary</summary>@@ -170,7 +170,7 @@ test('details visibility', async ({ page }) => {`);});-test('checked attribute', async ({ page }) => {+test('AR-119 checked attribute', async ({ page }) => {await page.setContent(`<input type='checkbox' checked />`);@@ -211,7 +211,7 @@ test('checked attribute', async ({ page }) => {}});-test('disabled attribute', async ({ page }) => {+test('AR-120 disabled attribute', async ({ page }) => {await page.setContent(`<button disabled>Click me</button>`);@@ -244,7 +244,7 @@ test('disabled attribute', async ({ page }) => {}});-test('expanded attribute', async ({ page }) => {+test('AR-121 expanded attribute', async ({ page }) => {await page.setContent(`<button aria-expanded="true">Toggle</button>`);@@ -277,7 +277,7 @@ test('expanded attribute', async ({ page }) => {}});-test('level attribute', async ({ page }) => {+test('AR-122 level attribute', async ({ page }) => {await page.setContent(`<h2>Section Title</h2>`);@@ -306,7 +306,7 @@ test('level attribute', async ({ page }) => {}});-test('pressed attribute', async ({ page }) => {+test('AR-123 pressed attribute', async ({ page }) => {await page.setContent(`<button aria-pressed="true">Like</button>`);@@ -356,7 +356,7 @@ test('pressed attribute', async ({ page }) => {}});-test('selected attribute', async ({ page }) => {+test('AR-124 selected attribute', async ({ page }) => {await page.setContent(`<table><tr aria-selected="true">@@ -422,7 +422,7 @@ Call log:}});-test('integration test', async ({ page }) => {+test('AR-125 integration test', async ({ page }) => {await page.setContent(`<h1>Microsoft</h1><div>Open source projects and samples from Microsoft</div>@@ -467,7 +467,7 @@ test('integration test', async ({ page }) => {`);});-test('integration test 2', async ({ page }) => {+test('AR-126 integration test 2', async ({ page }) => {await page.setContent(`<div><header>@@ -481,7 +481,7 @@ test('integration test 2', async ({ page }) => {`);});-test('expected formatter', async ({ page }) => {+test('AR-127 expected formatter', async ({ page }) => {await page.setContent(`<div><header>@@ -514,7 +514,7 @@ Call log:`);});-test('should unpack escaped names', async ({ page }) => {+test('AR-128 should unpack escaped names', async ({ page }) => {{await page.setContent(`<button>Click: me</button>@@ -602,7 +602,7 @@ test('should unpack escaped names', async ({ page }) => {}});-test('should report error in YAML', async ({ page }) => {+test('AR-129 should report error in YAML', async ({ page }) => {await page.setContent(`<h1>title</h1>`);{@@ -637,7 +637,7 @@ Call log:}});-test('should report error in YAML keys', async ({ page }) => {+test('AR-130 should report error in YAML keys', async ({ page }) => {await page.setContent(`<h1>title</h1>`);{@@ -777,7 +777,7 @@ Call log:}});-test('call log should contain actual snapshot', async ({ page }) => {+test('AR-131 call log should contain actual snapshot', async ({ page }) => {await page.setContent(`<h1>todos</h1>`);const error = await expect(page).toMatchAriaSnapshot(`- heading "wrong"@@ -786,7 +786,7 @@ test('call log should contain actual snapshot', async ({ page }) => {expect(stripAnsi(error.message)).toContain(`unexpected value "- heading "todos" [level=1]"`);});-test('should parse attributes', async ({ page }) => {+test('AR-132 should parse attributes', async ({ page }) => {{await page.setContent(`<button aria-pressed="mixed">hello world</button>@@ -806,7 +806,7 @@ test('should parse attributes', async ({ page }) => {}});-test('should not unshift actual template text', async ({ page }) => {+test('AR-133 should not unshift actual template text', async ({ page }) => {await page.setContent(`<h1>title</h1><h1>title 2</h1>@@ -820,7 +820,7 @@ test('should not unshift actual template text', async ({ page }) => {- heading "title 2" [level=1]`);});-test('should not match what is not matched', async ({ page }) => {+test('AR-134 should not match what is not matched', async ({ page }) => {await page.setContent(`<p>Text</p>`);const error = await expect(page).toMatchAriaSnapshot(`- paragraph:@@ -832,7 +832,7 @@ test('should not match what is not matched', async ({ page }) => {+ - paragraph: Text`);});-test('should match url', async ({ page }) => {+test('AR-135 should match url', async ({ page }) => {await page.setContent(`<a href='https://example.com'>Link</a>`);@@ -843,7 +843,7 @@ test('should match url', async ({ page }) => {`);});-test('should detect unexpected children: equal', async ({ page }) => {+test('AR-136 should detect unexpected children: equal', async ({ page }) => {await page.setContent(`<ul><li>One</li>@@ -869,7 +869,7 @@ test('should detect unexpected children: equal', async ({ page }) => {expect(stripAnsi(e.message)).toContain('+ - listitem: Two');});-test('should detect unexpected children: deep-equal', async ({ page }) => {+test('AR-137 should detect unexpected children: deep-equal', async ({ page }) => {await page.setContent(`<ul><li>@@ -908,7 +908,7 @@ test('should detect unexpected children: deep-equal', async ({ page }) => {expect(stripAnsi(e.message)).toContain('+ - listitem: \"1.2\"');});-test('should allow restoring contain mode inside deep-equal', async ({ page }) => {+test('AR-138 should allow restoring contain mode inside deep-equal', async ({ page }) => {await page.setContent(`<ul><li>@@ -941,7 +941,7 @@ test('should allow restoring contain mode inside deep-equal', async ({ page }) =`);});-test('top-level deep-equal', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36456' } }, async ({ page }) => {+test('AR-139 top-level deep-equal', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36456' } }, async ({ page }) => {await page.setContent(`<ul><li>@@ -970,7 +970,7 @@ test('top-level deep-equal', { annotation: { type: 'issue', description: 'https:});-test('generated snapshot includes text children when name is longer than text', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40079' } }, async ({ page }) => {+test('AR-140 generated snapshot includes text children when name is longer than text', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40079' } }, async ({ page }) => {await page.setContent(`<section><div role="progressbar" aria-label="Alpha Beta" aria-valuenow="7" aria-valuemin="0" aria-valuemax="10">@@ -985,7 +985,7 @@ test('generated snapshot includes text children when name is longer than text',`);});-test('treat bad regex as a string', async ({ page }) => {+test('AR-141 treat bad regex as a string', async ({ page }) => {await page.setContent(`<a href="/foo">Log in</a>`);const error = await expect(page).toMatchAriaSnapshot(`- link "Log in":@@ -996,7 +996,7 @@ test('treat bad regex as a string', async ({ page }) => {expect(stripAnsi(error.message)).toContain('+ - /url: /foo');});-test('invalid attribute', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/34839' } }, async ({ page }) => {+test('AR-142 invalid attribute', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/34839' } }, async ({ page }) => {await page.setContent(`<input type="text" aria-label="Email" aria-invalid="true" value="not-an-email"><input type="text" aria-label="Name" value="Alice">diff --git a/tests/page/wheel.spec.ts b/tests/page/wheel.spec.tsindex db3ec7e0b5..70252f2f5b 100644--- a/tests/page/wheel.spec.ts+++ b/tests/page/wheel.spec.ts@@ -48,7 +48,7 @@ async function expectEvent(page: Page, expected: any) {expect(received).toEqual(expected);}-it('should dispatch wheel events @smoke', async ({ page, server }) => {+it('MO-017 should dispatch wheel events @smoke', async ({ page, server }) => {await page.setContent(`<div style="width: 5000px; height: 5000px;"></div>`);await page.mouse.move(50, 60);await listenForWheelEvents(page, 'div');@@ -67,7 +67,7 @@ it('should dispatch wheel events @smoke', async ({ page, server }) => {});});-it('should dispatch wheel events after popup was opened @smoke', async ({ page, server }) => {+it('MO-018 should dispatch wheel events after popup was opened @smoke', async ({ page, server }) => {await page.setContent(`<div style="width: 5000px; height: 5000px;"></div>`);@@ -92,7 +92,7 @@ it('should dispatch wheel events after popup was opened @smoke', async ({ page,});});-it('should dispatch wheel event on svg element', async ({ page, browserName, headless, isLinux }) => {+it('MO-019 should dispatch wheel event on svg element', async ({ page, browserName, headless, isLinux }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15566' });await page.setContent(`<body>@@ -125,14 +125,14 @@ it('should dispatch wheel event on svg element', async ({ page, browserName, hea});});-it('should scroll when nobody is listening', async ({ page, server }) => {+it('MO-020 should scroll when nobody is listening', async ({ page, server }) => {await page.goto(server.PREFIX + '/input/scrollable.html');await page.mouse.move(50, 60);await page.mouse.wheel(0, 100);await page.waitForFunction('window.scrollY === 100');});-it('should set the modifiers', async ({ page }) => {+it('MO-021 should set the modifiers', async ({ page }) => {await page.setContent(`<div style="width: 5000px; height: 5000px;"></div>`);await page.mouse.move(50, 60);await listenForWheelEvents(page, 'div');@@ -151,7 +151,7 @@ it('should set the modifiers', async ({ page }) => {});});-it('should scroll horizontally', async ({ page }) => {+it('MO-022 should scroll horizontally', async ({ page }) => {await page.setContent(`<div style="width: 5000px; height: 5000px;"></div>`);await page.mouse.move(50, 60);await listenForWheelEvents(page, 'div');@@ -170,7 +170,7 @@ it('should scroll horizontally', async ({ page }) => {await page.waitForFunction('window.scrollX === 100');});-it('should work when the event is canceled', async ({ page }) => {+it('MO-023 should work when the event is canceled', async ({ page }) => {await page.setContent(`<div style="width: 5000px; height: 5000px;"></div>`);await page.mouse.move(50, 60);await listenForWheelEvents(page, 'div');diff --git a/tests/page/workers.spec.ts b/tests/page/workers.spec.tsindex 69724feb32..fb83de0504 100644--- a/tests/page/workers.spec.ts+++ b/tests/page/workers.spec.ts@@ -22,7 +22,7 @@ import type { ConsoleMessage } from 'playwright-core';import fs from 'fs';import { kTargetClosedErrorMessage } from '../config/errors';-it('Page.workers @smoke', async function({ page, server, browserName, browserMajorVersion }) {+it('WO-001 Page.workers @smoke', async function({ page, server, browserName, browserMajorVersion }) {it.skip(browserName === 'chromium' && browserMajorVersion < 143, 'needs workerScriptLoaded event');await Promise.all([@@ -37,7 +37,7 @@ it('Page.workers @smoke', async function({ page, server, browserName, browserMajexpect(page.workers().length).toBe(0);});-it('should emit created and destroyed events', async function({ page }) {+it('WO-002 should emit created and destroyed events', async function({ page }) {const workerCreatedPromise = page.waitForEvent('worker');const workerObj = await page.evaluateHandle(() => new Worker(URL.createObjectURL(new Blob(['1'], { type: 'application/javascript' }))));const worker = await workerCreatedPromise;@@ -50,7 +50,7 @@ it('should emit created and destroyed events', async function({ page }) {expect(error.message).toContain(kTargetClosedErrorMessage);});-it('should reject in-flight evaluate and emit close when page closes', {+it('WO-003 should reject in-flight evaluate and emit close when page closes', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/43204' },}, async function({ page, server }) {await page.goto(server.EMPTY_PAGE);@@ -66,7 +66,7 @@ it('should reject in-flight evaluate and emit close when page closes', {expect(await closePromise).toBe(worker);});-it('should report console logs', async function({ page }) {+it('WO-004 should report console logs', async function({ page }) {const [message] = await Promise.all([page.waitForEvent('console'),page.evaluate(() => new Worker(URL.createObjectURL(new Blob(['console.log(1)'], { type: 'application/javascript' })))),@@ -76,7 +76,7 @@ it('should report console logs', async function({ page }) {expect(page.url()).not.toContain('blob');});-it('should have timestamp on worker console messages', async function({ page, isAndroid, channel }) {+it('WO-005 should have timestamp on worker console messages', async function({ page, isAndroid, channel }) {it.skip(isAndroid, 'there is a time difference between android emulator and host machine');it.skip(channel === 'webkit-wsl', 'there is a time difference between WSL VM and host machine');@@ -91,7 +91,7 @@ it('should have timestamp on worker console messages', async function({ page, isexpect(message.timestamp()).toBeLessThanOrEqual(after);});-it('should not report console logs from workers twice', async function({ page }) {+it('WO-006 should not report console logs from workers twice', async function({ page }) {const messages = [];page.on('console', msg => messages.push(msg.text()));await Promise.all([@@ -104,7 +104,7 @@ it('should not report console logs from workers twice', async function({ page })expect(page.url()).not.toContain('blob');});-it('should have JSHandles for console logs', async function({ page, browserName }) {+it('WO-007 should have JSHandles for console logs', async function({ page, browserName }) {const logPromise = new Promise<ConsoleMessage>(x => page.on('console', x));await page.evaluate(() => new Worker(URL.createObjectURL(new Blob(['console.log(1,2,3,this)'], { type: 'application/javascript' }))));const log = await logPromise;@@ -116,7 +116,7 @@ it('should have JSHandles for console logs', async function({ page, browserNameexpect(await (await log.args()[3].getProperty('origin')).jsonValue()).toBe('null');});-it('should evaluate', async function({ page, browserName, browserMajorVersion }) {+it('WO-008 should evaluate', async function({ page, browserName, browserMajorVersion }) {it.skip(browserName === 'chromium' && browserMajorVersion < 143, 'needs workerScriptLoaded event');const workerCreatedPromise = page.waitForEvent('worker');@@ -125,7 +125,7 @@ it('should evaluate', async function({ page, browserName, browserMajorVersion })expect(await worker.evaluate('1+1')).toBe(2);});-it('should report console event on the worker', async function({ page, browserName, browserMajorVersion }) {+it('WO-009 should report console event on the worker', async function({ page, browserName, browserMajorVersion }) {it.skip(browserName === 'chromium' && browserMajorVersion < 143, 'needs workerScriptLoaded event');const [worker] = await Promise.all([@@ -147,7 +147,7 @@ it('should report console event on the worker', async function({ page, browserNaexpect(message1).toBe(message3);});-it('should report console event on the worker when not listening on page or context', async function({ page, browserName, browserMajorVersion }) {+it('WO-010 should report console event on the worker when not listening on page or context', async function({ page, browserName, browserMajorVersion }) {it.skip(browserName === 'chromium' && browserMajorVersion < 143, 'needs workerScriptLoaded event');const [worker] = await Promise.all([@@ -165,7 +165,7 @@ it('should report console event on the worker when not listening on page or contexpect(message.text()).toBe('hello from worker');});-it('should report errors', async function({ page }) {+it('WO-011 should report errors', async function({ page }) {const errorPromise = new Promise<Error>(x => page.on('pageerror', x));await page.evaluate(() => new Worker(URL.createObjectURL(new Blob([`setTimeout(() => {@@ -178,7 +178,7 @@ it('should report errors', async function({ page }) {expect(errorLog.message).toContain('this is my error');});-it('should clear upon navigation', async function({ server, page }) {+it('WO-012 should clear upon navigation', async function({ server, page }) {await page.goto(server.EMPTY_PAGE);const workerCreatedPromise = page.waitForEvent('worker');await page.evaluate(() => new Worker(URL.createObjectURL(new Blob(['console.log(1)'], { type: 'application/javascript' }))));@@ -191,7 +191,7 @@ it('should clear upon navigation', async function({ server, page }) {expect(page.workers().length).toBe(0);});-it('should clear upon cross-process navigation', async function({ server, page }) {+it('WO-013 should clear upon cross-process navigation', async function({ server, page }) {await page.goto(server.EMPTY_PAGE);const workerCreatedPromise = page.waitForEvent('worker');await page.evaluate(() => new Worker(URL.createObjectURL(new Blob(['console.log(1)'], { type: 'application/javascript' }))));@@ -204,7 +204,7 @@ it('should clear upon cross-process navigation', async function({ server, page }expect(page.workers().length).toBe(0);});-it('should attribute network activity for worker inside iframe to the iframe', async function({ page, server, browserName, browserMajorVersion }) {+it('WO-014 should attribute network activity for worker inside iframe to the iframe', async function({ page, server, browserName, browserMajorVersion }) {it.skip(browserName === 'firefox' && browserMajorVersion < 114, 'https://github.com/microsoft/playwright/issues/21760');it.skip(browserName === 'chromium' && browserMajorVersion < 149, 'needs TargetInfo.parentFrameId for workers');@@ -222,7 +222,7 @@ it('should attribute network activity for worker inside iframe to the iframe', aexpect(request.frame()).toBe(frame);});-it('should report network activity', async function({ page, server, browserName, browserMajorVersion, asset }) {+it('WO-015 should report network activity', async function({ page, server, browserName, browserMajorVersion, asset }) {it.skip(browserName === 'firefox' && browserMajorVersion < 114, 'https://github.com/microsoft/playwright/issues/21760');it.skip(browserName === 'chromium' && browserMajorVersion < 143, 'needs workerScriptLoaded event');@@ -242,7 +242,7 @@ it('should report network activity', async function({ page, server, browserName,expect(await response.text()).toBe(fs.readFileSync(asset('one-style.css'), 'utf8'));});-it('should report network activity on worker creation', async function({ page, server, browserName, browserMajorVersion }) {+it('WO-016 should report network activity on worker creation', async function({ page, server, browserName, browserMajorVersion }) {it.skip(browserName === 'firefox' && browserMajorVersion < 114, 'https://github.com/microsoft/playwright/issues/21760');await page.goto(server.EMPTY_PAGE);const url = server.PREFIX + '/one-style.css';@@ -258,7 +258,7 @@ it('should report network activity on worker creation', async function({ page, sexpect(response.ok()).toBe(true);});-it('should report worker script as network request', {+it('WO-017 should report worker script as network request', {annotation: [{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/33107' },{ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35678' },@@ -277,7 +277,7 @@ it('should report worker script as network request', {expect(text).toContain(`console.log('hello from the worker');`);});-it('should report worker script as network request after redirect', {+it('WO-018 should report worker script as network request after redirect', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/35678' },}, async ({ page, server, browserName }) => {it.fixme(browserName === 'chromium', 'Chromium does not report the redirect because it is not plumbed to the worker target');@@ -302,7 +302,7 @@ it('should report worker script as network request after redirect', {expect(text).toContain(`console.log('hello from the worker');`);});-it('should dispatch console messages when page has workers', async function({ page, server }) {+it('WO-019 should dispatch console messages when page has workers', async function({ page, server }) {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15550' });await page.goto(server.EMPTY_PAGE);await Promise.all([@@ -316,7 +316,7 @@ it('should dispatch console messages when page has workers', async function({ paexpect(message.text()).toBe('foo');});-it('should report and intercept network from nested worker', async function({ page, server, browserName, browserMajorVersion }) {+it('WO-020 should report and intercept network from nested worker', async function({ page, server, browserName, browserMajorVersion }) {it.fixme(browserName === 'webkit', 'https://github.com/microsoft/playwright/issues/27376');it.skip(browserName === 'chromium' && browserMajorVersion < 143, 'needs workerScriptLoaded event');@@ -347,7 +347,7 @@ it('should report and intercept network from nested worker', async function({ paawait expect.poll(() => messages).toEqual(['{"foo":"not bar"}', '{"foo":"not bar"}']);});-it('should support extra http headers', {+it('WO-021 should support extra http headers', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31747' }}, async ({ page, server, browserName, browserMajorVersion }) => {it.skip(browserName === 'chromium' && browserMajorVersion < 143, 'needs workerScriptLoaded event');@@ -366,7 +366,7 @@ it('should support extra http headers', {expect(request2.headers['foo']).toBe('bar');});-it('should support offline', async ({ page, server, browserName }) => {+it('WO-022 should support offline', async ({ page, server, browserName }) => {it.fixme(browserName === 'webkit', 'flaky on all platforms');it.fixme(browserName === 'firefox', 'does not plumb setOffline into WorkerNavigator::OnLine');@@ -382,7 +382,7 @@ it('should support offline', async ({ page, server, browserName }) => {await expect.poll(() => worker.evaluate(() => navigator.onLine)).toBe(true);});-it('should resolve worker script allHeaders in main frame', {+it('WO-023 should resolve worker script allHeaders in main frame', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39948' },}, async function({ page, server, browserName }) {const [request] = await Promise.all([@@ -396,7 +396,7 @@ it('should resolve worker script allHeaders in main frame', {expect(responseHeaders['content-type']).toBeTruthy();});-it('should resolve worker script allHeaders in iframe', {+it('WO-024 should resolve worker script allHeaders in iframe', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39948' },}, async function({ page, server, browserName, browserMajorVersion }) {it.skip(browserName === 'chromium' && browserMajorVersion < 151, 'needs proper Network.requestWillBeSentExtraInfo');@@ -412,7 +412,7 @@ it('should resolve worker script allHeaders in iframe', {expect(responseHeaders['content-type']).toBeTruthy();});-it('should resolve worker script allHeaders in nested worker inside iframe', {+it('WO-025 should resolve worker script allHeaders in nested worker inside iframe', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39948' },}, async function({ page, server, browserName }) {it.fixme(browserName === 'webkit', 'cannot evaluate in nested worker');diff --git a/tests/registry.md b/tests/registry.mdnew file mode 100644index 0000000000..442c8c679c--- /dev/null+++ b/tests/registry.md@@ -0,0 +1,5555 @@+# Test registry++Every test in `tests/page` and `tests/library`, with its identifier. The identifier is+the first token of the test title. The test titles are the source of truth: this file is+made from them, and `npm run lint-tests` fails when this file does not match them.++The identifier is two uppercase letters for the subsystem, then a three-digit number.+The two letters come from the file name or from the testing aspect that the files+share. Two forms:++- `CL-001` — one behaviour, expected in every language port. One identifier shared by+ all ports, which is what makes a parity gap visible.+- `CL-PY-001` — specific to one port **by design** (here `PY` is Python): the API+ exists in only one language, or the language bindings are documented to behave+ differently. No such tests exist yet.++An identifier belongs to one test declaration in the source. When a loop declares the+same test more than once, all the copies share the identifier. The title column then+shows the variants in braces.++To add a test, give it the next free number of its subsystem. Do not use the number of a+removed test again. When you move a test to another file, keep its identifier. To add a+subsystem, add a row to the Subsystems table. Then update this file:++ PWTEST_UPDATE_REGISTRY=1 npm run test -- --list --reporter=./tests/config/registryReporter.ts++## Subsystems++98 subsystems, 4933 tests (5330 with loop copies).++| Code | Subsystem | Files | Tests |+|---|---|---|---|+| `AN` | Android WebViews | `library/unit/android-webviews` | 1 |+| `AR` | Aria snapshot | `page/{page-aria-snapshot, page-aria-snapshot-ai, page-aria-snapshot-json, to-match-aria-snapshot}`<br>`library/role-utils` | 170 |+| `AT` | Add script and style tags | `page/{page-add-script-tag, page-add-style-tag}` | 20 |+| `AU` | Authentication | `library/{browsercontext-credentials, browsercontext-webauthn}` | 24 |+| `AW` | Auto-waiting | `page/{page-autowaiting-basic, page-autowaiting-no-hang}` | 23 |+| `BC` | BrowserContext | `library/{browsercontext-basic, browsercontext-events, browsercontext-pages, browsercontext-page-event, browsercontext-reuse}` | 83 |+| `BP` | Browsers path | `library/browsers-path` | 2 |+| `BR` | Browser | `library/{browser, browser-server}` | 10 |+| `BT` | BrowserType | `library/{browsertype-basic, browsertype-launch, launcher, browsertype-launch-server, browsertype-connect, browsertype-launch-selenium}` | 103 |+| `BU` | Before unload | `library/beforeunload` | 12 |+| `CA` | Capabilities | `library/{capabilities, modernizr}` | 31 |+| `CC` | Client certificates | `library/client-certificates` | 41 |+| `CD` | CDP | `library/chromium/{connect-over-cdp, session}` | 52 |+| `CF` | Code frame | `library/unit/code-frame` | 13 |+| `CG` | Codegen | `library/inspector/{cli-codegen-1, cli-codegen-2, cli-codegen-3, cli-codegen-aria, cli-codegen-pick-locator, cli-codegen-javascript, cli-codegen-test, cli-codegen-python, cli-codegen-python-async, cli-codegen-pytest, cli-codegen-java, cli-codegen-csharp}`<br>`library/unit/codegen` | 191 |+| `CH` | Check | `page/page-check` | 17 |+| `CK` | Clock | `library/{page-clock, page-clock.frozen}`<br>`library/unit/clock` | 219 |+| `CL` | Click | `page/{page-click, page-click-scroll, page-click-react, page-click-during-navigation, page-click-timeout-1, page-click-timeout-2, page-click-timeout-3, page-click-timeout-4}` | 122 |+| `CM` | Console messages | `page/page-event-console` | 20 |+| `CN` | Channels | `library/channels` | 6 |+| `CO` | Cookies | `library/{browsercontext-cookies, browsercontext-add-cookies, browsercontext-clearcookies, browsercontext-cookies-third-party}` | 62 |+| `CR` | Chromium | `library/chromium/{chromium, launcher, extensions, bfcache, connect-to-worker, disable-web-security}` | 45 |+| `CS` | CSP | `library/browsercontext-csp` | 5 |+| `CV` | Coverage | `library/chromium/{js-coverage, css-coverage}`<br>`library/coverage` | 30 |+| `DB` | Debug | `library/{debugger, debug-controller}` | 22 |+| `DC` | Default (persistent) context | `library/{defaultbrowsercontext-1, defaultbrowsercontext-2}` | 42 |+| `DD` | Drag and drop | `page/{page-drag, page-drop}` | 27 |+| `DE` | Dispatch event | `page/page-dispatchevent` | 17 |+| `DI` | Dialog | `page/page-dialog` | 13 |+| `DO` | Download | `library/{download, downloads-path}` | 44 |+| `DV` | Device | `library/{browsercontext-device, browsercontext-dsf, browsercontext-viewport-mobile}` | 26 |+| `EE` | Event emitter | `page/page-listeners`<br>`library/events/{add-listeners, check-listener-leaks, events-list, listener-count, listeners-side-effects, listeners, max-listeners, method-names, modify-in-emit, num-args, once, prepend, remove-all-listeners-wait, remove-all-listeners, remove-listeners, set-max-listeners-side-effects, special-event-names, subclass, symbols}` | 56 |+| `EF` | Expose function | `page/page-expose-function`<br>`library/browsercontext-expose-function` | 28 |+| `EH` | ElementHandle | `page/{elementhandle-bounding-box, elementhandle-click, elementhandle-content-frame, elementhandle-convenience, elementhandle-eval-on-selector, elementhandle-misc, elementhandle-owner-frame, elementhandle-press, elementhandle-query-selector, elementhandle-screenshot, elementhandle-scroll-into-view, elementhandle-select-text, elementhandle-type, elementhandle-wait-for-element-state}` | 123 |+| `EM` | Emulation | `page/page-emulate-media`<br>`library/{emulation-focus, emulation-coop}` | 27 |+| `ER` | Page errors and crashes | `page/page-event-pageerror`<br>`library/page-event-crash` | 21 |+| `ES` | Eval on selector | `page/{eval-on-selector, eval-on-selector-all}` | 35 |+| `EV` | Evaluate | `page/{page-evaluate, page-evaluate-handle, page-evaluate-callback, page-evaluate-no-stall}` | 137 |+| `EX` | Expect | `page/{expect-boolean, expect-builtins, expect-matcher-result, expect-misc, expect-timeout, expect-to-have-accessible, expect-to-have-text, expect-to-have-value, expect-with-snapshot, matchers.misc}` | 328 |+| `FA` | Favicon | `library/favicon` | 1 |+| `FC` | File chooser | `page/page-filechooser` | 28 |+| `FE` | Fetch | `library/{global-fetch, global-fetch-cookie, browsercontext-fetch, browsercontext-fetch-algorithms, browsercontext-fetch-happy-eyeballs}` | 188 |+| `FF` | Firefox | `library/firefox/launcher`<br>`page/firefox-network-response` | 8 |+| `FI` | Fill | `page/page-fill` | 36 |+| `FO` | Focus | `page/page-focus` | 12 |+| `FR` | Frame | `page/{frame-evaluate, frame-frame-element, frame-goto, frame-hierarchy}` | 36 |+| `GE` | Geolocation | `library/geolocation` | 9 |+| `GN` | Locator and selector generator | `library/{locator-generator, selector-generator}` | 104 |+| `HA` | HAR | `library/{har, browsercontext-har, har-websocket}` | 112 |+| `HE` | Headful | `library/headful` | 16 |+| `HT` | Hit target | `library/hit-target` | 22 |+| `IF` | Input files | `page/page-set-input-files` | 21 |+| `IN` | Inspector | `library/inspector/{pause, recorder-api, console-api, title}` | 58 |+| `IS` | Init script | `page/{page-add-init-script, page-add-init-script-callback}`<br>`library/browsercontext-add-init-script` | 35 |+| `JH` | JSHandle | `page/{jshandle-as-element, jshandle-evaluate, jshandle-json-value, jshandle-properties, jshandle-to-string}` | 23 |+| `JS` | JSON schema | `library/unit/json-schema` | 10 |+| `KB` | Keyboard | `page/page-keyboard` | 53 |+| `LC` | Locale | `library/browsercontext-locale` | 14 |+| `LE` | Leaks | `page/page-leaks`<br>`library/heap` | 14 |+| `LG` | Logger | `library/logger` | 2 |+| `LH` | Locator handler | `page/page-add-locator-handler` | 14 |+| `LO` | Locator | `page/{locator-any-frame, locator-click, locator-convenience, locator-element-handle, locator-evaluate, locator-frame, locator-highlight, locator-is-visible, locator-list, locator-misc-1, locator-misc-2, locator-query, locator-wait-for-function}`<br>`library/locator-highlight` | 199 |+| `MC` | Multiple clients | `library/multiclient` | 19 |+| `MO` | Mouse | `page/{page-mouse, wheel}` | 23 |+| `NA` | Navigation | `page/{page-goto, page-navigation, page-history, page-event-load}`<br>`library/browsercontext-base-url` | 96 |+| `NE` | Network | `page/{page-network-request, page-network-response, page-network-sizes, page-network-idle, page-event-network, page-event-request, network-post-data, page-set-extra-http-headers}`<br>`library/{browsercontext-set-extra-http-headers, browsercontext-network-event, network-timeout, resource-timing, ignorehttpserrors}` | 142 |+| `OO` | OOPIF | `library/chromium/oopif` | 29 |+| `PA` | Page | `page/{page-basic, page-set-content, page-transition}`<br>`library/page-close` | 56 |+| `PC` | Playwright client | `library/playwright-client` | 1 |+| `PD` | PDF | `library/pdf` | 2 |+| `PE` | Permissions | `library/permissions` | 23 |+| `PO` | Popup | `page/page-event-popup`<br>`library/popup` | 28 |+| `PR` | Proxy | `library/{proxy, browsercontext-proxy, proxy-pattern, fetch-proxy}` | 47 |+| `PS` | Parser | `library/{locator-parser, component-parser, css-parser}` | 51 |+| `QS` | Query selector | `page/queryselector` | 17 |+| `RE` | Retarget | `page/retarget` | 15 |+| `RO` | Route | `page/{page-route, page-request-continue, page-request-fulfill, page-request-fallback, page-request-intercept, page-request-gc, interception}`<br>`library/{browsercontext-route, unroute-behavior}` | 201 |+| `SC` | Screencast | `library/{screencast, screencast-actions, screencast-overlay}` | 38 |+| `SE` | Selectors | `page/{selectors-css, selectors-text, selectors-role, selectors-get-by, selectors-frame, selectors-misc, selectors-register}`<br>`library/selectors-register` | 167 |+| `SI` | Signals | `library/signals` | 10 |+| `SL` | Slow motion | `library/slowmo` | 39 |+| `SM` | Strict mode | `page/page-strict`<br>`library/browsercontext-strict` | 14 |+| `SO` | Select option | `page/page-select-option` | 33 |+| `SQ` | Sequence | `library/unit/sequence` | 16 |+| `SS` | Screenshot | `page/page-screenshot`<br>`library/screenshot` | 94 |+| `ST` | Storage | `library/browsercontext-storage-state`<br>`page/{page-localstorage, page-cache-storage}` | 32 |+| `TA` | Tap | `library/{tap, locator-dispatchevent-touch}` | 10 |+| `TO` | Timeout runner | `library/unit/timeout-runner` | 1 |+| `TR` | Tracing | `library/tracing`<br>`library/chromium/tracing` | 49 |+| `TV` | Trace viewer | `library/{trace-viewer, snapshot-renderer}` | 135 |+| `TZ` | Timezone | `library/browsercontext-timezone-id` | 6 |+| `UA` | User agent | `library/browsercontext-user-agent` | 6 |+| `VI` | Video | `library/video` | 31 |+| `VP` | Viewport | `library/browsercontext-viewport` | 17 |+| `WA` | Wait for | `page/{page-wait-for-function, page-wait-for-selector-1, page-wait-for-selector-2, page-wait-for-load-state, page-wait-for-navigation, page-wait-for-url, page-wait-for-request, page-wait-for-response}` | 136 |+| `WM` | WebMCP | `library/{webmcp, webmcp-disabled}` | 15 |+| `WO` | Workers | `page/workers`<br>`library/{shared-worker, browsercontext-service-worker-policy}` | 31 |+| `WS` | WebSocket | `library/{web-socket, route-web-socket}` | 40 |++## Tests++### AN — Android WebViews++| ID | File | Title |+|---|---|---|+| `AN-001` | `library/unit/android-webviews.spec.ts` | should attribute a webview socket to the process that owns it |++### AR — Aria snapshot++| ID | File | Title |+|---|---|---|+| `AR-001` | `page/page-aria-snapshot.spec.ts` | should snapshot |+| `AR-002` | `page/page-aria-snapshot.spec.ts` | should snapshot list |+| `AR-003` | `page/page-aria-snapshot.spec.ts` | should snapshot list with accessible name |+| `AR-004` | `page/page-aria-snapshot.spec.ts` | should quote names that look like regexes |+| `AR-005` | `page/page-aria-snapshot.spec.ts` | should snapshot complex |+| `AR-006` | `page/page-aria-snapshot.spec.ts` | should allow text nodes |+| `AR-007` | `page/page-aria-snapshot.spec.ts` | should snapshot details visibility |+| `AR-008` | `page/page-aria-snapshot.spec.ts` | should not snapshot text directly inside closed details |+| `AR-009` | `page/page-aria-snapshot.spec.ts` | should not snapshot text that is not assigned to a slot |+| `AR-010` | `page/page-aria-snapshot.spec.ts` | should snapshot integration |+| `AR-011` | `page/page-aria-snapshot.spec.ts` | should support multiline text |+| `AR-012` | `page/page-aria-snapshot.spec.ts` | should concatenate span text |+| `AR-013` | `page/page-aria-snapshot.spec.ts` | should concatenate span text 2 |+| `AR-014` | `page/page-aria-snapshot.spec.ts` | should concatenate div text with spaces |+| `AR-015` | `page/page-aria-snapshot.spec.ts` | should include pseudo in text |+| `AR-016` | `page/page-aria-snapshot.spec.ts` | should not include hidden pseudo in text |+| `AR-017` | `page/page-aria-snapshot.spec.ts` | should include new line for block pseudo |+| `AR-018` | `page/page-aria-snapshot.spec.ts` | should work with slots |+| `AR-019` | `page/page-aria-snapshot.spec.ts` | should snapshot inner text |+| `AR-020` | `page/page-aria-snapshot.spec.ts` | should include pseudo codepoints |+| `AR-021` | `page/page-aria-snapshot.spec.ts` | check aria-hidden text |+| `AR-022` | `page/page-aria-snapshot.spec.ts` | should ignore presentation and none roles |+| `AR-023` | `page/page-aria-snapshot.spec.ts` | should treat input value as text in templates, but not for checkbox/radio/file |+| `AR-024` | `page/page-aria-snapshot.spec.ts` | should not use on as checkbox value |+| `AR-025` | `page/page-aria-snapshot.spec.ts` | should respect aria-owns |+| `AR-026` | `page/page-aria-snapshot.spec.ts` | should be ok with circular ownership |+| `AR-027` | `page/page-aria-snapshot.spec.ts` | should escape yaml text in text nodes |+| `AR-028` | `page/page-aria-snapshot.spec.ts` | should normalize whitespace |+| `AR-029` | `page/page-aria-snapshot.spec.ts` | should handle long strings |+| `AR-030` | `page/page-aria-snapshot.spec.ts` | should escape special yaml characters |+| `AR-031` | `page/page-aria-snapshot.spec.ts` | should escape special yaml values |+| `AR-032` | `page/page-aria-snapshot.spec.ts` | should not report textarea textContent |+| `AR-033` | `page/page-aria-snapshot.spec.ts` | should not show visible children of hidden elements |+| `AR-034` | `page/page-aria-snapshot.spec.ts` | should not show unhidden children of aria-hidden elements |+| `AR-035` | `page/page-aria-snapshot.spec.ts` | should snapshot placeholder when different from the name |+| `AR-036` | `page/page-aria-snapshot.spec.ts` | match values both against regex and string |+| `AR-037` | `page/page-aria-snapshot.spec.ts` | auto-waits the locator and does not include iframes |+| `AR-038` | `page/page-aria-snapshot.spec.ts` | should limit depth |+| `AR-039` | `page/page-aria-snapshot.spec.ts` | should snapshot a locator inside an iframe |+| `AR-040` | `page/page-aria-snapshot.spec.ts` | should include frames on frameset pages |+| `AR-041` | `page/page-aria-snapshot.spec.ts` | should snapshot a locator inside a frameset frame |+| `AR-042` | `page/page-aria-snapshot.spec.ts` | should snapshot with box from page |+| `AR-043` | `page/page-aria-snapshot.spec.ts` | should snapshot with box from locator |+| `AR-044` | `page/page-aria-snapshot.spec.ts` | should not include box when option is omitted |+| `AR-045` | `page/page-aria-snapshot.spec.ts` | should not include hidden iframes |+| `AR-046` | `page/page-aria-snapshot.spec.ts` | should not include inert elements |+| `AR-047` | `page/page-aria-snapshot.spec.ts` | should only include the modal dialog content |+| `AR-048` | `page/page-aria-snapshot-ai.spec.ts` | should generate refs |+| `AR-049` | `page/page-aria-snapshot-ai.spec.ts` | should list iframes |+| `AR-050` | `page/page-aria-snapshot-ai.spec.ts` | should snapshot a locator inside an iframe |+| `AR-051` | `page/page-aria-snapshot-ai.spec.ts` | should limit depth across iframe boundary |+| `AR-052` | `page/page-aria-snapshot-ai.spec.ts` | should stitch all frame snapshots |+| `AR-053` | `page/page-aria-snapshot-ai.spec.ts` | should re-number refs across navigations but not same-document navigations |+| `AR-054` | `page/page-aria-snapshot-ai.spec.ts` | should persist iframe references |+| `AR-055` | `page/page-aria-snapshot-ai.spec.ts` | should not generate refs for elements with pointer-events:none |+| `AR-056` | `page/page-aria-snapshot-ai.spec.ts` | emit generic roles for nodes w/o roles |+| `AR-057` | `page/page-aria-snapshot-ai.spec.ts` | should collapse generic nodes |+| `AR-058` | `page/page-aria-snapshot-ai.spec.ts` | should include cursor pointer hint |+| `AR-059` | `page/page-aria-snapshot-ai.spec.ts` | should not nest cursor pointer hints |+| `AR-060` | `page/page-aria-snapshot-ai.spec.ts` | should omit names that just repeat printed descendant nodes |+| `AR-061` | `page/page-aria-snapshot-ai.spec.ts` | should omit redundant name when a contributing wrapper is collapsed |+| `AR-062` | `page/page-aria-snapshot-ai.spec.ts` | should omit redundant name when a contributor is a skipped leaf generic |+| `AR-063` | `page/page-aria-snapshot-ai.spec.ts` | should keep the name when the contributing wrapper collapses into repeating text |+| `AR-064` | `page/page-aria-snapshot-ai.spec.ts` | should keep names not derived from printed nodes |+| `AR-065` | `page/page-aria-snapshot-ai.spec.ts` | should omit images without an accessible name |+| `AR-066` | `page/page-aria-snapshot-ai.spec.ts` | should omit a nameless image nested inside a link |+| `AR-067` | `page/page-aria-snapshot-ai.spec.ts` | should keep icon-only clickable elements |+| `AR-068` | `page/page-aria-snapshot-ai.spec.ts` | should omit leaf generic whose text is already in an ancestor name |+| `AR-069` | `page/page-aria-snapshot-ai.spec.ts` | should omit name-repeating generic behind a wrapper |+| `AR-070` | `page/page-aria-snapshot-ai.spec.ts` | should resolve refs of distilled-away nodes |+| `AR-071` | `page/page-aria-snapshot-ai.spec.ts` | should not distill snapshots outside of ai mode |+| `AR-072` | `page/page-aria-snapshot-ai.spec.ts` | should truncate data url in link |+| `AR-073` | `page/page-aria-snapshot-ai.spec.ts` | should gracefully fallback when child frame cant be captured |+| `AR-074` | `page/page-aria-snapshot-ai.spec.ts` | should auto-wait for navigation |+| `AR-075` | `page/page-aria-snapshot-ai.spec.ts` | should auto-wait for blocking CSS |+| `AR-076` | `page/page-aria-snapshot-ai.spec.ts` | should show visible children of hidden elements |+| `AR-077` | `page/page-aria-snapshot-ai.spec.ts` | should include active element information |+| `AR-078` | `page/page-aria-snapshot-ai.spec.ts` | should update active element on focus |+| `AR-079` | `page/page-aria-snapshot-ai.spec.ts` | should mark iframe as active when it contains focused element |+| `AR-080` | `page/page-aria-snapshot-ai.spec.ts` | return empty snapshot when iframe is not loaded |+| `AR-081` | `page/page-aria-snapshot-ai.spec.ts` | should support many properties on iframes |+| `AR-082` | `page/page-aria-snapshot-ai.spec.ts` | should snapshot frameset pages |+| `AR-083` | `page/page-aria-snapshot-ai.spec.ts` | should snapshot a locator inside a frameset frame |+| `AR-084` | `page/page-aria-snapshot-ai.spec.ts` | should stitch iframes inside a frameset frame |+| `AR-085` | `page/page-aria-snapshot-ai.spec.ts` | should stitch nested frameset documents |+| `AR-086` | `page/page-aria-snapshot-ai.spec.ts` | should collapse inline generic nodes |+| `AR-087` | `page/page-aria-snapshot-ai.spec.ts` | should inline single leaf generic child into parent generic |+| `AR-088` | `page/page-aria-snapshot-ai.spec.ts` | should inline a deeply nested generic |+| `AR-089` | `page/page-aria-snapshot-ai.spec.ts` | should not remove generic nodes with title |+| `AR-090` | `page/page-aria-snapshot-ai.spec.ts` | should limit depth |+| `AR-091` | `page/page-aria-snapshot-ai.spec.ts` | should annotate aria-hidden elements |+| `AR-092` | `page/page-aria-snapshot-ai.spec.ts` | should only annotate the top element in a hidden subtree |+| `AR-093` | `page/page-aria-snapshot-ai.spec.ts` | should not include hidden iframes |+| `AR-094` | `page/page-aria-snapshot-ai.spec.ts` | should not generate refs for inert elements |+| `AR-095` | `page/page-aria-snapshot-ai.spec.ts` | should not generate refs for elements outside of a modal dialog |+| `AR-096` | `page/page-aria-snapshot-json.spec.ts` | should snapshot roles, names and text |+| `AR-097` | `page/page-aria-snapshot-json.spec.ts` | should snapshot flags as properties |+| `AR-098` | `page/page-aria-snapshot-json.spec.ts` | should snapshot link url and textbox value |+| `AR-099` | `page/page-aria-snapshot-json.spec.ts` | should snapshot text fragments in children |+| `AR-100` | `page/page-aria-snapshot-json.spec.ts` | should snapshot top-level text fragments as text nodes |+| `AR-101` | `page/page-aria-snapshot-json.spec.ts` | should generate refs in ai mode |+| `AR-102` | `page/page-aria-snapshot-json.spec.ts` | should mark clickable elements with cursor in ai mode |+| `AR-103` | `page/page-aria-snapshot-json.spec.ts` | should snapshot iframes in ai mode |+| `AR-104` | `page/page-aria-snapshot-json.spec.ts` | should limit depth |+| `AR-105` | `page/page-aria-snapshot-json.spec.ts` | should include boxes when requested |+| `AR-106` | `page/page-aria-snapshot-json.spec.ts` | should snapshot a locator |+| `AR-107` | `page/to-match-aria-snapshot.spec.ts` | should match page |+| `AR-108` | `page/to-match-aria-snapshot.spec.ts` | should match page complex |+| `AR-109` | `page/to-match-aria-snapshot.spec.ts` | should match page with not |+| `AR-110` | `page/to-match-aria-snapshot.spec.ts` | should fail page with timeout |+| `AR-111` | `page/to-match-aria-snapshot.spec.ts` | should match |+| `AR-112` | `page/to-match-aria-snapshot.spec.ts` | should match in list |+| `AR-113` | `page/to-match-aria-snapshot.spec.ts` | should match list with accessible name |+| `AR-114` | `page/to-match-aria-snapshot.spec.ts` | should match deep item |+| `AR-115` | `page/to-match-aria-snapshot.spec.ts` | should match complex |+| `AR-116` | `page/to-match-aria-snapshot.spec.ts` | should match regex |+| `AR-117` | `page/to-match-aria-snapshot.spec.ts` | should allow text nodes |+| `AR-118` | `page/to-match-aria-snapshot.spec.ts` | details visibility |+| `AR-119` | `page/to-match-aria-snapshot.spec.ts` | checked attribute |+| `AR-120` | `page/to-match-aria-snapshot.spec.ts` | disabled attribute |+| `AR-121` | `page/to-match-aria-snapshot.spec.ts` | expanded attribute |+| `AR-122` | `page/to-match-aria-snapshot.spec.ts` | level attribute |+| `AR-123` | `page/to-match-aria-snapshot.spec.ts` | pressed attribute |+| `AR-124` | `page/to-match-aria-snapshot.spec.ts` | selected attribute |+| `AR-125` | `page/to-match-aria-snapshot.spec.ts` | integration test |+| `AR-126` | `page/to-match-aria-snapshot.spec.ts` | integration test 2 |+| `AR-127` | `page/to-match-aria-snapshot.spec.ts` | expected formatter |+| `AR-128` | `page/to-match-aria-snapshot.spec.ts` | should unpack escaped names |+| `AR-129` | `page/to-match-aria-snapshot.spec.ts` | should report error in YAML |+| `AR-130` | `page/to-match-aria-snapshot.spec.ts` | should report error in YAML keys |+| `AR-131` | `page/to-match-aria-snapshot.spec.ts` | call log should contain actual snapshot |+| `AR-132` | `page/to-match-aria-snapshot.spec.ts` | should parse attributes |+| `AR-133` | `page/to-match-aria-snapshot.spec.ts` | should not unshift actual template text |+| `AR-134` | `page/to-match-aria-snapshot.spec.ts` | should not match what is not matched |+| `AR-135` | `page/to-match-aria-snapshot.spec.ts` | should match url |+| `AR-136` | `page/to-match-aria-snapshot.spec.ts` | should detect unexpected children: equal |+| `AR-137` | `page/to-match-aria-snapshot.spec.ts` | should detect unexpected children: deep-equal |+| `AR-138` | `page/to-match-aria-snapshot.spec.ts` | should allow restoring contain mode inside deep-equal |+| `AR-139` | `page/to-match-aria-snapshot.spec.ts` | top-level deep-equal |+| `AR-140` | `page/to-match-aria-snapshot.spec.ts` | generated snapshot includes text children when name is longer than text |+| `AR-141` | `page/to-match-aria-snapshot.spec.ts` | treat bad regex as a string |+| `AR-142` | `page/to-match-aria-snapshot.spec.ts` | invalid attribute |+| `AR-143` | `library/role-utils.spec.ts` | wpt accname {#0, #1, #2, #3} *(4 copies)* |+| `AR-144` | `library/role-utils.spec.ts` | wpt accname non-manual |+| `AR-145` | `library/role-utils.spec.ts` | axe-core implicit-role |+| `AR-146` | `library/role-utils.spec.ts` | axe-core accessible-text |+| `AR-147` | `library/role-utils.spec.ts` | accessible name with slots |+| `AR-148` | `library/role-utils.spec.ts` | accessible name with closed details |+| `AR-149` | `library/role-utils.spec.ts` | accessible name nested treeitem |+| `AR-150` | `library/role-utils.spec.ts` | svg title |+| `AR-151` | `library/role-utils.spec.ts` | native controls |+| `AR-152` | `library/role-utils.spec.ts` | input type=search maps to searchbox unless list points at a datalist |+| `AR-153` | `library/role-utils.spec.ts` | meter and progress get their name from an associated label |+| `AR-154` | `library/role-utils.spec.ts` | native controls labelled-by |+| `AR-155` | `library/role-utils.spec.ts` | display:contents should be visible when contents are visible |+| `AR-156` | `library/role-utils.spec.ts` | should remove soft hyphens and zero-width spaces |+| `AR-157` | `library/role-utils.spec.ts` | label/labelled-by aria-hidden with descendants |+| `AR-158` | `library/role-utils.spec.ts` | own aria-label concatenated with aria-labelledby |+| `AR-159` | `library/role-utils.spec.ts` | control embedded in a label |+| `AR-160` | `library/role-utils.spec.ts` | control embedded in a target element |+| `AR-161` | `library/role-utils.spec.ts` | searchbox embedded control should contribute its value |+| `AR-162` | `library/role-utils.spec.ts` | svg role=presentation |+| `AR-163` | `library/role-utils.spec.ts` | should work with form and tricky input names |+| `AR-164` | `library/role-utils.spec.ts` | should ignore stylesheet from hidden aria-labelledby subtree |+| `AR-165` | `library/role-utils.spec.ts` | should not include hidden pseudo into accessible name |+| `AR-166` | `library/role-utils.spec.ts` | should resolve pseudo content from attr |+| `AR-167` | `library/role-utils.spec.ts` | should resolve pseudo content alternative text |+| `AR-168` | `library/role-utils.spec.ts` | should resolve css content property for an element |+| `AR-169` | `library/role-utils.spec.ts` | should ignore invalid aria-labelledby |+| `AR-170` | `library/role-utils.spec.ts` | should support search element |++### AT — Add script and style tags++| ID | File | Title |+|---|---|---|+| `AT-001` | `page/page-add-script-tag.spec.ts` | should throw an error if no options are provided |+| `AT-002` | `page/page-add-script-tag.spec.ts` | should work with a url |+| `AT-003` | `page/page-add-script-tag.spec.ts` | should work with a url and type=module |+| `AT-004` | `page/page-add-script-tag.spec.ts` | should work with a path and type=module |+| `AT-005` | `page/page-add-script-tag.spec.ts` | should work with a content and type=module |+| `AT-006` | `page/page-add-script-tag.spec.ts` | should throw an error if loading from url fail |+| `AT-007` | `page/page-add-script-tag.spec.ts` | should work with a path |+| `AT-008` | `page/page-add-script-tag.spec.ts` | should include sourceURL when path is provided |+| `AT-009` | `page/page-add-script-tag.spec.ts` | should work with content |+| `AT-010` | `page/page-add-script-tag.spec.ts` | should throw when added with content to the CSP page |+| `AT-011` | `page/page-add-script-tag.spec.ts` | should throw when added with URL to the CSP page |+| `AT-012` | `page/page-add-script-tag.spec.ts` | should throw a nice error when the request fails |+| `AT-013` | `page/page-add-style-tag.spec.ts` | should throw an error if no options are provided |+| `AT-014` | `page/page-add-style-tag.spec.ts` | should work with a url @smoke |+| `AT-015` | `page/page-add-style-tag.spec.ts` | should throw an error if loading from url fail |+| `AT-016` | `page/page-add-style-tag.spec.ts` | should work with a path |+| `AT-017` | `page/page-add-style-tag.spec.ts` | should include sourceURL when path is provided |+| `AT-018` | `page/page-add-style-tag.spec.ts` | should work with content |+| `AT-019` | `page/page-add-style-tag.spec.ts` | should throw when added with content to the CSP page |+| `AT-020` | `page/page-add-style-tag.spec.ts` | should throw when added with URL to the CSP page |++### AU — Authentication++| ID | File | Title |+|---|---|---|+| `AU-001` | `library/browsercontext-credentials.spec.ts` | should fail without credentials |+| `AU-002` | `library/browsercontext-credentials.spec.ts` | should work with setHTTPCredentials |+| `AU-003` | `library/browsercontext-credentials.spec.ts` | should work with setHTTPCredentials and multiple credentials |+| `AU-004` | `library/browsercontext-credentials.spec.ts` | should work with correct credentials @smoke |+| `AU-005` | `library/browsercontext-credentials.spec.ts` | should fail with wrong credentials |+| `AU-006` | `library/browsercontext-credentials.spec.ts` | should return resource body |+| `AU-007` | `library/browsercontext-credentials.spec.ts` | should work with a single credential in an array |+| `AU-008` | `library/browsercontext-credentials.spec.ts` | should work with multiple credentials for different origins |+| `AU-009` | `library/browsercontext-credentials.spec.ts` | should fall back to credentials without origin |+| `AU-010` | `library/browsercontext-credentials.spec.ts` | should use the first matching credential |+| `AU-011` | `library/browsercontext-credentials.spec.ts` | should work with correct credentials and matching origin |+| `AU-012` | `library/browsercontext-credentials.spec.ts` | should work with correct credentials and matching origin case insensitive |+| `AU-013` | `library/browsercontext-credentials.spec.ts` | should fail with correct credentials and mismatching scheme |+| `AU-014` | `library/browsercontext-credentials.spec.ts` | should fail with correct credentials and mismatching hostname |+| `AU-015` | `library/browsercontext-credentials.spec.ts` | should fail with correct credentials and mismatching port |+| `AU-016` | `library/browsercontext-credentials.spec.ts` | should not override Authorization header set by the page |+| `AU-017` | `library/browsercontext-webauthn.spec.ts` | should not intercept navigator.credentials without install() |+| `AU-018` | `library/browsercontext-webauthn.spec.ts` | should seed a known credential and authenticate |+| `AU-019` | `library/browsercontext-webauthn.spec.ts` | should capture a page-created credential and reuse it in another context |+| `AU-020` | `library/browsercontext-webauthn.spec.ts` | should reuse a page-created credential via the storageState option |+| `AU-021` | `library/browsercontext-webauthn.spec.ts` | should seed and report signCount |+| `AU-022` | `library/browsercontext-webauthn.spec.ts` | should reject invalid signCount |+| `AU-023` | `library/browsercontext-webauthn.spec.ts` | should preserve signCount via the storageState option |+| `AU-024` | `library/browsercontext-webauthn.spec.ts` | should serialize credentials with toJSON |++### AW — Auto-waiting++| ID | File | Title |+|---|---|---|+| `AW-001` | `page/page-autowaiting-basic.spec.ts` | should await navigation when clicking anchor |+| `AW-002` | `page/page-autowaiting-basic.spec.ts` | should not stall on JS navigation link |+| `AW-003` | `page/page-autowaiting-basic.spec.ts` | should await cross-process navigation when clicking anchor |+| `AW-004` | `page/page-autowaiting-basic.spec.ts` | should await form-get on click |+| `AW-005` | `page/page-autowaiting-basic.spec.ts` | should await form-post on click |+| `AW-006` | `page/page-autowaiting-basic.spec.ts` | should work with noWaitAfter: true |+| `AW-007` | `page/page-autowaiting-basic.spec.ts` | should work with dblclick without noWaitAfter when navigation is stalled |+| `AW-008` | `page/page-autowaiting-basic.spec.ts` | should work with waitForLoadState(load) |+| `AW-009` | `page/page-autowaiting-basic.spec.ts` | should work with goto following click |+| `AW-010` | `page/page-autowaiting-basic.spec.ts` | should report navigation in the log when clicking anchor |+| `AW-011` | `page/page-autowaiting-basic.spec.ts` | should report and collapse log in action |+| `AW-012` | `page/page-autowaiting-basic.spec.ts` | should report and collapse log in expect |+| `AW-013` | `page/page-autowaiting-no-hang.spec.ts` | clicking on links which do not commit navigation |+| `AW-014` | `page/page-autowaiting-no-hang.spec.ts` | calling window.stop async |+| `AW-015` | `page/page-autowaiting-no-hang.spec.ts` | calling window.stop sync |+| `AW-016` | `page/page-autowaiting-no-hang.spec.ts` | assigning location to about:blank |+| `AW-017` | `page/page-autowaiting-no-hang.spec.ts` | assigning location to about:blank after non-about:blank |+| `AW-018` | `page/page-autowaiting-no-hang.spec.ts` | calling window.open and window.close |+| `AW-019` | `page/page-autowaiting-no-hang.spec.ts` | opening a popup |+| `AW-020` | `page/page-autowaiting-no-hang.spec.ts` | clicking in the middle of navigation that aborts |+| `AW-021` | `page/page-autowaiting-no-hang.spec.ts` | clicking in the middle of navigation that commits |+| `AW-022` | `page/page-autowaiting-no-hang.spec.ts` | clicking a link intercepted by the Navigation API same-document |+| `AW-023` | `page/page-autowaiting-no-hang.spec.ts` | goBack in the middle of navigation that commits |++### BC — BrowserContext++| ID | File | Title |+|---|---|---|+| `BC-001` | `library/browsercontext-basic.spec.ts` | should create new context @smoke |+| `BC-002` | `library/browsercontext-basic.spec.ts` | should be able to click across browser contexts |+| `BC-003` | `library/browsercontext-basic.spec.ts` | should be able to hover across browser contexts in parallel |+| `BC-004` | `library/browsercontext-basic.spec.ts` | window.open should use parent tab context |+| `BC-005` | `library/browsercontext-basic.spec.ts` | should isolate localStorage and cookies @smoke |+| `BC-006` | `library/browsercontext-basic.spec.ts` | should propagate default viewport to the page |+| `BC-007` | `library/browsercontext-basic.spec.ts` | should make a copy of default viewport |+| `BC-008` | `library/browsercontext-basic.spec.ts` | should respect deviceScaleFactor |+| `BC-009` | `library/browsercontext-basic.spec.ts` | should not allow deviceScaleFactor with null viewport |+| `BC-010` | `library/browsercontext-basic.spec.ts` | should not allow isMobile with null viewport |+| `BC-011` | `library/browsercontext-basic.spec.ts` | close() should work for empty context |+| `BC-012` | `library/browsercontext-basic.spec.ts` | close() should abort waitForEvent |+| `BC-013` | `library/browsercontext-basic.spec.ts` | close() should be callable twice |+| `BC-014` | `library/browsercontext-basic.spec.ts` | should pass self to close event |+| `BC-015` | `library/browsercontext-basic.spec.ts` | should not report frameless pages on error |+| `BC-016` | `library/browsercontext-basic.spec.ts` | should return all of the pages |+| `BC-017` | `library/browsercontext-basic.spec.ts` | should close all belonging pages once closing context |+| `BC-018` | `library/browsercontext-basic.spec.ts` | should disable javascript |+| `BC-019` | `library/browsercontext-basic.spec.ts` | should be able to navigate after disabling javascript |+| `BC-020` | `library/browsercontext-basic.spec.ts` | should not hang on promises after disabling javascript |+| `BC-021` | `library/browsercontext-basic.spec.ts` | setContent should work after disabling javascript |+| `BC-022` | `library/browsercontext-basic.spec.ts` | should retry click after disabling javascript |+| `BC-023` | `library/browsercontext-basic.spec.ts` | should work with offline option |+| `BC-024` | `library/browsercontext-basic.spec.ts` | fetch with keepalive should throw when offline |+| `BC-025` | `library/browsercontext-basic.spec.ts` | should emulate navigator.onLine |+| `BC-026` | `library/browsercontext-basic.spec.ts` | should emulate navigator.onLine across navigations |+| `BC-027` | `library/browsercontext-basic.spec.ts` | should emulate offline event |+| `BC-028` | `library/browsercontext-basic.spec.ts` | should emulate media in popup |+| `BC-029` | `library/browsercontext-basic.spec.ts` | should emulate media in cross-process iframe |+| `BC-030` | `library/browsercontext-basic.spec.ts` | default user agent |+| `BC-031` | `library/browsercontext-basic.spec.ts` | should create two pages in parallel in various contexts |+| `BC-032` | `library/browsercontext-events.spec.ts` | console event should work @smoke |+| `BC-033` | `library/browsercontext-events.spec.ts` | console event should work with element handles |+| `BC-034` | `library/browsercontext-events.spec.ts` | console event should work in popup |+| `BC-035` | `library/browsercontext-events.spec.ts` | console event should work in popup 2 |+| `BC-036` | `library/browsercontext-events.spec.ts` | console event should work in immediately closed popup |+| `BC-037` | `library/browsercontext-events.spec.ts` | dialog event should work @smoke |+| `BC-038` | `library/browsercontext-events.spec.ts` | dialogclosed event should work |+| `BC-039` | `library/browsercontext-events.spec.ts` | dialog event should work in popup |+| `BC-040` | `library/browsercontext-events.spec.ts` | dialog event should work in popup 2 |+| `BC-041` | `library/browsercontext-events.spec.ts` | dialog event should work in immediately closed popup |+| `BC-042` | `library/browsercontext-events.spec.ts` | dialog event should work with inline script tag |+| `BC-043` | `library/browsercontext-events.spec.ts` | weberror event should work |+| `BC-044` | `library/browsercontext-events.spec.ts` | weberror event should include location |+| `BC-045` | `library/browsercontext-events.spec.ts` | pageload event should work @smoke |+| `BC-046` | `library/browsercontext-events.spec.ts` | framenavigated event should work @smoke |+| `BC-047` | `library/browsercontext-events.spec.ts` | pageclose event should work @smoke |+| `BC-048` | `library/browsercontext-events.spec.ts` | frameattached event should work @smoke |+| `BC-049` | `library/browsercontext-events.spec.ts` | framedetached event should work @smoke |+| `BC-050` | `library/browsercontext-events.spec.ts` | download event should work @smoke |+| `BC-051` | `library/browsercontext-pages.spec.ts` | should not be visible in context.pages |+| `BC-052` | `library/browsercontext-pages.spec.ts` | page.context should return the correct instance |+| `BC-053` | `library/browsercontext-pages.spec.ts` | frame.focus should work multiple times |+| `BC-054` | `library/browsercontext-pages.spec.ts` | should click with disabled javascript |+| `BC-055` | `library/browsercontext-pages.spec.ts` | should not hang with touch-enabled viewports |+| `BC-056` | `library/browsercontext-pages.spec.ts` | should click the button with deviceScaleFactor set |+| `BC-057` | `library/browsercontext-pages.spec.ts` | should click the button with offset with page scale |+| `BC-058` | `library/browsercontext-pages.spec.ts` | should return bounding box with page scale |+| `BC-059` | `library/browsercontext-pages.spec.ts` | should not leak listeners during navigation of 20 pages |+| `BC-060` | `library/browsercontext-pages.spec.ts` | should close page while a reload is committing |+| `BC-061` | `library/browsercontext-pages.spec.ts` | should keep selection in multiple pages |+| `BC-062` | `library/browsercontext-page-event.spec.ts` | should have url |+| `BC-063` | `library/browsercontext-page-event.spec.ts` | should have url after domcontentloaded |+| `BC-064` | `library/browsercontext-page-event.spec.ts` | should have about:blank url with domcontentloaded |+| `BC-065` | `library/browsercontext-page-event.spec.ts` | should have about:blank for empty url with domcontentloaded |+| `BC-066` | `library/browsercontext-page-event.spec.ts` | should report when a new page is created and closed |+| `BC-067` | `library/browsercontext-page-event.spec.ts` | should report initialized pages |+| `BC-068` | `library/browsercontext-page-event.spec.ts` | should not crash while redirecting of original request was missed |+| `BC-069` | `library/browsercontext-page-event.spec.ts` | should have an opener |+| `BC-070` | `library/browsercontext-page-event.spec.ts` | should fire page lifecycle events |+| `BC-071` | `library/browsercontext-page-event.spec.ts` | should work with Shift-clicking |+| `BC-072` | `library/browsercontext-page-event.spec.ts` | should work with Ctrl-clicking |+| `BC-073` | `library/browsercontext-reuse.spec.ts` | reuse {launch, connect} › should re-add binding after reset *(2 copies)* |+| `BC-074` | `library/browsercontext-reuse.spec.ts` | reuse {launch, connect} › should reset serviceworker *(2 copies)* |+| `BC-075` | `library/browsercontext-reuse.spec.ts` | reuse {launch, connect} › should reset serviceworker that hangs in importScripts *(2 copies)* |+| `BC-076` | `library/browsercontext-reuse.spec.ts` | reuse {launch, connect} › should not cache resources *(2 copies)* |+| `BC-077` | `library/browsercontext-reuse.spec.ts` | reuse {launch, connect} › should ignore binding from beforeunload *(2 copies)* |+| `BC-078` | `library/browsercontext-reuse.spec.ts` | reuse {launch, connect} › should reset mouse position *(2 copies)* |+| `BC-079` | `library/browsercontext-reuse.spec.ts` | reuse {launch, connect} › should reset tracing *(2 copies)* |+| `BC-080` | `library/browsercontext-reuse.spec.ts` | reuse {launch, connect} › should work with clock emulation *(2 copies)* |+| `BC-081` | `library/browsercontext-reuse.spec.ts` | reuse {launch, connect} › should continue issuing events after closing the reused page *(2 copies)* |+| `BC-082` | `library/browsercontext-reuse.spec.ts` | reuse {launch, connect} › should work with routeWebSocket *(2 copies)* |+| `BC-083` | `library/browsercontext-reuse.spec.ts` | reuse {launch, connect} › should update viewport and media *(2 copies)* |++### BP — Browsers path++| ID | File | Title |+|---|---|---|+| `BP-001` | `library/browsers-path.spec.ts` | should import on an unsupported platform when PLAYWRIGHT\_BROWSERS\_PATH=0 |+| `BP-002` | `library/browsers-path.spec.ts` | should import on an unsupported platform with an explicit PLAYWRIGHT\_BROWSERS\_PATH |++### BR — Browser++| ID | File | Title |+|---|---|---|+| `BR-001` | `library/browser.spec.ts` | should return browserType |+| `BR-002` | `library/browser.spec.ts` | should create new page @smoke |+| `BR-003` | `library/browser.spec.ts` | should throw upon second create new page |+| `BR-004` | `library/browser.spec.ts` | version should work |+| `BR-005` | `library/browser.spec.ts` | should dispatch page.on(close) upon browser.close and reject evaluate |+| `BR-006` | `library/browser.spec.ts` | should fire context event on newContext |+| `BR-007` | `library/browser.spec.ts` | newContext should not leave a context upon failure |+| `BR-008` | `library/browser-server.spec.ts` | should start and stop pipe server |+| `BR-009` | `library/browser-server.spec.ts` | should write descriptor on start and remove on stop |+| `BR-010` | `library/browser-server.spec.ts` | should start ws server with host/port and produce well-formed endpoint |++### BT — BrowserType++| ID | File | Title |+|---|---|---|+| `BT-001` | `library/browsertype-basic.spec.ts` | browserType.executablePath should work |+| `BT-002` | `library/browsertype-basic.spec.ts` | browserType.name should work |+| `BT-003` | `library/browsertype-basic.spec.ts` | should throw when trying to connect with not-chromium |+| `BT-004` | `library/browsertype-launch.spec.ts` | should reject all promises when browser is closed |+| `BT-005` | `library/browsertype-launch.spec.ts` | should throw if userDataDir option is passed |+| `BT-006` | `library/browsertype-launch.spec.ts` | should throw if userDataDir is passed as an argument |+| `BT-007` | `library/browsertype-launch.spec.ts` | should throw if port option is passed |+| `BT-008` | `library/browsertype-launch.spec.ts` | should throw if port option is passed for persistent context |+| `BT-009` | `library/browsertype-launch.spec.ts` | should throw if page argument is passed |+| `BT-010` | `library/browsertype-launch.spec.ts` | should reject if launched browser fails immediately |+| `BT-011` | `library/browsertype-launch.spec.ts` | should reject if executable path is invalid |+| `BT-012` | `library/browsertype-launch.spec.ts` | should handle timeout |+| `BT-013` | `library/browsertype-launch.spec.ts` | should handle exception and report launch log |+| `BT-014` | `library/browsertype-launch.spec.ts` | should accept objects as options |+| `BT-015` | `library/browsertype-launch.spec.ts` | should fire close event for all contexts |+| `BT-016` | `library/browsertype-launch.spec.ts` | should be callable twice |+| `BT-017` | `library/browsertype-launch.spec.ts` | should allow await using |+| `BT-018` | `library/launcher.spec.ts` | should have an errors object |+| `BT-019` | `library/launcher.spec.ts` | should have a devices object |+| `BT-020` | `library/launcher.spec.ts` | should kill browser process on timeout after close |+| `BT-021` | `library/launcher.spec.ts` | should throw a friendly error if its headed and there is no xserver on linux running |+| `BT-022` | `library/browsertype-launch-server.spec.ts` | launch server › should work |+| `BT-023` | `library/browsertype-launch-server.spec.ts` | launch server › should validate options |+| `BT-024` | `library/browsertype-launch-server.spec.ts` | launch server › should work with host |+| `BT-025` | `library/browsertype-launch-server.spec.ts` | launch server › should work with port |+| `BT-026` | `library/browsertype-launch-server.spec.ts` | launch server › should work with wsPath |+| `BT-027` | `library/browsertype-launch-server.spec.ts` | launch server › should work when wsPath is missing leading slash |+| `BT-028` | `library/browsertype-launch-server.spec.ts` | launch server › should default to random wsPath |+| `BT-029` | `library/browsertype-launch-server.spec.ts` | launch server › should provide an error when ws endpoint is incorrect |+| `BT-030` | `library/browsertype-launch-server.spec.ts` | launch server › should fire "close" event during kill |+| `BT-031` | `library/browsertype-launch-server.spec.ts` | launch server › should return child\_process instance |+| `BT-032` | `library/browsertype-launch-server.spec.ts` | launch server › should fire close event |+| `BT-033` | `library/browsertype-launch-server.spec.ts` | launch server › should log protocol |+| `BT-034` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should connect over wss *(2 copies)* |+| `BT-035` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should print HTTP error *(2 copies)* |+| `BT-036` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should print ws error *(2 copies)* |+| `BT-037` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should print custom ws close error *(2 copies)* |+| `BT-038` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should be able to reconnect to a browser *(2 copies)* |+| `BT-039` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should not crash on malformed json frame *(2 copies)* |+| `BT-040` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should be able to visit ipv6 *(2 copies)* |+| `BT-041` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should ignore page.pause when headed *(2 copies)* |+| `BT-042` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should be able to visit ipv6 through localhost *(2 copies)* |+| `BT-043` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should be able to connect two browsers at the same time *(2 copies)* |+| `BT-044` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should timeout in socket while connecting *(2 copies)* |+| `BT-045` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should timeout in connect while connecting *(2 copies)* |+| `BT-046` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should send extra headers with connect request *(2 copies)* |+| `BT-047` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should send extra headers with connect request in object form *(2 copies)* |+| `BT-048` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should send default User-Agent and X-Playwright-Browser headers with connect request *(2 copies)* |+| `BT-049` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should support slowmo option *(2 copies)* |+| `BT-050` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › disconnected event should be emitted when browser is closed or server is closed *(2 copies)* |+| `BT-051` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › disconnected event should have browser as argument *(2 copies)* |+| `BT-052` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should handle exceptions during connect *(2 copies)* |+| `BT-053` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should set the browser connected state *(2 copies)* |+| `BT-054` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should throw when used after isConnected returns false *(2 copies)* |+| `BT-055` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should throw when calling waitForNavigation after disconnect *(2 copies)* |+| `BT-056` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should reject navigation when browser closes *(2 copies)* |+| `BT-057` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should reject waitForSelector when browser closes *(2 copies)* |+| `BT-058` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should emit close events on pages and contexts *(2 copies)* |+| `BT-059` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should terminate network waiters *(2 copies)* |+| `BT-060` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should reject waitForEvent before browser.close finishes *(2 copies)* |+| `BT-061` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should reject waitForEvent before browser.onDisconnect fires *(2 copies)* |+| `BT-062` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should respect selectors *(2 copies)* |+| `BT-063` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should not throw on close after disconnect *(2 copies)* |+| `BT-064` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should saveAs videos from remote browser *(2 copies)* |+| `BT-065` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should save videos to artifactsDir *(2 copies)* |+| `BT-066` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should name video file after page guid when connecting to remote browser with artifactsDir *(2 copies)* |+| `BT-067` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should be able to connect 20 times to a single server without warnings *(2 copies)* |+| `BT-068` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should save download *(2 copies)* |+| `BT-069` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should error when saving download after deletion *(2 copies)* |+| `BT-070` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should properly disconnect when connection closes from the client side *(2 copies)* |+| `BT-071` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should be able to connect when the wsEndpoint is passed as an option *(2 copies)* |+| `BT-072` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should save har *(2 copies)* |+| `BT-073` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should filter launch options *(2 copies)* |+| `BT-074` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should record trace with sources *(2 copies)* |+| `BT-075` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should fulfill with global fetch result *(2 copies)* |+| `BT-076` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should upload large file *(2 copies)* |+| `BT-077` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should upload a folder *(2 copies)* |+| `BT-078` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › setInputFiles should preserve lastModified timestamp *(2 copies)* |+| `BT-079` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › should connect over http *(2 copies)* |+| `BT-080` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › socks proxy › should forward non-forwarded requests *(2 copies)* |+| `BT-081` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › socks proxy › should proxy localhost requests @smoke *(2 copies)* |+| `BT-082` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › socks proxy › should proxy ipv6 localhost requests @smoke *(2 copies)* |+| `BT-083` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › socks proxy › should proxy requests from fetch api *(2 copies)* |+| `BT-084` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › socks proxy › should proxy requests from fetch api over ipv6 *(2 copies)* |+| `BT-085` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › socks proxy › should proxy local.playwright requests *(2 copies)* |+| `BT-086` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › socks proxy › should lead to the error page for forwarded requests when the connection is refused *(2 copies)* |+| `BT-087` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › socks proxy › should proxy based on the pattern *(2 copies)* |+| `BT-088` | `library/browsertype-connect.spec.ts` | {launchServer, run-server} › socks proxy › should check proxy pattern on the client *(2 copies)* |+| `BT-089` | `library/browsertype-connect.spec.ts` | launchServer only › should work with cluster |+| `BT-090` | `library/browsertype-connect.spec.ts` | launchServer only › should properly disconnect when connection closes from the server side |+| `BT-091` | `library/browsertype-connect.spec.ts` | launchServer only › should be able to reconnect to a browser 12 times without warnings |+| `BT-092` | `library/browsertype-connect.spec.ts` | launchServer only › cannot launch another browser |+| `BT-093` | `library/browsertype-connect.spec.ts` | should refuse connecting when versions do not match |+| `BT-094` | `library/browsertype-connect.spec.ts` | should filter local paths from unsafe launch options |+| `BT-095` | `library/browsertype-connect.spec.ts` | should timeout after redirect when connecting over http |+| `BT-096` | `library/browsertype-connect.spec.ts` | should not retain closed browsers in launch mode |+| `BT-097` | `library/browsertype-launch-selenium.spec.ts` | selenium grid 3.141.59 standalone chromium |+| `BT-098` | `library/browsertype-launch-selenium.spec.ts` | selenium grid 3.141.59 hub + node chromium |+| `BT-099` | `library/browsertype-launch-selenium.spec.ts` | selenium grid 4.8.3 standalone chromium |+| `BT-100` | `library/browsertype-launch-selenium.spec.ts` | selenium grid 4.8.3 hub + node chromium |+| `BT-101` | `library/browsertype-launch-selenium.spec.ts` | selenium grid 4.8.3 standalone chromium broken driver |+| `BT-102` | `library/browsertype-launch-selenium.spec.ts` | selenium grid 3.141.59 standalone non-chromium |+| `BT-103` | `library/browsertype-launch-selenium.spec.ts` | selenium grid 3.141.59 standalone chromium through run-driver |++### BU — Before unload++| ID | File | Title |+|---|---|---|+| `BU-001` | `library/beforeunload.spec.ts` | should close browser with beforeunload page |+| `BU-002` | `library/beforeunload.spec.ts` | should close browsercontext with beforeunload page |+| `BU-003` | `library/beforeunload.spec.ts` | should be able to navigate away from page with beforeunload |+| `BU-004` | `library/beforeunload.spec.ts` | should close page with beforeunload listener |+| `BU-005` | `library/beforeunload.spec.ts` | should run beforeunload if asked for @smoke |+| `BU-006` | `library/beforeunload.spec.ts` | should access page after beforeunload |+| `BU-007` | `library/beforeunload.spec.ts` | should not stall on evaluate when dismissing beforeunload |+| `BU-008` | `library/beforeunload.spec.ts` | should not stall on click when dismissing beforeunload |+| `BU-009` | `library/beforeunload.spec.ts` | should support dismissing the dialog multiple times |+| `BU-010` | `library/beforeunload.spec.ts` | should support closing the page after a previous dismiss |+| `BU-011` | `library/beforeunload.spec.ts` | should support closing the page via a subsequent onbeforeunload dialog |+| `BU-012` | `library/beforeunload.spec.ts` | does not get stalled by beforeUnload |++### CA — Capabilities++| ID | File | Title |+|---|---|---|+| `CA-001` | `library/capabilities.spec.ts` | SharedArrayBuffer should work @smoke |+| `CA-002` | `library/capabilities.spec.ts` | Web Assembly should work @smoke |+| `CA-003` | `library/capabilities.spec.ts` | WebSocket should work @smoke |+| `CA-004` | `library/capabilities.spec.ts` | should respect CSP @smoke |+| `CA-005` | `library/capabilities.spec.ts` | should play video @smoke |+| `CA-006` | `library/capabilities.spec.ts` | should play webm video @smoke |+| `CA-007` | `library/capabilities.spec.ts` | should play audio @smoke |+| `CA-008` | `library/capabilities.spec.ts` | should support webgl @smoke |+| `CA-009` | `library/capabilities.spec.ts` | should support webgl 2 @smoke |+| `CA-010` | `library/capabilities.spec.ts` | should not crash on page with mp4 @smoke |+| `CA-011` | `library/capabilities.spec.ts` | should not crash on showDirectoryPicker |+| `CA-012` | `library/capabilities.spec.ts` | should not crash on storage.getDirectory() |+| `CA-013` | `library/capabilities.spec.ts` | navigator.clipboard should be present |+| `CA-014` | `library/capabilities.spec.ts` | should set CloseEvent.wasClean to false when the server terminates a WebSocket connection |+| `CA-015` | `library/capabilities.spec.ts` | serviceWorker should intercept document request |+| `CA-016` | `library/capabilities.spec.ts` | webkit should define window.safari |+| `CA-017` | `library/capabilities.spec.ts` | make sure that XMLHttpRequest upload events are emitted correctly |+| `CA-018` | `library/capabilities.spec.ts` | loading in HTMLImageElement.prototype |+| `CA-019` | `library/capabilities.spec.ts` | window.GestureEvent in WebKit |+| `CA-020` | `library/capabilities.spec.ts` | requestFullscreen |+| `CA-021` | `library/capabilities.spec.ts` | should send no Content-Length header for GET requests with a Content-Type |+| `CA-022` | `library/capabilities.spec.ts` | Intl.ListFormat should work |+| `CA-023` | `library/capabilities.spec.ts` | service worker should cover the iframe |+| `CA-024` | `library/capabilities.spec.ts` | service worker should register in an iframe |+| `CA-025` | `library/capabilities.spec.ts` | should be able to render avif images |+| `CA-026` | `library/capabilities.spec.ts` | should not crash when clicking a label with a \<input type="file"/\> |+| `CA-027` | `library/capabilities.spec.ts` | should not crash when clicking a color input |+| `CA-028` | `library/capabilities.spec.ts` | should not auto play audio |+| `CA-029` | `library/capabilities.spec.ts` | should not crash on feature detection for PublicKeyCredential |+| `CA-030` | `library/modernizr.spec.ts` | Safari Desktop |+| `CA-031` | `library/modernizr.spec.ts` | Mobile Safari |++### CC — Client certificates++| ID | File | Title |+|---|---|---|+| `CC-001` | `library/client-certificates.spec.ts` | fetch › validate input |+| `CC-002` | `library/client-certificates.spec.ts` | fetch › should fail with no client certificates provided |+| `CC-003` | `library/client-certificates.spec.ts` | fetch › should keep supporting http |+| `CC-004` | `library/client-certificates.spec.ts` | fetch › should throw with untrusted client certs |+| `CC-005` | `library/client-certificates.spec.ts` | fetch › pass with trusted client certificates |+| `CC-006` | `library/client-certificates.spec.ts` | fetch › should not leak client certificate to cross-origin redirect target |+| `CC-007` | `library/client-certificates.spec.ts` | fetch › pass with trusted client certificates in pfx format |+| `CC-008` | `library/client-certificates.spec.ts` | fetch › pass with trusted client certificates and when a http proxy is used |+| `CC-009` | `library/client-certificates.spec.ts` | fetch › pass with trusted client certificates and when a socks proxy is used |+| `CC-010` | `library/client-certificates.spec.ts` | fetch › should throw a http error if the pfx passphrase is incorect |+| `CC-011` | `library/client-certificates.spec.ts` | fetch › should fail with matching certificates in legacy pfx format |+| `CC-012` | `library/client-certificates.spec.ts` | fetch › should work in the browser with request interception |+| `CC-013` | `library/client-certificates.spec.ts` | browser › validate input |+| `CC-014` | `library/client-certificates.spec.ts` | browser › should keep supporting http |+| `CC-015` | `library/client-certificates.spec.ts` | browser › should pass through to non-matching origin with self-signed cert |+| `CC-016` | `library/client-certificates.spec.ts` | browser › should not intercept TLS for origins without a client certificate |+| `CC-017` | `library/client-certificates.spec.ts` | browser › should fail with no client certificates |+| `CC-018` | `library/client-certificates.spec.ts` | browser › should fail with self-signed client certificates |+| `CC-019` | `library/client-certificates.spec.ts` | browser › should complete browser TLS handshake when server rejects client certificate after it |+| `CC-020` | `library/client-certificates.spec.ts` | browser › should pass with matching certificates |+| `CC-021` | `library/client-certificates.spec.ts` | browser › should pass with matching certificates when passing as content |+| `CC-022` | `library/client-certificates.spec.ts` | browser › should pass with matching certificates and when a http proxy is used |+| `CC-023` | `library/client-certificates.spec.ts` | browser › should pass with matching certificates and when a http proxy is used from env |+| `CC-024` | `library/client-certificates.spec.ts` | browser › should pass with matching certificates and when a http proxy is used from config but env is there |+| `CC-025` | `library/client-certificates.spec.ts` | browser › should respect launch proxy and proxy bypass |+| `CC-026` | `library/client-certificates.spec.ts` | browser › should pass with matching certificates and when a socks proxy is used |+| `CC-027` | `library/client-certificates.spec.ts` | browser › should not hang on tls errors during TLS 1.2 handshake |+| `CC-028` | `library/client-certificates.spec.ts` | browser › should pass with matching certificates in pfx format |+| `CC-029` | `library/client-certificates.spec.ts` | browser › should handle TLS renegotiation with client certificates |+| `CC-030` | `library/client-certificates.spec.ts` | browser › should pass with matching certificates in pfx format when passing as content |+| `CC-031` | `library/client-certificates.spec.ts` | browser › should fail with matching certificates in legacy pfx format |+| `CC-032` | `library/client-certificates.spec.ts` | browser › should throw a http error if the pfx passphrase is incorect |+| `CC-033` | `library/client-certificates.spec.ts` | browser › should pass with matching certificates on context APIRequestContext instance |+| `CC-034` | `library/client-certificates.spec.ts` | browser › should pass with matching certificates and trailing slash |+| `CC-035` | `library/client-certificates.spec.ts` | browser › should have ignoreHTTPSErrors=false by default |+| `CC-036` | `library/client-certificates.spec.ts` | browser › support http2 |+| `CC-037` | `library/client-certificates.spec.ts` | browser › support http2 if the browser only supports http1.1 |+| `CC-038` | `library/client-certificates.spec.ts` | browser › should return target connection errors when using http2 |+| `CC-039` | `library/client-certificates.spec.ts` | browser › should handle rejected certificate in handshake with HTTP/2 |+| `CC-040` | `library/client-certificates.spec.ts` | browser › persistentContext › validate input |+| `CC-041` | `library/client-certificates.spec.ts` | browser › persistentContext › should pass with matching certificates |++### CD — CDP++| ID | File | Title |+|---|---|---|+| `CD-001` | `library/chromium/connect-over-cdp.spec.ts` | should connect to an existing cdp session |+| `CD-002` | `library/chromium/connect-over-cdp.spec.ts` | should connect when an existing page has no renderer |+| `CD-003` | `library/chromium/connect-over-cdp.spec.ts` | should connect when the opener of an existing page has no renderer |+| `CD-004` | `library/chromium/connect-over-cdp.spec.ts` | should connect when an existing page has been discarded |+| `CD-005` | `library/chromium/connect-over-cdp.spec.ts` | should cleanup artifacts dir after connectOverCDP disconnects due to ws close |+| `CD-006` | `library/chromium/connect-over-cdp.spec.ts` | should reject pending CDPSession calls when the browser is killed |+| `CD-007` | `library/chromium/connect-over-cdp.spec.ts` | should write traces to provided artifactsDir on connectOverCDP |+| `CD-008` | `library/chromium/connect-over-cdp.spec.ts` | should connectOverCDP and manage downloads in default context |+| `CD-009` | `library/chromium/connect-over-cdp.spec.ts` | should connect to an existing cdp session twice |+| `CD-010` | `library/chromium/connect-over-cdp.spec.ts` | should connect to existing page with iframe and navigate |+| `CD-011` | `library/chromium/connect-over-cdp.spec.ts` | should connect to existing service workers |+| `CD-012` | `library/chromium/connect-over-cdp.spec.ts` | should connect over a ws endpoint |+| `CD-013` | `library/chromium/connect-over-cdp.spec.ts` | should send extra headers with connect request |+| `CD-014` | `library/chromium/connect-over-cdp.spec.ts` | should keep URL parameters when adding json/version |+| `CD-015` | `library/chromium/connect-over-cdp.spec.ts` | should append /json/version with a slash if there isnt one |+| `CD-016` | `library/chromium/connect-over-cdp.spec.ts` | should send default User-Agent header with connect request |+| `CD-017` | `library/chromium/connect-over-cdp.spec.ts` | should report all pages in an existing browser |+| `CD-018` | `library/chromium/connect-over-cdp.spec.ts` | should connect via https |+| `CD-019` | `library/chromium/connect-over-cdp.spec.ts` | should return valid browser from context.browser() |+| `CD-020` | `library/chromium/connect-over-cdp.spec.ts` | should report an expected error when the endpointURL returns a non-expected status code |+| `CD-021` | `library/chromium/connect-over-cdp.spec.ts` | should report an expected error when the endpoint URL JSON webSocketDebuggerUrl is undefined |+| `CD-022` | `library/chromium/connect-over-cdp.spec.ts` | should connect to an existing cdp session when passed as a first argument |+| `CD-023` | `library/chromium/connect-over-cdp.spec.ts` | should use proxy with connectOverCDP |+| `CD-024` | `library/chromium/connect-over-cdp.spec.ts` | should use env proxy with connectOverCDP discovery request |+| `CD-025` | `library/chromium/connect-over-cdp.spec.ts` | should send target Host header when using env HTTP proxy with connectOverCDP |+| `CD-026` | `library/chromium/connect-over-cdp.spec.ts` | should be able to connect via localhost |+| `CD-027` | `library/chromium/connect-over-cdp.spec.ts` | emulate media should not be affected by second connectOverCDP with noDefaults |+| `CD-028` | `library/chromium/connect-over-cdp.spec.ts` | should allow tracing over cdp session |+| `CD-029` | `library/chromium/connect-over-cdp.spec.ts` | setInputFiles should preserve lastModified timestamp |+| `CD-030` | `library/chromium/connect-over-cdp.spec.ts` | setInputFiles should use local path when isLocal is set |+| `CD-031` | `library/chromium/connect-over-cdp.spec.ts` | should print custom ws close error |+| `CD-032` | `library/chromium/connect-over-cdp.spec.ts` | should not reuse utility worlds between two clients |+| `CD-033` | `library/chromium/connect-over-cdp.spec.ts` | should get title and URL of existing page |+| `CD-034` | `library/chromium/connect-over-cdp.spec.ts` | should skip default overrides with noDefaults |+| `CD-035` | `library/chromium/connect-over-cdp.spec.ts` | noDefaults should not affect new contexts |+| `CD-036` | `library/chromium/connect-over-cdp.spec.ts` | should connect over CDP using a ConnectionTransport |+| `CD-037` | `library/chromium/session.spec.ts` | should work |+| `CD-038` | `library/chromium/session.spec.ts` | should respect timeout and signal options |+| `CD-039` | `library/chromium/session.spec.ts` | should send events |+| `CD-040` | `library/chromium/session.spec.ts` | should only accept a page or frame |+| `CD-041` | `library/chromium/session.spec.ts` | should enable and disable domains independently |+| `CD-042` | `library/chromium/session.spec.ts` | should be able to detach session |+| `CD-043` | `library/chromium/session.spec.ts` | should throw nice errors |+| `CD-044` | `library/chromium/session.spec.ts` | should work with main frame |+| `CD-045` | `library/chromium/session.spec.ts` | should throw if target is part of main |+| `CD-046` | `library/chromium/session.spec.ts` | should not break page.close() |+| `CD-047` | `library/chromium/session.spec.ts` | should detach when page closes |+| `CD-048` | `library/chromium/session.spec.ts` | should reject protocol calls when page closes |+| `CD-049` | `library/chromium/session.spec.ts` | should emit event for each CDP event |+| `CD-050` | `library/chromium/session.spec.ts` | should emit close event when session is detached |+| `CD-051` | `library/chromium/session.spec.ts` | should emit close event when page closes |+| `CD-052` | `library/chromium/session.spec.ts` | should work with newBrowserCDPSession |++### CF — Code frame++| ID | File | Title |+|---|---|---|+| `CF-001` | `library/unit/code-frame.spec.ts` | should mark the column |+| `CF-002` | `library/unit/code-frame.spec.ts` | should mark the line without a column |+| `CF-003` | `library/unit/code-frame.spec.ts` | should respect linesAbove and linesBelow |+| `CF-004` | `library/unit/code-frame.spec.ts` | should clip to the source lines |+| `CF-005` | `library/unit/code-frame.spec.ts` | should pad line numbers to the widest one |+| `CF-006` | `library/unit/code-frame.spec.ts` | should print the message after the marker |+| `CF-007` | `library/unit/code-frame.spec.ts` | should print the message above the frame without a column |+| `CF-008` | `library/unit/code-frame.spec.ts` | should keep tabs before the marker |+| `CF-009` | `library/unit/code-frame.spec.ts` | should not add a space after the gutter for empty lines |+| `CF-010` | `library/unit/code-frame.spec.ts` | should split lines on all line terminators |+| `CF-011` | `library/unit/code-frame.spec.ts` | should highlight code |+| `CF-012` | `library/unit/code-frame.spec.ts` | should highlight multi-line tokens on each line |+| `CF-013` | `library/unit/code-frame.spec.ts` | should highlight keywords used as property names as identifiers |++### CG — Codegen++| ID | File | Title |+|---|---|---|+| `CG-001` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should click |+| `CG-002` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should double click |+| `CG-003` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should click twice |+| `CG-004` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should type after clicking twice |+| `CG-005` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should ignore programmatic events |+| `CG-006` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should click after same-document navigation |+| `CG-007` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should make a positioned click on a canvas |+| `CG-008` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should work with TrustedTypes |+| `CG-009` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should not target selector preview by text regexp |+| `CG-010` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should fill |+| `CG-011` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should fill japanese text |+| `CG-012` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should fill textarea |+| `CG-013` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should fill textarea with new lines at the end |+| `CG-014` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should fill \[contentEditable\] |+| `CG-015` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should fill \[contentEditable\] with initial text |+| `CG-016` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should press |+| `CG-017` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should update selected element after pressing Tab |+| `CG-018` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should record ArrowDown |+| `CG-019` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should emit single keyup on ArrowDown |+| `CG-020` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should not record a click on Enter press |+| `CG-021` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should check |+| `CG-022` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should check a radio button |+| `CG-023` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should check with keyboard |+| `CG-024` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should check with keyboard after hover |+| `CG-025` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should uncheck |+| `CG-026` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should select |+| `CG-027` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should select with size attribute |+| `CG-028` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should await popup |+| `CG-029` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should attribute navigation to click |+| `CG-030` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should attribute navigation to press/fill |+| `CG-031` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should ignore AltGraph |+| `CG-032` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should middle click |+| `CG-033` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should record slider |+| `CG-034` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should click button with nested div |+| `CG-035` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should record omnibox navigations after performAction |+| `CG-036` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should record omnibox navigations after recordAction |+| `CG-037` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should not throw csp directive violation errors |+| `CG-038` | `library/inspector/cli-codegen-1.spec.ts` | cli codegen › should clear when recording is disabled |+| `CG-039` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should contain open page |+| `CG-040` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should contain second page |+| `CG-041` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should contain close page |+| `CG-042` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should not lead to an error if html gets clicked |+| `CG-043` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should upload a single file |+| `CG-044` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should upload multiple files |+| `CG-045` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should clear files |+| `CG-046` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should upload a file via hidden input triggered by button |+| `CG-047` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should download files |+| `CG-048` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should handle dialogs |+| `CG-049` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should handle history.postData |+| `CG-050` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should record open in a new tab with url |+| `CG-051` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should not clash pages |+| `CG-052` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › click should emit events in order |+| `CG-053` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should reset hover model on action when element detaches |+| `CG-054` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should update active model on action |+| `CG-055` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should check input with chaining id |+| `CG-056` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should record navigations after identical pushState |+| `CG-057` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should fill tricky characters |+| `CG-058` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should --test-id-attribute |+| `CG-059` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should generate getByTestId for any of the configured testIdAttributes |+| `CG-060` | `library/inspector/cli-codegen-2.spec.ts` | cli codegen › should auto-generate toBeVisible |+| `CG-061` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should click locator.first |+| `CG-062` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should click locator.nth |+| `CG-063` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate frame locators (1) |+| `CG-064` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate frame locators (2) |+| `CG-065` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate frame locators (3) |+| `CG-066` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate frame locators (4) |+| `CG-067` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate frame locators with special characters in name attribute |+| `CG-068` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate frame locators with title attribute |+| `CG-069` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate frame locators with name attribute |+| `CG-070` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate frame locators with id attribute |+| `CG-071` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate frame locators with testId |+| `CG-072` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate role locators undef frame locators |+| `CG-073` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate getByTestId |+| `CG-074` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate getByPlaceholder |+| `CG-075` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate getByAltText |+| `CG-076` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate getByLabel |+| `CG-077` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate getByLabel without regex |+| `CG-078` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should pass through pointer events |+| `CG-079` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should consume contextmenu events, despite a custom context menu |+| `CG-080` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate click action from dialog |+| `CG-081` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate double click action from dialog |+| `CG-082` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should generate hover action |+| `CG-083` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should assert value |+| `CG-084` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should assert value on disabled input |+| `CG-085` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should assert value on disabled select |+| `CG-086` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should assert visibility |+| `CG-087` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should keep toolbar visible even if webpage erases content in hydration |+| `CG-088` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should display inline svg icons on text assertion dialog inside iframe |+| `CG-089` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should keep dialog open when clicking inside |+| `CG-090` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should record when top layer popover is open |+| `CG-091` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should record when top layer popover inside shadow DOM is open |+| `CG-092` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should record when manual popover with fullscreen backdrop is open |+| `CG-093` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen › should record when fullscreen element is open |+| `CG-094` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen with frameLocator() › should prepend the frame selector to disambiguate |+| `CG-095` | `library/inspector/cli-codegen-3.spec.ts` | cli codegen with frameLocator() › should not use frameLocator() when it saves a single frameLocator(selector) |+| `CG-096` | `library/inspector/cli-codegen-aria.spec.ts` | should generate aria snapshot |+| `CG-097` | `library/inspector/cli-codegen-aria.spec.ts` | should generate regex in aria snapshot |+| `CG-098` | `library/inspector/cli-codegen-aria.spec.ts` | should generate regex for uuid in aria snapshot |+| `CG-099` | `library/inspector/cli-codegen-aria.spec.ts` | should inspect aria snapshot |+| `CG-100` | `library/inspector/cli-codegen-aria.spec.ts` | should update aria snapshot highlight |+| `CG-101` | `library/inspector/cli-codegen-aria.spec.ts` | should show aria snapshot error |+| `CG-102` | `library/inspector/cli-codegen-aria.spec.ts` | should generate valid javascript with multiline snapshot assertion |+| `CG-103` | `library/inspector/cli-codegen-pick-locator.spec.ts` | should inspect locator |+| `CG-104` | `library/inspector/cli-codegen-pick-locator.spec.ts` | should update locator highlight |+| `CG-105` | `library/inspector/cli-codegen-javascript.spec.ts` | should print the correct imports and context options |+| `CG-106` | `library/inspector/cli-codegen-javascript.spec.ts` | should print the correct context options for custom settings |+| `CG-107` | `library/inspector/cli-codegen-javascript.spec.ts` | should work with --http-credentials |+| `CG-108` | `library/inspector/cli-codegen-javascript.spec.ts` | should print the correct context options when using a device |+| `CG-109` | `library/inspector/cli-codegen-javascript.spec.ts` | should print the correct context options when using a device and additional options |+| `CG-110` | `library/inspector/cli-codegen-javascript.spec.ts` | should save the codegen output to a file if specified |+| `CG-111` | `library/inspector/cli-codegen-javascript.spec.ts` | should print load/save storageState |+| `CG-112` | `library/inspector/cli-codegen-test.spec.ts` | should print the correct imports and context options |+| `CG-113` | `library/inspector/cli-codegen-test.spec.ts` | should print the correct context options for custom settings |+| `CG-114` | `library/inspector/cli-codegen-test.spec.ts` | should print the correct context options when using a device |+| `CG-115` | `library/inspector/cli-codegen-test.spec.ts` | should print the correct context options when using a device and additional options |+| `CG-116` | `library/inspector/cli-codegen-test.spec.ts` | should print load storageState |+| `CG-117` | `library/inspector/cli-codegen-test.spec.ts` | should not generate recordHAR with --save-har |+| `CG-118` | `library/inspector/cli-codegen-test.spec.ts` | should generate routeFromHAR with --save-har |+| `CG-119` | `library/inspector/cli-codegen-test.spec.ts` | should generate routeFromHAR with --save-har and --save-har-glob |+| `CG-120` | `library/inspector/cli-codegen-python.spec.ts` | should print the correct imports and context options |+| `CG-121` | `library/inspector/cli-codegen-python.spec.ts` | should print the correct context options for custom settings |+| `CG-122` | `library/inspector/cli-codegen-python.spec.ts` | should print the correct context options when using a device |+| `CG-123` | `library/inspector/cli-codegen-python.spec.ts` | should print the correct context options when using a device and additional options |+| `CG-124` | `library/inspector/cli-codegen-python.spec.ts` | should save the codegen output to a file if specified |+| `CG-125` | `library/inspector/cli-codegen-python.spec.ts` | should print load/save storage\_state |+| `CG-126` | `library/inspector/cli-codegen-python.spec.ts` | should work with --save-har |+| `CG-127` | `library/inspector/cli-codegen-python.spec.ts` | should work with --save-har and --save-har-glob |+| `CG-128` | `library/inspector/cli-codegen-python-async.spec.ts` | should print the correct imports and context options |+| `CG-129` | `library/inspector/cli-codegen-python-async.spec.ts` | should print the correct context options for custom settings |+| `CG-130` | `library/inspector/cli-codegen-python-async.spec.ts` | should print the correct context options when using a device |+| `CG-131` | `library/inspector/cli-codegen-python-async.spec.ts` | should print the correct context options when using a device and additional options |+| `CG-132` | `library/inspector/cli-codegen-python-async.spec.ts` | should save the codegen output to a file if specified |+| `CG-133` | `library/inspector/cli-codegen-python-async.spec.ts` | should print load/save storage\_state |+| `CG-134` | `library/inspector/cli-codegen-python-async.spec.ts` | should work with --save-har |+| `CG-135` | `library/inspector/cli-codegen-python-async.spec.ts` | should work with --save-har and --save-har-glob |+| `CG-136` | `library/inspector/cli-codegen-pytest.spec.ts` | should print the correct imports and context options |+| `CG-137` | `library/inspector/cli-codegen-pytest.spec.ts` | should print the correct context options when using a device and lang |+| `CG-138` | `library/inspector/cli-codegen-pytest.spec.ts` | should save the codegen output to a file if specified |+| `CG-139` | `library/inspector/cli-codegen-pytest.spec.ts` | should work with --save-har |+| `CG-140` | `library/inspector/cli-codegen-pytest.spec.ts` | should work with --save-har and --save-har-glob |+| `CG-141` | `library/inspector/cli-codegen-java.spec.ts` | should print the correct imports and context options |+| `CG-142` | `library/inspector/cli-codegen-java.spec.ts` | should print the correct context options for custom settings |+| `CG-143` | `library/inspector/cli-codegen-java.spec.ts` | should print the correct context options when using a device |+| `CG-144` | `library/inspector/cli-codegen-java.spec.ts` | should print the correct context options when using a device and additional options |+| `CG-145` | `library/inspector/cli-codegen-java.spec.ts` | should print load/save storage\_state |+| `CG-146` | `library/inspector/cli-codegen-java.spec.ts` | should work with --save-har and --save-har-glob as java-library |+| `CG-147` | `library/inspector/cli-codegen-java.spec.ts` | should work with --save-har and --save-har-glob as java-junit |+| `CG-148` | `library/inspector/cli-codegen-java.spec.ts` | should print the correct imports in junit |+| `CG-149` | `library/inspector/cli-codegen-java.spec.ts` | should print a valid basic program in junit |+| `CG-150` | `library/inspector/cli-codegen-csharp.spec.ts` | should print the correct imports and context options |+| `CG-151` | `library/inspector/cli-codegen-csharp.spec.ts` | should print the correct context options for custom settings |+| `CG-152` | `library/inspector/cli-codegen-csharp.spec.ts` | should print the correct context options when using a device |+| `CG-153` | `library/inspector/cli-codegen-csharp.spec.ts` | should print the correct context options when using a device and additional options |+| `CG-154` | `library/inspector/cli-codegen-csharp.spec.ts` | should print load/save storageState |+| `CG-155` | `library/inspector/cli-codegen-csharp.spec.ts` | should work with --save-har |+| `CG-156` | `library/inspector/cli-codegen-csharp.spec.ts` | should work with --save-har and --save-har-glob |+| `CG-157` | `library/inspector/cli-codegen-csharp.spec.ts` | should not print context options method override in {nunit, mstest, xunit} if no options were passed *(3 copies)* |+| `CG-158` | `library/inspector/cli-codegen-csharp.spec.ts` | should print context options method override in {nunit, mstest, xunit} if options were passed *(3 copies)* |+| `CG-159` | `library/inspector/cli-codegen-csharp.spec.ts` | should work with --save-har in {nunit, mstest, xunit} *(3 copies)* |+| `CG-160` | `library/inspector/cli-codegen-csharp.spec.ts` | should work with --save-har and --save-har-glob in {nunit, mstest, xunit} *(3 copies)* |+| `CG-161` | `library/inspector/cli-codegen-csharp.spec.ts` | should print a valid basic program in mstest |+| `CG-162` | `library/inspector/cli-codegen-csharp.spec.ts` | should print a valid basic program in nunit |+| `CG-163` | `library/inspector/cli-codegen-csharp.spec.ts` | should print a valid basic program in xunit |+| `CG-164` | `library/unit/codegen.spec.ts` | javascript › generatePlaywrightRequestCall |+| `CG-165` | `library/unit/codegen.spec.ts` | javascript › generatePlaywrightRequestCall with POST method and no body |+| `CG-166` | `library/unit/codegen.spec.ts` | javascript › generatePlaywrightRequestCall with PUT method and JSON body |+| `CG-167` | `library/unit/codegen.spec.ts` | javascript › generatePlaywrightRequestCall with PATCH method and form data |+| `CG-168` | `library/unit/codegen.spec.ts` | javascript › generatePlaywrightRequestCall with DELETE method and custom header |+| `CG-169` | `library/unit/codegen.spec.ts` | javascript › generatePlaywrightRequestCall with HEAD method |+| `CG-170` | `library/unit/codegen.spec.ts` | javascript › generatePlaywrightRequestCall with complex query parameters |+| `CG-171` | `library/unit/codegen.spec.ts` | javascript › generatePlaywrightRequestCall with multiple headers |+| `CG-172` | `library/unit/codegen.spec.ts` | javascript › escape sequences |+| `CG-173` | `library/unit/codegen.spec.ts` | python › generatePlaywrightRequestCall |+| `CG-174` | `library/unit/codegen.spec.ts` | python › generatePlaywrightRequestCall with POST method and no body |+| `CG-175` | `library/unit/codegen.spec.ts` | python › generatePlaywrightRequestCall with PUT method and JSON body |+| `CG-176` | `library/unit/codegen.spec.ts` | python › generatePlaywrightRequestCall with PATCH method and form data |+| `CG-177` | `library/unit/codegen.spec.ts` | python › generatePlaywrightRequestCall with DELETE method and custom header |+| `CG-178` | `library/unit/codegen.spec.ts` | python › generatePlaywrightRequestCall with HEAD method |+| `CG-179` | `library/unit/codegen.spec.ts` | python › generatePlaywrightRequestCall with complex query parameters |+| `CG-180` | `library/unit/codegen.spec.ts` | python › generatePlaywrightRequestCall with multiple headers |+| `CG-181` | `library/unit/codegen.spec.ts` | python › escape sequences |+| `CG-182` | `library/unit/codegen.spec.ts` | csharp › generatePlaywrightRequestCall |+| `CG-183` | `library/unit/codegen.spec.ts` | csharp › generatePlaywrightRequestCall with POST method and no body |+| `CG-184` | `library/unit/codegen.spec.ts` | csharp › generatePlaywrightRequestCall with PUT method and JSON body |+| `CG-185` | `library/unit/codegen.spec.ts` | csharp › escape sequences |+| `CG-186` | `library/unit/codegen.spec.ts` | java › generatePlaywrightRequestCall |+| `CG-187` | `library/unit/codegen.spec.ts` | java › generatePlaywrightRequestCall with POST method and no body |+| `CG-188` | `library/unit/codegen.spec.ts` | java › generatePlaywrightRequestCall with PUT method and JSON body |+| `CG-189` | `library/unit/codegen.spec.ts` | java › generatePlaywrightRequestCall with PATCH method and form data |+| `CG-190` | `library/unit/codegen.spec.ts` | java › generatePlaywrightRequestCall with DELETE method and custom header |+| `CG-191` | `library/unit/codegen.spec.ts` | java › escape sequences |++### CH — Check++| ID | File | Title |+|---|---|---|+| `CH-001` | `page/page-check.spec.ts` | should check the box @smoke |+| `CH-002` | `page/page-check.spec.ts` | should not check the checked box |+| `CH-003` | `page/page-check.spec.ts` | should uncheck the box |+| `CH-004` | `page/page-check.spec.ts` | should not uncheck the unchecked box |+| `CH-005` | `page/page-check.spec.ts` | should check radio |+| `CH-006` | `page/page-check.spec.ts` | should check radio by aria role |+| `CH-007` | `page/page-check.spec.ts` | should uncheck radio by aria role |+| `CH-008` | `page/page-check.spec.ts` | should check the box by aria role |+| `CH-009` | `page/page-check.spec.ts` | should uncheck the box by aria role |+| `CH-010` | `page/page-check.spec.ts` | should throw when not a checkbox |+| `CH-011` | `page/page-check.spec.ts` | should throw when not a checkbox 2 |+| `CH-012` | `page/page-check.spec.ts` | should check the box inside a button |+| `CH-013` | `page/page-check.spec.ts` | should check the label with position |+| `CH-014` | `page/page-check.spec.ts` | trial run should not check |+| `CH-015` | `page/page-check.spec.ts` | trial run should not uncheck |+| `CH-016` | `page/page-check.spec.ts` | should check the box using setChecked |+| `CH-017` | `page/page-check.spec.ts` | should throw when trying to uncheck radio button |++### CK — Clock++| ID | File | Title |+|---|---|---|+| `CK-001` | `library/page-clock.spec.ts` | runFor › triggers immediately without specified delay |+| `CK-002` | `library/page-clock.spec.ts` | runFor › does not trigger without sufficient delay |+| `CK-003` | `library/page-clock.spec.ts` | runFor › triggers after sufficient delay |+| `CK-004` | `library/page-clock.spec.ts` | runFor › triggers simultaneous timers |+| `CK-005` | `library/page-clock.spec.ts` | runFor › triggers multiple simultaneous timers |+| `CK-006` | `library/page-clock.spec.ts` | runFor › waits after setTimeout was called |+| `CK-007` | `library/page-clock.spec.ts` | runFor › triggers event when some throw |+| `CK-008` | `library/page-clock.spec.ts` | runFor › creates updated Date while ticking |+| `CK-009` | `library/page-clock.spec.ts` | runFor › passes 8 seconds |+| `CK-010` | `library/page-clock.spec.ts` | runFor › passes 1 minute |+| `CK-011` | `library/page-clock.spec.ts` | runFor › passes 2 hours, 34 minutes and 10 seconds |+| `CK-012` | `library/page-clock.spec.ts` | runFor › throws for invalid format |+| `CK-013` | `library/page-clock.spec.ts` | runFor › returns the current now value |+| `CK-014` | `library/page-clock.spec.ts` | fastForward › ignores timers which wouldn't be run |+| `CK-015` | `library/page-clock.spec.ts` | fastForward › pushes back execution time for skipped timers |+| `CK-016` | `library/page-clock.spec.ts` | fastForward › supports string time arguments |+| `CK-017` | `library/page-clock.spec.ts` | stubTimers › sets initial timestamp |+| `CK-018` | `library/page-clock.spec.ts` | stubTimers › should throw for invalid date |+| `CK-019` | `library/page-clock.spec.ts` | stubTimers › replaces global setTimeout |+| `CK-020` | `library/page-clock.spec.ts` | stubTimers › global fake setTimeout should return id |+| `CK-021` | `library/page-clock.spec.ts` | stubTimers › replaces global clearTimeout |+| `CK-022` | `library/page-clock.spec.ts` | stubTimers › replaces global setInterval |+| `CK-023` | `library/page-clock.spec.ts` | stubTimers › replaces global clearInterval |+| `CK-024` | `library/page-clock.spec.ts` | stubTimers › replaces global performance.now |+| `CK-025` | `library/page-clock.spec.ts` | stubTimers › fakes Date constructor |+| `CK-026` | `library/page-clock.spec.ts` | stubTimers › replaces global performance.timeOrigin |+| `CK-027` | `library/page-clock.spec.ts` | popup › should tick after popup |+| `CK-028` | `library/page-clock.spec.ts` | popup › should tick before popup |+| `CK-029` | `library/page-clock.spec.ts` | popup › should run time before popup |+| `CK-030` | `library/page-clock.spec.ts` | popup › should not run time before popup on pause |+| `CK-031` | `library/page-clock.spec.ts` | setFixedTime › does not fake methods |+| `CK-032` | `library/page-clock.spec.ts` | setFixedTime › allows setting time multiple times |+| `CK-033` | `library/page-clock.spec.ts` | setFixedTime › fixed time is not affected by clock manipulation |+| `CK-034` | `library/page-clock.spec.ts` | setFixedTime › allows installing fake timers after settings time |+| `CK-035` | `library/page-clock.spec.ts` | while running › should progress time |+| `CK-036` | `library/page-clock.spec.ts` | while running › should runFor |+| `CK-037` | `library/page-clock.spec.ts` | while running › should fastForward |+| `CK-038` | `library/page-clock.spec.ts` | while running › should pause |+| `CK-039` | `library/page-clock.spec.ts` | while running › should reject an invalid target time with an active requestAnimationFrame loop |+| `CK-040` | `library/page-clock.spec.ts` | while running › should pause and fastForward |+| `CK-041` | `library/page-clock.spec.ts` | while running › should set system time on pause |+| `CK-042` | `library/page-clock.spec.ts` | while on pause › fastForward should not run nested immediate |+| `CK-043` | `library/page-clock.spec.ts` | while on pause › runFor should not run nested immediate |+| `CK-044` | `library/page-clock.spec.ts` | while on pause › runFor should not run nested immediate from microtask |+| `CK-045` | `library/page-clock.spec.ts` | while on pause › should stay paused on the next page when an init script reads the time |+| `CK-046` | `library/page-clock.spec.ts` | while on pause › should not advance performance.now() before the first clock call on a new page |+| `CK-047` | `library/page-clock.spec.ts` | Date.now › check Date.now is an integer |+| `CK-048` | `library/page-clock.spec.ts` | Date.now › check Date.now is an integer (2) |+| `CK-049` | `library/page-clock.spec.ts` | Temporal.Now › should follow fixed time |+| `CK-050` | `library/page-clock.spec.ts` | Temporal.Now › should advance with the clock |+| `CK-051` | `library/page-clock.spec.ts` | Temporal.Now › should use the system time zone by default |+| `CK-052` | `library/page-clock.spec.ts` | Temporal.Now › should keep the rest of Temporal intact |+| `CK-053` | `library/page-clock.spec.ts` | AbortSignal.timeout |+| `CK-054` | `library/page-clock.spec.ts` | correctly increments Date.now()/performance.now() during blocking execution |+| `CK-055` | `library/page-clock.frozen.spec.ts` | clock should be frozen |+| `CK-056` | `library/page-clock.frozen.spec.ts` | clock should be realtime |+| `CK-057` | `library/unit/clock.spec.ts` | setTimeout › throws if no arguments |+| `CK-058` | `library/unit/clock.spec.ts` | setTimeout › does not throw if \|undefined\| or \|null\| is passed as a callback |+| `CK-059` | `library/unit/clock.spec.ts` | setTimeout › returns numeric id or object with numeric id |+| `CK-060` | `library/unit/clock.spec.ts` | setTimeout › returns unique id |+| `CK-061` | `library/unit/clock.spec.ts` | setTimeout › starts id from a large number |+| `CK-062` | `library/unit/clock.spec.ts` | setTimeout › sets timers on instance |+| `CK-063` | `library/unit/clock.spec.ts` | setTimeout › parses numeric string times |+| `CK-064` | `library/unit/clock.spec.ts` | setTimeout › parses no-numeric string times |+| `CK-065` | `library/unit/clock.spec.ts` | setTimeout › passes setTimeout parameters |+| `CK-066` | `library/unit/clock.spec.ts` | setTimeout › calls correct timeout on recursive tick |+| `CK-067` | `library/unit/clock.spec.ts` | setTimeout › does not depend on this |+| `CK-068` | `library/unit/clock.spec.ts` | setTimeout › is not influenced by forward system clock changes |+| `CK-069` | `library/unit/clock.spec.ts` | setTimeout › is not influenced by backward system clock changes |+| `CK-070` | `library/unit/clock.spec.ts` | setTimeout › use of eval when not in node › evals non-function callbacks |+| `CK-071` | `library/unit/clock.spec.ts` | setTimeout › use of eval when not in node › only evals on global scope |+| `CK-072` | `library/unit/clock.spec.ts` | runFor › triggers immediately without specified delay |+| `CK-073` | `library/unit/clock.spec.ts` | runFor › does not trigger without sufficient delay |+| `CK-074` | `library/unit/clock.spec.ts` | runFor › triggers after sufficient delay |+| `CK-075` | `library/unit/clock.spec.ts` | runFor › triggers simultaneous timers |+| `CK-076` | `library/unit/clock.spec.ts` | runFor › triggers multiple simultaneous timers |+| `CK-077` | `library/unit/clock.spec.ts` | runFor › triggers multiple simultaneous timers with zero callAt |+| `CK-078` | `library/unit/clock.spec.ts` | runFor › waits after setTimeout was called |+| `CK-079` | `library/unit/clock.spec.ts` | runFor › mini integration test |+| `CK-080` | `library/unit/clock.spec.ts` | runFor › triggers even when some throw |+| `CK-081` | `library/unit/clock.spec.ts` | runFor › calls function with global object or null (strict mode) as this |+| `CK-082` | `library/unit/clock.spec.ts` | runFor › triggers in the order scheduled |+| `CK-083` | `library/unit/clock.spec.ts` | runFor › creates updated Date while ticking |+| `CK-084` | `library/unit/clock.spec.ts` | runFor › fires timer in intervals of 13 |+| `CK-085` | `library/unit/clock.spec.ts` | runFor › fires timer in intervals of "13" |+| `CK-086` | `library/unit/clock.spec.ts` | runFor › fires timers in correct order |+| `CK-087` | `library/unit/clock.spec.ts` | runFor › triggers timeouts and intervals in the order scheduled |+| `CK-088` | `library/unit/clock.spec.ts` | runFor › does not fire canceled intervals |+| `CK-089` | `library/unit/clock.spec.ts` | runFor › throws for negative minutes |+| `CK-090` | `library/unit/clock.spec.ts` | runFor › fires nested setTimeout calls properly |+| `CK-091` | `library/unit/clock.spec.ts` | runFor › does not silently catch errors |+| `CK-092` | `library/unit/clock.spec.ts` | runFor › is not influenced by forward system clock changes |+| `CK-093` | `library/unit/clock.spec.ts` | runFor › is not influenced by forward system clock changes 2 |+| `CK-094` | `library/unit/clock.spec.ts` | runFor › is not influenced by forward system clock changes when an error is thrown |+| `CK-095` | `library/unit/clock.spec.ts` | runFor › is not influenced by forward system clock changes when an error is thrown 2 |+| `CK-096` | `library/unit/clock.spec.ts` | runFor › throws on negative ticks |+| `CK-097` | `library/unit/clock.spec.ts` | runFor › creates updated Date while ticking promises |+| `CK-098` | `library/unit/clock.spec.ts` | runFor › fires promise timers in correct order |+| `CK-099` | `library/unit/clock.spec.ts` | runFor › does not fire intervals canceled in a promise |+| `CK-100` | `library/unit/clock.spec.ts` | runFor › fires nested setTimeout calls in user-created promises properly |+| `CK-101` | `library/unit/clock.spec.ts` | runFor › is not influenced by forward system clock changes in promises |+| `CK-102` | `library/unit/clock.spec.ts` | runFor › should settle user-created promises |+| `CK-103` | `library/unit/clock.spec.ts` | runFor › should settle chained user-created promises |+| `CK-104` | `library/unit/clock.spec.ts` | runFor › should settle multiple user-created promises |+| `CK-105` | `library/unit/clock.spec.ts` | runFor › should settle nested user-created promises |+| `CK-106` | `library/unit/clock.spec.ts` | runFor › should settle user-created promises even if some throw |+| `CK-107` | `library/unit/clock.spec.ts` | runFor › should settle user-created promises before calling more timeouts |+| `CK-108` | `library/unit/clock.spec.ts` | runFor › should settle local promises before calling timeouts |+| `CK-109` | `library/unit/clock.spec.ts` | runFor › should settle local nested promises before calling timeouts |+| `CK-110` | `library/unit/clock.spec.ts` | runFor › does not rewind back in time |+| `CK-111` | `library/unit/clock.spec.ts` | clearTimeout › removes timeout |+| `CK-112` | `library/unit/clock.spec.ts` | clearTimeout › removes interval |+| `CK-113` | `library/unit/clock.spec.ts` | clearTimeout › removes interval with undefined interval |+| `CK-114` | `library/unit/clock.spec.ts` | clearTimeout › ignores null argument |+| `CK-115` | `library/unit/clock.spec.ts` | setInterval › throws if no arguments |+| `CK-116` | `library/unit/clock.spec.ts` | setInterval › does not throw if \|undefined\| or \|null\| is passed as a callback |+| `CK-117` | `library/unit/clock.spec.ts` | setInterval › returns numeric id or object with numeric id |+| `CK-118` | `library/unit/clock.spec.ts` | setInterval › returns unique id |+| `CK-119` | `library/unit/clock.spec.ts` | setInterval › schedules recurring timeout |+| `CK-120` | `library/unit/clock.spec.ts` | setInterval › is not influenced by forward system clock changes |+| `CK-121` | `library/unit/clock.spec.ts` | setInterval › is not influenced by backward system clock changes |+| `CK-122` | `library/unit/clock.spec.ts` | setInterval › does not schedule recurring timeout when cleared |+| `CK-123` | `library/unit/clock.spec.ts` | setInterval › passes setTimeout parameters |+| `CK-124` | `library/unit/clock.spec.ts` | clearInterval › removes interval |+| `CK-125` | `library/unit/clock.spec.ts` | clearInterval › removes interval with undefined interval |+| `CK-126` | `library/unit/clock.spec.ts` | clearInterval › removes timeout |+| `CK-127` | `library/unit/clock.spec.ts` | clearInterval › ignores null argument |+| `CK-128` | `library/unit/clock.spec.ts` | date › provides date constructor |+| `CK-129` | `library/unit/clock.spec.ts` | date › creates real Date objects |+| `CK-130` | `library/unit/clock.spec.ts` | date › returns date as string when called as function |+| `CK-131` | `library/unit/clock.spec.ts` | date › creates Date objects representing clock time |+| `CK-132` | `library/unit/clock.spec.ts` | date › returns date as string representing clock time |+| `CK-133` | `library/unit/clock.spec.ts` | date › listens to ticking clock |+| `CK-134` | `library/unit/clock.spec.ts` | date › listens to system clock changes |+| `CK-135` | `library/unit/clock.spec.ts` | date › creates regular date when passing timestamp |+| `CK-136` | `library/unit/clock.spec.ts` | date › creates regular date when passing a date as string |+| `CK-137` | `library/unit/clock.spec.ts` | date › creates regular date when passing a date as RFC 2822 string |+| `CK-138` | `library/unit/clock.spec.ts` | date › creates regular date when passing year, month |+| `CK-139` | `library/unit/clock.spec.ts` | date › creates regular date when passing y, m, d |+| `CK-140` | `library/unit/clock.spec.ts` | date › creates regular date when passing y, m, d, h |+| `CK-141` | `library/unit/clock.spec.ts` | date › creates regular date when passing y, m, d, h, m |+| `CK-142` | `library/unit/clock.spec.ts` | date › creates regular date when passing y, m, d, h, m, s |+| `CK-143` | `library/unit/clock.spec.ts` | date › creates regular date when passing y, m, d, h, m, s, ms |+| `CK-144` | `library/unit/clock.spec.ts` | date › returns date as string when calling with arguments |+| `CK-145` | `library/unit/clock.spec.ts` | date › returns date as string when calling with timestamp |+| `CK-146` | `library/unit/clock.spec.ts` | date › mirrors native Date.prototype |+| `CK-147` | `library/unit/clock.spec.ts` | date › supports now method if present |+| `CK-148` | `library/unit/clock.spec.ts` | date › returns clock.now() |+| `CK-149` | `library/unit/clock.spec.ts` | date › mirrors parse method |+| `CK-150` | `library/unit/clock.spec.ts` | date › mirrors UTC method |+| `CK-151` | `library/unit/clock.spec.ts` | date › mirrors toUTCString method |+| `CK-152` | `library/unit/clock.spec.ts` | stubTimers › returns clock object |+| `CK-153` | `library/unit/clock.spec.ts` | stubTimers › takes an object parameter |+| `CK-154` | `library/unit/clock.spec.ts` | stubTimers › sets initial timestamp |+| `CK-155` | `library/unit/clock.spec.ts` | stubTimers › replaces global setTimeout |+| `CK-156` | `library/unit/clock.spec.ts` | stubTimers › global fake setTimeout should return id |+| `CK-157` | `library/unit/clock.spec.ts` | stubTimers › replaces global clearTimeout |+| `CK-158` | `library/unit/clock.spec.ts` | stubTimers › replaces global setInterval |+| `CK-159` | `library/unit/clock.spec.ts` | stubTimers › replaces global clearInterval |+| `CK-160` | `library/unit/clock.spec.ts` | stubTimers › replaces global performance.now |+| `CK-161` | `library/unit/clock.spec.ts` | stubTimers › replace Event.prototype.timeStamp |+| `CK-162` | `library/unit/clock.spec.ts` | stubTimers › uninstalls global performance.now |+| `CK-163` | `library/unit/clock.spec.ts` | stubTimers › should let performance.mark still be callable after install() (#136) |+| `CK-164` | `library/unit/clock.spec.ts` | stubTimers › should not alter the global performance properties and methods |+| `CK-165` | `library/unit/clock.spec.ts` | stubTimers › should replace the getEntries, getEntriesByX methods with noops that return \[\] |+| `CK-166` | `library/unit/clock.spec.ts` | stubTimers › should return PerformanceEntry-like objects from performance.mark and performance.measure |+| `CK-167` | `library/unit/clock.spec.ts` | stubTimers › restores global property on uninstall if it was inherited onto the global object |+| `CK-168` | `library/unit/clock.spec.ts` | stubTimers › fakes Date constructor |+| `CK-169` | `library/unit/clock.spec.ts` | stubTimers › fake Date constructor should mirror Date's properties |+| `CK-170` | `library/unit/clock.spec.ts` | stubTimers › mirrors custom Date properties |+| `CK-171` | `library/unit/clock.spec.ts` | stubTimers › uninstalls Date constructor |+| `CK-172` | `library/unit/clock.spec.ts` | stubTimers › fakes provided methods |+| `CK-173` | `library/unit/clock.spec.ts` | stubTimers › resets faked methods |+| `CK-174` | `library/unit/clock.spec.ts` | stubTimers › does not fake methods not provided |+| `CK-175` | `library/unit/clock.spec.ts` | requestAnimationFrame › throws if no arguments |+| `CK-176` | `library/unit/clock.spec.ts` | requestAnimationFrame › returns numeric id or object with numeric id |+| `CK-177` | `library/unit/clock.spec.ts` | requestAnimationFrame › returns unique id |+| `CK-178` | `library/unit/clock.spec.ts` | requestAnimationFrame › should run every 16ms |+| `CK-179` | `library/unit/clock.spec.ts` | requestAnimationFrame › should be called with performance.now() when available |+| `CK-180` | `library/unit/clock.spec.ts` | requestAnimationFrame › should be called with performance.now() even when performance unavailable |+| `CK-181` | `library/unit/clock.spec.ts` | requestAnimationFrame › should call callback once |+| `CK-182` | `library/unit/clock.spec.ts` | requestAnimationFrame › should schedule two callbacks before the next frame at the same time |+| `CK-183` | `library/unit/clock.spec.ts` | requestAnimationFrame › should properly schedule callback for 3rd frame |+| `CK-184` | `library/unit/clock.spec.ts` | requestAnimationFrame › should schedule for next frame if on current frame |+| `CK-185` | `library/unit/clock.spec.ts` | cancelAnimationFrame › removes animation frame |+| `CK-186` | `library/unit/clock.spec.ts` | cancelAnimationFrame › does not remove timeout |+| `CK-187` | `library/unit/clock.spec.ts` | cancelAnimationFrame › does not remove interval |+| `CK-188` | `library/unit/clock.spec.ts` | cancelAnimationFrame › ignores null argument |+| `CK-189` | `library/unit/clock.spec.ts` | fastForward › ignores timers which wouldn't be run |+| `CK-190` | `library/unit/clock.spec.ts` | fastForward › pushes back execution time for skipped timers |+| `CK-191` | `library/unit/clock.spec.ts` | fastForward › handles multiple pending timers and types |+| `CK-192` | `library/unit/clock.spec.ts` | fastForward › does not rewind back in time |+| `CK-193` | `library/unit/clock.spec.ts` | fastForward › error does not break the clock |+| `CK-194` | `library/unit/clock.spec.ts` | fastForward › error does not pause forever |+| `CK-195` | `library/unit/clock.spec.ts` | pauseAt › pause at target time |+| `CK-196` | `library/unit/clock.spec.ts` | pauseAt › fire target timers |+| `CK-197` | `library/unit/clock.spec.ts` | pauseAt › returns consumed clicks |+| `CK-198` | `library/unit/clock.spec.ts` | performance.now() › should start at 0 |+| `CK-199` | `library/unit/clock.spec.ts` | performance.now() › should run along with clock.tick |+| `CK-200` | `library/unit/clock.spec.ts` | performance.now() › should listen to multiple ticks in performance.now |+| `CK-201` | `library/unit/clock.spec.ts` | performance.now() › should run with ticks with timers set |+| `CK-202` | `library/unit/clock.spec.ts` | requestIdleCallback › throws if no arguments |+| `CK-203` | `library/unit/clock.spec.ts` | requestIdleCallback › returns numeric id |+| `CK-204` | `library/unit/clock.spec.ts` | requestIdleCallback › returns unique id |+| `CK-205` | `library/unit/clock.spec.ts` | requestIdleCallback › runs after all timers |+| `CK-206` | `library/unit/clock.spec.ts` | requestIdleCallback › runs no later than timeout option even if there are any timers |+| `CK-207` | `library/unit/clock.spec.ts` | requestIdleCallback › doesn't runs if there are any timers and no timeout option |+| `CK-208` | `library/unit/clock.spec.ts` | cancelIdleCallback › removes idle callback |+| `CK-209` | `library/unit/clock.spec.ts` | Intl API › Executes formatRange like normal |+| `CK-210` | `library/unit/clock.spec.ts` | Intl API › Executes formatRangeToParts like normal |+| `CK-211` | `library/unit/clock.spec.ts` | Intl API › Executes resolvedOptions like normal |+| `CK-212` | `library/unit/clock.spec.ts` | Intl API › formatToParts via isFirstOfMonth -\> Returns true when passed a timestamp argument that is first of the month |+| `CK-213` | `library/unit/clock.spec.ts` | Intl API › formatToParts via isFirstOfMonth -\> Returns false when passed a timestamp argument that is not first of the month |+| `CK-214` | `library/unit/clock.spec.ts` | Intl API › formatToParts via isFirstOfMonth -\> Returns true when passed no timestamp and system time is first of the month |+| `CK-215` | `library/unit/clock.spec.ts` | Intl API › formatToParts via isFirstOfMonth -\> Returns false when passed no timestamp and system time is not first of the month |+| `CK-216` | `library/unit/clock.spec.ts` | Intl API › Executes supportedLocalesOf like normal |+| `CK-217` | `library/unit/clock.spec.ts` | Intl API › Creates a RelativeTimeFormat like normal |+| `CK-218` | `library/unit/clock.spec.ts` | works with slow setTimeout in busy embedder |+| `CK-219` | `library/unit/clock.spec.ts` | works with slow setTimeout in busy embedder when not paused |++### CL — Click++| ID | File | Title |+|---|---|---|+| `CL-001` | `page/page-click.spec.ts` | should click the button @smoke |+| `CL-002` | `page/page-click.spec.ts` | should click button inside frameset |+| `CL-003` | `page/page-click.spec.ts` | should issue clicks in parallel in page and popup |+| `CL-004` | `page/page-click.spec.ts` | should click svg |+| `CL-005` | `page/page-click.spec.ts` | should click the button if window.Node is removed |+| `CL-006` | `page/page-click.spec.ts` | should click on a span with an inline element inside |+| `CL-007` | `page/page-click.spec.ts` | should click the aligned 1x1 div |+| `CL-008` | `page/page-click.spec.ts` | should click the half-aligned 1x1 div |+| `CL-009` | `page/page-click.spec.ts` | should click the unaligned 1x1 div v1 |+| `CL-010` | `page/page-click.spec.ts` | should click the unaligned 1x1 div v2 |+| `CL-011` | `page/page-click.spec.ts` | should click the unaligned 1x1 div v3 |+| `CL-012` | `page/page-click.spec.ts` | should click the unaligned 1x1 div v4 |+| `CL-013` | `page/page-click.spec.ts` | should click the button after navigation |+| `CL-014` | `page/page-click.spec.ts` | should click the button after a cross origin navigation |+| `CL-015` | `page/page-click.spec.ts` | should click when one of inline box children is outside of viewport |+| `CL-016` | `page/page-click.spec.ts` | should select the text by triple clicking |+| `CL-017` | `page/page-click.spec.ts` | should click offscreen buttons |+| `CL-018` | `page/page-click.spec.ts` | should waitFor visible when already visible |+| `CL-019` | `page/page-click.spec.ts` | should not wait with force |+| `CL-020` | `page/page-click.spec.ts` | should waitFor display:none to be gone |+| `CL-021` | `page/page-click.spec.ts` | should waitFor visibility:hidden to be gone |+| `CL-022` | `page/page-click.spec.ts` | should waitFor visible when parent is hidden |+| `CL-023` | `page/page-click.spec.ts` | should click wrapped links |+| `CL-024` | `page/page-click.spec.ts` | should click on checkbox input and toggle |+| `CL-025` | `page/page-click.spec.ts` | should click on checkbox label and toggle |+| `CL-026` | `page/page-click.spec.ts` | should scroll and click the button |+| `CL-027` | `page/page-click.spec.ts` | should scroll and click the button with smooth scroll behavior |+| `CL-028` | `page/page-click.spec.ts` | should double click the button |+| `CL-029` | `page/page-click.spec.ts` | should click a partially obscured button |+| `CL-030` | `page/page-click.spec.ts` | should click a rotated button |+| `CL-031` | `page/page-click.spec.ts` | should fire contextmenu event on right click |+| `CL-032` | `page/page-click.spec.ts` | should click links which cause navigation |+| `CL-033` | `page/page-click.spec.ts` | should not wait for navigation after clicking a link answered with 204 |+| `CL-034` | `page/page-click.spec.ts` | should click the button inside an iframe |+| `CL-035` | `page/page-click.spec.ts` | should click the button with fixed position inside an iframe |+| `CL-036` | `page/page-click.spec.ts` | should click the button behind sticky header |+| `CL-037` | `page/page-click.spec.ts` | should click the button behind position:absolute header |+| `CL-038` | `page/page-click.spec.ts` | should click the button with px border with offset |+| `CL-039` | `page/page-click.spec.ts` | should click the button with em border with offset |+| `CL-040` | `page/page-click.spec.ts` | should click a very large button with offset |+| `CL-041` | `page/page-click.spec.ts` | should click a button in scrolling container with offset |+| `CL-042` | `page/page-click.spec.ts` | should wait for stable position |+| `CL-043` | `page/page-click.spec.ts` | should wait for becoming hit target |+| `CL-044` | `page/page-click.spec.ts` | should wait for becoming hit target with trial run |+| `CL-045` | `page/page-click.spec.ts` | trial run should work with short timeout |+| `CL-046` | `page/page-click.spec.ts` | trial run should not click |+| `CL-047` | `page/page-click.spec.ts` | trial run should not double click |+| `CL-048` | `page/page-click.spec.ts` | should fail when obscured and not waiting for hit target |+| `CL-049` | `page/page-click.spec.ts` | should wait for button to be enabled |+| `CL-050` | `page/page-click.spec.ts` | should wait for element to become non-inert |+| `CL-051` | `page/page-click.spec.ts` | should wait for modal dialog to close |+| `CL-052` | `page/page-click.spec.ts` | should wait for input to be enabled |+| `CL-053` | `page/page-click.spec.ts` | should wait for select to be enabled |+| `CL-054` | `page/page-click.spec.ts` | should click disabled div |+| `CL-055` | `page/page-click.spec.ts` | should wait for BUTTON to be clickable when it has pointer-events:none |+| `CL-056` | `page/page-click.spec.ts` | should wait for LABEL to be clickable when it has pointer-events:none |+| `CL-057` | `page/page-click.spec.ts` | should update modifiers correctly |+| `CL-058` | `page/page-click.spec.ts` | should click an offscreen element when scroll-behavior is smooth |+| `CL-059` | `page/page-click.spec.ts` | should report nice error when element is detached and force-clicked |+| `CL-060` | `page/page-click.spec.ts` | should fail when element detaches after animation |+| `CL-061` | `page/page-click.spec.ts` | should retry when element detaches after animation |+| `CL-062` | `page/page-click.spec.ts` | should retry when element is animating from outside the viewport |+| `CL-063` | `page/page-click.spec.ts` | should fail when element is animating from outside the viewport with force |+| `CL-064` | `page/page-click.spec.ts` | should dispatch microtasks in order |+| `CL-065` | `page/page-click.spec.ts` | should click the button when window.innerWidth is corrupted |+| `CL-066` | `page/page-click.spec.ts` | should click zero-sized input by label |+| `CL-067` | `page/page-click.spec.ts` | should not throw protocol error when navigating during the click |+| `CL-068` | `page/page-click.spec.ts` | should retry when navigating during the click |+| `CL-069` | `page/page-click.spec.ts` | should not hang when frame is detached |+| `CL-070` | `page/page-click.spec.ts` | should climb dom for inner label with pointer-events:none |+| `CL-071` | `page/page-click.spec.ts` | should climb up to \[role=button\] |+| `CL-072` | `page/page-click.spec.ts` | should climb up to a anchor |+| `CL-073` | `page/page-click.spec.ts` | should climb up to a \[role=link\] |+| `CL-074` | `page/page-click.spec.ts` | should click in an iframe with border |+| `CL-075` | `page/page-click.spec.ts` | should click in an iframe with border 2 |+| `CL-076` | `page/page-click.spec.ts` | should not retain removed iframe after clicking inside it |+| `CL-077` | `page/page-click.spec.ts` | should click in a transformed iframe |+| `CL-078` | `page/page-click.spec.ts` | should click a button that is overlaid by a permission popup |+| `CL-079` | `page/page-click.spec.ts` | should click in a transformed iframe with force |+| `CL-080` | `page/page-click.spec.ts` | should click in a nested transformed iframe |+| `CL-081` | `page/page-click.spec.ts` | ensure events are dispatched in the individual tasks |+| `CL-082` | `page/page-click.spec.ts` | should click if opened select covers the button |+| `CL-083` | `page/page-click.spec.ts` | should fire contextmenu event on right click in correct order |+| `CL-084` | `page/page-click.spec.ts` | should click after a right click |+| `CL-085` | `page/page-click.spec.ts` | should set PointerEvent.pressure on pointerdown |+| `CL-086` | `page/page-click.spec.ts` | should set PointerEvent.pressure on pointermove |+| `CL-087` | `page/page-click.spec.ts` | should click into shadow root with slotted div |+| `CL-088` | `page/page-click.spec.ts` | should click shadow root button |+| `CL-089` | `page/page-click.spec.ts` | should click with tweened mouse movement |+| `CL-090` | `page/page-click.spec.ts` | should abort via signal |+| `CL-091` | `page/page-click.spec.ts` | should throw an Error when aborted in-flight with a string reason |+| `CL-092` | `page/page-click.spec.ts` | should abort via already-aborted signal |+| `CL-093` | `page/page-click.spec.ts` | should throw an Error when aborted via an already-aborted signal with a string reason |+| `CL-094` | `page/page-click-scroll.spec.ts` | should not hit scroll bar |+| `CL-095` | `page/page-click-scroll.spec.ts` | should scroll into view display:contents |+| `CL-096` | `page/page-click-scroll.spec.ts` | should scroll into view display:contents with a child |+| `CL-097` | `page/page-click-scroll.spec.ts` | should scroll into view display:contents with position |+| `CL-098` | `page/page-click-scroll.spec.ts` | should not crash when force-clicking hidden input |+| `CL-099` | `page/page-click-scroll.spec.ts` | should scroll into view span element |+| `CL-100` | `page/page-click-scroll.spec.ts` | should scroll into view element in iframe |+| `CL-101` | `page/page-click-scroll.spec.ts` | should not scroll the page when scroll is "none" |+| `CL-102` | `page/page-click-scroll.spec.ts` | should click in-viewport element when scroll is "none" |+| `CL-103` | `page/page-click-scroll.spec.ts` | should not scroll nested container when scroll is "none" |+| `CL-104` | `page/page-click-scroll.spec.ts` | should not scroll on hover when scroll is "none" |+| `CL-105` | `page/page-click-scroll.spec.ts` | should scroll instantly on retry when scroll-behavior is smooth |+| `CL-106` | `page/page-click-react.spec.ts` | should timeout when click opens alert |+| `CL-107` | `page/page-click-react.spec.ts` | should not retarget when element changes on hover |+| `CL-108` | `page/page-click-react.spec.ts` | should not retarget when element is recycled on hover |+| `CL-109` | `page/page-click-during-navigation.spec.ts` | should not fail with internal error upon navigation |+| `CL-110` | `page/page-click-timeout-1.spec.ts` | should avoid side effects after timeout |+| `CL-111` | `page/page-click-timeout-1.spec.ts` | should timeout waiting for button to be enabled |+| `CL-112` | `page/page-click-timeout-1.spec.ts` | should timeout waiting for inert element to become non-inert |+| `CL-113` | `page/page-click-timeout-1.spec.ts` | should timeout waiting for element outside of a modal dialog |+| `CL-114` | `page/page-click-timeout-2.spec.ts` | should timeout waiting for display:none to be gone |+| `CL-115` | `page/page-click-timeout-2.spec.ts` | should timeout waiting for visibility:hidden to be gone |+| `CL-116` | `page/page-click-timeout-3.spec.ts` | should fail when element jumps during hit testing |+| `CL-117` | `page/page-click-timeout-3.spec.ts` | should timeout waiting for hit target |+| `CL-118` | `page/page-click-timeout-3.spec.ts` | should still click when force but hit target is obscured |+| `CL-119` | `page/page-click-timeout-3.spec.ts` | should report wrong hit target subtree |+| `CL-120` | `page/page-click-timeout-4.spec.ts` | should timeout waiting for stable position |+| `CL-121` | `page/page-click-timeout-4.spec.ts` | should click for the second time after first timeout |+| `CL-122` | `page/page-click-timeout-4.spec.ts` | should fail to click the button behind a large header after scrolling around |++### CM — Console messages++| ID | File | Title |+|---|---|---|+| `CM-001` | `page/page-event-console.spec.ts` | should work @smoke |+| `CM-002` | `page/page-event-console.spec.ts` | should emit same log twice |+| `CM-003` | `page/page-event-console.spec.ts` | should use text() for inspection |+| `CM-004` | `page/page-event-console.spec.ts` | should work for different console API calls |+| `CM-005` | `page/page-event-console.spec.ts` | should format the message correctly with time/timeLog/timeEnd |+| `CM-006` | `page/page-event-console.spec.ts` | should not fail for window object |+| `CM-007` | `page/page-event-console.spec.ts` | should not fail for object that can't be coerced to a primitive |+| `CM-008` | `page/page-event-console.spec.ts` | should trigger correct Log |+| `CM-009` | `page/page-event-console.spec.ts` | should have location for console API calls |+| `CM-010` | `page/page-event-console.spec.ts` | should not throw when there are console messages in detached iframes |+| `CM-011` | `page/page-event-console.spec.ts` | should use object previews for arrays and objects |+| `CM-012` | `page/page-event-console.spec.ts` | should use object previews for errors |+| `CM-013` | `page/page-event-console.spec.ts` | do not update console count on unhandled rejections |+| `CM-014` | `page/page-event-console.spec.ts` | should have timestamp |+| `CM-015` | `page/page-event-console.spec.ts` | should have increasing timestamps |+| `CM-016` | `page/page-event-console.spec.ts` | should have timestamp in consoleMessages |+| `CM-017` | `page/page-event-console.spec.ts` | consoleMessages should work |+| `CM-018` | `page/page-event-console.spec.ts` | clearConsoleMessages should work |+| `CM-019` | `page/page-event-console.spec.ts` | consoleMessages since-navigation filter should work |+| `CM-020` | `page/page-event-console.spec.ts` | pageErrors since-navigation filter should work |++### CN — Channels++| ID | File | Title |+|---|---|---|+| `CN-001` | `library/channels.spec.ts` | should scope context handles |+| `CN-002` | `library/channels.spec.ts` | should scope CDPSession handles |+| `CN-003` | `library/channels.spec.ts` | should scope browser handles |+| `CN-004` | `library/channels.spec.ts` | should not generate dispatchers for subresources w/o listeners |+| `CN-005` | `library/channels.spec.ts` | should work with the domain module |+| `CN-006` | `library/channels.spec.ts` | exposeFunction should not leak |++### CO — Cookies++| ID | File | Title |+|---|---|---|+| `CO-001` | `library/browsercontext-cookies.spec.ts` | should return no cookies in pristine browser context |+| `CO-002` | `library/browsercontext-cookies.spec.ts` | should get a cookie @smoke |+| `CO-003` | `library/browsercontext-cookies.spec.ts` | should get a non-session cookie |+| `CO-004` | `library/browsercontext-cookies.spec.ts` | should allow adding cookies with \>400 days expiration |+| `CO-005` | `library/browsercontext-cookies.spec.ts` | should properly report httpOnly cookie |+| `CO-006` | `library/browsercontext-cookies.spec.ts` | should properly report "Strict" sameSite cookie |+| `CO-007` | `library/browsercontext-cookies.spec.ts` | should properly report "Lax" sameSite cookie |+| `CO-008` | `library/browsercontext-cookies.spec.ts` | should get multiple cookies |+| `CO-009` | `library/browsercontext-cookies.spec.ts` | should get cookies from multiple urls |+| `CO-010` | `library/browsercontext-cookies.spec.ts` | should work with subdomain cookie |+| `CO-011` | `library/browsercontext-cookies.spec.ts` | should only return cookies that apply to the url |+| `CO-012` | `library/browsercontext-cookies.spec.ts` | should return cookies with empty value |+| `CO-013` | `library/browsercontext-cookies.spec.ts` | should return secure cookies based on HTTP(S) protocol |+| `CO-014` | `library/browsercontext-cookies.spec.ts` | should return secure cookies for http {127.0.0.1, \[::1\]} *(2 copies)* |+| `CO-015` | `library/browsercontext-cookies.spec.ts` | should add cookies with an expiration |+| `CO-016` | `library/browsercontext-cookies.spec.ts` | should support requestStorageAccess |+| `CO-017` | `library/browsercontext-cookies.spec.ts` | should parse cookie with large Max-Age correctly |+| `CO-018` | `library/browsercontext-cookies.spec.ts` | iframe should inherit cookies from parent |+| `CO-019` | `library/browsercontext-add-cookies.spec.ts` | should work @smoke |+| `CO-020` | `library/browsercontext-add-cookies.spec.ts` | should work with expires=-1 |+| `CO-021` | `library/browsercontext-add-cookies.spec.ts` | should add cookies with empty value |+| `CO-022` | `library/browsercontext-add-cookies.spec.ts` | should set cookies with SameSite attribute and no secure attribute |+| `CO-023` | `library/browsercontext-add-cookies.spec.ts` | should roundtrip cookie |+| `CO-024` | `library/browsercontext-add-cookies.spec.ts` | should send cookie header |+| `CO-025` | `library/browsercontext-add-cookies.spec.ts` | should isolate cookies in browser contexts |+| `CO-026` | `library/browsercontext-add-cookies.spec.ts` | should isolate session cookies |+| `CO-027` | `library/browsercontext-add-cookies.spec.ts` | should isolate persistent cookies |+| `CO-028` | `library/browsercontext-add-cookies.spec.ts` | should isolate send cookie header |+| `CO-029` | `library/browsercontext-add-cookies.spec.ts` | should isolate cookies between launches |+| `CO-030` | `library/browsercontext-add-cookies.spec.ts` | should set multiple cookies |+| `CO-031` | `library/browsercontext-add-cookies.spec.ts` | should have \|expires\| set to \|-1\| for session cookies |+| `CO-032` | `library/browsercontext-add-cookies.spec.ts` | should set cookie with reasonable defaults |+| `CO-033` | `library/browsercontext-add-cookies.spec.ts` | should set a cookie with a path |+| `CO-034` | `library/browsercontext-add-cookies.spec.ts` | should not set a cookie with blank page URL |+| `CO-035` | `library/browsercontext-add-cookies.spec.ts` | should not set a cookie on a data URL page |+| `CO-036` | `library/browsercontext-add-cookies.spec.ts` | should default to setting secure cookie for HTTPS websites |+| `CO-037` | `library/browsercontext-add-cookies.spec.ts` | should be able to set unsecure cookie for HTTP website |+| `CO-038` | `library/browsercontext-add-cookies.spec.ts` | should set a cookie on a different domain |+| `CO-039` | `library/browsercontext-add-cookies.spec.ts` | should set cookies for a frame |+| `CO-040` | `library/browsercontext-add-cookies.spec.ts` | should allow unnamed cookies |+| `CO-041` | `library/browsercontext-add-cookies.spec.ts` | should set secure cookies on secure WebSocket |+| `CO-042` | `library/browsercontext-clearcookies.spec.ts` | should clear cookies |+| `CO-043` | `library/browsercontext-clearcookies.spec.ts` | should isolate cookies when clearing |+| `CO-044` | `library/browsercontext-clearcookies.spec.ts` | should remove cookies by name |+| `CO-045` | `library/browsercontext-clearcookies.spec.ts` | should remove cookies by name regex |+| `CO-046` | `library/browsercontext-clearcookies.spec.ts` | should remove cookies by domain |+| `CO-047` | `library/browsercontext-clearcookies.spec.ts` | should remove cookies by path |+| `CO-048` | `library/browsercontext-clearcookies.spec.ts` | should remove cookies by name and domain |+| `CO-049` | `library/browsercontext-clearcookies.spec.ts` | should not transiently delete non-matching cookies when filtering |+| `CO-050` | `library/browsercontext-clearcookies.spec.ts` | should remove partitioned cookies by name |+| `CO-051` | `library/browsercontext-clearcookies.spec.ts` | should remove nameless cookies by empty name |+| `CO-052` | `library/browsercontext-cookies-third-party.spec.ts` | third party non-partitioned cookies |+| `CO-053` | `library/browsercontext-cookies-third-party.spec.ts` | save/load third party non-partitioned cookies |+| `CO-054` | `library/browsercontext-cookies-third-party.spec.ts` | third party 'Partitioned;' cookies |+| `CO-055` | `library/browsercontext-cookies-third-party.spec.ts` | save/load third party 'Partitioned;' cookies |+| `CO-056` | `library/browsercontext-cookies-third-party.spec.ts` | add 'Partitioned;' cookie via API |+| `CO-057` | `library/browsercontext-cookies-third-party.spec.ts` | same origin third party 'Partitioned;' cookie with different origin intermediate iframe |+| `CO-058` | `library/browsercontext-cookies-third-party.spec.ts` | top level 'Partitioned;' cookie and same origin iframe |+| `CO-059` | `library/browsercontext-cookies-third-party.spec.ts` | should be able to send third party cookies via an iframe |+| `CO-060` | `library/browsercontext-cookies-third-party.spec.ts` | should(not) block third party cookies - persistent context |+| `CO-061` | `library/browsercontext-cookies-third-party.spec.ts` | should(not) block third party cookies - ephemeral context |+| `CO-062` | `library/browsercontext-cookies-third-party.spec.ts` | should not block third party SameSite=None cookies |++### CR — Chromium++| ID | File | Title |+|---|---|---|+| `CR-001` | `library/chromium/chromium.spec.ts` | should create a worker from a service worker |+| `CR-002` | `library/chromium/chromium.spec.ts` | should create a worker from service worker with noop routing |+| `CR-003` | `library/chromium/chromium.spec.ts` | should emit new service worker on update |+| `CR-004` | `library/chromium/chromium.spec.ts` | http credentials › httpCredentials |+| `CR-005` | `library/chromium/chromium.spec.ts` | serviceWorkers() should return current workers |+| `CR-006` | `library/chromium/chromium.spec.ts` | should not create a worker from a shared worker |+| `CR-008` | `library/chromium/chromium.spec.ts` | should close service worker together with the context |+| `CR-009` | `library/chromium/chromium.spec.ts` | should pass args with spaces |+| `CR-010` | `library/chromium/chromium.spec.ts` | serviceWorker(), and fromServiceWorker() work |+| `CR-011` | `library/chromium/chromium.spec.ts` | should intercept service worker requests (main and within) |+| `CR-012` | `library/chromium/chromium.spec.ts` | should report failure (due to content-type) of main service worker request |+| `CR-013` | `library/chromium/chromium.spec.ts` | should report failure (due to redirect) of main service worker request |+| `CR-014` | `library/chromium/chromium.spec.ts` | should intercept service worker importScripts |+| `CR-015` | `library/chromium/chromium.spec.ts` | should report intercepted service worker requests in HAR |+| `CR-016` | `library/chromium/chromium.spec.ts` | should intercept only serviceworker request, not page |+| `CR-017` | `library/chromium/chromium.spec.ts` | should produce network events, routing, and annotations for Service Worker |+| `CR-018` | `library/chromium/chromium.spec.ts` | should produce network events, routing, and annotations for Service Worker (advanced) |+| `CR-019` | `library/chromium/chromium.spec.ts` | should intercept service worker update requests |+| `CR-020` | `library/chromium/chromium.spec.ts` | setOffline |+| `CR-021` | `library/chromium/chromium.spec.ts` | setExtraHTTPHeaders |+| `CR-022` | `library/chromium/chromium.spec.ts` | should throw when connecting twice to an already running persistent context (--remote-debugging-port) |+| `CR-023` | `library/chromium/chromium.spec.ts` | should throw when connecting twice to an already running persistent context (--remote-debugging-pipe) |+| `CR-024` | `library/chromium/chromium.spec.ts` | PLAYWRIGHT\_DISABLE\_SERVICE\_WORKER\_NETWORK |+| `CR-025` | `library/chromium/chromium.spec.ts` | should emit console messages from service worker |+| `CR-026` | `library/chromium/chromium.spec.ts` | should capture console.log from ServiceWorker start |+| `CR-027` | `library/chromium/chromium.spec.ts` | WebUI navigation › should refuse WebUI pages that crash the browser in an isolated context |+| `CR-028` | `library/chromium/chromium.spec.ts` | WebUI navigation › should refuse WebUI pages that crash Edge in an isolated context |+| `CR-029` | `library/chromium/chromium.spec.ts` | WebUI navigation › should navigate to WebUI pages that work in an isolated context |+| `CR-030` | `library/chromium/chromium.spec.ts` | WebUI navigation › should navigate to any WebUI page in a persistent context |+| `CR-031` | `library/chromium/chromium.spec.ts` | should fire dialogclosed event when dialog is closed out of band |+| `CR-032` | `library/chromium/chromium.spec.ts` | should not leak service worker session after context close |+| `CR-033` | `library/chromium/launcher.spec.ts` | should throw with remote-debugging-pipe argument |+| `CR-034` | `library/chromium/launcher.spec.ts` | should not throw with remote-debugging-port argument |+| `CR-035` | `library/chromium/launcher.spec.ts` | should not create pages automatically |+| `CR-036` | `library/chromium/extensions.spec.ts` | MV3 › should support service worker stop and restart lifecycle |+| `CR-037` | `library/chromium/extensions.spec.ts` | MV3 › should give access to the service worker |+| `CR-038` | `library/chromium/extensions.spec.ts` | MV3 › should give access to the service worker when recording video |+| `CR-039` | `library/chromium/extensions.spec.ts` | MV3 › should support request/response events in the service worker |+| `CR-040` | `library/chromium/extensions.spec.ts` | MV3 › should report console messages from content script |+| `CR-041` | `library/chromium/extensions.spec.ts` | MV3 › should use custom userAgent in service worker fetch requests |+| `CR-042` | `library/chromium/bfcache.spec.ts` | bindings should work after restoring from bfcache |+| `CR-043` | `library/chromium/connect-to-worker.spec.ts` | should connect, evaluate, receive console and disconnect |+| `CR-044` | `library/chromium/connect-to-worker.spec.ts` | should receive close when node process exits |+| `CR-045` | `library/chromium/disable-web-security.spec.ts` | test utility world in popup w/ --disable-web-security |+| `CR-046` | `library/chromium/disable-web-security.spec.ts` | test init script w/ --disable-web-security |++### CS — CSP++| ID | File | Title |+|---|---|---|+| `CS-001` | `library/browsercontext-csp.spec.ts` | should bypass CSP meta tag @smoke |+| `CS-002` | `library/browsercontext-csp.spec.ts` | should bypass CSP header |+| `CS-003` | `library/browsercontext-csp.spec.ts` | should bypass after cross-process navigation |+| `CS-004` | `library/browsercontext-csp.spec.ts` | should bypass CSP in iframes as well |+| `CS-005` | `library/browsercontext-csp.spec.ts` | should not crash on javascript: navigation |++### CV — Coverage++| ID | File | Title |+|---|---|---|+| `CV-001` | `library/chromium/js-coverage.spec.ts` | should work |+| `CV-002` | `library/chromium/js-coverage.spec.ts` | should report sourceURLs |+| `CV-003` | `library/chromium/js-coverage.spec.ts` | should ignore eval() scripts by default |+| `CV-004` | `library/chromium/js-coverage.spec.ts` | shouldn't ignore eval() scripts if reportAnonymousScripts is true |+| `CV-005` | `library/chromium/js-coverage.spec.ts` | should report multiple scripts |+| `CV-006` | `library/chromium/js-coverage.spec.ts` | should NOT report scripts across navigations when enabled |+| `CV-007` | `library/chromium/js-coverage.spec.ts` | should not hang when there is a debugger statement |+| `CV-008` | `library/chromium/css-coverage.spec.ts` | should work |+| `CV-009` | `library/chromium/css-coverage.spec.ts` | should report sourceURLs |+| `CV-010` | `library/chromium/css-coverage.spec.ts` | should report multiple stylesheets |+| `CV-011` | `library/chromium/css-coverage.spec.ts` | should report stylesheets that have no coverage |+| `CV-012` | `library/chromium/css-coverage.spec.ts` | should work with media queries |+| `CV-013` | `library/chromium/css-coverage.spec.ts` | should work with complicated usecases |+| `CV-014` | `library/chromium/css-coverage.spec.ts` | should ignore injected stylesheets |+| `CV-015` | `library/chromium/css-coverage.spec.ts` | should report stylesheets across navigations |+| `CV-016` | `library/chromium/css-coverage.spec.ts` | should NOT report scripts across navigations |+| `CV-017` | `library/chromium/css-coverage.spec.ts` | should work with a recently loaded stylesheet |+| `CV-018` | `library/coverage.spec.ts` | should collect istanbul coverage into the trace |+| `CV-019` | `library/coverage.spec.ts` | should collect coverage per trace chunk |+| `CV-020` | `library/coverage.spec.ts` | should report maps once and counters incrementally |+| `CV-021` | `library/coverage.spec.ts` | should accumulate counters across pulls and keep never hit files |+| `CV-022` | `library/coverage.spec.ts` | should collect coverage of a page closed by in-page script |+| `CV-023` | `library/coverage.spec.ts` | should not double count a stash picked up twice |+| `CV-024` | `library/coverage.spec.ts` | should discard stashes of other sessions |+| `CV-025` | `library/coverage.spec.ts` | should collect coverage of an origin left without a page |+| `CV-026` | `library/coverage.spec.ts` | should pull counters as the actions go |+| `CV-027` | `library/coverage.spec.ts` | should not collect coverage without the option |+| `CV-028` | `library/coverage.spec.ts` | should count only the hits after start |+| `CV-029` | `library/coverage.spec.ts` | should stop collecting when tracing stops |+| `CV-030` | `library/coverage.spec.ts` | should surface a failure to stash the coverage |++### DB — Debug++| ID | File | Title |+|---|---|---|+| `DB-001` | `library/debugger.spec.ts` | should pause at next and resume |+| `DB-002` | `library/debugger.spec.ts` | should pause at pause call |+| `DB-003` | `library/debugger.spec.ts` | should run to location |+| `DB-004` | `library/debugger.spec.ts` | should stream api calls via \_enable |+| `DB-005` | `library/debugger.spec.ts` | should report error status for failed api calls |+| `DB-006` | `library/debugger.spec.ts` | should not stream internal api calls |+| `DB-007` | `library/debugger.spec.ts` | should not pause at internal api calls |+| `DB-008` | `library/debugger.spec.ts` | should expose the action point while paused on an input action |+| `DB-009` | `library/debugger.spec.ts` | should replay ongoing calls when enabled late |+| `DB-010` | `library/debugger.spec.ts` | should keep pause working when api calls are enabled |+| `DB-011` | `library/debug-controller.spec.ts` | should pick element |+| `DB-012` | `library/debug-controller.spec.ts` | should report pages |+| `DB-013` | `library/debug-controller.spec.ts` | should reset for reuse |+| `DB-014` | `library/debug-controller.spec.ts` | should highlight all |+| `DB-015` | `library/debug-controller.spec.ts` | should record |+| `DB-016` | `library/debug-controller.spec.ts` | should record expect signal |+| `DB-017` | `library/debug-controller.spec.ts` | should record custom data-testid |+| `DB-018` | `library/debug-controller.spec.ts` | should not leak actions from the previous recording session |+| `DB-019` | `library/debug-controller.spec.ts` | should reset routes before reuse |+| `DB-020` | `library/debug-controller.spec.ts` | should highlight inside iframe |+| `DB-021` | `library/debug-controller.spec.ts` | should highlight aria template |+| `DB-022` | `library/debug-controller.spec.ts` | should report error in aria template |++### DC — Default (persistent) context++| ID | File | Title |+|---|---|---|+| `DC-001` | `library/defaultbrowsercontext-1.spec.ts` | context.cookies() should work @smoke |+| `DC-002` | `library/defaultbrowsercontext-1.spec.ts` | context.addCookies() should work |+| `DC-003` | `library/defaultbrowsercontext-1.spec.ts` | context.clearCookies() should work |+| `DC-004` | `library/defaultbrowsercontext-1.spec.ts` | should support viewport option |+| `DC-005` | `library/defaultbrowsercontext-1.spec.ts` | should support deviceScaleFactor option |+| `DC-006` | `library/defaultbrowsercontext-1.spec.ts` | should support userAgent option |+| `DC-007` | `library/defaultbrowsercontext-1.spec.ts` | should support bypassCSP option |+| `DC-008` | `library/defaultbrowsercontext-1.spec.ts` | should support javascriptEnabled option |+| `DC-009` | `library/defaultbrowsercontext-1.spec.ts` | should support httpCredentials option |+| `DC-010` | `library/defaultbrowsercontext-1.spec.ts` | should support offline option |+| `DC-011` | `library/defaultbrowsercontext-1.spec.ts` | should support acceptDownloads option |+| `DC-012` | `library/defaultbrowsercontext-2.spec.ts` | should support hasTouch option |+| `DC-013` | `library/defaultbrowsercontext-2.spec.ts` | should work in persistent context |+| `DC-014` | `library/defaultbrowsercontext-2.spec.ts` | should support colorScheme option |+| `DC-015` | `library/defaultbrowsercontext-2.spec.ts` | should support reducedMotion option |+| `DC-016` | `library/defaultbrowsercontext-2.spec.ts` | should support forcedColors option |+| `DC-017` | `library/defaultbrowsercontext-2.spec.ts` | should support contrast option |+| `DC-018` | `library/defaultbrowsercontext-2.spec.ts` | should support timezoneId option |+| `DC-019` | `library/defaultbrowsercontext-2.spec.ts` | should support locale option |+| `DC-020` | `library/defaultbrowsercontext-2.spec.ts` | should support geolocation and permissions options |+| `DC-021` | `library/defaultbrowsercontext-2.spec.ts` | should support ignoreHTTPSErrors option |+| `DC-022` | `library/defaultbrowsercontext-2.spec.ts` | should support extraHTTPHeaders option |+| `DC-023` | `library/defaultbrowsercontext-2.spec.ts` | should accept userDataDir |+| `DC-024` | `library/defaultbrowsercontext-2.spec.ts` | should accept relative userDataDir |+| `DC-025` | `library/defaultbrowsercontext-2.spec.ts` | should restore state from userDataDir |+| `DC-026` | `library/defaultbrowsercontext-2.spec.ts` | should create userDataDir if it does not exist |+| `DC-027` | `library/defaultbrowsercontext-2.spec.ts` | should goto about:blank on relaunched persistent context |+| `DC-028` | `library/defaultbrowsercontext-2.spec.ts` | should have default URL when launching browser |+| `DC-029` | `library/defaultbrowsercontext-2.spec.ts` | should throw if page argument is passed |+| `DC-030` | `library/defaultbrowsercontext-2.spec.ts` | should have passed URL when launching with ignoreDefaultArgs: true |+| `DC-031` | `library/defaultbrowsercontext-2.spec.ts` | should handle timeout |+| `DC-032` | `library/defaultbrowsercontext-2.spec.ts` | should handle exception |+| `DC-033` | `library/defaultbrowsercontext-2.spec.ts` | should fire close event for a persistent context |+| `DC-034` | `library/defaultbrowsercontext-2.spec.ts` | coverage should work |+| `DC-035` | `library/defaultbrowsercontext-2.spec.ts` | should respect selectors |+| `DC-036` | `library/defaultbrowsercontext-2.spec.ts` | should connect to a browser with the default page |+| `DC-037` | `library/defaultbrowsercontext-2.spec.ts` | should support har option |+| `DC-038` | `library/defaultbrowsercontext-2.spec.ts` | user agent is up to date |+| `DC-039` | `library/defaultbrowsercontext-2.spec.ts` | dialog.accept should work |+| `DC-040` | `library/defaultbrowsercontext-2.spec.ts` | CacheStorage entry should survive page.reload() |+| `DC-041` | `library/defaultbrowsercontext-2.spec.ts` | exposes browser |+| `DC-042` | `library/defaultbrowsercontext-2.spec.ts` | should support storage.getDirectory() |++### DD — Drag and drop++| ID | File | Title |+|---|---|---|+| `DD-001` | `page/page-drag.spec.ts` | Drag and drop › should work @smoke |+| `DD-002` | `page/page-drag.spec.ts` | Drag and drop › should send the right events |+| `DD-003` | `page/page-drag.spec.ts` | Drag and drop › should not send dragover on the first mousemove |+| `DD-004` | `page/page-drag.spec.ts` | Drag and drop › should work inside iframe |+| `DD-005` | `page/page-drag.spec.ts` | Drag and drop › should cancel on escape |+| `DD-006` | `page/page-drag.spec.ts` | Drag and drop › iframe › should drag into an iframe |+| `DD-007` | `page/page-drag.spec.ts` | Drag and drop › iframe › should drag out of an iframe |+| `DD-008` | `page/page-drag.spec.ts` | Drag and drop › should respect the drop effect |+| `DD-009` | `page/page-drag.spec.ts` | Drag and drop › should work if the drag is canceled |+| `DD-010` | `page/page-drag.spec.ts` | Drag and drop › should work if the drag event is captured but not canceled |+| `DD-011` | `page/page-drag.spec.ts` | Drag and drop › should be able to drag the mouse in a frame |+| `DD-012` | `page/page-drag.spec.ts` | Drag and drop › should work if a frame is stalled |+| `DD-013` | `page/page-drag.spec.ts` | Drag and drop › should work with the helper method |+| `DD-014` | `page/page-drag.spec.ts` | Drag and drop › should {dragAndDrop, dragTo} with tweened mouse movement *(2 copies)* |+| `DD-015` | `page/page-drag.spec.ts` | Drag and drop › should allow specifying the position |+| `DD-016` | `page/page-drag.spec.ts` | Drag and drop › should work with locators |+| `DD-017` | `page/page-drag.spec.ts` | should work if not doing a drag |+| `DD-018` | `page/page-drag.spec.ts` | should report event.buttons |+| `DD-019` | `page/page-drag.spec.ts` | should handle custom dataTransfer |+| `DD-020` | `page/page-drag.spec.ts` | what happens when dragging element is destroyed |+| `DD-021` | `page/page-drop.spec.ts` | should drop a file payload |+| `DD-022` | `page/page-drop.spec.ts` | should drop multiple file payloads |+| `DD-023` | `page/page-drop.spec.ts` | should drop a file by local path |+| `DD-024` | `page/page-drop.spec.ts` | should drop clipboard-like data |+| `DD-025` | `page/page-drop.spec.ts` | should drop files and data together |+| `DD-026` | `page/page-drop.spec.ts` | should throw when target does not accept drop |+| `DD-027` | `page/page-drop.spec.ts` | should throw when neither files nor data provided |++### DE — Dispatch event++| ID | File | Title |+|---|---|---|+| `DE-001` | `page/page-dispatchevent.spec.ts` | should dispatch click event @smoke |+| `DE-002` | `page/page-dispatchevent.spec.ts` | should dispatch click event properties |+| `DE-003` | `page/page-dispatchevent.spec.ts` | should dispatch click svg |+| `DE-004` | `page/page-dispatchevent.spec.ts` | should dispatch click on a span with an inline element inside |+| `DE-005` | `page/page-dispatchevent.spec.ts` | should dispatch click after navigation |+| `DE-006` | `page/page-dispatchevent.spec.ts` | should dispatch click after a cross origin navigation |+| `DE-007` | `page/page-dispatchevent.spec.ts` | should not fail when element is blocked on hover |+| `DE-008` | `page/page-dispatchevent.spec.ts` | should dispatch click when node is added in shadow dom |+| `DE-009` | `page/page-dispatchevent.spec.ts` | should be atomic |+| `DE-010` | `page/page-dispatchevent.spec.ts` | should dispatch drag drop events |+| `DE-011` | `page/page-dispatchevent.spec.ts` | should dispatch drag drop events via ElementHandles |+| `DE-012` | `page/page-dispatchevent.spec.ts` | should dispatch click event via ElementHandles |+| `DE-013` | `page/page-dispatchevent.spec.ts` | should dispatch wheel event |+| `DE-014` | `page/page-dispatchevent.spec.ts` | should dispatch device orientation event |+| `DE-015` | `page/page-dispatchevent.spec.ts` | should dispatch absolute device orientation event |+| `DE-016` | `page/page-dispatchevent.spec.ts` | should dispatch device motion event |+| `DE-017` | `page/page-dispatchevent.spec.ts` | should throw if argument is from different frame |++### DI — Dialog++| ID | File | Title |+|---|---|---|+| `DI-001` | `page/page-dialog.spec.ts` | should fire |+| `DI-002` | `page/page-dialog.spec.ts` | should fire dialogclosed when dialog is accepted |+| `DI-003` | `page/page-dialog.spec.ts` | should fire dialogclosed when dialog is dismissed |+| `DI-004` | `page/page-dialog.spec.ts` | should fire dialogclosed for auto-dismissed dialogs |+| `DI-005` | `page/page-dialog.spec.ts` | should allow accepting prompts @smoke |+| `DI-006` | `page/page-dialog.spec.ts` | should dismiss the prompt |+| `DI-007` | `page/page-dialog.spec.ts` | should accept the confirm prompt |+| `DI-008` | `page/page-dialog.spec.ts` | should dismiss the confirm prompt |+| `DI-009` | `page/page-dialog.spec.ts` | should be able to close context with open alert |+| `DI-010` | `page/page-dialog.spec.ts` | should handle multiple alerts |+| `DI-011` | `page/page-dialog.spec.ts` | should handle multiple confirms |+| `DI-012` | `page/page-dialog.spec.ts` | should auto-dismiss the prompt without listeners |+| `DI-013` | `page/page-dialog.spec.ts` | should auto-dismiss the alert without listeners |++### DO — Download++| ID | File | Title |+|---|---|---|+| `DO-001` | `library/download.spec.ts` | download event › should report download when navigation turns into download @smoke |+| `DO-002` | `library/download.spec.ts` | download event › should work with Cross-Origin-Opener-Policy |+| `DO-003` | `library/download.spec.ts` | download event › should report downloads with acceptDownloads: false |+| `DO-004` | `library/download.spec.ts` | download event › should report downloads with acceptDownloads: true |+| `DO-005` | `library/download.spec.ts` | download event › should report proper download url when download is from download attribute |+| `DO-006` | `library/download.spec.ts` | download event › should report downloads for download attribute |+| `DO-007` | `library/download.spec.ts` | download event › should save to user-specified path without updating original path |+| `DO-008` | `library/download.spec.ts` | download event › should save to two different paths with multiple saveAs calls |+| `DO-009` | `library/download.spec.ts` | download event › should save to overwritten filepath |+| `DO-010` | `library/download.spec.ts` | download event › should create subdirectories when saving to non-existent user-specified path |+| `DO-011` | `library/download.spec.ts` | download event › should error when saving with downloads disabled |+| `DO-012` | `library/download.spec.ts` | download event › should error when saving after deletion |+| `DO-013` | `library/download.spec.ts` | download event › should report non-navigation downloads |+| `DO-014` | `library/download.spec.ts` | download event › should report download path within page.on('download', …) handler for Files |+| `DO-015` | `library/download.spec.ts` | download event › should report download path within page.on('download', …) handler for Blobs |+| `DO-016` | `library/download.spec.ts` | download event › should report alt-click downloads |+| `DO-017` | `library/download.spec.ts` | download event › should report new window downloads |+| `DO-018` | `library/download.spec.ts` | download event › should delete file |+| `DO-019` | `library/download.spec.ts` | download event › should expose stream |+| `DO-020` | `library/download.spec.ts` | download event › should delete downloads on context destruction |+| `DO-021` | `library/download.spec.ts` | download event › should delete downloads on browser gone |+| `DO-022` | `library/download.spec.ts` | download event › should save downloads to artifactsDir |+| `DO-023` | `library/download.spec.ts` | download event › should close the context without awaiting the failed download |+| `DO-024` | `library/download.spec.ts` | download event › should close the context without awaiting the download |+| `DO-025` | `library/download.spec.ts` | download event › should throw if browser dies |+| `DO-026` | `library/download.spec.ts` | download event › should download large binary.zip |+| `DO-027` | `library/download.spec.ts` | download event › should be able to cancel pending downloads |+| `DO-028` | `library/download.spec.ts` | download event › should not fail explicitly to cancel a download even if that is already finished |+| `DO-029` | `library/download.spec.ts` | download event › should report downloads with interception |+| `DO-030` | `library/download.spec.ts` | download event › should emit download event from nested iframes |+| `DO-031` | `library/download.spec.ts` | should be able to download a PDF file |+| `DO-032` | `library/download.spec.ts` | should be able to download a inline PDF file via response interception |+| `DO-033` | `library/download.spec.ts` | should be able to download a inline PDF file via navigation |+| `DO-034` | `library/download.spec.ts` | should save to user-specified path |+| `DO-035` | `library/download.spec.ts` | should download even if there is no "attachment" value |+| `DO-036` | `library/download.spec.ts` | should convert navigation to a resource with unsupported mime type into download |+| `DO-037` | `library/download.spec.ts` | should download links with data url |+| `DO-038` | `library/download.spec.ts` | should download successfully when routing |+| `DO-039` | `library/downloads-path.spec.ts` | downloads path › should keep downloadsPath folder |+| `DO-040` | `library/downloads-path.spec.ts` | downloads path › should delete downloads when context closes |+| `DO-041` | `library/downloads-path.spec.ts` | downloads path › should report downloads in downloadsPath folder |+| `DO-042` | `library/downloads-path.spec.ts` | downloads path › should report downloads in downloadsPath folder with a relative path |+| `DO-043` | `library/downloads-path.spec.ts` | downloads path › should accept downloads in persistent context |+| `DO-044` | `library/downloads-path.spec.ts` | downloads path › should delete downloads when persistent context closes |++### DV — Device++| ID | File | Title |+|---|---|---|+| `DV-001` | `library/browsercontext-device.spec.ts` | device › should work @smoke |+| `DV-002` | `library/browsercontext-device.spec.ts` | device › should support clicking |+| `DV-003` | `library/browsercontext-device.spec.ts` | device › should scroll to click |+| `DV-004` | `library/browsercontext-device.spec.ts` | device › should scroll twice when emulated |+| `DV-005` | `library/browsercontext-device.spec.ts` | device › should reset scroll top after a navigation |+| `DV-006` | `library/browsercontext-device.spec.ts` | device › should scroll to a precise position with mobile scale |+| `DV-007` | `library/browsercontext-device.spec.ts` | device › should emulate viewport and screen size |+| `DV-008` | `library/browsercontext-device.spec.ts` | device › should emulate viewport without screen size |+| `DV-009` | `library/browsercontext-dsf.spec.ts` | should fetch lodpi assets @smoke |+| `DV-010` | `library/browsercontext-dsf.spec.ts` | should fetch hidpi assets |+| `DV-011` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › should support mobile emulation |+| `DV-012` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › should support touch emulation |+| `DV-013` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › should be detectable |+| `DV-014` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › should detect touch when applying viewport with touches |+| `DV-015` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › should support landscape emulation |+| `DV-016` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › should support window.orientation emulation |+| `DV-017` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › should preserve window.orientation override after navigation |+| `DV-018` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › should preserve screen.orientation.type override after navigation |+| `DV-019` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › should fire orientationchange event |+| `DV-020` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › default mobile viewports to 980 width |+| `DV-021` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › respect meta viewport tag |+| `DV-022` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › should emulate the hover media feature |+| `DV-023` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › mouse should work with mobile viewports and cross process navigations |+| `DV-024` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › should scroll when emulating a mobile viewport |+| `DV-025` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › should scroll mobile page with background-attachment: fixed |+| `DV-026` | `library/browsercontext-viewport-mobile.spec.ts` | mobile viewport › view scale should reset after navigation |++### EE — Event emitter++| ID | File | Title |+|---|---|---|+| `EE-001` | `page/page-listeners.spec.ts` | should not throw with ignoreErrors |+| `EE-002` | `page/page-listeners.spec.ts` | should wait |+| `EE-003` | `page/page-listeners.spec.ts` | wait should throw |+| `EE-004` | `library/events/add-listeners.spec.ts` | EventEmitter tests › should work |+| `EE-005` | `library/events/add-listeners.spec.ts` | EventEmitter tests › set max listeners test |+| `EE-006` | `library/events/add-listeners.spec.ts` | EventEmitter tests › Listener order |+| `EE-007` | `library/events/add-listeners.spec.ts` | EventEmitter tests › listener type check |+| `EE-008` | `library/events/check-listener-leaks.spec.ts` | defaultMaxListeners |+| `EE-009` | `library/events/check-listener-leaks.spec.ts` | process-wide |+| `EE-010` | `library/events/check-listener-leaks.spec.ts` | \_maxListeners still has precedence over defaultMaxListeners |+| `EE-011` | `library/events/events-list.spec.ts` | EventEmitter › should maintain event names correctly |+| `EE-012` | `library/events/listener-count.spec.ts` | Listener count test |+| `EE-013` | `library/events/listeners-side-effects.spec.ts` | listeners empty check |+| `EE-014` | `library/events/listeners.spec.ts` | EventEmitter listeners with one listener |+| `EE-015` | `library/events/listeners.spec.ts` | Array copy modification does not modify orig |+| `EE-016` | `library/events/listeners.spec.ts` | Modify array copy after multiple adds |+| `EE-017` | `library/events/listeners.spec.ts` | listeners and once |+| `EE-018` | `library/events/listeners.spec.ts` | listeners with conflicting types |+| `EE-019` | `library/events/listeners.spec.ts` | EventEmitter with no members |+| `EE-020` | `library/events/listeners.spec.ts` | listeners on prototype |+| `EE-021` | `library/events/listeners.spec.ts` | raw listeners |+| `EE-022` | `library/events/listeners.spec.ts` | raw listeners order |+| `EE-023` | `library/events/max-listeners.spec.ts` | emit maxListeners on e |+| `EE-024` | `library/events/method-names.spec.ts` | EventEmitter prototype test |+| `EE-025` | `library/events/modify-in-emit.spec.ts` | add and remove listeners |+| `EE-026` | `library/events/modify-in-emit.spec.ts` | removing callbacks in emit |+| `EE-027` | `library/events/num-args.spec.ts` | should work |+| `EE-028` | `library/events/once.spec.ts` | should work |+| `EE-029` | `library/events/once.spec.ts` | once() has different code paths based on the number of arguments being emitted |+| `EE-030` | `library/events/prepend.spec.ts` | EventEmitter functionality |+| `EE-031` | `library/events/prepend.spec.ts` | Verify that the listener must be a function |+| `EE-032` | `library/events/remove-all-listeners-wait.spec.ts` | should not throw with ignoreErrors |+| `EE-033` | `library/events/remove-all-listeners-wait.spec.ts` | should wait |+| `EE-034` | `library/events/remove-all-listeners-wait.spec.ts` | should wait all |+| `EE-035` | `library/events/remove-all-listeners-wait.spec.ts` | wait should throw |+| `EE-036` | `library/events/remove-all-listeners.spec.ts` | listeners |+| `EE-037` | `library/events/remove-all-listeners.spec.ts` | removeAllListeners removes all listeners |+| `EE-038` | `library/events/remove-all-listeners.spec.ts` | removeAllListeners with no event type |+| `EE-039` | `library/events/remove-all-listeners.spec.ts` | listener count after removeAllListeners |+| `EE-040` | `library/events/remove-all-listeners.spec.ts` | removeAllListeners returns EventEmitter |+| `EE-041` | `library/events/remove-all-listeners.spec.ts` | removeAllListeners on undefined \_events |+| `EE-042` | `library/events/remove-listeners.spec.ts` | First test |+| `EE-043` | `library/events/remove-listeners.spec.ts` | Second test |+| `EE-044` | `library/events/remove-listeners.spec.ts` | Third test |+| `EE-045` | `library/events/remove-listeners.spec.ts` | Fourth test |+| `EE-046` | `library/events/remove-listeners.spec.ts` | Fifth test |+| `EE-047` | `library/events/remove-listeners.spec.ts` | Sixth test |+| `EE-048` | `library/events/remove-listeners.spec.ts` | Seventh test |+| `EE-049` | `library/events/remove-listeners.spec.ts` | Eighth test |+| `EE-050` | `library/events/remove-listeners.spec.ts` | Ninth test |+| `EE-051` | `library/events/remove-listeners.spec.ts` | Tenth test |+| `EE-052` | `library/events/set-max-listeners-side-effects.spec.ts` | set max listeners test |+| `EE-053` | `library/events/special-event-names.spec.ts` | should support special event names |+| `EE-054` | `library/events/subclass.spec.ts` | myee instance |+| `EE-055` | `library/events/subclass.spec.ts` | MyEE2 instance |+| `EE-056` | `library/events/symbols.spec.ts` | should support symbols |++### EF — Expose function++| ID | File | Title |+|---|---|---|+| `EF-001` | `page/page-expose-function.spec.ts` | exposeBinding should work @smoke |+| `EF-002` | `page/page-expose-function.spec.ts` | should work |+| `EF-003` | `page/page-expose-function.spec.ts` | should dispose |+| `EF-004` | `page/page-expose-function.spec.ts` | should work with handles and complex objects |+| `EF-005` | `page/page-expose-function.spec.ts` | should throw exception in page context |+| `EF-006` | `page/page-expose-function.spec.ts` | should support throwing "null" |+| `EF-007` | `page/page-expose-function.spec.ts` | should be callable from-inside addInitScript |+| `EF-008` | `page/page-expose-function.spec.ts` | should survive navigation |+| `EF-009` | `page/page-expose-function.spec.ts` | should await returned promise |+| `EF-010` | `page/page-expose-function.spec.ts` | should work on frames |+| `EF-011` | `page/page-expose-function.spec.ts` | should work on frames before navigation |+| `EF-012` | `page/page-expose-function.spec.ts` | should work after cross origin navigation |+| `EF-013` | `page/page-expose-function.spec.ts` | should work with complex objects |+| `EF-014` | `page/page-expose-function.spec.ts` | should throw for duplicate registrations |+| `EF-015` | `page/page-expose-function.spec.ts` | should work with setContent |+| `EF-016` | `page/page-expose-function.spec.ts` | should alias Window, Document and Node |+| `EF-017` | `page/page-expose-function.spec.ts` | should serialize cycles |+| `EF-018` | `page/page-expose-function.spec.ts` | should work with overridden console object |+| `EF-019` | `page/page-expose-function.spec.ts` | should work with busted Array.prototype.map/push |+| `EF-020` | `page/page-expose-function.spec.ts` | should fail with busted Array.prototype.toJSON |+| `EF-021` | `page/page-expose-function.spec.ts` | exposeBinding should work in parallel |+| `EF-022` | `library/browsercontext-expose-function.spec.ts` | expose binding should work |+| `EF-023` | `library/browsercontext-expose-function.spec.ts` | should work |+| `EF-024` | `library/browsercontext-expose-function.spec.ts` | should dispose |+| `EF-025` | `library/browsercontext-expose-function.spec.ts` | should throw for duplicate registrations |+| `EF-026` | `library/browsercontext-expose-function.spec.ts` | should be callable from-inside addInitScript |+| `EF-027` | `library/browsercontext-expose-function.spec.ts` | should work with CSP |+| `EF-028` | `library/browsercontext-expose-function.spec.ts` | should call binding from pagehide handler when navigating away |++### EH — ElementHandle++| ID | File | Title |+|---|---|---|+| `EH-001` | `page/elementhandle-bounding-box.spec.ts` | should work |+| `EH-002` | `page/elementhandle-bounding-box.spec.ts` | should handle nested frames |+| `EH-003` | `page/elementhandle-bounding-box.spec.ts` | should get frame box |+| `EH-004` | `page/elementhandle-bounding-box.spec.ts` | should handle scroll offset and click |+| `EH-005` | `page/elementhandle-bounding-box.spec.ts` | should return null for invisible elements |+| `EH-006` | `page/elementhandle-bounding-box.spec.ts` | should get bounding box of element inside a cross-origin iframe |+| `EH-007` | `page/elementhandle-bounding-box.spec.ts` | should force a layout |+| `EH-008` | `page/elementhandle-bounding-box.spec.ts` | should work with SVG nodes |+| `EH-009` | `page/elementhandle-bounding-box.spec.ts` | should work when inline box child is outside of viewport |+| `EH-010` | `page/elementhandle-click.spec.ts` | should work @smoke |+| `EH-011` | `page/elementhandle-click.spec.ts` | should work with Node removed |+| `EH-012` | `page/elementhandle-click.spec.ts` | should work for Shadow DOM v1 |+| `EH-013` | `page/elementhandle-click.spec.ts` | should work for TextNodes |+| `EH-014` | `page/elementhandle-click.spec.ts` | should throw for detached nodes |+| `EH-015` | `page/elementhandle-click.spec.ts` | should throw for hidden nodes with force |+| `EH-016` | `page/elementhandle-click.spec.ts` | should throw for recursively hidden nodes with force |+| `EH-017` | `page/elementhandle-click.spec.ts` | should throw for \<br\> elements with force |+| `EH-018` | `page/elementhandle-click.spec.ts` | should double click the button |+| `EH-019` | `page/elementhandle-content-frame.spec.ts` | should work |+| `EH-020` | `page/elementhandle-content-frame.spec.ts` | should work for cross-process iframes |+| `EH-021` | `page/elementhandle-content-frame.spec.ts` | should work for cross-frame evaluations |+| `EH-022` | `page/elementhandle-content-frame.spec.ts` | should return null for non-iframes |+| `EH-023` | `page/elementhandle-content-frame.spec.ts` | should return null for document.documentElement |+| `EH-024` | `page/elementhandle-convenience.spec.ts` | should have a nice preview |+| `EH-025` | `page/elementhandle-convenience.spec.ts` | should have a nice preview for non-ascii attributes/children |+| `EH-026` | `page/elementhandle-convenience.spec.ts` | getAttribute should work |+| `EH-027` | `page/elementhandle-convenience.spec.ts` | inputValue should work |+| `EH-028` | `page/elementhandle-convenience.spec.ts` | innerHTML should work |+| `EH-029` | `page/elementhandle-convenience.spec.ts` | innerText should work |+| `EH-030` | `page/elementhandle-convenience.spec.ts` | innerText should throw |+| `EH-031` | `page/elementhandle-convenience.spec.ts` | textContent should work |+| `EH-032` | `page/elementhandle-convenience.spec.ts` | textContent should work on ShadowRoot |+| `EH-033` | `page/elementhandle-convenience.spec.ts` | isVisible and isHidden should work |+| `EH-034` | `page/elementhandle-convenience.spec.ts` | isVisible should not throw when the DOM element is not connected |+| `EH-035` | `page/elementhandle-convenience.spec.ts` | isEnabled and isDisabled should work |+| `EH-036` | `page/elementhandle-convenience.spec.ts` | isEnabled and isDisabled should work with \<select/\> option/optgroup correctly |+| `EH-037` | `page/elementhandle-convenience.spec.ts` | isEditable should work |+| `EH-038` | `page/elementhandle-convenience.spec.ts` | isChecked should work |+| `EH-039` | `page/elementhandle-eval-on-selector.spec.ts` | should work |+| `EH-040` | `page/elementhandle-eval-on-selector.spec.ts` | should retrieve content from subtree |+| `EH-041` | `page/elementhandle-eval-on-selector.spec.ts` | should throw in case of missing selector |+| `EH-042` | `page/elementhandle-eval-on-selector.spec.ts` | should work for all |+| `EH-043` | `page/elementhandle-eval-on-selector.spec.ts` | should retrieve content from subtree for all |+| `EH-044` | `page/elementhandle-eval-on-selector.spec.ts` | should not throw in case of missing selector for all |+| `EH-045` | `page/elementhandle-misc.spec.ts` | should hover |+| `EH-046` | `page/elementhandle-misc.spec.ts` | should hover when Node is removed |+| `EH-047` | `page/elementhandle-misc.spec.ts` | should fill input |+| `EH-048` | `page/elementhandle-misc.spec.ts` | should fill input when Node is removed |+| `EH-049` | `page/elementhandle-misc.spec.ts` | should check the box |+| `EH-050` | `page/elementhandle-misc.spec.ts` | should check the box using setChecked |+| `EH-051` | `page/elementhandle-misc.spec.ts` | should uncheck the box |+| `EH-052` | `page/elementhandle-misc.spec.ts` | should select single option |+| `EH-053` | `page/elementhandle-misc.spec.ts` | should focus a button |+| `EH-054` | `page/elementhandle-misc.spec.ts` | should allow disposing twice |+| `EH-055` | `page/elementhandle-owner-frame.spec.ts` | should work |+| `EH-056` | `page/elementhandle-owner-frame.spec.ts` | should work for cross-process iframes |+| `EH-057` | `page/elementhandle-owner-frame.spec.ts` | should work for document |+| `EH-058` | `page/elementhandle-owner-frame.spec.ts` | should work for iframe elements |+| `EH-059` | `page/elementhandle-owner-frame.spec.ts` | should work for cross-frame evaluations |+| `EH-060` | `page/elementhandle-owner-frame.spec.ts` | should work for detached elements |+| `EH-061` | `page/elementhandle-owner-frame.spec.ts` | should work for adopted elements |+| `EH-062` | `page/elementhandle-press.spec.ts` | should work |+| `EH-063` | `page/elementhandle-press.spec.ts` | should not select existing value |+| `EH-064` | `page/elementhandle-press.spec.ts` | should reset selection when not focused |+| `EH-065` | `page/elementhandle-press.spec.ts` | should not modify selection when focused |+| `EH-066` | `page/elementhandle-press.spec.ts` | should work with number input |+| `EH-067` | `page/elementhandle-query-selector.spec.ts` | should query existing element |+| `EH-068` | `page/elementhandle-query-selector.spec.ts` | should return null for non-existing element |+| `EH-069` | `page/elementhandle-query-selector.spec.ts` | should work for adopted elements |+| `EH-070` | `page/elementhandle-query-selector.spec.ts` | should query existing elements |+| `EH-071` | `page/elementhandle-query-selector.spec.ts` | should return empty array for non-existing elements |+| `EH-072` | `page/elementhandle-query-selector.spec.ts` | xpath should query existing element |+| `EH-073` | `page/elementhandle-query-selector.spec.ts` | xpath should return null for non-existing element |+| `EH-074` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should work |+| `EH-075` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should work with webp |+| `EH-076` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should work when main world busts JSON.stringify |+| `EH-077` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should take into account padding and border |+| `EH-078` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should capture full element when larger than viewport in parallel |+| `EH-079` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should capture full element when larger than viewport |+| `EH-080` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should scroll element into view |+| `EH-081` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should scroll 15000px into view |+| `EH-082` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should work with a rotated element |+| `EH-083` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should fail to screenshot a detached element |+| `EH-084` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should timeout waiting for visible |+| `EH-085` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should wait for visible |+| `EH-086` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should work for an element with fractional dimensions |+| `EH-087` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should work for an element with an offset |+| `EH-088` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should wait for element to stop moving |+| `EH-089` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should take screenshot of disabled button |+| `EH-090` | `page/elementhandle-screenshot.spec.ts` | element screenshot › path option should create subdirectories |+| `EH-091` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should prefer type over extension |+| `EH-092` | `page/elementhandle-screenshot.spec.ts` | element screenshot › should not issue resize event |+| `EH-093` | `page/elementhandle-scroll-into-view.spec.ts` | should work @smoke |+| `EH-094` | `page/elementhandle-scroll-into-view.spec.ts` | should throw for detached element |+| `EH-095` | `page/elementhandle-scroll-into-view.spec.ts` | should wait for display:none to become visible |+| `EH-096` | `page/elementhandle-scroll-into-view.spec.ts` | should scroll display:contents into view |+| `EH-097` | `page/elementhandle-scroll-into-view.spec.ts` | should work for visibility:hidden element |+| `EH-098` | `page/elementhandle-scroll-into-view.spec.ts` | should work for zero-sized element |+| `EH-099` | `page/elementhandle-scroll-into-view.spec.ts` | should wait for nested display:none to become visible |+| `EH-100` | `page/elementhandle-scroll-into-view.spec.ts` | should wait for element to stop moving |+| `EH-101` | `page/elementhandle-scroll-into-view.spec.ts` | should timeout waiting for visible |+| `EH-102` | `page/elementhandle-select-text.spec.ts` | should select textarea |+| `EH-103` | `page/elementhandle-select-text.spec.ts` | should select input |+| `EH-104` | `page/elementhandle-select-text.spec.ts` | should select plain div |+| `EH-105` | `page/elementhandle-select-text.spec.ts` | should timeout waiting for invisible element |+| `EH-106` | `page/elementhandle-select-text.spec.ts` | should wait for visible |+| `EH-107` | `page/elementhandle-type.spec.ts` | should work |+| `EH-108` | `page/elementhandle-type.spec.ts` | should not select existing value |+| `EH-109` | `page/elementhandle-type.spec.ts` | should reset selection when not focused |+| `EH-110` | `page/elementhandle-type.spec.ts` | should not modify selection when focused |+| `EH-111` | `page/elementhandle-type.spec.ts` | should work with number input |+| `EH-112` | `page/elementhandle-wait-for-element-state.spec.ts` | should wait for visible |+| `EH-113` | `page/elementhandle-wait-for-element-state.spec.ts` | should wait for already visible |+| `EH-114` | `page/elementhandle-wait-for-element-state.spec.ts` | should timeout waiting for visible |+| `EH-115` | `page/elementhandle-wait-for-element-state.spec.ts` | should throw waiting for visible when detached |+| `EH-116` | `page/elementhandle-wait-for-element-state.spec.ts` | should wait for hidden |+| `EH-117` | `page/elementhandle-wait-for-element-state.spec.ts` | should wait for already hidden |+| `EH-118` | `page/elementhandle-wait-for-element-state.spec.ts` | should wait for hidden when detached |+| `EH-119` | `page/elementhandle-wait-for-element-state.spec.ts` | should throw waiting for enabled when detached |+| `EH-120` | `page/elementhandle-wait-for-element-state.spec.ts` | should wait for aria enabled button |+| `EH-121` | `page/elementhandle-wait-for-element-state.spec.ts` | should wait for button with an aria-disabled parent |+| `EH-122` | `page/elementhandle-wait-for-element-state.spec.ts` | should wait for stable position |+| `EH-123` | `page/elementhandle-wait-for-element-state.spec.ts` | should wait for editable input |++### EM — Emulation++| ID | File | Title |+|---|---|---|+| `EM-001` | `page/page-emulate-media.spec.ts` | should emulate type @smoke |+| `EM-002` | `page/page-emulate-media.spec.ts` | should throw in case of bad media argument |+| `EM-003` | `page/page-emulate-media.spec.ts` | should emulate colorScheme should work @smoke |+| `EM-004` | `page/page-emulate-media.spec.ts` | should default to light |+| `EM-005` | `page/page-emulate-media.spec.ts` | should throw in case of bad colorScheme argument |+| `EM-006` | `page/page-emulate-media.spec.ts` | should work during navigation |+| `EM-007` | `page/page-emulate-media.spec.ts` | should change the actual colors in css |+| `EM-008` | `page/page-emulate-media.spec.ts` | should emulate reduced motion |+| `EM-009` | `page/page-emulate-media.spec.ts` | should keep reduced motion and color emulation after reload |+| `EM-010` | `page/page-emulate-media.spec.ts` | should emulate forcedColors |+| `EM-011` | `page/page-emulate-media.spec.ts` | should emulate contrast |+| `EM-012` | `page/page-emulate-media.spec.ts` | should report hover and fine pointer for desktop |+| `EM-013` | `library/emulation-focus.spec.ts` | should think that it is focused by default |+| `EM-014` | `library/emulation-focus.spec.ts` | should think that all pages are focused @smoke |+| `EM-015` | `library/emulation-focus.spec.ts` | should focus popups by default |+| `EM-016` | `library/emulation-focus.spec.ts` | should provide target for keyboard events |+| `EM-017` | `library/emulation-focus.spec.ts` | should not affect mouse event target page |+| `EM-018` | `library/emulation-focus.spec.ts` | should change document.activeElement |+| `EM-019` | `library/emulation-focus.spec.ts` | should not affect screenshots |+| `EM-020` | `library/emulation-focus.spec.ts` | should change focused iframe |+| `EM-021` | `library/emulation-focus.spec.ts` | should focus with more than one page/context |+| `EM-022` | `library/emulation-focus.spec.ts` | should not fire blur events when interacting with more than one page/context |+| `EM-023` | `library/emulation-focus.spec.ts` | should not blur iframe when interacting with another page/context |+| `EM-024` | `library/emulation-focus.spec.ts` | should trigger hover state concurrently |+| `EM-025` | `library/emulation-coop.spec.ts` | emulation with COOP › should preserve context options |+| `EM-026` | `library/emulation-coop.spec.ts` | emulation with COOP › should preserve page.emulateMedia |+| `EM-027` | `library/emulation-coop.spec.ts` | emulation with COOP › should preserve mobile emulation |++### ER — Page errors and crashes++| ID | File | Title |+|---|---|---|+| `ER-001` | `page/page-event-pageerror.spec.ts` | should fire |+| `ER-002` | `page/page-event-pageerror.spec.ts` | should not receive console message for pageError |+| `ER-003` | `page/page-event-pageerror.spec.ts` | should contain sourceURL |+| `ER-004` | `page/page-event-pageerror.spec.ts` | should contain the Error.name property |+| `ER-005` | `page/page-event-pageerror.spec.ts` | should support an empty Error.name property |+| `ER-006` | `page/page-event-pageerror.spec.ts` | should handle odd values |+| `ER-007` | `page/page-event-pageerror.spec.ts` | should handle object |+| `ER-008` | `page/page-event-pageerror.spec.ts` | should handle window |+| `ER-009` | `page/page-event-pageerror.spec.ts` | should remove a listener of a non-existing event handler |+| `ER-010` | `page/page-event-pageerror.spec.ts` | should emit error from unhandled rejects |+| `ER-011` | `page/page-event-pageerror.spec.ts` | pageErrors should work |+| `ER-012` | `page/page-event-pageerror.spec.ts` | clearPageErrors should work |+| `ER-013` | `page/page-event-pageerror.spec.ts` | should fire illegal character error |+| `ER-014` | `library/page-event-crash.spec.ts` | should emit crash event when page crashes |+| `ER-015` | `library/page-event-crash.spec.ts` | should throw on any action after page crashes |+| `ER-016` | `library/page-event-crash.spec.ts` | expect should not hang when page crashed |+| `ER-017` | `library/page-event-crash.spec.ts` | should cancel waitForEvent when page crashes |+| `ER-018` | `library/page-event-crash.spec.ts` | should cancel navigation when page crashes |+| `ER-019` | `library/page-event-crash.spec.ts` | should be able to close context when page crashes |+| `ER-020` | `library/page-event-crash.spec.ts` | should be able to close page after crash |+| `ER-021` | `library/page-event-crash.spec.ts` | should reject in-flight worker.evaluate when page crashes |++### ES — Eval on selector++| ID | File | Title |+|---|---|---|+| `ES-001` | `page/eval-on-selector.spec.ts` | should work with css selector |+| `ES-002` | `page/eval-on-selector.spec.ts` | should work with id selector |+| `ES-003` | `page/eval-on-selector.spec.ts` | should work with data-test selector |+| `ES-004` | `page/eval-on-selector.spec.ts` | should work with data-testid selector |+| `ES-005` | `page/eval-on-selector.spec.ts` | should work with data-test-id selector |+| `ES-006` | `page/eval-on-selector.spec.ts` | should work with text selector in quotes |+| `ES-007` | `page/eval-on-selector.spec.ts` | should work with xpath selector |+| `ES-008` | `page/eval-on-selector.spec.ts` | should work with text selector |+| `ES-009` | `page/eval-on-selector.spec.ts` | should auto-detect css selector |+| `ES-010` | `page/eval-on-selector.spec.ts` | should auto-detect css selector with attributes |+| `ES-011` | `page/eval-on-selector.spec.ts` | should auto-detect nested selectors |+| `ES-012` | `page/eval-on-selector.spec.ts` | should accept arguments |+| `ES-013` | `page/eval-on-selector.spec.ts` | should accept ElementHandles as arguments |+| `ES-014` | `page/eval-on-selector.spec.ts` | should throw error if no element is found |+| `ES-015` | `page/eval-on-selector.spec.ts` | should support \>\> syntax |+| `ES-016` | `page/eval-on-selector.spec.ts` | should support \>\> syntax with different engines |+| `ES-017` | `page/eval-on-selector.spec.ts` | should support spaces with \>\> syntax |+| `ES-018` | `page/eval-on-selector.spec.ts` | should not stop at first failure with \>\> syntax |+| `ES-019` | `page/eval-on-selector.spec.ts` | should support \* capture |+| `ES-020` | `page/eval-on-selector.spec.ts` | should throw on multiple \* captures |+| `ES-021` | `page/eval-on-selector.spec.ts` | should throw on malformed \* capture |+| `ES-022` | `page/eval-on-selector.spec.ts` | should work with spaces in css attributes |+| `ES-023` | `page/eval-on-selector.spec.ts` | should work with quotes in css attributes |+| `ES-024` | `page/eval-on-selector.spec.ts` | should work with spaces in css attributes when missing |+| `ES-025` | `page/eval-on-selector.spec.ts` | should work with quotes in css attributes when missing |+| `ES-026` | `page/eval-on-selector.spec.ts` | should return complex values |+| `ES-027` | `page/eval-on-selector-all.spec.ts` | should work with css selector |+| `ES-028` | `page/eval-on-selector-all.spec.ts` | should work with text selector |+| `ES-029` | `page/eval-on-selector-all.spec.ts` | should work with xpath selector |+| `ES-030` | `page/eval-on-selector-all.spec.ts` | should auto-detect css selector |+| `ES-031` | `page/eval-on-selector-all.spec.ts` | should support \>\> syntax |+| `ES-032` | `page/eval-on-selector-all.spec.ts` | should support \* capture |+| `ES-033` | `page/eval-on-selector-all.spec.ts` | should support \* capture when multiple paths match |+| `ES-034` | `page/eval-on-selector-all.spec.ts` | should return complex values |+| `ES-035` | `page/eval-on-selector-all.spec.ts` | should work with bogus Array.from |++### EV — Evaluate++| ID | File | Title |+|---|---|---|+| `EV-001` | `page/page-evaluate.spec.ts` | should work @smoke |+| `EV-002` | `page/page-evaluate.spec.ts` | should transfer NaN |+| `EV-003` | `page/page-evaluate.spec.ts` | should transfer -0 |+| `EV-004` | `page/page-evaluate.spec.ts` | should transfer Infinity |+| `EV-005` | `page/page-evaluate.spec.ts` | should transfer -Infinity |+| `EV-006` | `page/page-evaluate.spec.ts` | should roundtrip unserializable values |+| `EV-007` | `page/page-evaluate.spec.ts` | should roundtrip promise to value |+| `EV-008` | `page/page-evaluate.spec.ts` | should roundtrip promise to unserializable values |+| `EV-009` | `page/page-evaluate.spec.ts` | should transfer arrays |+| `EV-010` | `page/page-evaluate.spec.ts` | should transfer arrays as arrays, not objects |+| `EV-011` | `page/page-evaluate.spec.ts` | should transfer typed arrays |+| `EV-012` | `page/page-evaluate.spec.ts` | should transfer bigint |+| `EV-013` | `page/page-evaluate.spec.ts` | should transfer maps as empty objects |+| `EV-014` | `page/page-evaluate.spec.ts` | should transfer sets as empty objects |+| `EV-015` | `page/page-evaluate.spec.ts` | should modify global environment |+| `EV-016` | `page/page-evaluate.spec.ts` | should evaluate in the page context |+| `EV-017` | `page/page-evaluate.spec.ts` | should return undefined for objects with symbols |+| `EV-018` | `page/page-evaluate.spec.ts` | should work with function shorthands |+| `EV-019` | `page/page-evaluate.spec.ts` | should work with unicode chars |+| `EV-020` | `page/page-evaluate.spec.ts` | should work with large strings |+| `EV-021` | `page/page-evaluate.spec.ts` | should work with large unicode strings |+| `EV-022` | `page/page-evaluate.spec.ts` | should throw when evaluation triggers reload |+| `EV-023` | `page/page-evaluate.spec.ts` | should await promise |+| `EV-024` | `page/page-evaluate.spec.ts` | should work right after framenavigated |+| `EV-025` | `page/page-evaluate.spec.ts` | should work right after a cross-origin navigation |+| `EV-026` | `page/page-evaluate.spec.ts` | should work from-inside an exposed function |+| `EV-027` | `page/page-evaluate.spec.ts` | should reject promise with exception |+| `EV-028` | `page/page-evaluate.spec.ts` | should support thrown strings as error messages |+| `EV-029` | `page/page-evaluate.spec.ts` | should support thrown numbers as error messages |+| `EV-030` | `page/page-evaluate.spec.ts` | should reject when a falsy value is thrown |+| `EV-031` | `page/page-evaluate.spec.ts` | should include a non-error rejection value in the error message |+| `EV-032` | `page/page-evaluate.spec.ts` | should return complex objects |+| `EV-033` | `page/page-evaluate.spec.ts` | should return NaN |+| `EV-034` | `page/page-evaluate.spec.ts` | should return -0 |+| `EV-035` | `page/page-evaluate.spec.ts` | should return Infinity |+| `EV-036` | `page/page-evaluate.spec.ts` | should return -Infinity |+| `EV-037` | `page/page-evaluate.spec.ts` | should work with overwritten Promise |+| `EV-038` | `page/page-evaluate.spec.ts` | should throw when passed more than one parameter |+| `EV-039` | `page/page-evaluate.spec.ts` | should accept "undefined" as one of multiple parameters |+| `EV-040` | `page/page-evaluate.spec.ts` | should properly serialize undefined arguments |+| `EV-041` | `page/page-evaluate.spec.ts` | should properly serialize undefined fields |+| `EV-042` | `page/page-evaluate.spec.ts` | should return undefined properties |+| `EV-043` | `page/page-evaluate.spec.ts` | should properly serialize null arguments |+| `EV-044` | `page/page-evaluate.spec.ts` | should properly serialize null fields |+| `EV-045` | `page/page-evaluate.spec.ts` | should properly serialize PerformanceMeasure object |+| `EV-046` | `page/page-evaluate.spec.ts` | should properly serialize window.performance object |+| `EV-047` | `page/page-evaluate.spec.ts` | should return undefined for non-serializable objects |+| `EV-048` | `page/page-evaluate.spec.ts` | should throw for too deep reference chain |+| `EV-049` | `page/page-evaluate.spec.ts` | should throw for too deep reference chain 2 |+| `EV-050` | `page/page-evaluate.spec.ts` | should throw usable message for unserializable shallow function |+| `EV-051` | `page/page-evaluate.spec.ts` | should throw usable message for unserializable object one deep function |+| `EV-052` | `page/page-evaluate.spec.ts` | should throw usable message for unserializable object nested function |+| `EV-053` | `page/page-evaluate.spec.ts` | should throw usable message for unserializable array nested function |+| `EV-054` | `page/page-evaluate.spec.ts` | should alias Window, Document and Node |+| `EV-055` | `page/page-evaluate.spec.ts` | should work for circular object |+| `EV-056` | `page/page-evaluate.spec.ts` | should be able to throw a tricky error |+| `EV-057` | `page/page-evaluate.spec.ts` | should accept a string |+| `EV-058` | `page/page-evaluate.spec.ts` | should accept a string with semi colons |+| `EV-059` | `page/page-evaluate.spec.ts` | should accept a string with comments |+| `EV-060` | `page/page-evaluate.spec.ts` | should accept element handle as an argument |+| `EV-061` | `page/page-evaluate.spec.ts` | should throw if underlying element was disposed |+| `EV-062` | `page/page-evaluate.spec.ts` | should simulate a user gesture |+| `EV-063` | `page/page-evaluate.spec.ts` | should throw a nice error after a navigation |+| `EV-064` | `page/page-evaluate.spec.ts` | should not throw an error when evaluation does a navigation |+| `EV-065` | `page/page-evaluate.spec.ts` | should not throw an error when evaluation does a synchronous navigation and returns an object |+| `EV-066` | `page/page-evaluate.spec.ts` | should not throw an error when evaluation does a synchronous navigation and returns undefined |+| `EV-067` | `page/page-evaluate.spec.ts` | should transfer 100Mb of data from page to node.js |+| `EV-068` | `page/page-evaluate.spec.ts` | should throw error with detailed information on exception inside promise |+| `EV-069` | `page/page-evaluate.spec.ts` | should work even when JSON is set to null |+| `EV-070` | `page/page-evaluate.spec.ts` | should await promise from popup |+| `EV-071` | `page/page-evaluate.spec.ts` | should work with new Function() and CSP |+| `EV-072` | `page/page-evaluate.spec.ts` | should work with non-strict expressions |+| `EV-073` | `page/page-evaluate.spec.ts` | should respect use strict expression |+| `EV-074` | `page/page-evaluate.spec.ts` | should not leak utility script |+| `EV-075` | `page/page-evaluate.spec.ts` | should not leak handles |+| `EV-076` | `page/page-evaluate.spec.ts` | should work with CSP |+| `EV-077` | `page/page-evaluate.spec.ts` | should evaluate exception with a function on the stack |+| `EV-078` | `page/page-evaluate.spec.ts` | should evaluate exception |+| `EV-079` | `page/page-evaluate.spec.ts` | should pass exception argument |+| `EV-080` | `page/page-evaluate.spec.ts` | should evaluate date |+| `EV-081` | `page/page-evaluate.spec.ts` | should roundtrip date |+| `EV-082` | `page/page-evaluate.spec.ts` | should roundtrip regex |+| `EV-083` | `page/page-evaluate.spec.ts` | should jsonValue() date |+| `EV-084` | `page/page-evaluate.spec.ts` | should evaluate url |+| `EV-085` | `page/page-evaluate.spec.ts` | should roundtrip url |+| `EV-086` | `page/page-evaluate.spec.ts` | should jsonValue() url |+| `EV-087` | `page/page-evaluate.spec.ts` | should not use toJSON when evaluating |+| `EV-088` | `page/page-evaluate.spec.ts` | should not use Array.prototype.toJSON when evaluating |+| `EV-089` | `page/page-evaluate.spec.ts` | should not add a toJSON property to newly created Arrays after evaluation |+| `EV-090` | `page/page-evaluate.spec.ts` | should not use toJSON in jsonValue |+| `EV-091` | `page/page-evaluate.spec.ts` | should ignore buggy toJSON |+| `EV-092` | `page/page-evaluate.spec.ts` | should not expose the injected script export |+| `EV-093` | `page/page-evaluate.spec.ts` | should throw when frame is detached |+| `EV-094` | `page/page-evaluate.spec.ts` | should work with overridden Object.defineProperty |+| `EV-095` | `page/page-evaluate.spec.ts` | should work with busted Array.prototype.map/push |+| `EV-096` | `page/page-evaluate.spec.ts` | should work with overridden globalThis.Window/Document/Node |+| `EV-097` | `page/page-evaluate.spec.ts` | should work with overridden URL/Date/RegExp |+| `EV-098` | `page/page-evaluate.spec.ts` | should work with Array.from/map |+| `EV-099` | `page/page-evaluate.spec.ts` | should work with a using declaration |+| `EV-100` | `page/page-evaluate.spec.ts` | should ignore dangerous object keys |+| `EV-101` | `page/page-evaluate-handle.spec.ts` | should work |+| `EV-102` | `page/page-evaluate-handle.spec.ts` | should accept object handle as an argument |+| `EV-103` | `page/page-evaluate-handle.spec.ts` | should accept object handle to primitive types |+| `EV-104` | `page/page-evaluate-handle.spec.ts` | should accept nested handle |+| `EV-105` | `page/page-evaluate-handle.spec.ts` | should accept nested window handle |+| `EV-106` | `page/page-evaluate-handle.spec.ts` | should accept multiple nested handles |+| `EV-107` | `page/page-evaluate-handle.spec.ts` | should accept same handle multiple times |+| `EV-108` | `page/page-evaluate-handle.spec.ts` | should accept same nested object multiple times |+| `EV-109` | `page/page-evaluate-handle.spec.ts` | should accept object handle to unserializable value |+| `EV-110` | `page/page-evaluate-handle.spec.ts` | should pass configurable args |+| `EV-111` | `page/page-evaluate-handle.spec.ts` | should work with primitives |+| `EV-112` | `page/page-evaluate-callback.spec.ts` | should throw without the exposeFunctions option |+| `EV-113` | `page/page-evaluate-callback.spec.ts` | should call a function passed as an argument |+| `EV-114` | `page/page-evaluate-callback.spec.ts` | should accept a function as the whole argument |+| `EV-115` | `page/page-evaluate-callback.spec.ts` | should pass arguments to the callback |+| `EV-116` | `page/page-evaluate-callback.spec.ts` | should return the callback result to the page |+| `EV-117` | `page/page-evaluate-callback.spec.ts` | should support handle as a callback result |+| `EV-118` | `page/page-evaluate-callback.spec.ts` | should support nested handles in the callback result |+| `EV-119` | `page/page-evaluate-callback.spec.ts` | should await an async callback result |+| `EV-120` | `page/page-evaluate-callback.spec.ts` | should propagate callback errors to the page |+| `EV-121` | `page/page-evaluate-callback.spec.ts` | should work with a fire-and-forget setTimeout callback |+| `EV-122` | `page/page-evaluate-callback.spec.ts` | should support multiple callbacks |+| `EV-123` | `page/page-evaluate-callback.spec.ts` | should work with evaluateHandle |+| `EV-124` | `page/page-evaluate-callback.spec.ts` | should work in a child frame |+| `EV-125` | `page/page-evaluate-callback.spec.ts` | should route callbacks back to the calling frame |+| `EV-126` | `page/page-evaluate-callback.spec.ts` | should work with jsHandle.evaluate |+| `EV-127` | `page/page-evaluate-callback.spec.ts` | should work with locator.evaluate |+| `EV-128` | `page/page-evaluate-callback.spec.ts` | should return the callback result with locator.evaluate |+| `EV-129` | `page/page-evaluate-callback.spec.ts` | should propagate callback errors with locator.evaluate |+| `EV-130` | `page/page-evaluate-callback.spec.ts` | should work with locator.evaluateHandle |+| `EV-131` | `page/page-evaluate-callback.spec.ts` | should work with locator.evaluate inside an iframe |+| `EV-132` | `page/page-evaluate-callback.spec.ts` | should survive a navigation and keep working |+| `EV-133` | `page/page-evaluate-callback.spec.ts` | should not register the callback on the global object |+| `EV-134` | `page/page-evaluate-callback.spec.ts` | should scope the page-side callback to the execution context |+| `EV-135` | `page/page-evaluate-no-stall.spec.ts` | should work |+| `EV-136` | `page/page-evaluate-no-stall.spec.ts` | should throw while pending navigation |+| `EV-137` | `page/page-evaluate-no-stall.spec.ts` | should throw when no main execution context |++### EX — Expect++| ID | File | Title |+|---|---|---|+| `EX-001` | `page/expect-boolean.spec.ts` | toBeChecked › default |+| `EX-002` | `page/expect-boolean.spec.ts` | toBeChecked › with checked:true |+| `EX-003` | `page/expect-boolean.spec.ts` | toBeChecked › with checked:false |+| `EX-004` | `page/expect-boolean.spec.ts` | toBeChecked › with indeterminate:true |+| `EX-005` | `page/expect-boolean.spec.ts` | toBeChecked › with indeterminate:true and checked |+| `EX-006` | `page/expect-boolean.spec.ts` | toBeChecked › fail |+| `EX-007` | `page/expect-boolean.spec.ts` | toBeChecked › with not |+| `EX-008` | `page/expect-boolean.spec.ts` | toBeChecked › with not and checked:false |+| `EX-009` | `page/expect-boolean.spec.ts` | toBeChecked › fail with not |+| `EX-010` | `page/expect-boolean.spec.ts` | toBeChecked › fail with checked:false |+| `EX-011` | `page/expect-boolean.spec.ts` | toBeChecked › fail with indeterminate: true |+| `EX-012` | `page/expect-boolean.spec.ts` | toBeChecked › fail missing |+| `EX-013` | `page/expect-boolean.spec.ts` | toBeChecked › with role |+| `EX-014` | `page/expect-boolean.spec.ts` | toBeChecked › friendly log |+| `EX-015` | `page/expect-boolean.spec.ts` | toBeChecked › with impossible timeout |+| `EX-016` | `page/expect-boolean.spec.ts` | toBeChecked › with impossible timeout .not |+| `EX-017` | `page/expect-boolean.spec.ts` | toBeEditable › default |+| `EX-018` | `page/expect-boolean.spec.ts` | toBeEditable › with not |+| `EX-019` | `page/expect-boolean.spec.ts` | toBeEditable › with editable:true |+| `EX-020` | `page/expect-boolean.spec.ts` | toBeEditable › with editable:false |+| `EX-021` | `page/expect-boolean.spec.ts` | toBeEditable › with not and editable:false |+| `EX-022` | `page/expect-boolean.spec.ts` | toBeEditable › throws |+| `EX-023` | `page/expect-boolean.spec.ts` | toBeEnabled › default |+| `EX-024` | `page/expect-boolean.spec.ts` | toBeEnabled › with enabled:true |+| `EX-025` | `page/expect-boolean.spec.ts` | toBeEnabled › with enabled:false |+| `EX-026` | `page/expect-boolean.spec.ts` | toBeEnabled › failed |+| `EX-027` | `page/expect-boolean.spec.ts` | toBeEnabled › eventually |+| `EX-028` | `page/expect-boolean.spec.ts` | toBeEnabled › eventually with not |+| `EX-029` | `page/expect-boolean.spec.ts` | toBeEnabled › with not and enabled:false |+| `EX-030` | `page/expect-boolean.spec.ts` | toBeEnabled › toBeDisabled |+| `EX-031` | `page/expect-boolean.spec.ts` | toBeEmpty input |+| `EX-032` | `page/expect-boolean.spec.ts` | not.toBeEmpty |+| `EX-033` | `page/expect-boolean.spec.ts` | toBeEmpty div |+| `EX-034` | `page/expect-boolean.spec.ts` | toBeDisabled with value |+| `EX-035` | `page/expect-boolean.spec.ts` | toBeChecked with value |+| `EX-036` | `page/expect-boolean.spec.ts` | toBeHidden with value |+| `EX-037` | `page/expect-boolean.spec.ts` | not.toBeDisabled div |+| `EX-038` | `page/expect-boolean.spec.ts` | toBeVisible › default |+| `EX-039` | `page/expect-boolean.spec.ts` | toBeVisible › with not |+| `EX-040` | `page/expect-boolean.spec.ts` | toBeVisible › with visible:true |+| `EX-041` | `page/expect-boolean.spec.ts` | toBeVisible › with visible:false |+| `EX-042` | `page/expect-boolean.spec.ts` | toBeVisible › with not and visible:false |+| `EX-043` | `page/expect-boolean.spec.ts` | toBeVisible › eventually |+| `EX-044` | `page/expect-boolean.spec.ts` | toBeVisible › eventually with not |+| `EX-045` | `page/expect-boolean.spec.ts` | toBeVisible › fail |+| `EX-046` | `page/expect-boolean.spec.ts` | toBeVisible › fail with not |+| `EX-047` | `page/expect-boolean.spec.ts` | toBeVisible › with impossible timeout |+| `EX-048` | `page/expect-boolean.spec.ts` | toBeVisible › with impossible timeout .not |+| `EX-049` | `page/expect-boolean.spec.ts` | toBeVisible › with frameLocator |+| `EX-050` | `page/expect-boolean.spec.ts` | toBeVisible › with frameLocator 2 |+| `EX-051` | `page/expect-boolean.spec.ts` | toBeVisible › over navigation |+| `EX-052` | `page/expect-boolean.spec.ts` | toBeHidden › default |+| `EX-053` | `page/expect-boolean.spec.ts` | toBeHidden › when nothing matches |+| `EX-054` | `page/expect-boolean.spec.ts` | toBeHidden › with not |+| `EX-055` | `page/expect-boolean.spec.ts` | toBeHidden › eventually with not |+| `EX-056` | `page/expect-boolean.spec.ts` | toBeHidden › eventually |+| `EX-057` | `page/expect-boolean.spec.ts` | toBeHidden › fail |+| `EX-058` | `page/expect-boolean.spec.ts` | toBeHidden › fail with not |+| `EX-059` | `page/expect-boolean.spec.ts` | toBeHidden › fail with not when nothing matching |+| `EX-060` | `page/expect-boolean.spec.ts` | toBeHidden › with impossible timeout .not |+| `EX-061` | `page/expect-boolean.spec.ts` | toBeHidden › with impossible timeout |+| `EX-062` | `page/expect-boolean.spec.ts` | toBeFocused |+| `EX-063` | `page/expect-boolean.spec.ts` | toBeFocused with shadow elements |+| `EX-064` | `page/expect-boolean.spec.ts` | should print unknown engine error |+| `EX-065` | `page/expect-boolean.spec.ts` | should print selector syntax error |+| `EX-066` | `page/expect-boolean.spec.ts` | toBeOK |+| `EX-067` | `page/expect-boolean.spec.ts` | not.toBeOK |+| `EX-068` | `page/expect-boolean.spec.ts` | toBeOK fail with invalid argument |+| `EX-069` | `page/expect-boolean.spec.ts` | toBeOK fail with promise |+| `EX-070` | `page/expect-boolean.spec.ts` | toBeOK should print response with text content type when fails › text content type |+| `EX-071` | `page/expect-boolean.spec.ts` | toBeOK should print response with text content type when fails › no content type |+| `EX-072` | `page/expect-boolean.spec.ts` | toBeOK should print response with text content type when fails › image content type |+| `EX-073` | `page/expect-boolean.spec.ts` | toBeAttached › default |+| `EX-074` | `page/expect-boolean.spec.ts` | toBeAttached › with hidden element |+| `EX-075` | `page/expect-boolean.spec.ts` | toBeAttached › with not |+| `EX-076` | `page/expect-boolean.spec.ts` | toBeAttached › with attached:true |+| `EX-077` | `page/expect-boolean.spec.ts` | toBeAttached › with attached:false |+| `EX-078` | `page/expect-boolean.spec.ts` | toBeAttached › with not and attached:false |+| `EX-079` | `page/expect-boolean.spec.ts` | toBeAttached › eventually |+| `EX-080` | `page/expect-boolean.spec.ts` | toBeAttached › eventually with not |+| `EX-081` | `page/expect-boolean.spec.ts` | toBeAttached › fail |+| `EX-082` | `page/expect-boolean.spec.ts` | toBeAttached › fail with not |+| `EX-083` | `page/expect-boolean.spec.ts` | toBeAttached › with impossible timeout |+| `EX-084` | `page/expect-boolean.spec.ts` | toBeAttached › with impossible timeout .not |+| `EX-085` | `page/expect-boolean.spec.ts` | toBeAttached › with frameLocator |+| `EX-086` | `page/expect-boolean.spec.ts` | toBeAttached › over navigation |+| `EX-087` | `page/expect-builtins.spec.ts` | .toBe() › does not throw |+| `EX-088` | `page/expect-builtins.spec.ts` | .toBe() › fails for: {1 and 2 #0, true and false #1, {} and {} #2, {"a":1} and {"a":1} #3, {"a":1} and {"a":5} #4, {"b":2} and {"b":2} #5, "2020-02-20T00:00:00.000Z" and "2020-02-20T00:00:00.000Z" #6, {} and {} #7, \["abc"\] and \["cde"\] #8, \[\] and \[\] #9, null and undefined #10, 0 and 0 #11} *(12 copies)* |+| `EX-089` | `page/expect-builtins.spec.ts` | .toBe() › fails for {'false', '1', '"a"', 'undefined', 'null', '{}', '\[\]'} with '.not' *(7 copies)* |+| `EX-090` | `page/expect-builtins.spec.ts` | .toBe() › does not crash on circular references |+| `EX-091` | `page/expect-builtins.spec.ts` | .toBe() › matcherResult property contains matcher name, expected and actual values |+| `EX-092` | `page/expect-builtins.spec.ts` | .toStrictEqual() › does not ignore keys with undefined values |+| `EX-093` | `page/expect-builtins.spec.ts` | .toStrictEqual() › does not ignore keys with undefined values inside an array |+| `EX-094` | `page/expect-builtins.spec.ts` | .toStrictEqual() › passes when comparing same type |+| `EX-095` | `page/expect-builtins.spec.ts` | .toStrictEqual() › does not pass for different types |+| `EX-096` | `page/expect-builtins.spec.ts` | .toStrictEqual() › passes for matching buffers |+| `EX-097` | `page/expect-builtins.spec.ts` | .toStrictEqual() › does not pass when ArrayBuffers are not equal |+| `EX-098` | `page/expect-builtins.spec.ts` | .toEqual() › {pass: false} expect().toEqual() {#0, #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11, #12, #13, #14, #15, #16} *(17 copies)* |+| `EX-099` | `page/expect-builtins.spec.ts` | .toEqual() › {pass: true} expect().toEqual() {#0, #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11, #12, #13, #14, #15, #16, #17} *(18 copies)* |+| `EX-100` | `page/expect-builtins.spec.ts` | .toEqual() › assertion error matcherResult property contains matcher name, expected and actual values |+| `EX-101` | `page/expect-builtins.spec.ts` | .toEqual() › symbol based keys in arrays are processed correctly |+| `EX-102` | `page/expect-builtins.spec.ts` | .toEqual() › non-enumerable members should be skipped during equal |+| `EX-103` | `page/expect-builtins.spec.ts` | .toEqual() › objectContaining sample can be used multiple times |+| `EX-104` | `page/expect-builtins.spec.ts` | .toEqual() › cyclic object equality › properties with the same circularity are equal |+| `EX-105` | `page/expect-builtins.spec.ts` | .toEqual() › cyclic object equality › properties with different circularity are not equal |+| `EX-106` | `page/expect-builtins.spec.ts` | .toBeInstanceOf() › passing instanceof {#0, #1, #2, #3, #4} *(5 copies)* |+| `EX-107` | `page/expect-builtins.spec.ts` | .toBeInstanceOf() › failing instanceof {#0, #1, #2, #3} *(4 copies)* |+| `EX-108` | `page/expect-builtins.spec.ts` | .toBeInstanceOf() › throws if constructor is not a function |+| `EX-109` | `page/expect-builtins.spec.ts` | .toBeTruthy(), .toBeFalsy() › {'\[object Object\]', '', 'true', '1', 'a', '0.5', '\[object Map\]', '() =\> {}', 'Infinity'} is truthy *(9 copies)* |+| `EX-110` | `page/expect-builtins.spec.ts` | .toBeTruthy(), .toBeFalsy() › {'false', 'null', 'NaN', '0', '', 'undefined'} is falsy *(6 copies)* |+| `EX-111` | `page/expect-builtins.spec.ts` | .toBeNaN() › {pass: true} |+| `EX-112` | `page/expect-builtins.spec.ts` | .toBeNaN() › throws |+| `EX-113` | `page/expect-builtins.spec.ts` | .toBeNull() › fails for {'\[object Object\]', '', 'true', '1', 'a', '0.5', '\[object Map\]', '() =\> {}', 'Infinity'} *(9 copies)* |+| `EX-114` | `page/expect-builtins.spec.ts` | .toBeNull() › fails for null with .not |+| `EX-115` | `page/expect-builtins.spec.ts` | .toBeNull() › pass for null |+| `EX-116` | `page/expect-builtins.spec.ts` | .toBeDefined(), .toBeUndefined() › {'\[object Object\]', '', 'true', '1', 'a', '0.5', '\[object Map\]', '() =\> {}', 'Infinity'} is defined *(9 copies)* |+| `EX-117` | `page/expect-builtins.spec.ts` | .toBeDefined(), .toBeUndefined() › undefined is undefined |+| `EX-118` | `page/expect-builtins.spec.ts` | .toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() › comparing {1 and 2, -Infinity and Infinity, 5e-324 and 1.7976931348623157e+308, 0.1 and 0.2} *(4 copies)* |+| `EX-119` | `page/expect-builtins.spec.ts` | .toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() › can compare BigInt to Numbers |+| `EX-120` | `page/expect-builtins.spec.ts` | .toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() › equal numbers: {\[1, 1\], \[5e-324, 5e-324\], \[Infinity, Infinity\], \[-Infinity, -Infinity\]} *(4 copies)* |+| `EX-121` | `page/expect-builtins.spec.ts` | .toContain(), .toContainEqual() › iterable |+| `EX-122` | `page/expect-builtins.spec.ts` | .toContain(), .toContainEqual() › contains {#0, #1, #2, #3, #4, #5, #6, #7} *(8 copies)* |+| `EX-123` | `page/expect-builtins.spec.ts` | .toContain(), .toContainEqual() › does not contain {#0, #1, #2, #3} *(4 copies)* |+| `EX-124` | `page/expect-builtins.spec.ts` | .toContain(), .toContainEqual() › error cases |+| `EX-125` | `page/expect-builtins.spec.ts` | .toContain(), .toContainEqual() › contains a value equal {#0, #1, #2, #3, #4} *(5 copies)* |+| `EX-126` | `page/expect-builtins.spec.ts` | .toContain(), .toContainEqual() › error cases for toContainEqual |+| `EX-127` | `page/expect-builtins.spec.ts` | .toBeCloseTo › {pass: true} {expect(0).toBeCloseTo(0), expect(0).toBeCloseTo(0.001), expect(1.23).toBeCloseTo(1.229), expect(1.23).toBeCloseTo(1.226), expect(1.23).toBeCloseTo(1.234), expect(Infinity).toBeCloseTo(Infinity), expect(-Infinity).toBeCloseTo(-Infinity)} *(7 copies)* |+| `EX-128` | `page/expect-builtins.spec.ts` | .toBeCloseTo › {pass: false} {expect(0).toBeCloseTo(0.01), expect(1).toBeCloseTo(1.23), expect(Infinity).toBeCloseTo(-Infinity), expect(Infinity).toBeCloseTo(1.23), expect(-Infinity).toBeCloseTo(-1.23)} *(5 copies)* |+| `EX-129` | `page/expect-builtins.spec.ts` | .toBeCloseTo › {pass: true} {expect(0).toBeCloseTo(0.1, 0), expect(0).toBeCloseTo(0.0001, 3), expect(0).toBeCloseTo(0.000004, 5), expect(2.0000002).toBeCloseTo(2, 5)} *(4 copies)* |+| `EX-130` | `page/expect-builtins.spec.ts` | .toMatch() › {pass: true} {expect(foo).toMatch(foo), expect(Foo bar).toMatch(/^foo/i)} *(2 copies)* |+| `EX-131` | `page/expect-builtins.spec.ts` | .toMatch() › throws: \[bar, {foo\], /foo/\]} *(2 copies)* |+| `EX-132` | `page/expect-builtins.spec.ts` | .toMatch() › throws if non String actual value passed {#0, #1, #2, #3, #4, #5, #6} *(7 copies)* |+| `EX-133` | `page/expect-builtins.spec.ts` | .toMatch() › throws if non String/RegExp expected value passed {#0, #1, #2, #3, #4, #5} *(6 copies)* |+| `EX-134` | `page/expect-builtins.spec.ts` | .toMatch() › escapes strings properly |+| `EX-135` | `page/expect-builtins.spec.ts` | .toMatch() › does not maintain RegExp state between calls |+| `EX-136` | `page/expect-builtins.spec.ts` | .toHaveLength › {pass: true} {toHaveLength(2) #0, toHaveLength(0) #1, toHaveLength(2) #2, toHaveLength(3) #3, toHaveLength(0) #4, toHaveLength(0) #5} *(6 copies)* |+| `EX-137` | `page/expect-builtins.spec.ts` | .toHaveLength › {pass: false} {toHaveLength(3) #0, toHaveLength(1) #1, toHaveLength(99) #2, toHaveLength(66) #3, toHaveLength(1) #4} *(5 copies)* |+| `EX-138` | `page/expect-builtins.spec.ts` | .toHaveLength › error cases |+| `EX-139` | `page/expect-builtins.spec.ts` | .toHaveProperty() › {pass: true} toHaveProperty with value {#0, #1, #2, #3, #4, #5, #6, #7, #8, #9} *(10 copies)* |+| `EX-140` | `page/expect-builtins.spec.ts` | .toHaveProperty() › {pass: false} toHaveProperty with value {#0, #1, #2, #3, #4, #5, #6} *(7 copies)* |+| `EX-141` | `page/expect-builtins.spec.ts` | .toHaveProperty() › {pass: true} toHaveProperty without value {#0, #1, #2, #3, #4} *(5 copies)* |+| `EX-142` | `page/expect-builtins.spec.ts` | .toHaveProperty() › {pass: false} toHaveProperty without value {#0, #1, #2} *(3 copies)* |+| `EX-143` | `page/expect-builtins.spec.ts` | .toHaveProperty() › {error} toHaveProperty {#0, #1, #2, #3, #4} *(5 copies)* |+| `EX-144` | `page/expect-builtins.spec.ts` | .toMatchObject() › {pass: true} toMatchObject {#0, #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11} *(12 copies)* |+| `EX-145` | `page/expect-builtins.spec.ts` | .toMatchObject() › {pass: false} toMatchObject {#0, #1, #2, #3, #4, #5, #6} *(7 copies)* |+| `EX-146` | `page/expect-builtins.spec.ts` | .toMatchObject() › throws toMatchObject {#0, #1, #2, #3, #4, #5, #6} *(7 copies)* |+| `EX-147` | `page/expect-builtins.spec.ts` | .toMatchObject() › does not match properties up in the prototype chain |+| `EX-148` | `page/expect-builtins.spec.ts` | .toThrow() › to throw or not to throw |+| `EX-149` | `page/expect-builtins.spec.ts` | .toThrow() › substring passes |+| `EX-150` | `page/expect-builtins.spec.ts` | .toThrow() › substring fails when did not throw |+| `EX-151` | `page/expect-builtins.spec.ts` | .toThrow() › substring fails when message did not match |+| `EX-152` | `page/expect-builtins.spec.ts` | .toThrow() › regexp passes |+| `EX-153` | `page/expect-builtins.spec.ts` | .toThrow() › regexp fails when did not throw |+| `EX-154` | `page/expect-builtins.spec.ts` | .toThrow() › error class passes |+| `EX-155` | `page/expect-builtins.spec.ts` | .toThrow() › object with message passes |+| `EX-156` | `page/expect-builtins.spec.ts` | .toThrow() › properly escapes strings when matching against errors |+| `EX-157` | `page/expect-builtins.spec.ts` | .toThrow() › error message and cause properties |+| `EX-158` | `page/expect-builtins.spec.ts` | asymmetric matchers › Any matches primitives |+| `EX-159` | `page/expect-builtins.spec.ts` | asymmetric matchers › Any throws when called with empty constructor |+| `EX-160` | `page/expect-builtins.spec.ts` | asymmetric matchers › Anything matches any type |+| `EX-161` | `page/expect-builtins.spec.ts` | asymmetric matchers › Anything does not match null and undefined |+| `EX-162` | `page/expect-builtins.spec.ts` | asymmetric matchers › ArrayContaining matches |+| `EX-163` | `page/expect-builtins.spec.ts` | asymmetric matchers › ArrayContaining does not match |+| `EX-164` | `page/expect-builtins.spec.ts` | asymmetric matchers › ObjectContaining matches |+| `EX-165` | `page/expect-builtins.spec.ts` | asymmetric matchers › ObjectContaining does not match |+| `EX-166` | `page/expect-builtins.spec.ts` | asymmetric matchers › ObjectContaining throws for non-objects |+| `EX-167` | `page/expect-builtins.spec.ts` | asymmetric matchers › StringContaining matches string against string |+| `EX-168` | `page/expect-builtins.spec.ts` | asymmetric matchers › StringMatching matches string against regexp |+| `EX-169` | `page/expect-builtins.spec.ts` | asymmetric matchers › StringMatching matches string against string |+| `EX-170` | `page/expect-builtins.spec.ts` | asymmetric matchers › closeTo matches |+| `EX-171` | `page/expect-builtins.spec.ts` | asymmetric matchers › closeTo does not match |+| `EX-172` | `page/expect-builtins.spec.ts` | asymmetric matchers › closeTo with precision |+| `EX-173` | `page/expect-builtins.spec.ts` | asymmetric matchers › closeTo throws if expected is not number |+| `EX-174` | `page/expect-builtins.spec.ts` | asymmetric matchers › arrayOf matches |+| `EX-175` | `page/expect-builtins.spec.ts` | asymmetric matchers › arrayOf does not match |+| `EX-176` | `page/expect-matcher-result.spec.ts` | toMatchText-based assertions should have matcher result |+| `EX-177` | `page/expect-matcher-result.spec.ts` | toBeTruthy-based assertions should have matcher result |+| `EX-178` | `page/expect-matcher-result.spec.ts` | toEqual-based assertions should have matcher result |+| `EX-179` | `page/expect-matcher-result.spec.ts` | toBeChecked({ checked }) should have expected |+| `EX-180` | `page/expect-matcher-result.spec.ts` | toHaveScreenshot should populate matcherResult |+| `EX-181` | `page/expect-misc.spec.ts` | toHaveCount › toHaveCount pass |+| `EX-182` | `page/expect-misc.spec.ts` | toHaveCount › pass zero |+| `EX-183` | `page/expect-misc.spec.ts` | toHaveCount › eventually pass zero |+| `EX-184` | `page/expect-misc.spec.ts` | toHaveCount › eventually pass non-zero |+| `EX-185` | `page/expect-misc.spec.ts` | toHaveCount › eventually pass not non-zero |+| `EX-186` | `page/expect-misc.spec.ts` | toHaveCount › fail zero |+| `EX-187` | `page/expect-misc.spec.ts` | toHaveCount › fail zero 2 |+| `EX-188` | `page/expect-misc.spec.ts` | toHaveJSProperty › pass |+| `EX-189` | `page/expect-misc.spec.ts` | toHaveJSProperty › fail |+| `EX-190` | `page/expect-misc.spec.ts` | toHaveJSProperty › pass string |+| `EX-191` | `page/expect-misc.spec.ts` | toHaveJSProperty › fail string |+| `EX-192` | `page/expect-misc.spec.ts` | toHaveJSProperty › pass number |+| `EX-193` | `page/expect-misc.spec.ts` | toHaveJSProperty › fail number |+| `EX-194` | `page/expect-misc.spec.ts` | toHaveJSProperty › pass boolean |+| `EX-195` | `page/expect-misc.spec.ts` | toHaveJSProperty › fail boolean |+| `EX-196` | `page/expect-misc.spec.ts` | toHaveJSProperty › pass boolean 2 |+| `EX-197` | `page/expect-misc.spec.ts` | toHaveJSProperty › fail boolean 2 |+| `EX-198` | `page/expect-misc.spec.ts` | toHaveJSProperty › pass undefined |+| `EX-199` | `page/expect-misc.spec.ts` | toHaveJSProperty › pass null |+| `EX-200` | `page/expect-misc.spec.ts` | toHaveJSProperty › pass nested |+| `EX-201` | `page/expect-misc.spec.ts` | toHaveJSProperty › fail nested |+| `EX-202` | `page/expect-misc.spec.ts` | toHaveClass › pass |+| `EX-203` | `page/expect-misc.spec.ts` | toHaveClass › pass with SVGs |+| `EX-204` | `page/expect-misc.spec.ts` | toHaveClass › fail |+| `EX-205` | `page/expect-misc.spec.ts` | toHaveClass › pass with array |+| `EX-206` | `page/expect-misc.spec.ts` | toHaveClass › fail with array |+| `EX-207` | `page/expect-misc.spec.ts` | toContainClass › pass |+| `EX-208` | `page/expect-misc.spec.ts` | toContainClass › pass with SVGs |+| `EX-209` | `page/expect-misc.spec.ts` | toContainClass › fail |+| `EX-210` | `page/expect-misc.spec.ts` | toContainClass › pass with array |+| `EX-211` | `page/expect-misc.spec.ts` | toContainClass › fail with array |+| `EX-212` | `page/expect-misc.spec.ts` | toHaveTitle › pass |+| `EX-213` | `page/expect-misc.spec.ts` | toHaveTitle › fail |+| `EX-214` | `page/expect-misc.spec.ts` | toHaveURL › pass |+| `EX-215` | `page/expect-misc.spec.ts` | toHaveURL › fail string |+| `EX-216` | `page/expect-misc.spec.ts` | toHaveURL › fail with invalid argument |+| `EX-217` | `page/expect-misc.spec.ts` | toHaveURL › fail with positive predicate |+| `EX-218` | `page/expect-misc.spec.ts` | toHaveURL › fail with negative predicate |+| `EX-219` | `page/expect-misc.spec.ts` | toHaveURL › resolve predicate on initial call |+| `EX-220` | `page/expect-misc.spec.ts` | toHaveURL › resolve predicate after retries |+| `EX-221` | `page/expect-misc.spec.ts` | toHaveURL › support ignoreCase |+| `EX-222` | `page/expect-misc.spec.ts` | toHaveURL › support URLPattern |+| `EX-223` | `page/expect-misc.spec.ts` | toHaveAttribute › pass |+| `EX-224` | `page/expect-misc.spec.ts` | toHaveAttribute › should not match missing attribute |+| `EX-225` | `page/expect-misc.spec.ts` | toHaveAttribute › should match boolean attribute |+| `EX-226` | `page/expect-misc.spec.ts` | toHaveAttribute › should match attribute without value |+| `EX-227` | `page/expect-misc.spec.ts` | toHaveAttribute › should support boolean attribute with options |+| `EX-228` | `page/expect-misc.spec.ts` | toHaveAttribute › support ignoreCase |+| `EX-229` | `page/expect-misc.spec.ts` | toHaveCSS › pass |+| `EX-230` | `page/expect-misc.spec.ts` | toHaveCSS › should support pseudo element |+| `EX-231` | `page/expect-misc.spec.ts` | toHaveCSS › custom css properties |+| `EX-232` | `page/expect-misc.spec.ts` | toHaveId › pass |+| `EX-233` | `page/expect-misc.spec.ts` | toBeInViewport › should work |+| `EX-234` | `page/expect-misc.spec.ts` | toBeInViewport › should respect ratio option |+| `EX-235` | `page/expect-misc.spec.ts` | toBeInViewport › should have good stack |+| `EX-236` | `page/expect-misc.spec.ts` | toBeInViewport › should report intersection even if fully covered by other element |+| `EX-237` | `page/expect-misc.spec.ts` | toHaveCount should not produce logs twice |+| `EX-238` | `page/expect-misc.spec.ts` | toHaveText should not produce logs twice |+| `EX-239` | `page/expect-misc.spec.ts` | toHaveText that does not match should not produce logs twice |+| `EX-240` | `page/expect-misc.spec.ts` | strict mode violation error format |+| `EX-241` | `page/expect-misc.spec.ts` | invalid selector error format |+| `EX-242` | `page/expect-misc.spec.ts` | should report expect error details when page closes during expect |+| `EX-243` | `page/expect-misc.spec.ts` | should report page close reason when page closes during expect |+| `EX-244` | `page/expect-timeout.spec.ts` | should print element not found |+| `EX-245` | `page/expect-timeout.spec.ts` | should print timed out error message when value does not match |+| `EX-246` | `page/expect-timeout.spec.ts` | should print timed out error message with impossible timeout |+| `EX-247` | `page/expect-timeout.spec.ts` | should print timed out error message when value does not match with impossible timeout |+| `EX-248` | `page/expect-timeout.spec.ts` | should have timeout error name |+| `EX-249` | `page/expect-timeout.spec.ts` | should not throw when navigating during one-shot check |+| `EX-250` | `page/expect-timeout.spec.ts` | should not throw when navigating during first locator handler check |+| `EX-251` | `page/expect-timeout.spec.ts` | should timeout during first locator handler check |+| `EX-252` | `page/expect-timeout.spec.ts` | should not miss element that appears between retries before the deadline |+| `EX-253` | `page/expect-timeout.spec.ts` | should fail like a timeout when the signal is aborted mid-assertion |+| `EX-254` | `page/expect-timeout.spec.ts` | should fail like a timeout when toHaveText is aborted mid-assertion |+| `EX-255` | `page/expect-timeout.spec.ts` | should fail like a timeout when toHaveCount is aborted mid-assertion |+| `EX-256` | `page/expect-timeout.spec.ts` | should fail like a timeout when toMatchAriaSnapshot is aborted mid-assertion |+| `EX-257` | `page/expect-timeout.spec.ts` | should fail like a timeout when toHaveURL is aborted mid-assertion |+| `EX-258` | `page/expect-timeout.spec.ts` | should fail the assertion when the signal is already aborted |+| `EX-259` | `page/expect-to-have-accessible.spec.ts` | toHaveAccessibleName |+| `EX-260` | `page/expect-to-have-accessible.spec.ts` | toHaveAccessibleDescription |+| `EX-261` | `page/expect-to-have-accessible.spec.ts` | toHaveAccessibleErrorMessage |+| `EX-262` | `page/expect-to-have-accessible.spec.ts` | toHaveAccessibleErrorMessage should handle multiple aria-errormessage references |+| `EX-263` | `page/expect-to-have-accessible.spec.ts` | toHaveAccessibleErrorMessage should handle aria-invalid attribute › evaluated in false › no aria-invalid attribute |+| `EX-264` | `page/expect-to-have-accessible.spec.ts` | toHaveAccessibleErrorMessage should handle aria-invalid attribute › evaluated in false › aria-invalid="false" |+| `EX-265` | `page/expect-to-have-accessible.spec.ts` | toHaveAccessibleErrorMessage should handle aria-invalid attribute › evaluated in false › aria-invalid="" (empty string) |+| `EX-266` | `page/expect-to-have-accessible.spec.ts` | toHaveAccessibleErrorMessage should handle aria-invalid attribute › evaluated in true › aria-invalid="true" |+| `EX-267` | `page/expect-to-have-accessible.spec.ts` | toHaveAccessibleErrorMessage should handle aria-invalid attribute › evaluated in true › aria-invalid="foo" (unrecognized value) |+| `EX-268` | `page/expect-to-have-accessible.spec.ts` | should show error message when validity is false and aria-invalid is true |+| `EX-269` | `page/expect-to-have-accessible.spec.ts` | should show error message when validity is true and aria-invalid is true |+| `EX-270` | `page/expect-to-have-accessible.spec.ts` | should show error message when validity is false and aria-invalid is false |+| `EX-271` | `page/expect-to-have-accessible.spec.ts` | should not show error message when validity is true and aria-invalid is false |+| `EX-272` | `page/expect-to-have-accessible.spec.ts` | should show error message for all roles |+| `EX-273` | `page/expect-to-have-accessible.spec.ts` | toHaveRole |+| `EX-274` | `page/expect-to-have-text.spec.ts` | toHaveText with regex › pass |+| `EX-275` | `page/expect-to-have-text.spec.ts` | toHaveText with regex › fail |+| `EX-276` | `page/expect-to-have-text.spec.ts` | toContainText with regex › pass |+| `EX-277` | `page/expect-to-have-text.spec.ts` | toContainText with regex › fail |+| `EX-278` | `page/expect-to-have-text.spec.ts` | toContainText with string › pass |+| `EX-279` | `page/expect-to-have-text.spec.ts` | toContainText with string › fail |+| `EX-280` | `page/expect-to-have-text.spec.ts` | toHaveText with text › pass |+| `EX-281` | `page/expect-to-have-text.spec.ts` | toHaveText with text › pass contain |+| `EX-282` | `page/expect-to-have-text.spec.ts` | toHaveText with text › fail |+| `EX-283` | `page/expect-to-have-text.spec.ts` | toHaveText with text › pass eventually |+| `EX-284` | `page/expect-to-have-text.spec.ts` | toHaveText with text › with userInnerText |+| `EX-285` | `page/expect-to-have-text.spec.ts` | toHaveText with text › in shadow dom |+| `EX-286` | `page/expect-to-have-text.spec.ts` | toHaveText with text › fail with impossible timeout |+| `EX-287` | `page/expect-to-have-text.spec.ts` | toHaveText with text › do not show "element(s) not found" when the real failure is a string mismatch |+| `EX-288` | `page/expect-to-have-text.spec.ts` | not.toHaveText › pass |+| `EX-289` | `page/expect-to-have-text.spec.ts` | not.toHaveText › fail |+| `EX-290` | `page/expect-to-have-text.spec.ts` | not.toHaveText › should work when selector does not match |+| `EX-291` | `page/expect-to-have-text.spec.ts` | toHaveText with array › pass |+| `EX-292` | `page/expect-to-have-text.spec.ts` | toHaveText with array › pass lazy |+| `EX-293` | `page/expect-to-have-text.spec.ts` | toHaveText with array › pass empty |+| `EX-294` | `page/expect-to-have-text.spec.ts` | toHaveText with array › pass not empty |+| `EX-295` | `page/expect-to-have-text.spec.ts` | toHaveText with array › pass on empty |+| `EX-296` | `page/expect-to-have-text.spec.ts` | toHaveText with array › fail on not+empty |+| `EX-297` | `page/expect-to-have-text.spec.ts` | toHaveText with array › pass eventually empty |+| `EX-298` | `page/expect-to-have-text.spec.ts` | toHaveText with array › fail |+| `EX-299` | `page/expect-to-have-text.spec.ts` | toHaveText with array › fail on repeating array matchers |+| `EX-300` | `page/expect-to-have-text.spec.ts` | toContainText with array › pass |+| `EX-301` | `page/expect-to-have-text.spec.ts` | toContainText with array › fail |+| `EX-302` | `page/expect-to-have-value.spec.ts` | should work |+| `EX-303` | `page/expect-to-have-value.spec.ts` | should work with label |+| `EX-304` | `page/expect-to-have-value.spec.ts` | should work with regex |+| `EX-305` | `page/expect-to-have-value.spec.ts` | should support failure |+| `EX-306` | `page/expect-to-have-value.spec.ts` | toHaveValues with multi-select › works with text |+| `EX-307` | `page/expect-to-have-value.spec.ts` | toHaveValues with multi-select › follows labels |+| `EX-308` | `page/expect-to-have-value.spec.ts` | toHaveValues with multi-select › exact match with text failure |+| `EX-309` | `page/expect-to-have-value.spec.ts` | toHaveValues with multi-select › works with regex |+| `EX-310` | `page/expect-to-have-value.spec.ts` | toHaveValues with multi-select › fails when items not selected |+| `EX-311` | `page/expect-to-have-value.spec.ts` | toHaveValues with multi-select › fails when multiple not specified |+| `EX-312` | `page/expect-to-have-value.spec.ts` | toHaveValues with multi-select › fails when not a select element |+| `EX-313` | `page/expect-with-snapshot.spec.ts` | containment matchers print full element subtree › toHaveText failure includes full element subtree |+| `EX-314` | `page/expect-with-snapshot.spec.ts` | containment matchers print full element subtree › toContainText failure includes full element subtree |+| `EX-315` | `page/expect-with-snapshot.spec.ts` | property matchers print only the element line › toBeChecked failure prints just the input |+| `EX-316` | `page/expect-with-snapshot.spec.ts` | property matchers print only the element line › toHaveAttribute failure clips descendant subtree |+| `EX-317` | `page/expect-with-snapshot.spec.ts` | property matchers print only the element line › toHaveRole failure prints just the element line |+| `EX-318` | `page/expect-with-snapshot.spec.ts` | property matchers print only the element line › toHaveValue failure prints the input element |+| `EX-319` | `page/expect-with-snapshot.spec.ts` | property matchers print only the element line › toHaveCSS failure prints the element line |+| `EX-320` | `page/expect-with-snapshot.spec.ts` | hidden or missing elements print full page snapshot › toBeVisible on hidden element prints full page snapshot |+| `EX-321` | `page/expect-with-snapshot.spec.ts` | hidden or missing elements print full page snapshot › toBeVisible on missing element prints full page snapshot |+| `EX-322` | `page/expect-with-snapshot.spec.ts` | hidden or missing elements print full page snapshot › toHaveText on missing element prints full page snapshot |+| `EX-323` | `page/expect-with-snapshot.spec.ts` | hidden or missing elements print full page snapshot › toHaveTitle failure prints full page snapshot |+| `EX-324` | `page/expect-with-snapshot.spec.ts` | matchers that should not include an aria snapshot › toHaveCount failure has no aria snapshot |+| `EX-325` | `page/expect-with-snapshot.spec.ts` | matchers that should not include an aria snapshot › toHaveText with array has no aria snapshot |+| `EX-326` | `page/expect-with-snapshot.spec.ts` | matchers that should not include an aria snapshot › toMatchAriaSnapshot failure has no extra aria snapshot |+| `EX-327` | `page/matchers.misc.spec.ts` | should outlive frame navigation |+| `EX-328` | `page/matchers.misc.spec.ts` | should print no-locator-resolved error when locator matcher did not resolve to any element |++### FA — Favicon++| ID | File | Title |+|---|---|---|+| `FA-001` | `library/favicon.spec.ts` | should load svg favicon with prefer-color-scheme |++### FC — File chooser++| ID | File | Title |+|---|---|---|+| `FC-001` | `page/page-filechooser.spec.ts` | should upload multiple large files |+| `FC-002` | `page/page-filechooser.spec.ts` | should emit event once |+| `FC-003` | `page/page-filechooser.spec.ts` | should emit event via prepend |+| `FC-004` | `page/page-filechooser.spec.ts` | should emit event for iframe |+| `FC-005` | `page/page-filechooser.spec.ts` | should emit event on/off |+| `FC-006` | `page/page-filechooser.spec.ts` | should emit event addListener/removeListener |+| `FC-007` | `page/page-filechooser.spec.ts` | should work when file input is attached to DOM |+| `FC-008` | `page/page-filechooser.spec.ts` | should work when file input is not attached to DOM |+| `FC-009` | `page/page-filechooser.spec.ts` | should not throw when filechooser belongs to iframe |+| `FC-010` | `page/page-filechooser.spec.ts` | should not throw when frame is detached immediately |+| `FC-011` | `page/page-filechooser.spec.ts` | should respect timeout |+| `FC-012` | `page/page-filechooser.spec.ts` | should respect default timeout when there is no custom timeout |+| `FC-013` | `page/page-filechooser.spec.ts` | should prioritize exact timeout over default timeout |+| `FC-014` | `page/page-filechooser.spec.ts` | should work with no timeout |+| `FC-015` | `page/page-filechooser.spec.ts` | should abort with signal |+| `FC-016` | `page/page-filechooser.spec.ts` | should return the same file chooser when there are many watchdogs simultaneously |+| `FC-017` | `page/page-filechooser.spec.ts` | should accept single file |+| `FC-018` | `page/page-filechooser.spec.ts` | should not trim big uploaded files |+| `FC-019` | `page/page-filechooser.spec.ts` | should be able to read selected file |+| `FC-020` | `page/page-filechooser.spec.ts` | should be able to reset selected files with empty file list |+| `FC-021` | `page/page-filechooser.spec.ts` | should work for single file pick |+| `FC-022` | `page/page-filechooser.spec.ts` | should work for "multiple" |+| `FC-023` | `page/page-filechooser.spec.ts` | should work for "webkitdirectory" |+| `FC-024` | `page/page-filechooser.spec.ts` | should emit event after navigation |+| `FC-025` | `page/page-filechooser.spec.ts` | should trigger listener added before navigation |+| `FC-026` | `page/page-filechooser.spec.ts` | user activation › should not open file chooser without user activation |+| `FC-027` | `page/page-filechooser.spec.ts` | user activation › should open file chooser with user activation |+| `FC-028` | `page/page-filechooser.spec.ts` | user activation › should consume user activation when opening file chooser |++### FE — Fetch++| ID | File | Title |+|---|---|---|+| `FE-001` | `library/global-fetch.spec.ts` | {fetch, delete, get, head, patch, post, put} should work @smoke *(7 copies)* |+| `FE-002` | `library/global-fetch.spec.ts` | should dispose global request |+| `FE-003` | `library/global-fetch.spec.ts` | should support global userAgent option |+| `FE-004` | `library/global-fetch.spec.ts` | should support global timeout option |+| `FE-005` | `library/global-fetch.spec.ts` | should propagate extra http headers with redirects |+| `FE-006` | `library/global-fetch.spec.ts` | should preserve authorization on same-origin redirect but strip on cross-origin |+| `FE-007` | `library/global-fetch.spec.ts` | should support global httpCredentials option |+| `FE-008` | `library/global-fetch.spec.ts` | should return error with wrong credentials |+| `FE-009` | `library/global-fetch.spec.ts` | should work with correct credentials and matching origin |+| `FE-010` | `library/global-fetch.spec.ts` | should work with correct credentials and matching origin case insensitive |+| `FE-011` | `library/global-fetch.spec.ts` | should return error with correct credentials and mismatching scheme |+| `FE-012` | `library/global-fetch.spec.ts` | should return error with correct credentials and mismatching hostname |+| `FE-013` | `library/global-fetch.spec.ts` | should return error with correct credentials and mismatching port |+| `FE-014` | `library/global-fetch.spec.ts` | should support WWW-Authenticate: Basic |+| `FE-015` | `library/global-fetch.spec.ts` | should support HTTPCredentials.send |+| `FE-016` | `library/global-fetch.spec.ts` | should support multiple httpCredentials |+| `FE-017` | `library/global-fetch.spec.ts` | should support HTTPCredentials.send with multiple httpCredentials |+| `FE-018` | `library/global-fetch.spec.ts` | should support global ignoreHTTPSErrors option |+| `FE-019` | `library/global-fetch.spec.ts` | should propagate ignoreHTTPSErrors on redirects |+| `FE-020` | `library/global-fetch.spec.ts` | should return server address from response |+| `FE-021` | `library/global-fetch.spec.ts` | should return security details from response |+| `FE-022` | `library/global-fetch.spec.ts` | should return security details for a resumed TLS session |+| `FE-023` | `library/global-fetch.spec.ts` | should return null security details for http response |+| `FE-024` | `library/global-fetch.spec.ts` | should return security details for certificate with multiple CN attributes |+| `FE-025` | `library/global-fetch.spec.ts` | should resolve url relative to global baseURL option |+| `FE-026` | `library/global-fetch.spec.ts` | should fallback to given URL if baseURL is bogus |+| `FE-027` | `library/global-fetch.spec.ts` | should set playwright as user-agent |+| `FE-028` | `library/global-fetch.spec.ts` | should be able to construct with context options |+| `FE-029` | `library/global-fetch.spec.ts` | should return empty body |+| `FE-030` | `library/global-fetch.spec.ts` | should abort requests when context is disposed |+| `FE-031` | `library/global-fetch.spec.ts` | should abort redirected requests when context is disposed |+| `FE-032` | `library/global-fetch.spec.ts` | should remove content-length from redirected post requests |+| `FE-033` | `library/global-fetch.spec.ts` | should json stringify {object, array, string, string (falsey), bool, bool (false), number, number (falsey), null, literal string undefined} body when content-type is application/json *(10 copies)* |+| `FE-034` | `library/global-fetch.spec.ts` | should not double stringify {object, array, string, string (falsey), bool, bool (false), number, number (falsey), null, literal string undefined} body when content-type is application/json *(10 copies)* |+| `FE-035` | `library/global-fetch.spec.ts` | should accept already serialized data as Buffer when content-type is application/json |+| `FE-036` | `library/global-fetch.spec.ts` | should have nice toString |+| `FE-037` | `library/global-fetch.spec.ts` | should not fail on empty body with encoding |+| `FE-038` | `library/global-fetch.spec.ts` | should return body for failing requests |+| `FE-039` | `library/global-fetch.spec.ts` | should throw an error when maxRedirects is exceeded |+| `FE-040` | `library/global-fetch.spec.ts` | should not follow redirects when maxRedirects is set to 0 |+| `FE-041` | `library/global-fetch.spec.ts` | should throw an error when maxRedirects is less than 0 |+| `FE-042` | `library/global-fetch.spec.ts` | should not follow redirects when maxRedirects is set to 0 in newContext |+| `FE-043` | `library/global-fetch.spec.ts` | should follow redirects up to maxRedirects limit set in newContext |+| `FE-044` | `library/global-fetch.spec.ts` | should use maxRedirects from fetch when provided, overriding newContext |+| `FE-045` | `library/global-fetch.spec.ts` | should keep headers capitalization |+| `FE-046` | `library/global-fetch.spec.ts` | should serialize post data on the client |+| `FE-047` | `library/global-fetch.spec.ts` | should throw after dispose |+| `FE-048` | `library/global-fetch.spec.ts` | should retry ECONNRESET |+| `FE-049` | `library/global-fetch.spec.ts` | should expose node error code on network errors |+| `FE-050` | `library/global-fetch.spec.ts` | should append node error code to the message |+| `FE-051` | `library/global-fetch.spec.ts` | should not crash when server refuses body before reading it |+| `FE-052` | `library/global-fetch.spec.ts` | should throw when failOnStatusCode is set to true inside APIRequest context options |+| `FE-053` | `library/global-fetch.spec.ts` | should not throw when failOnStatusCode is set to false inside APIRequest context options |+| `FE-054` | `library/global-fetch-cookie.spec.ts` | should store cookie from Set-Cookie header |+| `FE-055` | `library/global-fetch-cookie.spec.ts` | addCookies should add cookies to the cookie jar |+| `FE-056` | `library/global-fetch-cookie.spec.ts` | addCookies should validate cookies |+| `FE-057` | `library/global-fetch-cookie.spec.ts` | cookies should return cookies filtered by urls |+| `FE-058` | `library/global-fetch-cookie.spec.ts` | cookies should only return cookies that apply to the url |+| `FE-059` | `library/global-fetch-cookie.spec.ts` | should only send cookies that apply to the url |+| `FE-060` | `library/global-fetch-cookie.spec.ts` | cookies should include cookies from Set-Cookie header |+| `FE-061` | `library/global-fetch-cookie.spec.ts` | clearCookies should remove all cookies |+| `FE-062` | `library/global-fetch-cookie.spec.ts` | clearCookies should filter by name, domain and path |+| `FE-063` | `library/global-fetch-cookie.spec.ts` | clearCookies should remove nameless cookies by empty name |+| `FE-064` | `library/global-fetch-cookie.spec.ts` | should send nameless cookies as value only |+| `FE-065` | `library/global-fetch-cookie.spec.ts` | should store Set-Cookie without equals sign as nameless cookie |+| `FE-066` | `library/global-fetch-cookie.spec.ts` | should filter outgoing cookies by path |+| `FE-067` | `library/global-fetch-cookie.spec.ts` | should filter outgoing cookies by domain |+| `FE-068` | `library/global-fetch-cookie.spec.ts` | should do case-insensitive match of cookie domain |+| `FE-069` | `library/global-fetch-cookie.spec.ts` | should do case-insensitive match of request domain |+| `FE-070` | `library/global-fetch-cookie.spec.ts` | should send secure cookie over https |+| `FE-071` | `library/global-fetch-cookie.spec.ts` | should send secure cookie over http for localhost |+| `FE-072` | `library/global-fetch-cookie.spec.ts` | should send secure cookie over http for subdomains of localhost |+| `FE-073` | `library/global-fetch-cookie.spec.ts` | should send secure cookie over http for {127.0.0.1, \[::1\]} *(2 copies)* |+| `FE-074` | `library/global-fetch-cookie.spec.ts` | should send not expired cookies |+| `FE-075` | `library/global-fetch-cookie.spec.ts` | should remove expired cookies |+| `FE-076` | `library/global-fetch-cookie.spec.ts` | should remove cookie with negative max-age |+| `FE-077` | `library/global-fetch-cookie.spec.ts` | should prefer max-age over expires regardless of the order |+| `FE-078` | `library/global-fetch-cookie.spec.ts` | should ignore max-age that is not a number |+| `FE-079` | `library/global-fetch-cookie.spec.ts` | should remove cookie with expires far in the past |+| `FE-080` | `library/global-fetch-cookie.spec.ts` | should store cookie from Set-Cookie header even if it contains equal signs |+| `FE-081` | `library/global-fetch-cookie.spec.ts` | should override cookie from Set-Cookie header |+| `FE-082` | `library/global-fetch-cookie.spec.ts` | should override cookie from Set-Cookie header even if it expired |+| `FE-083` | `library/global-fetch-cookie.spec.ts` | should export cookies to storage state |+| `FE-084` | `library/global-fetch-cookie.spec.ts` | should preserve origin storage on import/export of storage state |+| `FE-085` | `library/global-fetch-cookie.spec.ts` | should send cookies from storage state |+| `FE-086` | `library/global-fetch-cookie.spec.ts` | storage state should round-trip through file |+| `FE-087` | `library/global-fetch-cookie.spec.ts` | should work with empty storage state |+| `FE-088` | `library/browsercontext-fetch.spec.ts` | get should work @smoke |+| `FE-089` | `library/browsercontext-fetch.spec.ts` | fetch should work |+| `FE-090` | `library/browsercontext-fetch.spec.ts` | should return timing |+| `FE-091` | `library/browsercontext-fetch.spec.ts` | should return timing for https |+| `FE-092` | `library/browsercontext-fetch.spec.ts` | should throw on network error |+| `FE-093` | `library/browsercontext-fetch.spec.ts` | should throw on network error after redirect |+| `FE-094` | `library/browsercontext-fetch.spec.ts` | should throw on network error when sending body |+| `FE-095` | `library/browsercontext-fetch.spec.ts` | should throw on network error when sending body after redirect |+| `FE-096` | `library/browsercontext-fetch.spec.ts` | should add session cookies to request |+| `FE-097` | `library/browsercontext-fetch.spec.ts` | should filter cookies by domain |+| `FE-098` | `library/browsercontext-fetch.spec.ts` | {fetch, delete, get, head, patch, post, put} should support params passed as object *(7 copies)* |+| `FE-099` | `library/browsercontext-fetch.spec.ts` | {fetch, delete, get, head, patch, post, put} should support params passed as URLSearchParams *(7 copies)* |+| `FE-100` | `library/browsercontext-fetch.spec.ts` | {fetch, delete, get, head, patch, post, put} should support params passed as string *(7 copies)* |+| `FE-101` | `library/browsercontext-fetch.spec.ts` | {fetch, delete, get, head, patch, post, put} should append string and URLSearchParams params to the URL query *(7 copies)* |+| `FE-102` | `library/browsercontext-fetch.spec.ts` | {fetch, delete, get, head, patch, post, put} should support failOnStatusCode *(7 copies)* |+| `FE-103` | `library/browsercontext-fetch.spec.ts` | {fetchshould, deleteshould, getshould, headshould, patchshould, postshould, putshould} support ignoreHTTPSErrors option *(7 copies)* |+| `FE-104` | `library/browsercontext-fetch.spec.ts` | should not add context cookie if cookie header passed as a parameter |+| `FE-105` | `library/browsercontext-fetch.spec.ts` | should follow redirects |+| `FE-106` | `library/browsercontext-fetch.spec.ts` | should follow redirects correctly when Location header contains UTF-8 characters |+| `FE-107` | `library/browsercontext-fetch.spec.ts` | should add cookies from Set-Cookie header |+| `FE-108` | `library/browsercontext-fetch.spec.ts` | page.request.addCookies should add cookies to the browser context |+| `FE-109` | `library/browsercontext-fetch.spec.ts` | page.request.cookies should return browser context cookies |+| `FE-110` | `library/browsercontext-fetch.spec.ts` | page.request.clearCookies should clear browser context cookies |+| `FE-111` | `library/browsercontext-fetch.spec.ts` | should preserve cookie order from Set-Cookie header |+| `FE-112` | `library/browsercontext-fetch.spec.ts` | should support cookie with empty value |+| `FE-113` | `library/browsercontext-fetch.spec.ts` | should not lose body while handling Set-Cookie header |+| `FE-114` | `library/browsercontext-fetch.spec.ts` | should remove cookie with negative max-age |+| `FE-115` | `library/browsercontext-fetch.spec.ts` | should remove cookie with expires far in the past |+| `FE-116` | `library/browsercontext-fetch.spec.ts` | should handle cookies on redirects |+| `FE-117` | `library/browsercontext-fetch.spec.ts` | should return raw headers |+| `FE-118` | `library/browsercontext-fetch.spec.ts` | should work with http credentials |+| `FE-119` | `library/browsercontext-fetch.spec.ts` | should work with setHTTPCredentials |+| `FE-120` | `library/browsercontext-fetch.spec.ts` | should return error with wrong credentials |+| `FE-121` | `library/browsercontext-fetch.spec.ts` | should support multiple httpCredentials |+| `FE-122` | `library/browsercontext-fetch.spec.ts` | should support HTTPCredentials.send for newContext |+| `FE-123` | `library/browsercontext-fetch.spec.ts` | should support HTTPCredentials.send for browser.newPage |+| `FE-124` | `library/browsercontext-fetch.spec.ts` | delete should support post data |+| `FE-125` | `library/browsercontext-fetch.spec.ts` | get should support post data |+| `FE-126` | `library/browsercontext-fetch.spec.ts` | head should support post data |+| `FE-127` | `library/browsercontext-fetch.spec.ts` | patch should support post data |+| `FE-128` | `library/browsercontext-fetch.spec.ts` | post should support post data |+| `FE-129` | `library/browsercontext-fetch.spec.ts` | put should support post data |+| `FE-130` | `library/browsercontext-fetch.spec.ts` | should add default headers |+| `FE-131` | `library/browsercontext-fetch.spec.ts` | should send content-length |+| `FE-132` | `library/browsercontext-fetch.spec.ts` | should add default headers to redirects |+| `FE-133` | `library/browsercontext-fetch.spec.ts` | should allow to override default headers |+| `FE-134` | `library/browsercontext-fetch.spec.ts` | should propagate custom headers with redirects |+| `FE-135` | `library/browsercontext-fetch.spec.ts` | should propagate extra http headers with redirects |+| `FE-136` | `library/browsercontext-fetch.spec.ts` | should throw on invalid header value |+| `FE-137` | `library/browsercontext-fetch.spec.ts` | should throw on non-http(s) protocol |+| `FE-138` | `library/browsercontext-fetch.spec.ts` | should support https |+| `FE-139` | `library/browsercontext-fetch.spec.ts` | should inherit ignoreHTTPSErrors from context |+| `FE-140` | `library/browsercontext-fetch.spec.ts` | should resolve url relative to baseURL |+| `FE-141` | `library/browsercontext-fetch.spec.ts` | should support gzip compression |+| `FE-142` | `library/browsercontext-fetch.spec.ts` | should support case-insensitive content-encoding |+| `FE-143` | `library/browsercontext-fetch.spec.ts` | should throw informative error on corrupted gzip body |+| `FE-144` | `library/browsercontext-fetch.spec.ts` | should support brotli compression |+| `FE-145` | `library/browsercontext-fetch.spec.ts` | should throw informative error on corrupted brotli body |+| `FE-146` | `library/browsercontext-fetch.spec.ts` | should support deflate compression |+| `FE-147` | `library/browsercontext-fetch.spec.ts` | should throw informative error on corrupted deflate body |+| `FE-148` | `library/browsercontext-fetch.spec.ts` | should support timeout option |+| `FE-149` | `library/browsercontext-fetch.spec.ts` | should support a timeout of 0 |+| `FE-150` | `library/browsercontext-fetch.spec.ts` | should respect timeout after redirects |+| `FE-151` | `library/browsercontext-fetch.spec.ts` | should not hang on a brotli encoded Range request |+| `FE-152` | `library/browsercontext-fetch.spec.ts` | should dispose |+| `FE-153` | `library/browsercontext-fetch.spec.ts` | should dispose when context closes |+| `FE-154` | `library/browsercontext-fetch.spec.ts` | should override request parameters |+| `FE-155` | `library/browsercontext-fetch.spec.ts` | should support application/x-www-form-urlencoded |+| `FE-156` | `library/browsercontext-fetch.spec.ts` | should support application/x-www-form-urlencoded with param lists |+| `FE-157` | `library/browsercontext-fetch.spec.ts` | should encode to application/json by default |+| `FE-158` | `library/browsercontext-fetch.spec.ts` | should support multipart/form-data |+| `FE-159` | `library/browsercontext-fetch.spec.ts` | should escape quotes and newlines in multipart field and file names |+| `FE-160` | `library/browsercontext-fetch.spec.ts` | should support multipart/form-data with ReadStream values |+| `FE-161` | `library/browsercontext-fetch.spec.ts` | should support multipart/form-data and keep the order |+| `FE-162` | `library/browsercontext-fetch.spec.ts` | should support repeating names in multipart/form-data |+| `FE-163` | `library/browsercontext-fetch.spec.ts` | should serialize data to json regardless of content-type |+| `FE-164` | `library/browsercontext-fetch.spec.ts` | should throw nice error on unsupported data type |+| `FE-165` | `library/browsercontext-fetch.spec.ts` | context request should export same storage state as context |+| `FE-166` | `library/browsercontext-fetch.spec.ts` | should send secure cookie over http for localhost |+| `FE-167` | `library/browsercontext-fetch.spec.ts` | should accept bool and numeric params and filter out undefined |+| `FE-168` | `library/browsercontext-fetch.spec.ts` | should abort requests when browser context closes |+| `FE-169` | `library/browsercontext-fetch.spec.ts` | should work with connectOverCDP |+| `FE-170` | `library/browsercontext-fetch.spec.ts` | should support SameSite cookie attribute over https |+| `FE-171` | `library/browsercontext-fetch.spec.ts` | should set domain=localhost cookie |+| `FE-172` | `library/browsercontext-fetch.spec.ts` | fetch should not throw on long set-cookie value |+| `FE-173` | `library/browsercontext-fetch.spec.ts` | should support set-cookie with SameSite and without Secure attribute over HTTP |+| `FE-174` | `library/browsercontext-fetch.spec.ts` | should update host header on redirect |+| `FE-175` | `library/browsercontext-fetch.spec.ts` | should not work after dispose |+| `FE-176` | `library/browsercontext-fetch.spec.ts` | should not work after context dispose |+| `FE-177` | `library/browsercontext-fetch.spec.ts` | should retry on ECONNRESET |+| `FE-178` | `library/browsercontext-fetch.spec.ts` | should retry ECONNRESET on compressed response |+| `FE-179` | `library/browsercontext-fetch.spec.ts` | should retry ECONNRESET mid-stream during gzip decompression |+| `FE-180` | `library/browsercontext-fetch-algorithms.spec.ts` | algorithms › {gzip, deflate, br} decompression › should support decompression *(3 copies)* |+| `FE-181` | `library/browsercontext-fetch-algorithms.spec.ts` | algorithms › {gzip, deflate, br} decompression › should not fail if response content-length header is missing {(gzip), (deflate), (br)} *(3 copies)* |+| `FE-182` | `library/browsercontext-fetch-algorithms.spec.ts` | algorithms › {gzip, deflate, br} decompression › should not fail with chunked responses (without Content-Length header) *(3 copies)* |+| `FE-183` | `library/browsercontext-fetch-algorithms.spec.ts` | algorithms › {gzip, deflate, br} decompression › should not fail with an empty response without content-length header (Z\_BUF\_ERROR) *(3 copies)* |+| `FE-184` | `library/browsercontext-fetch-algorithms.spec.ts` | algorithms › {gzip, deflate, br} decompression › should not fail with an empty response with content-length header (Z\_BUF\_ERROR) *(3 copies)* |+| `FE-185` | `library/browsercontext-fetch-happy-eyeballs.spec.ts` | get should work |+| `FE-186` | `library/browsercontext-fetch-happy-eyeballs.spec.ts` | get should work on request fixture |+| `FE-187` | `library/browsercontext-fetch-happy-eyeballs.spec.ts` | https post should work with ignoreHTTPSErrors option |+| `FE-188` | `library/browsercontext-fetch-happy-eyeballs.spec.ts` | should work with ip6 and port as the host |++### FF — Firefox++| ID | File | Title |+|---|---|---|+| `FF-001` | `library/firefox/launcher.spec.ts` | should pass firefox user preferences |+| `FF-002` | `library/firefox/launcher.spec.ts` | should pass firefox user preferences in persistent |+| `FF-003` | `library/firefox/launcher.spec.ts` | should support custom firefox policies |+| `FF-004` | `library/firefox/launcher.spec.ts` | should resize viewport with fractional device scale factor |+| `FF-005` | `page/firefox-network-response.spec.ts` | should preserve original response header fields for {200, 302} responses *(2 copies)* |+| `FF-006` | `page/firefox-network-response.spec.ts` | should preserve synthesized response header fields |+| `FF-007` | `page/firefox-network-response.spec.ts` | should report current effective fields after cache revalidation |+| `FF-008` | `page/firefox-network-response.spec.ts` | should report a standalone 304 response without waiting for a cache merge |++### FI — Fill++| ID | File | Title |+|---|---|---|+| `FI-001` | `page/page-fill.spec.ts` | should fill textarea @smoke |+| `FI-002` | `page/page-fill.spec.ts` | should fill input |+| `FI-003` | `page/page-fill.spec.ts` | should throw on unsupported inputs |+| `FI-004` | `page/page-fill.spec.ts` | should fill different input types |+| `FI-005` | `page/page-fill.spec.ts` | should fill range input |+| `FI-006` | `page/page-fill.spec.ts` | should fill color input |+| `FI-007` | `page/page-fill.spec.ts` | should fill color input case insensitive |+| `FI-008` | `page/page-fill.spec.ts` | should fill date input after clicking |+| `FI-009` | `page/page-fill.spec.ts` | input event.composed should be true and cross shadow dom boundary - {color, date, time, datetime-local, month, range, week} *(7 copies)* |+| `FI-010` | `page/page-fill.spec.ts` | should fill time input |+| `FI-011` | `page/page-fill.spec.ts` | should fill month input |+| `FI-012` | `page/page-fill.spec.ts` | should fill week input |+| `FI-013` | `page/page-fill.spec.ts` | should fill datetime-local input |+| `FI-014` | `page/page-fill.spec.ts` | should fill contenteditable |+| `FI-015` | `page/page-fill.spec.ts` | should fill contenteditable with new lines |+| `FI-016` | `page/page-fill.spec.ts` | should not double-fill in contenteditable with beforeinput handler in Firefox |+| `FI-017` | `page/page-fill.spec.ts` | should fill elements with existing value and selection |+| `FI-018` | `page/page-fill.spec.ts` | should throw nice error without injected script stack when element is not an \<input\> |+| `FI-019` | `page/page-fill.spec.ts` | should throw if passed a non-string value |+| `FI-020` | `page/page-fill.spec.ts` | should retry on disabled element |+| `FI-021` | `page/page-fill.spec.ts` | should retry on readonly element |+| `FI-022` | `page/page-fill.spec.ts` | should retry on invisible element |+| `FI-023` | `page/page-fill.spec.ts` | should be able to fill the body |+| `FI-024` | `page/page-fill.spec.ts` | should fill fixed position input |+| `FI-025` | `page/page-fill.spec.ts` | should be able to fill when focus is in the wrong frame |+| `FI-026` | `page/page-fill.spec.ts` | should be able to fill the input\[type=number\] |+| `FI-027` | `page/page-fill.spec.ts` | should be able to fill exponent into the input\[type=number\] |+| `FI-028` | `page/page-fill.spec.ts` | should be able to fill input\[type=number\] with empty string |+| `FI-029` | `page/page-fill.spec.ts` | should not be able to fill text into the input\[type=number\] |+| `FI-030` | `page/page-fill.spec.ts` | should be able to clear using fill() |+| `FI-031` | `page/page-fill.spec.ts` | should not throw when fill causes navigation |+| `FI-032` | `page/page-fill.spec.ts` | fill back to back |+| `FI-033` | `page/page-fill.spec.ts` | should fill contenteditable with focus handler that collapses selection |+| `FI-034` | `page/page-fill.spec.ts` | should retry on inert element |+| `FI-035` | `page/page-fill.spec.ts` | should retry on element outside of a modal dialog |+| `FI-036` | `page/page-fill.spec.ts` | should fail with a nice error on inert element |++### FO — Focus++| ID | File | Title |+|---|---|---|+| `FO-001` | `page/page-focus.spec.ts` | should work @smoke |+| `FO-002` | `page/page-focus.spec.ts` | should emit focus event |+| `FO-003` | `page/page-focus.spec.ts` | should emit blur event |+| `FO-004` | `page/page-focus.spec.ts` | should traverse focus |+| `FO-005` | `page/page-focus.spec.ts` | should traverse focus in all directions |+| `FO-006` | `page/page-focus.spec.ts` | should traverse only form elements |+| `FO-007` | `page/page-focus.spec.ts` | clicking checkbox should activate it |+| `FO-008` | `page/page-focus.spec.ts` | tab should cycle between single input and browser |+| `FO-009` | `page/page-focus.spec.ts` | tab should cycle between document elements and browser |+| `FO-010` | `page/page-focus.spec.ts` | keeps focus on element when attempting to focus a non-focusable element |+| `FO-011` | `page/page-focus.spec.ts` | should move focus from an iframe to its parent |+| `FO-012` | `page/page-focus.spec.ts` | should tab from an iframe to its parent |++### FR — Frame++| ID | File | Title |+|---|---|---|+| `FR-001` | `page/frame-evaluate.spec.ts` | should have different execution contexts |+| `FR-002` | `page/frame-evaluate.spec.ts` | should have correct execution contexts @smoke |+| `FR-003` | `page/frame-evaluate.spec.ts` | should dispose context on navigation |+| `FR-004` | `page/frame-evaluate.spec.ts` | should dispose context on cross-origin navigation |+| `FR-005` | `page/frame-evaluate.spec.ts` | should execute after cross-site navigation |+| `FR-006` | `page/frame-evaluate.spec.ts` | should not allow cross-frame js handles |+| `FR-007` | `page/frame-evaluate.spec.ts` | should allow cross-frame element handles |+| `FR-008` | `page/frame-evaluate.spec.ts` | should not allow cross-frame element handles when frames do not script each other |+| `FR-009` | `page/frame-evaluate.spec.ts` | should throw for detached frames |+| `FR-010` | `page/frame-evaluate.spec.ts` | should be isolated between frames |+| `FR-011` | `page/frame-evaluate.spec.ts` | should work in iframes that failed initial navigation |+| `FR-012` | `page/frame-evaluate.spec.ts` | should work in iframes that interrupted initial javascript url navigation |+| `FR-013` | `page/frame-evaluate.spec.ts` | evaluateHandle should work |+| `FR-014` | `page/frame-frame-element.spec.ts` | should work @smoke |+| `FR-015` | `page/frame-frame-element.spec.ts` | should work with contentFrame |+| `FR-016` | `page/frame-frame-element.spec.ts` | should work with frameset |+| `FR-017` | `page/frame-frame-element.spec.ts` | should throw when detached |+| `FR-018` | `page/frame-frame-element.spec.ts` | should work inside closed shadow root |+| `FR-019` | `page/frame-frame-element.spec.ts` | should work inside declarative shadow root |+| `FR-020` | `page/frame-goto.spec.ts` | should navigate subframes @smoke |+| `FR-021` | `page/frame-goto.spec.ts` | should reject when frame detaches |+| `FR-022` | `page/frame-goto.spec.ts` | should continue after client redirect |+| `FR-023` | `page/frame-goto.spec.ts` | should return matching responses |+| `FR-024` | `page/frame-hierarchy.spec.ts` | should handle nested frames @smoke |+| `FR-025` | `page/frame-hierarchy.spec.ts` | should send events when frames are manipulated dynamically |+| `FR-026` | `page/frame-hierarchy.spec.ts` | should send "framenavigated" when navigating on anchor URLs |+| `FR-027` | `page/frame-hierarchy.spec.ts` | should persist mainFrame on cross-process navigation |+| `FR-028` | `page/frame-hierarchy.spec.ts` | should not send attach/detach events for main frame |+| `FR-029` | `page/frame-hierarchy.spec.ts` | should detach child frames on navigation |+| `FR-030` | `page/frame-hierarchy.spec.ts` | should support framesets |+| `FR-031` | `page/frame-hierarchy.spec.ts` | should report frame from-inside shadow DOM |+| `FR-032` | `page/frame-hierarchy.spec.ts` | should report frame.name() |+| `FR-033` | `page/frame-hierarchy.spec.ts` | should report frame.parent() |+| `FR-034` | `page/frame-hierarchy.spec.ts` | should report different frame instance when frame re-attaches |+| `FR-035` | `page/frame-hierarchy.spec.ts` | should refuse to display x-frame-options:deny iframe |+| `FR-036` | `page/frame-hierarchy.spec.ts` | should return frame.page() |++### GE — Geolocation++| ID | File | Title |+|---|---|---|+| `GE-001` | `library/geolocation.spec.ts` | should work @smoke |+| `GE-002` | `library/geolocation.spec.ts` | should throw when invalid longitude |+| `GE-003` | `library/geolocation.spec.ts` | should isolate contexts |+| `GE-004` | `library/geolocation.spec.ts` | should throw with missing latitude |+| `GE-005` | `library/geolocation.spec.ts` | should not modify passed default options object |+| `GE-006` | `library/geolocation.spec.ts` | should throw with missing longitude in default options |+| `GE-007` | `library/geolocation.spec.ts` | should use context options |+| `GE-008` | `library/geolocation.spec.ts` | watchPosition should be notified |+| `GE-009` | `library/geolocation.spec.ts` | should use context options for popup |++### GN — Locator and selector generator++| ID | File | Title |+|---|---|---|+| `GN-001` | `library/locator-generator.spec.ts` | reverse engineer locators |+| `GN-002` | `library/locator-generator.spec.ts` | reverse engineer getByRole |+| `GN-003` | `library/locator-generator.spec.ts` | refuses to translate internal:role with conflicting name/description exactness |+| `GN-004` | `library/locator-generator.spec.ts` | reverse engineer internal:role with regex and string name/description |+| `GN-005` | `library/locator-generator.spec.ts` | reverse engineer ignore-case locators |+| `GN-006` | `library/locator-generator.spec.ts` | reverse engineer ordered locators |+| `GN-007` | `library/locator-generator.spec.ts` | reverse engineer locators with regex |+| `GN-008` | `library/locator-generator.spec.ts` | reverse engineer hasText |+| `GN-009` | `library/locator-generator.spec.ts` | reverse engineer hasNotText |+| `GN-010` | `library/locator-generator.spec.ts` | reverse engineer visible |+| `GN-011` | `library/locator-generator.spec.ts` | reverse engineer has |+| `GN-012` | `library/locator-generator.spec.ts` | reverse engineer hasNot |+| `GN-013` | `library/locator-generator.spec.ts` | reverse engineer has + hasText |+| `GN-014` | `library/locator-generator.spec.ts` | reverse engineer frameLocator |+| `GN-015` | `library/locator-generator.spec.ts` | reverse engineer frameLocator without a selector |+| `GN-016` | `library/locator-generator.spec.ts` | generate multiple locators |+| `GN-017` | `library/locator-generator.spec.ts` | reverse engineer internal:has-text locators |+| `GN-018` | `library/locator-generator.spec.ts` | asLocator internal:and |+| `GN-019` | `library/locator-generator.spec.ts` | asLocator internal:or |+| `GN-020` | `library/locator-generator.spec.ts` | asLocator internal:chain |+| `GN-021` | `library/locator-generator.spec.ts` | reverse engineer nested locators |+| `GN-022` | `library/locator-generator.spec.ts` | asLocator xpath |+| `GN-023` | `library/locator-generator.spec.ts` | reverse engineer regex flags |+| `GN-024` | `library/locator-generator.spec.ts` | should not oom in locator parser |+| `GN-025` | `library/locator-generator.spec.ts` | asLocatorDescription invalid input |+| `GN-026` | `library/locator-generator.spec.ts` | resolveSelector returns locatorCode for sdkLanguage |+| `GN-027` | `library/locator-generator.spec.ts` | asLocatorDescription via LocalUtils |+| `GN-028` | `library/selector-generator.spec.ts` | selector generator › should prefer button over inner span |+| `GN-029` | `library/selector-generator.spec.ts` | selector generator › should prefer role=button over inner span |+| `GN-030` | `library/selector-generator.spec.ts` | selector generator › should not prefer zero-sized button over inner span |+| `GN-031` | `library/selector-generator.spec.ts` | selector generator › should generate text and normalize whitespace |+| `GN-032` | `library/selector-generator.spec.ts` | selector generator › should not escape spaces inside named attr selectors |+| `GN-033` | `library/selector-generator.spec.ts` | selector generator › should generate text for \<input type=button\> |+| `GN-034` | `library/selector-generator.spec.ts` | selector generator › should trim text |+| `GN-035` | `library/selector-generator.spec.ts` | selector generator › should try to improve role name |+| `GN-036` | `library/selector-generator.spec.ts` | selector generator › should use description when name is not unique |+| `GN-037` | `library/selector-generator.spec.ts` | selector generator › should not use description when name is unique |+| `GN-038` | `library/selector-generator.spec.ts` | selector generator › should use description from aria-describedby |+| `GN-039` | `library/selector-generator.spec.ts` | selector generator › should fall back to nth when name and description are both not unique |+| `GN-040` | `library/selector-generator.spec.ts` | selector generator › should use consistent exactness for name and description |+| `GN-041` | `library/selector-generator.spec.ts` | selector generator › should use description when role has no name |+| `GN-042` | `library/selector-generator.spec.ts` | selector generator › should try to improve text |+| `GN-043` | `library/selector-generator.spec.ts` | selector generator › should try to improve text by shortening |+| `GN-044` | `library/selector-generator.spec.ts` | selector generator › should try to improve label text by shortening |+| `GN-045` | `library/selector-generator.spec.ts` | selector generator › should not improve guid text |+| `GN-046` | `library/selector-generator.spec.ts` | selector generator › should not escape text with \>\> |+| `GN-047` | `library/selector-generator.spec.ts` | selector generator › should escape text with quote |+| `GN-048` | `library/selector-generator.spec.ts` | selector generator › should escape text with slash |+| `GN-049` | `library/selector-generator.spec.ts` | selector generator › should not use text for select |+| `GN-050` | `library/selector-generator.spec.ts` | selector generator › should use ordinal for identical nodes |+| `GN-051` | `library/selector-generator.spec.ts` | selector generator › should prefer data-testid |+| `GN-052` | `library/selector-generator.spec.ts` | selector generator › should use data-testid in strict errors |+| `GN-053` | `library/selector-generator.spec.ts` | selector generator › should handle first non-unique data-testid |+| `GN-054` | `library/selector-generator.spec.ts` | selector generator › should handle second non-unique data-testid |+| `GN-055` | `library/selector-generator.spec.ts` | selector generator › should use readable id |+| `GN-056` | `library/selector-generator.spec.ts` | selector generator › should not use generated id |+| `GN-057` | `library/selector-generator.spec.ts` | selector generator › should use internal:has-text |+| `GN-058` | `library/selector-generator.spec.ts` | selector generator › should use internal:has-text with regexp |+| `GN-059` | `library/selector-generator.spec.ts` | selector generator › should use internal:has-text with regexp with a quote |+| `GN-060` | `library/selector-generator.spec.ts` | selector generator › should chain text after parent |+| `GN-061` | `library/selector-generator.spec.ts` | selector generator › should use parent text |+| `GN-062` | `library/selector-generator.spec.ts` | selector generator › should separate selectors by \>\> |+| `GN-063` | `library/selector-generator.spec.ts` | selector generator › should trim long text |+| `GN-064` | `library/selector-generator.spec.ts` | selector generator › should use nested ordinals |+| `GN-065` | `library/selector-generator.spec.ts` | selector generator › should prefer class to ordinal |+| `GN-066` | `library/selector-generator.spec.ts` | selector generator › should properly join child selectors under nested ordinals |+| `GN-067` | `library/selector-generator.spec.ts` | selector generator › should not use input\[value\] |+| `GN-068` | `library/selector-generator.spec.ts` | selector generator › should prioritize attributes correctly › role |+| `GN-069` | `library/selector-generator.spec.ts` | selector generator › should prioritize attributes correctly › placeholder |+| `GN-070` | `library/selector-generator.spec.ts` | selector generator › should prioritize attributes correctly › name |+| `GN-071` | `library/selector-generator.spec.ts` | selector generator › should prioritize attributes correctly › type |+| `GN-072` | `library/selector-generator.spec.ts` | selector generator › should find text in shadow dom |+| `GN-073` | `library/selector-generator.spec.ts` | selector generator › should match in shadow dom |+| `GN-074` | `library/selector-generator.spec.ts` | selector generator › should match in deep shadow dom |+| `GN-075` | `library/selector-generator.spec.ts` | selector generator › should work in dynamic iframes without navigation |+| `GN-076` | `library/selector-generator.spec.ts` | selector generator › should use the name attributes for elements that can have it |+| `GN-077` | `library/selector-generator.spec.ts` | selector generator › should work with tricky attributes |+| `GN-078` | `library/selector-generator.spec.ts` | selector generator › should work without CSS.escape |+| `GN-079` | `library/selector-generator.spec.ts` | selector generator › should not over-escape for CSS syntax |+| `GN-080` | `library/selector-generator.spec.ts` | selector generator › should ignore empty aria-label for candidate consideration |+| `GN-081` | `library/selector-generator.spec.ts` | selector generator › should accept valid aria-label for candidate consideration |+| `GN-082` | `library/selector-generator.spec.ts` | selector generator › should generate title selector |+| `GN-083` | `library/selector-generator.spec.ts` | selector generator › should ignore empty role for candidate consideration |+| `GN-084` | `library/selector-generator.spec.ts` | selector generator › should not accept invalid role for candidate consideration |+| `GN-085` | `library/selector-generator.spec.ts` | selector generator › should ignore empty data-test-id for candidate consideration |+| `GN-086` | `library/selector-generator.spec.ts` | selector generator › should accept valid data-test-id for candidate consideration |+| `GN-087` | `library/selector-generator.spec.ts` | selector generator › should generate label selector |+| `GN-088` | `library/selector-generator.spec.ts` | selector generator › should prefer role other input\[type\] |+| `GN-089` | `library/selector-generator.spec.ts` | selector generator › should generate exact text when necessary |+| `GN-090` | `library/selector-generator.spec.ts` | selector generator › should generate exact title when necessary |+| `GN-091` | `library/selector-generator.spec.ts` | selector generator › should generate exact placeholder when necessary |+| `GN-092` | `library/selector-generator.spec.ts` | selector generator › should generate exact role when necessary |+| `GN-093` | `library/selector-generator.spec.ts` | selector generator › should generate exact label when necessary |+| `GN-094` | `library/selector-generator.spec.ts` | selector generator › should generate relative selector |+| `GN-095` | `library/selector-generator.spec.ts` | selector generator › should generate noText: no text engine |+| `GN-096` | `library/selector-generator.spec.ts` | selector generator › should generate noText: no name from content |+| `GN-097` | `library/selector-generator.spec.ts` | selector generator › should generate noText: name from aria-label |+| `GN-098` | `library/selector-generator.spec.ts` | selector generator › should generate noText: name from external aria-labelledby |+| `GN-099` | `library/selector-generator.spec.ts` | selector generator › should generate noText: ignore aria-labelledby pointing inside the element |+| `GN-100` | `library/selector-generator.spec.ts` | selector generator › should generate noText: contenteditable heading |+| `GN-101` | `library/selector-generator.spec.ts` | selector generator › should generate noText: description from external aria-describedby |+| `GN-102` | `library/selector-generator.spec.ts` | selector generator › should generate noText: ignore aria-describedby pointing inside the element |+| `GN-103` | `library/selector-generator.spec.ts` | selector generator › should prefer role with hasText to css with hasText |+| `GN-104` | `library/selector-generator.spec.ts` | selector generator › should not use icon fonts aria name |++### HA — HAR++| ID | File | Title |+|---|---|---|+| `HA-001` | `library/har.spec.ts` | should have version and creator |+| `HA-002` | `library/har.spec.ts` | should have browser |+| `HA-003` | `library/har.spec.ts` | should have pages |+| `HA-004` | `library/har.spec.ts` | should have pages in persistent context |+| `HA-005` | `library/har.spec.ts` | should include request |+| `HA-006` | `library/har.spec.ts` | should populate entry startedDateTime from the browser |+| `HA-007` | `library/har.spec.ts` | should include response |+| `HA-008` | `library/har.spec.ts` | should include redirectURL |+| `HA-009` | `library/har.spec.ts` | should include query params |+| `HA-010` | `library/har.spec.ts` | should include postData |+| `HA-011` | `library/har.spec.ts` | should include binary postData |+| `HA-012` | `library/har.spec.ts` | should include form params |+| `HA-013` | `library/har.spec.ts` | should include cookies |+| `HA-014` | `library/har.spec.ts` | should include set-cookies |+| `HA-015` | `library/har.spec.ts` | should include set-cookies without equals sign as nameless |+| `HA-016` | `library/har.spec.ts` | should include set-cookies with lowercase attributes |+| `HA-017` | `library/har.spec.ts` | should skip invalid Expires |+| `HA-018` | `library/har.spec.ts` | should include set-cookies with comma |+| `HA-019` | `library/har.spec.ts` | should include secure set-cookies |+| `HA-020` | `library/har.spec.ts` | should record request overrides |+| `HA-021` | `library/har.spec.ts` | should include content @smoke |+| `HA-022` | `library/har.spec.ts` | should use attach mode for zip extension |+| `HA-023` | `library/har.spec.ts` | should omit content |+| `HA-024` | `library/har.spec.ts` | should omit content legacy |+| `HA-025` | `library/har.spec.ts` | should attach content |+| `HA-026` | `library/har.spec.ts` | should filter by glob |+| `HA-027` | `library/har.spec.ts` | should filter by regexp |+| `HA-028` | `library/har.spec.ts` | should include sizes |+| `HA-029` | `library/har.spec.ts` | should work with gzip compression |+| `HA-030` | `library/har.spec.ts` | should calculate time |+| `HA-031` | `library/har.spec.ts` | should return receive time |+| `HA-032` | `library/har.spec.ts` | should report the correct \_transferSize with PNG files |+| `HA-033` | `library/har.spec.ts` | should have -1 \_transferSize when its a failed request |+| `HA-034` | `library/har.spec.ts` | should record failed request headers |+| `HA-035` | `library/har.spec.ts` | should record failed request overrides |+| `HA-036` | `library/har.spec.ts` | should report the correct request body size |+| `HA-037` | `library/har.spec.ts` | should report the correct request body size when the bodySize is 0 |+| `HA-038` | `library/har.spec.ts` | should report the correct response body size when the bodySize is 0 |+| `HA-039` | `library/har.spec.ts` | should have popup requests |+| `HA-040` | `library/har.spec.ts` | should not contain internal pages |+| `HA-041` | `library/har.spec.ts` | should have connection details |+| `HA-042` | `library/har.spec.ts` | should have security details |+| `HA-043` | `library/har.spec.ts` | should have connection details for redirects |+| `HA-044` | `library/har.spec.ts` | should have connection details for failed requests |+| `HA-045` | `library/har.spec.ts` | should return server address directly from response |+| `HA-046` | `library/har.spec.ts` | should return security details directly from response |+| `HA-047` | `library/har.spec.ts` | should contain http2 for http2 requests |+| `HA-048` | `library/har.spec.ts` | should filter favicon and favicon redirects |+| `HA-049` | `library/har.spec.ts` | should have different hars for concurrent contexts |+| `HA-050` | `library/har.spec.ts` | should exclude API request |+| `HA-051` | `library/har.spec.ts` | should correctly record API request cookies with equals sign in value |+| `HA-052` | `library/har.spec.ts` | should record nameless API request cookies |+| `HA-053` | `library/har.spec.ts` | should respect minimal mode for API Requests |+| `HA-054` | `library/har.spec.ts` | should include redirects from API request |+| `HA-055` | `library/har.spec.ts` | should not hang on resources served from cache |+| `HA-056` | `library/har.spec.ts` | should not hang on slow chunked response |+| `HA-057` | `library/har.spec.ts` | should close the context when saving the har fails |+| `HA-058` | `library/har.spec.ts` | should support HAR larger than 512MB |+| `HA-059` | `library/har.spec.ts` | should record resource type |+| `HA-060` | `library/har.spec.ts` | tracing.startHar › should record a HAR with options |+| `HA-061` | `library/har.spec.ts` | tracing.startHar › should record a HAR for a context APIRequestContext |+| `HA-062` | `library/har.spec.ts` | tracing.startHar › should include pages |+| `HA-063` | `library/har.spec.ts` | tracing.startHar › should record a zipped HAR for APIRequestContext |+| `HA-064` | `library/har.spec.ts` | tracing.startHar › should record correct cookie expires for APIRequestContext |+| `HA-065` | `library/har.spec.ts` | tracing.startHar › should record mixed-case request content-type for APIRequestContext |+| `HA-066` | `library/har.spec.ts` | tracing.startHar › should record a HAR with resourcesDir |+| `HA-067` | `library/har.spec.ts` | tracing.startHar › should reject resourcesDir together with a .zip har file |+| `HA-068` | `library/browsercontext-har.spec.ts` | should context.routeFromHAR, matching the method and following redirects |+| `HA-069` | `library/browsercontext-har.spec.ts` | should page.routeFromHAR, matching the method and following redirects |+| `HA-070` | `library/browsercontext-har.spec.ts` | fallback:continue should continue when not found in har |+| `HA-071` | `library/browsercontext-har.spec.ts` | by default should abort requests not found in har |+| `HA-072` | `library/browsercontext-har.spec.ts` | fallback:continue should continue requests on bad har |+| `HA-073` | `library/browsercontext-har.spec.ts` | should only handle requests matching url filter |+| `HA-074` | `library/browsercontext-har.spec.ts` | should only context.routeFromHAR requests matching url filter |+| `HA-075` | `library/browsercontext-har.spec.ts` | should only page.routeFromHAR requests matching url filter |+| `HA-076` | `library/browsercontext-har.spec.ts` | should apply overrides before routing from har |+| `HA-077` | `library/browsercontext-har.spec.ts` | should support regex filter |+| `HA-078` | `library/browsercontext-har.spec.ts` | newPage should fulfill from har, matching the method and following redirects |+| `HA-079` | `library/browsercontext-har.spec.ts` | should change document URL after redirected navigation |+| `HA-080` | `library/browsercontext-har.spec.ts` | should change document URL after redirected navigation on click |+| `HA-081` | `library/browsercontext-har.spec.ts` | should goBack to redirected navigation |+| `HA-082` | `library/browsercontext-har.spec.ts` | should goForward to redirected navigation |+| `HA-083` | `library/browsercontext-har.spec.ts` | should reload redirected navigation |+| `HA-084` | `library/browsercontext-har.spec.ts` | should fulfill from har with content in a file |+| `HA-085` | `library/browsercontext-har.spec.ts` | should round-trip har.zip |+| `HA-086` | `library/browsercontext-har.spec.ts` | should produce extracted zip |+| `HA-087` | `library/browsercontext-har.spec.ts` | should round-trip extracted har.zip |+| `HA-088` | `library/browsercontext-har.spec.ts` | should round-trip har with postData |+| `HA-089` | `library/browsercontext-har.spec.ts` | should record overridden requests to har |+| `HA-090` | `library/browsercontext-har.spec.ts` | should disambiguate by header |+| `HA-091` | `library/browsercontext-har.spec.ts` | should update har.zip for context |+| `HA-092` | `library/browsercontext-har.spec.ts` | should ignore boundary when matching multipart/form-data body |+| `HA-093` | `library/browsercontext-har.spec.ts` | should record single set-cookie headers |+| `HA-094` | `library/browsercontext-har.spec.ts` | should record multiple set-cookie headers |+| `HA-095` | `library/browsercontext-har.spec.ts` | should update har.zip for page |+| `HA-096` | `library/browsercontext-har.spec.ts` | should update har.zip for page with different options |+| `HA-097` | `library/browsercontext-har.spec.ts` | should update extracted har.zip for page |+| `HA-098` | `library/browsercontext-har.spec.ts` | page.unrouteAll should stop page.routeFromHAR |+| `HA-099` | `library/browsercontext-har.spec.ts` | context.unrouteAll should stop context.routeFromHAR |+| `HA-100` | `library/browsercontext-har.spec.ts` | should ignore aborted requests |+| `HA-101` | `library/har-websocket.spec.ts` | should only have one websocket entry |+| `HA-102` | `library/har-websocket.spec.ts` | should include websocket handshake headers and status |+| `HA-103` | `library/har-websocket.spec.ts` | should embed websocket messages |+| `HA-104` | `library/har-websocket.spec.ts` | should attach websocket messages |+| `HA-105` | `library/har-websocket.spec.ts` | should attach websocket messages for a still open websocket after stopping |+| `HA-106` | `library/har-websocket.spec.ts` | should omit websocket messages |+| `HA-107` | `library/har-websocket.spec.ts` | should record websocket connection failure |+| `HA-108` | `library/har-websocket.spec.ts` | should record websocket handshake failure |+| `HA-109` | `library/har-websocket.spec.ts` | should still capture websocket when route passes messages through |+| `HA-110` | `library/har-websocket.spec.ts` | should still allow routeWebSocket to fully mock the connection when capturing HAR |+| `HA-111` | `library/har-websocket.spec.ts` | should still allow routeWebSocket to modify messages when capturing HAR |+| `HA-112` | `library/har-websocket.spec.ts` | should respect PLAYWRIGHT\_HAR\_NO\_WEBSOCKET\_FRAMES |++### HE — Headful++| ID | File | Title |+|---|---|---|+| `HE-001` | `library/headful.spec.ts` | should have default url when launching browser @smoke |+| `HE-002` | `library/headful.spec.ts` | should close browser with beforeunload page |+| `HE-003` | `library/headful.spec.ts` | should close browsercontext with pending beforeunload dialog |+| `HE-004` | `library/headful.spec.ts` | should not crash when creating second context |+| `HE-005` | `library/headful.spec.ts` | should click when viewport size is larger than screen |+| `HE-006` | `library/headful.spec.ts` | should dispatch click events to oversized viewports |+| `HE-007` | `library/headful.spec.ts` | should click background tab |+| `HE-008` | `library/headful.spec.ts` | should close browser after context menu was triggered |+| `HE-009` | `library/headful.spec.ts` | should(not) block third party cookies |+| `HE-010` | `library/headful.spec.ts` | should not block third party SameSite=None cookies |+| `HE-011` | `library/headful.spec.ts` | should not override viewport size when passed null |+| `HE-012` | `library/headful.spec.ts` | Page.bringToFront should work |+| `HE-013` | `library/headful.spec.ts` | should click in OOPIF |+| `HE-014` | `library/headful.spec.ts` | should click bottom row w/ infobar in OOPIF |+| `HE-015` | `library/headful.spec.ts` | headless and headful should use same default fonts |+| `HE-016` | `library/headful.spec.ts` | should have the same hyphen rendering on headless and headed |++### HT — Hit target++| ID | File | Title |+|---|---|---|+| `HT-001` | `library/hit-target.spec.ts` | should block all events when hit target is wrong |+| `HT-002` | `library/hit-target.spec.ts` | should block click when mousedown fails |+| `HT-003` | `library/hit-target.spec.ts` | should click when element detaches in mousedown |+| `HT-004` | `library/hit-target.spec.ts` | should block all events when hit target is wrong and element detaches |+| `HT-005` | `library/hit-target.spec.ts` | should not block programmatic events |+| `HT-006` | `library/hit-target.spec.ts` | should click the button again after document.write |+| `HT-007` | `library/hit-target.spec.ts` | should work with mui select |+| `HT-008` | `library/hit-target.spec.ts` | should work with drag and drop that moves the element under cursor |+| `HT-009` | `library/hit-target.spec.ts` | should work with block inside inline |+| `HT-010` | `library/hit-target.spec.ts` | should work with block-block-block inside inline-inline |+| `HT-011` | `library/hit-target.spec.ts` | should work with block inside inline in shadow dom |+| `HT-012` | `library/hit-target.spec.ts` | should not click iframe overlaying the target |+| `HT-013` | `library/hit-target.spec.ts` | should not click an element overlaying iframe with the target |+| `HT-014` | `library/hit-target.spec.ts` | should click into frame inside closed shadow root |+| `HT-015` | `library/hit-target.spec.ts` | should click an element inside closed shadow root |+| `HT-016` | `library/hit-target.spec.ts` | should detect overlay from another shadow root |+| `HT-017` | `library/hit-target.spec.ts` | should detect overlaid element in a transformed iframe |+| `HT-018` | `library/hit-target.spec.ts` | should click in iframe with padding |+| `HT-019` | `library/hit-target.spec.ts` | should click in iframe with padding 2 |+| `HT-020` | `library/hit-target.spec.ts` | should click in custom element |+| `HT-021` | `library/hit-target.spec.ts` | should click in nested custom elements |+| `HT-022` | `library/hit-target.spec.ts` | should click an element inside nested closed shadow roots |++### IF — Input files++| ID | File | Title |+|---|---|---|+| `IF-001` | `page/page-set-input-files.spec.ts` | should upload the file |+| `IF-002` | `page/page-set-input-files.spec.ts` | should upload a folder |+| `IF-003` | `page/page-set-input-files.spec.ts` | should upload a folder via label |+| `IF-004` | `page/page-set-input-files.spec.ts` | should upload a folder and throw for multiple directories |+| `IF-005` | `page/page-set-input-files.spec.ts` | should throw if a directory and files are passed |+| `IF-006` | `page/page-set-input-files.spec.ts` | should throw when uploading a folder in a normal file upload input |+| `IF-007` | `page/page-set-input-files.spec.ts` | should throw when uploading a file in a directory upload input |+| `IF-008` | `page/page-set-input-files.spec.ts` | should upload a file after popup |+| `IF-009` | `page/page-set-input-files.spec.ts` | should upload large file |+| `IF-010` | `page/page-set-input-files.spec.ts` | should throw an error if the file does not exist |+| `IF-011` | `page/page-set-input-files.spec.ts` | should upload large file with relative path |+| `IF-012` | `page/page-set-input-files.spec.ts` | should upload the file with spaces in name |+| `IF-013` | `page/page-set-input-files.spec.ts` | should work @smoke |+| `IF-014` | `page/page-set-input-files.spec.ts` | should set from memory |+| `IF-015` | `page/page-set-input-files.spec.ts` | should work with CSP |+| `IF-016` | `page/page-set-input-files.spec.ts` | should detect mime type |+| `IF-017` | `page/page-set-input-files.spec.ts` | should not trim big uploaded files |+| `IF-018` | `page/page-set-input-files.spec.ts` | should emit input and change events |+| `IF-019` | `page/page-set-input-files.spec.ts` | input event.composed should be true and cross shadow dom boundary |+| `IF-020` | `page/page-set-input-files.spec.ts` | input should trigger events when files changed second time |+| `IF-021` | `page/page-set-input-files.spec.ts` | should preserve lastModified timestamp |++### IN — Inspector++| ID | File | Title |+|---|---|---|+| `IN-001` | `library/inspector/pause.spec.ts` | should resume when closing inspector |+| `IN-002` | `library/inspector/pause.spec.ts` | should not reset timeouts |+| `IN-003` | `library/inspector/pause.spec.ts` | should collapse log entries to a single line |+| `IN-004` | `library/inspector/pause.spec.ts` | pause › should pause and resume the script |+| `IN-005` | `library/inspector/pause.spec.ts` | pause › should pause and resume the script with keyboard shortcut |+| `IN-006` | `library/inspector/pause.spec.ts` | pause › should resume from console |+| `IN-007` | `library/inspector/pause.spec.ts` | pause › should pause after a navigation |+| `IN-008` | `library/inspector/pause.spec.ts` | pause › should show source |+| `IN-009` | `library/inspector/pause.spec.ts` | pause › should pause on next pause |+| `IN-010` | `library/inspector/pause.spec.ts` | pause › should step |+| `IN-011` | `library/inspector/pause.spec.ts` | pause › should disable timeout on paused actions |+| `IN-012` | `library/inspector/pause.spec.ts` | pause › should step with keyboard shortcut |+| `IN-013` | `library/inspector/pause.spec.ts` | pause › should highlight pointer, only in main frame |+| `IN-014` | `library/inspector/pause.spec.ts` | pause › should skip input when resuming |+| `IN-015` | `library/inspector/pause.spec.ts` | pause › should populate log |+| `IN-016` | `library/inspector/pause.spec.ts` | pause › should hide internal calls |+| `IN-017` | `library/inspector/pause.spec.ts` | pause › should show expect.toHaveText |+| `IN-018` | `library/inspector/pause.spec.ts` | pause › should highlight waitForEvent |+| `IN-019` | `library/inspector/pause.spec.ts` | pause › should populate log with waitForEvent |+| `IN-020` | `library/inspector/pause.spec.ts` | pause › should populate log with error |+| `IN-021` | `library/inspector/pause.spec.ts` | pause › should populate log with expect failure |+| `IN-022` | `library/inspector/pause.spec.ts` | pause › should populate log with error in waitForEvent |+| `IN-023` | `library/inspector/pause.spec.ts` | pause › should pause on page close |+| `IN-024` | `library/inspector/pause.spec.ts` | pause › should pause on context close |+| `IN-025` | `library/inspector/pause.spec.ts` | pause › should highlight on explore |+| `IN-026` | `library/inspector/pause.spec.ts` | pause › should highlight on explore (csharp) |+| `IN-027` | `library/inspector/pause.spec.ts` | pause › should not prevent key events |+| `IN-028` | `library/inspector/pause.spec.ts` | pause › should highlight locators with custom testId |+| `IN-029` | `library/inspector/pause.spec.ts` | pause › should record from debugger |+| `IN-030` | `library/inspector/recorder-api.spec.ts` | context should implement the internal api used by the tools |+| `IN-031` | `library/inspector/recorder-api.spec.ts` | should click |+| `IN-032` | `library/inspector/recorder-api.spec.ts` | should double click |+| `IN-033` | `library/inspector/recorder-api.spec.ts` | should right click |+| `IN-034` | `library/inspector/recorder-api.spec.ts` | should send updated code with the signal |+| `IN-035` | `library/inspector/recorder-api.spec.ts` | should not amend the last action with a signal from another page |+| `IN-036` | `library/inspector/recorder-api.spec.ts` | should type |+| `IN-037` | `library/inspector/recorder-api.spec.ts` | should stop recording |+| `IN-038` | `library/inspector/recorder-api.spec.ts` | should record again after stop |+| `IN-039` | `library/inspector/recorder-api.spec.ts` | should not start recording while the recorder is shown |+| `IN-040` | `library/inspector/recorder-api.spec.ts` | should not show the recorder while recording |+| `IN-041` | `library/inspector/recorder-api.spec.ts` | should not start recording twice |+| `IN-042` | `library/inspector/recorder-api.spec.ts` | page.pickLocator should return locator for picked element |+| `IN-043` | `library/inspector/recorder-api.spec.ts` | page.cancelPickLocator should cancel ongoing pickLocator |+| `IN-044` | `library/inspector/recorder-api.spec.ts` | closing page should cancel ongoing pickLocator |+| `IN-045` | `library/inspector/recorder-api.spec.ts` | page2.pickLocator() should cancel page1.pickLocator() |+| `IN-046` | `library/inspector/console-api.spec.ts` | should support playwright.$, playwright.$$ |+| `IN-047` | `library/inspector/console-api.spec.ts` | should support playwright.selector |+| `IN-048` | `library/inspector/console-api.spec.ts` | should support playwright.locator.value |+| `IN-049` | `library/inspector/console-api.spec.ts` | should support playwright.locator.values |+| `IN-050` | `library/inspector/console-api.spec.ts` | should support playwright.locator({ has }) |+| `IN-051` | `library/inspector/console-api.spec.ts` | should support playwright.locator({ hasNot }) |+| `IN-052` | `library/inspector/console-api.spec.ts` | should support locator.and() |+| `IN-053` | `library/inspector/console-api.spec.ts` | should support locator.or() |+| `IN-054` | `library/inspector/console-api.spec.ts` | should support playwright.getBy\* |+| `IN-055` | `library/inspector/console-api.spec.ts` | expected properties on playwright object |+| `IN-056` | `library/inspector/title.spec.ts` | should reflect formatted URL of the page |+| `IN-057` | `library/inspector/title.spec.ts` | should update primary page URL when original primary closes |+| `IN-058` | `library/inspector/title.spec.ts` | should render primary language |++### IS — Init script++| ID | File | Title |+|---|---|---|+| `IS-001` | `page/page-add-init-script.spec.ts` | should evaluate before anything else on the page |+| `IS-002` | `page/page-add-init-script.spec.ts` | should work with a path |+| `IS-003` | `page/page-add-init-script.spec.ts` | should work with content @smoke |+| `IS-004` | `page/page-add-init-script.spec.ts` | should throw without path and content |+| `IS-005` | `page/page-add-init-script.spec.ts` | should work with trailing comments |+| `IS-006` | `page/page-add-init-script.spec.ts` | should support multiple scripts |+| `IS-007` | `page/page-add-init-script.spec.ts` | should work with CSP |+| `IS-008` | `page/page-add-init-script.spec.ts` | should work after a cross origin navigation |+| `IS-009` | `page/page-add-init-script.spec.ts` | should remove init script after dispose |+| `IS-010` | `page/page-add-init-script.spec.ts` | should remove one of multiple init scripts after dispose |+| `IS-011` | `page/page-add-init-script.spec.ts` | init script should run only once in iframe |+| `IS-012` | `page/page-add-init-script-callback.spec.ts` | should drop functions without the exposeFunctions option |+| `IS-013` | `page/page-add-init-script-callback.spec.ts` | should throw when the script is not a function |+| `IS-014` | `page/page-add-init-script-callback.spec.ts` | should call a function passed as an argument |+| `IS-015` | `page/page-add-init-script-callback.spec.ts` | should accept a function as the whole argument |+| `IS-016` | `page/page-add-init-script-callback.spec.ts` | should pass arguments to the callback |+| `IS-017` | `page/page-add-init-script-callback.spec.ts` | should return the callback result to the page |+| `IS-018` | `page/page-add-init-script-callback.spec.ts` | should propagate callback errors to the page |+| `IS-019` | `page/page-add-init-script-callback.spec.ts` | should support multiple callbacks |+| `IS-020` | `page/page-add-init-script-callback.spec.ts` | should survive a navigation and keep working |+| `IS-021` | `page/page-add-init-script-callback.spec.ts` | should work in a child frame |+| `IS-022` | `page/page-add-init-script-callback.spec.ts` | should not register the callback on the global object |+| `IS-023` | `page/page-add-init-script-callback.spec.ts` | should remove exposed functions after dispose |+| `IS-024` | `library/browsercontext-add-init-script.spec.ts` | should work with browser context scripts @smoke |+| `IS-025` | `library/browsercontext-add-init-script.spec.ts` | should work without navigation, after all bindings |+| `IS-026` | `library/browsercontext-add-init-script.spec.ts` | should work without navigation in popup |+| `IS-027` | `library/browsercontext-add-init-script.spec.ts` | should work with browser context scripts with a path |+| `IS-028` | `library/browsercontext-add-init-script.spec.ts` | should work with browser context scripts for already created pages |+| `IS-029` | `library/browsercontext-add-init-script.spec.ts` | should remove context init script after dispose |+| `IS-030` | `library/browsercontext-add-init-script.spec.ts` | should remove context init script and keep working in new pages |+| `IS-031` | `library/browsercontext-add-init-script.spec.ts` | should expose functions passed as arguments |+| `IS-032` | `library/browsercontext-add-init-script.spec.ts` | should expose functions that survive navigation |+| `IS-033` | `library/browsercontext-add-init-script.spec.ts` | should expose functions in popups |+| `IS-034` | `library/browsercontext-add-init-script.spec.ts` | should remove exposed functions after dispose |+| `IS-035` | `library/browsercontext-add-init-script.spec.ts` | init script should run only once in popup |++### JH — JSHandle++| ID | File | Title |+|---|---|---|+| `JH-001` | `page/jshandle-as-element.spec.ts` | should work @smoke |+| `JH-002` | `page/jshandle-as-element.spec.ts` | should return null for non-elements |+| `JH-003` | `page/jshandle-as-element.spec.ts` | should return ElementHandle for TextNodes |+| `JH-004` | `page/jshandle-as-element.spec.ts` | should work with nullified Node |+| `JH-005` | `page/jshandle-evaluate.spec.ts` | should work with function @smoke |+| `JH-006` | `page/jshandle-evaluate.spec.ts` | should work with expression |+| `JH-007` | `page/jshandle-json-value.spec.ts` | should work @smoke |+| `JH-008` | `page/jshandle-json-value.spec.ts` | should work with dates |+| `JH-009` | `page/jshandle-json-value.spec.ts` | should handle circular objects |+| `JH-010` | `page/jshandle-properties.spec.ts` | should work @smoke |+| `JH-011` | `page/jshandle-properties.spec.ts` | should work with undefined, null, and empty |+| `JH-012` | `page/jshandle-properties.spec.ts` | should work with unserializable values |+| `JH-013` | `page/jshandle-properties.spec.ts` | getProperties should work |+| `JH-014` | `page/jshandle-properties.spec.ts` | getProperties should return empty map for non-objects |+| `JH-015` | `page/jshandle-properties.spec.ts` | getProperties should return properties inhertied from super class |+| `JH-016` | `page/jshandle-properties.spec.ts` | getProperties should return own enumerable properties only |+| `JH-017` | `page/jshandle-properties.spec.ts` | getProperties should work with elements |+| `JH-018` | `page/jshandle-to-string.spec.ts` | should work for primitives |+| `JH-019` | `page/jshandle-to-string.spec.ts` | should work for complicated objects |+| `JH-020` | `page/jshandle-to-string.spec.ts` | should beautifully render sparse arrays |+| `JH-021` | `page/jshandle-to-string.spec.ts` | should work for promises |+| `JH-022` | `page/jshandle-to-string.spec.ts` | should work with different subtypes @smoke |+| `JH-023` | `page/jshandle-to-string.spec.ts` | should work with previewable subtypes |++### JS — JSON schema++| ID | File | Title |+|---|---|---|+| `JS-001` | `library/unit/json-schema.spec.ts` | should validate string type |+| `JS-002` | `library/unit/json-schema.spec.ts` | should validate string pattern |+| `JS-003` | `library/unit/json-schema.spec.ts` | should validate array type |+| `JS-004` | `library/unit/json-schema.spec.ts` | should validate array items |+| `JS-005` | `library/unit/json-schema.spec.ts` | should validate object type |+| `JS-006` | `library/unit/json-schema.spec.ts` | should validate required properties |+| `JS-007` | `library/unit/json-schema.spec.ts` | should validate optional properties |+| `JS-008` | `library/unit/json-schema.spec.ts` | should validate oneOf |+| `JS-009` | `library/unit/json-schema.spec.ts` | should validate nested objects |+| `JS-010` | `library/unit/json-schema.spec.ts` | should validate test details schema |++### KB — Keyboard++| ID | File | Title |+|---|---|---|+| `KB-001` | `page/page-keyboard.spec.ts` | should type into a textarea @smoke |+| `KB-002` | `page/page-keyboard.spec.ts` | should move with the arrow keys |+| `KB-003` | `page/page-keyboard.spec.ts` | should send a character with ElementHandle.press |+| `KB-004` | `page/page-keyboard.spec.ts` | should send a character with insertText |+| `KB-005` | `page/page-keyboard.spec.ts` | should not type text with Alt modifier |+| `KB-006` | `page/page-keyboard.spec.ts` | insertText should only emit input event |+| `KB-007` | `page/page-keyboard.spec.ts` | should emit keydown, keypress, textInput and input when typing a character |+| `KB-008` | `page/page-keyboard.spec.ts` | should dispatch key events in separate tasks |+| `KB-009` | `page/page-keyboard.spec.ts` | should report shiftKey |+| `KB-010` | `page/page-keyboard.spec.ts` | should report multiple modifiers |+| `KB-011` | `page/page-keyboard.spec.ts` | should send proper codes while typing |+| `KB-012` | `page/page-keyboard.spec.ts` | should send proper codes while typing with shift |+| `KB-013` | `page/page-keyboard.spec.ts` | should not type canceled events |+| `KB-014` | `page/page-keyboard.spec.ts` | should press plus |+| `KB-015` | `page/page-keyboard.spec.ts` | should press shift plus |+| `KB-016` | `page/page-keyboard.spec.ts` | should support plus-separated modifiers |+| `KB-017` | `page/page-keyboard.spec.ts` | should support multiple plus-separated modifiers |+| `KB-018` | `page/page-keyboard.spec.ts` | should shift raw codes |+| `KB-019` | `page/page-keyboard.spec.ts` | should specify repeat property |+| `KB-020` | `page/page-keyboard.spec.ts` | should type all kinds of characters |+| `KB-021` | `page/page-keyboard.spec.ts` | should specify location |+| `KB-022` | `page/page-keyboard.spec.ts` | should specify numpad location on keyup |+| `KB-023` | `page/page-keyboard.spec.ts` | should press NumpadDecimal as Delete |+| `KB-024` | `page/page-keyboard.spec.ts` | should type numpad digits with Shift |+| `KB-025` | `page/page-keyboard.spec.ts` | should press Enter |+| `KB-026` | `page/page-keyboard.spec.ts` | should press audio and media control keys |+| `KB-027` | `page/page-keyboard.spec.ts` | should throw on unknown keys |+| `KB-028` | `page/page-keyboard.spec.ts` | should type emoji |+| `KB-029` | `page/page-keyboard.spec.ts` | should type emoji into an iframe |+| `KB-030` | `page/page-keyboard.spec.ts` | should handle selectAll |+| `KB-031` | `page/page-keyboard.spec.ts` | pressing Meta should not result in any text insertion on any platform |+| `KB-032` | `page/page-keyboard.spec.ts` | should be able to prevent selectAll |+| `KB-033` | `page/page-keyboard.spec.ts` | should support MacOS shortcuts |+| `KB-034` | `page/page-keyboard.spec.ts` | should press the meta key |+| `KB-035` | `page/page-keyboard.spec.ts` | should work with keyboard events with empty.html |+| `KB-036` | `page/page-keyboard.spec.ts` | should work after a cross origin navigation |+| `KB-037` | `page/page-keyboard.spec.ts` | should expose keyIdentifier in webkit |+| `KB-038` | `page/page-keyboard.spec.ts` | should scroll with PageDown |+| `KB-039` | `page/page-keyboard.spec.ts` | should move around the selection in a contenteditable |+| `KB-040` | `page/page-keyboard.spec.ts` | should move to the start of the document |+| `KB-041` | `page/page-keyboard.spec.ts` | should dispatch a click event on a button when Space gets pressed |+| `KB-042` | `page/page-keyboard.spec.ts` | should dispatch a click event on a button when Enter gets pressed |+| `KB-043` | `page/page-keyboard.spec.ts` | should support simple copy-pasting |+| `KB-044` | `page/page-keyboard.spec.ts` | should support simple cut-pasting |+| `KB-045` | `page/page-keyboard.spec.ts` | should support undo-redo |+| `KB-046` | `page/page-keyboard.spec.ts` | should type repeatedly in contenteditable in shadow dom |+| `KB-047` | `page/page-keyboard.spec.ts` | should type repeatedly in contenteditable in shadow dom with nested elements |+| `KB-048` | `page/page-keyboard.spec.ts` | should type repeatedly in input in shadow dom |+| `KB-049` | `page/page-keyboard.spec.ts` | type to non-focusable element should maintain old focus |+| `KB-050` | `page/page-keyboard.spec.ts` | should dispatch insertText after context menu was opened |+| `KB-051` | `page/page-keyboard.spec.ts` | should type after context menu was opened |+| `KB-052` | `page/page-keyboard.spec.ts` | should have correct Keydown/Keyup order when pressing Escape key |+| `KB-053` | `page/page-keyboard.spec.ts` | should close dialog on Escape key press in contenteditable |++### LC — Locale++| ID | File | Title |+|---|---|---|+| `LC-001` | `library/browsercontext-locale.spec.ts` | should affect accept-language header @smoke |+| `LC-002` | `library/browsercontext-locale.spec.ts` | should affect navigator.language |+| `LC-003` | `library/browsercontext-locale.spec.ts` | should format number |+| `LC-004` | `library/browsercontext-locale.spec.ts` | should format date |+| `LC-005` | `library/browsercontext-locale.spec.ts` | should format number in popups |+| `LC-006` | `library/browsercontext-locale.spec.ts` | should affect navigator.language in popups |+| `LC-007` | `library/browsercontext-locale.spec.ts` | should work for multiple pages sharing same process |+| `LC-008` | `library/browsercontext-locale.spec.ts` | should be isolated between contexts |+| `LC-009` | `library/browsercontext-locale.spec.ts` | should not change default locale in another context |+| `LC-010` | `library/browsercontext-locale.spec.ts` | should propagate locale to workers |+| `LC-011` | `library/browsercontext-locale.spec.ts` | should affect Intl.DateTimeFormat().resolvedOptions().locale |+| `LC-012` | `library/browsercontext-locale.spec.ts` | should send user Accept-Language header |+| `LC-013` | `library/browsercontext-locale.spec.ts` | should send Accept-Language header on WebSocket handshake |+| `LC-014` | `library/browsercontext-locale.spec.ts` | should send Accept-Language header on WebSocket handshake from a worker |++### LE — Leaks++| ID | File | Title |+|---|---|---|+| `LE-001` | `page/page-leaks.spec.ts` | click should not leak |+| `LE-002` | `page/page-leaks.spec.ts` | fill should not leak |+| `LE-003` | `page/page-leaks.spec.ts` | expect should not leak |+| `LE-004` | `page/page-leaks.spec.ts` | waitFor should not leak |+| `LE-005` | `library/heap.spec.ts` | test {#0, #1, #2} to request page and context *(3 copies)* |+| `LE-006` | `library/heap.spec.ts` | test to request page and context |+| `LE-007` | `library/heap.spec.ts` | should not leak fixtures w/ page |+| `LE-008` | `library/heap.spec.ts` | should not leak fixtures w/o page |+| `LE-009` | `library/heap.spec.ts` | should not leak server-side objects |+| `LE-010` | `library/heap.spec.ts` | should not leak dispatchers after closing page |+| `LE-011` | `library/heap.spec.ts` | should not leak workers |+| `LE-012` | `library/heap.spec.ts` | should collect stale handles |+| `LE-013` | `library/heap.spec.ts` | should collect frames |+| `LE-014` | `library/heap.spec.ts` | cycle handles |++### LG — Logger++| ID | File | Title |+|---|---|---|+| `LG-001` | `library/logger.spec.ts` | should log @smoke |+| `LG-002` | `library/logger.spec.ts` | should log context-level |++### LH — Locator handler++| ID | File | Title |+|---|---|---|+| `LH-001` | `page/page-add-locator-handler.spec.ts` | should work |+| `LH-002` | `page/page-add-locator-handler.spec.ts` | should work with a custom check |+| `LH-003` | `page/page-add-locator-handler.spec.ts` | should work with locator.hover() |+| `LH-004` | `page/page-add-locator-handler.spec.ts` | should not work with force:true |+| `LH-005` | `page/page-add-locator-handler.spec.ts` | should throw when handler times out |+| `LH-006` | `page/page-add-locator-handler.spec.ts` | should work with toBeVisible |+| `LH-007` | `page/page-add-locator-handler.spec.ts` | should work with locator.waitFor |+| `LH-008` | `page/page-add-locator-handler.spec.ts` | should work with toHaveScreenshot |+| `LH-009` | `page/page-add-locator-handler.spec.ts` | should work when owner frame detaches |+| `LH-010` | `page/page-add-locator-handler.spec.ts` | should work with times: option |+| `LH-011` | `page/page-add-locator-handler.spec.ts` | should wait for hidden by default |+| `LH-012` | `page/page-add-locator-handler.spec.ts` | should wait for hidden by default 2 |+| `LH-013` | `page/page-add-locator-handler.spec.ts` | should work with noWaitAfter |+| `LH-014` | `page/page-add-locator-handler.spec.ts` | should removeLocatorHandler |++### LO — Locator++| ID | File | Title |+|---|---|---|+| `LO-001` | `page/locator-any-frame.spec.ts` | should click a button inside an iframe |+| `LO-002` | `page/locator-any-frame.spec.ts` | should click a button in the main frame |+| `LO-003` | `page/locator-any-frame.spec.ts` | should fail click when elements match in multiple frames |+| `LO-004` | `page/locator-any-frame.spec.ts` | should fail click upon strict mode violation inside a single frame |+| `LO-005` | `page/locator-any-frame.spec.ts` | should time out on click when there are no matches |+| `LO-006` | `page/locator-any-frame.spec.ts` | should count elements in a single frame |+| `LO-007` | `page/locator-any-frame.spec.ts` | should fail count when elements match in multiple frames |+| `LO-008` | `page/locator-any-frame.spec.ts` | should support toHaveCount |+| `LO-009` | `page/locator-any-frame.spec.ts` | should wait for a frame to appear with toHaveCount |+| `LO-010` | `page/locator-any-frame.spec.ts` | should fail toHaveCount when elements match in multiple frames |+| `LO-011` | `page/locator-any-frame.spec.ts` | should support toHaveText |+| `LO-012` | `page/locator-any-frame.spec.ts` | should support toHaveText with an array |+| `LO-013` | `page/locator-any-frame.spec.ts` | should fail toHaveText when elements match in multiple frames |+| `LO-014` | `page/locator-any-frame.spec.ts` | should fail toHaveText with an array when elements match in multiple frames |+| `LO-015` | `page/locator-any-frame.spec.ts` | should fail toHaveText upon strict mode violation inside a single frame |+| `LO-016` | `page/locator-any-frame.spec.ts` | should support evaluate |+| `LO-017` | `page/locator-any-frame.spec.ts` | should fail evaluate when elements match in multiple frames |+| `LO-018` | `page/locator-any-frame.spec.ts` | should time out on evaluate when there are no matches |+| `LO-019` | `page/locator-any-frame.spec.ts` | should support evaluateAll |+| `LO-020` | `page/locator-any-frame.spec.ts` | should fail evaluateAll when elements match in multiple frames |+| `LO-021` | `page/locator-any-frame.spec.ts` | should support hasText filter |+| `LO-022` | `page/locator-any-frame.spec.ts` | should support first/last/nth |+| `LO-023` | `page/locator-any-frame.spec.ts` | should support nth in the middle of the chain |+| `LO-024` | `page/locator-any-frame.spec.ts` | should support composite locators |+| `LO-025` | `page/locator-any-frame.spec.ts` | should support capture |+| `LO-026` | `page/locator-any-frame.spec.ts` | should find a frame inside the scope |+| `LO-027` | `page/locator-any-frame.spec.ts` | should find a nested frame inside the scope |+| `LO-028` | `page/locator-any-frame.spec.ts` | should find a frame inside the scope while another iframe is stalled |+| `LO-029` | `page/locator-any-frame.spec.ts` | should respect the scope without a frame inside the scope |+| `LO-030` | `page/locator-any-frame.spec.ts` | should not match a chain across a frame boundary |+| `LO-031` | `page/locator-any-frame.spec.ts` | should only search frames inside the starting frame |+| `LO-032` | `page/locator-any-frame.spec.ts` | should enter a frame found in a nested frame |+| `LO-033` | `page/locator-any-frame.spec.ts` | should click inside an entered frame |+| `LO-034` | `page/locator-any-frame.spec.ts` | should not search nested frames after entering a frame |+| `LO-035` | `page/locator-any-frame.spec.ts` | should support two frameLocators |+| `LO-036` | `page/locator-any-frame.spec.ts` | should support locator before frameLocator |+| `LO-037` | `page/locator-any-frame.spec.ts` | should support owner of a frameLocator |+| `LO-038` | `page/locator-any-frame.spec.ts` | should wait for the frame to enter to appear |+| `LO-039` | `page/locator-any-frame.spec.ts` | should fail when the frame to enter matches in multiple frames |+| `LO-040` | `page/locator-any-frame.spec.ts` | should support contentFrame |+| `LO-041` | `page/locator-any-frame.spec.ts` | should render frameLocator() in the locator description |+| `LO-042` | `page/locator-any-frame.spec.ts` | should not allow frameLocator() inside a composite locator |+| `LO-043` | `page/locator-any-frame.spec.ts` | should support a composite locator under frameLocator() |+| `LO-044` | `page/locator-any-frame.spec.ts` | should support a composite locator under frameLocator() and a frame locator |+| `LO-045` | `page/locator-any-frame.spec.ts` | should not allow first/last/nth on frameLocator() |+| `LO-046` | `page/locator-any-frame.spec.ts` | should not allow owner on frameLocator() |+| `LO-047` | `page/locator-any-frame.spec.ts` | should resolve aria-ref selectors |+| `LO-048` | `page/locator-any-frame.spec.ts` | should click while another iframe is stalled |+| `LO-049` | `page/locator-any-frame.spec.ts` | should support toBeVisible while another iframe is stalled |+| `LO-050` | `page/locator-any-frame.spec.ts` | should support toHaveCount while another iframe is stalled |+| `LO-051` | `page/locator-any-frame.spec.ts` | should treat elements inside hidden iframe as hidden |+| `LO-052` | `page/locator-click.spec.ts` | should work @smoke |+| `LO-053` | `page/locator-click.spec.ts` | should work with Node removed |+| `LO-054` | `page/locator-click.spec.ts` | should double click the button |+| `LO-055` | `page/locator-click.spec.ts` | should click if the target element is removed in pointerup event |+| `LO-056` | `page/locator-click.spec.ts` | should click if the target element is removed in pointerdown event |+| `LO-057` | `page/locator-convenience.spec.ts` | should have a nice preview |+| `LO-058` | `page/locator-convenience.spec.ts` | getAttribute should work |+| `LO-059` | `page/locator-convenience.spec.ts` | inputValue should work |+| `LO-060` | `page/locator-convenience.spec.ts` | innerHTML should work |+| `LO-061` | `page/locator-convenience.spec.ts` | innerText should work |+| `LO-062` | `page/locator-convenience.spec.ts` | innerText should throw |+| `LO-063` | `page/locator-convenience.spec.ts` | innerText should produce log |+| `LO-064` | `page/locator-convenience.spec.ts` | textContent should work |+| `LO-065` | `page/locator-convenience.spec.ts` | isEnabled and isDisabled should work |+| `LO-066` | `page/locator-convenience.spec.ts` | isEditable should work |+| `LO-067` | `page/locator-convenience.spec.ts` | isChecked should work |+| `LO-068` | `page/locator-convenience.spec.ts` | isChecked should work for indeterminate input |+| `LO-069` | `page/locator-convenience.spec.ts` | allTextContents should work |+| `LO-070` | `page/locator-convenience.spec.ts` | allInnerTexts should work |+| `LO-071` | `page/locator-convenience.spec.ts` | should return page |+| `LO-072` | `page/locator-convenience.spec.ts` | description should return null for locator without description |+| `LO-073` | `page/locator-convenience.spec.ts` | description should return description for locator with simple description |+| `LO-074` | `page/locator-convenience.spec.ts` | description should return description with special characters |+| `LO-075` | `page/locator-convenience.spec.ts` | description should return description for chained locators |+| `LO-076` | `page/locator-convenience.spec.ts` | description should return description for locator with multiple describe calls |+| `LO-077` | `page/locator-convenience.spec.ts` | toString() returns formatted locator |+| `LO-078` | `page/locator-convenience.spec.ts` | toString() prefers description |+| `LO-079` | `page/locator-element-handle.spec.ts` | should query existing element @smoke |+| `LO-080` | `page/locator-element-handle.spec.ts` | should query existing elements |+| `LO-081` | `page/locator-element-handle.spec.ts` | should return empty array for non-existing elements |+| `LO-082` | `page/locator-element-handle.spec.ts` | xpath should query existing element |+| `LO-083` | `page/locator-element-handle.spec.ts` | xpath should return null for non-existing element |+| `LO-084` | `page/locator-evaluate.spec.ts` | should work @smoke |+| `LO-085` | `page/locator-evaluate.spec.ts` | should retrieve content from subtree |+| `LO-086` | `page/locator-evaluate.spec.ts` | should work for all |+| `LO-087` | `page/locator-evaluate.spec.ts` | should retrieve content from subtree for all |+| `LO-088` | `page/locator-evaluate.spec.ts` | should not throw in case of missing selector for all |+| `LO-089` | `page/locator-frame.spec.ts` | should work for iframe @smoke |+| `LO-090` | `page/locator-frame.spec.ts` | should work for nested iframe |+| `LO-091` | `page/locator-frame.spec.ts` | should work for $ and $$ |+| `LO-092` | `page/locator-frame.spec.ts` | should wait for frame |+| `LO-093` | `page/locator-frame.spec.ts` | should wait for frame 2 |+| `LO-094` | `page/locator-frame.spec.ts` | should wait for frame to go |+| `LO-095` | `page/locator-frame.spec.ts` | should not wait for frame |+| `LO-096` | `page/locator-frame.spec.ts` | should not wait for frame 2 |+| `LO-097` | `page/locator-frame.spec.ts` | should not wait for frame 3 |+| `LO-098` | `page/locator-frame.spec.ts` | should click in lazy iframe |+| `LO-099` | `page/locator-frame.spec.ts` | waitFor should survive frame reattach |+| `LO-100` | `page/locator-frame.spec.ts` | click should survive frame reattach |+| `LO-101` | `page/locator-frame.spec.ts` | click should survive iframe navigation |+| `LO-102` | `page/locator-frame.spec.ts` | should non work for non-frame |+| `LO-103` | `page/locator-frame.spec.ts` | locator.frameLocator should work for iframe |+| `LO-104` | `page/locator-frame.spec.ts` | locator.frameLocator should throw on ambiguity |+| `LO-105` | `page/locator-frame.spec.ts` | locator.frameLocator should not throw on first/last/nth |+| `LO-106` | `page/locator-frame.spec.ts` | getBy coverage |+| `LO-107` | `page/locator-frame.spec.ts` | wait for hidden should succeed when frame is not in dom |+| `LO-108` | `page/locator-frame.spec.ts` | should work with COEP/COOP/CORP isolated iframe |+| `LO-109` | `page/locator-frame.spec.ts` | locator.contentFrame should work |+| `LO-110` | `page/locator-frame.spec.ts` | frameLocator.owner should work |+| `LO-111` | `page/locator-frame.spec.ts` | should treat elements inside hidden iframe as hidden |+| `LO-112` | `page/locator-frame.spec.ts` | should wait for hidden iframe to become visible |+| `LO-113` | `page/locator-frame.spec.ts` | should treat elements inside hidden cross-origin iframe as hidden |+| `LO-114` | `page/locator-highlight.spec.ts` | should highlight locator |+| `LO-115` | `page/locator-is-visible.spec.ts` | isVisible and isHidden should work |+| `LO-116` | `page/locator-is-visible.spec.ts` | isVisible should be true for opacity:0 |+| `LO-117` | `page/locator-is-visible.spec.ts` | isVisible should be true for element outside view |+| `LO-118` | `page/locator-is-visible.spec.ts` | isVisible and isHidden should work with details |+| `LO-119` | `page/locator-is-visible.spec.ts` | isVisible and isHidden should work with nested details |+| `LO-120` | `page/locator-is-visible.spec.ts` | isVisible and isHidden should work with unslotted content |+| `LO-121` | `page/locator-is-visible.spec.ts` | isVisible and isHidden should work with list box options |+| `LO-122` | `page/locator-is-visible.spec.ts` | isVisible inside a button |+| `LO-123` | `page/locator-is-visible.spec.ts` | isVisible inside a role=button |+| `LO-124` | `page/locator-is-visible.spec.ts` | isVisible during navigation should not throw |+| `LO-125` | `page/locator-is-visible.spec.ts` | isVisible with invalid selector should throw |+| `LO-126` | `page/locator-list.spec.ts` | locator.all should work |+| `LO-127` | `page/locator-misc-1.spec.ts` | should hover @smoke |+| `LO-128` | `page/locator-misc-1.spec.ts` | should hover when Node is removed |+| `LO-129` | `page/locator-misc-1.spec.ts` | should fill input |+| `LO-130` | `page/locator-misc-1.spec.ts` | should fill input when Node is removed |+| `LO-131` | `page/locator-misc-1.spec.ts` | should clear input |+| `LO-132` | `page/locator-misc-1.spec.ts` | should check the box |+| `LO-133` | `page/locator-misc-1.spec.ts` | should check the box using setChecked |+| `LO-134` | `page/locator-misc-1.spec.ts` | should uncheck the box |+| `LO-135` | `page/locator-misc-1.spec.ts` | should select single option |+| `LO-136` | `page/locator-misc-1.spec.ts` | should focus and blur a button |+| `LO-137` | `page/locator-misc-1.spec.ts` | focus should respect strictness |+| `LO-138` | `page/locator-misc-1.spec.ts` | should dispatch click event via ElementHandles |+| `LO-139` | `page/locator-misc-1.spec.ts` | should upload the file |+| `LO-140` | `page/locator-misc-2.spec.ts` | should press @smoke |+| `LO-141` | `page/locator-misc-2.spec.ts` | should scroll into view |+| `LO-142` | `page/locator-misc-2.spec.ts` | should scroll zero-sized element into view |+| `LO-143` | `page/locator-misc-2.spec.ts` | should select textarea |+| `LO-144` | `page/locator-misc-2.spec.ts` | should type |+| `LO-145` | `page/locator-misc-2.spec.ts` | should pressSequentially |+| `LO-146` | `page/locator-misc-2.spec.ts` | should take screenshot |+| `LO-147` | `page/locator-misc-2.spec.ts` | should return bounding box |+| `LO-148` | `page/locator-misc-2.spec.ts` | should waitFor |+| `LO-149` | `page/locator-misc-2.spec.ts` | should waitFor hidden |+| `LO-150` | `page/locator-misc-2.spec.ts` | should combine visible with other selectors |+| `LO-151` | `page/locator-misc-2.spec.ts` | should support filter(visible) |+| `LO-152` | `page/locator-misc-2.spec.ts` | should support visible() |+| `LO-153` | `page/locator-misc-2.spec.ts` | locator.count should work with deleted Map in main world |+| `LO-154` | `page/locator-misc-2.spec.ts` | Locator.locator() and FrameLocator.locator() should accept locator |+| `LO-155` | `page/locator-misc-2.spec.ts` | should fill programmatically enabled textarea |+| `LO-156` | `page/locator-misc-2.spec.ts` | press should throw on unknown keys |+| `LO-157` | `page/locator-query.spec.ts` | should respect first() and last() @smoke |+| `LO-158` | `page/locator-query.spec.ts` | should respect nth() |+| `LO-159` | `page/locator-query.spec.ts` | should throw on capture w/ nth() |+| `LO-160` | `page/locator-query.spec.ts` | should throw on due to strictness |+| `LO-161` | `page/locator-query.spec.ts` | should throw on due to strictness 2 |+| `LO-162` | `page/locator-query.spec.ts` | should filter by text |+| `LO-163` | `page/locator-query.spec.ts` | should filter by text 2 |+| `LO-164` | `page/locator-query.spec.ts` | should filter by regex |+| `LO-165` | `page/locator-query.spec.ts` | should filter by text with quotes |+| `LO-166` | `page/locator-query.spec.ts` | should filter by regex with quotes |+| `LO-167` | `page/locator-query.spec.ts` | should filter by regex with a single quote |+| `LO-168` | `page/locator-query.spec.ts` | should filter by regex and regexp flags |+| `LO-169` | `page/locator-query.spec.ts` | should filter by case-insensitive regex in a child |+| `LO-170` | `page/locator-query.spec.ts` | should filter by case-insensitive regex in multiple children |+| `LO-171` | `page/locator-query.spec.ts` | should filter by regex with special symbols |+| `LO-172` | `page/locator-query.spec.ts` | should support has:locator |+| `LO-173` | `page/locator-query.spec.ts` | should support locator.filter |+| `LO-174` | `page/locator-query.spec.ts` | should support locator.and |+| `LO-175` | `page/locator-query.spec.ts` | should support locator.or |+| `LO-176` | `page/locator-query.spec.ts` | should support locator.locator with and/or |+| `LO-177` | `page/locator-query.spec.ts` | should support locator.within |+| `LO-178` | `page/locator-query.spec.ts` | should allow some, but not all nested frameLocators |+| `LO-179` | `page/locator-query.spec.ts` | should keep the capture when removing a common frame prefix |+| `LO-180` | `page/locator-query.spec.ts` | should enforce same frame for has/leftOf/rightOf/above/below/near |+| `LO-181` | `page/locator-query.spec.ts` | alias methods coverage |+| `LO-182` | `page/locator-query.spec.ts` | count() should not throw during navigation |+| `LO-183` | `page/locator-wait-for-function.spec.ts` | should wait for an attribute to appear |+| `LO-184` | `page/locator-wait-for-function.spec.ts` | should return immediately when already truthy |+| `LO-185` | `page/locator-wait-for-function.spec.ts` | should accept ElementHandle arguments |+| `LO-186` | `page/locator-wait-for-function.spec.ts` | should accept string expression |+| `LO-187` | `page/locator-wait-for-function.spec.ts` | should resolve a promise returned by the predicate |+| `LO-188` | `page/locator-wait-for-function.spec.ts` | should wait for element to appear and survive rerender |+| `LO-189` | `page/locator-wait-for-function.spec.ts` | should throw when predicate throws |+| `LO-190` | `page/locator-wait-for-function.spec.ts` | should throw on strict mode violation |+| `LO-191` | `page/locator-wait-for-function.spec.ts` | should abort via signal |+| `LO-192` | `page/locator-wait-for-function.spec.ts` | should abort via already-aborted signal |+| `LO-193` | `library/locator-highlight.spec.ts` | highlight should accept a CSS string style |+| `LO-194` | `library/locator-highlight.spec.ts` | highlight should accept an object style (JS only) |+| `LO-195` | `library/locator-highlight.spec.ts` | hideHighlight removes a styled highlight |+| `LO-196` | `library/locator-highlight.spec.ts` | highlight should survive navigation |+| `LO-197` | `library/locator-highlight.spec.ts` | Page.hideHighlight clears all locator highlights |+| `LO-198` | `library/locator-highlight.spec.ts` | highlight should work with a custom selector engine that runs in the main world |+| `LO-199` | `library/locator-highlight.spec.ts` | highlight should resolve relative to the frame of the locator |++### MC — Multiple clients++| ID | File | Title |+|---|---|---|+| `MC-001` | `library/multiclient.spec.ts` | should connect two clients |+| `MC-002` | `library/multiclient.spec.ts` | should fire context event on remote newContext |+| `MC-003` | `library/multiclient.spec.ts` | should have separate default timeouts |+| `MC-004` | `library/multiclient.spec.ts` | should receive viewport size changes |+| `MC-005` | `library/multiclient.spec.ts` | should not allow parallel js coverage and cleanup upon disconnect |+| `MC-006` | `library/multiclient.spec.ts` | should not allow parallel css coverage |+| `MC-007` | `library/multiclient.spec.ts` | should unpause clock |+| `MC-008` | `library/multiclient.spec.ts` | last emulateMedia wins |+| `MC-009` | `library/multiclient.spec.ts` | should chain routes |+| `MC-010` | `library/multiclient.spec.ts` | should chain routes with changed url |+| `MC-011` | `library/multiclient.spec.ts` | should remove exposed bindings upon disconnect |+| `MC-012` | `library/multiclient.spec.ts` | should unroute websockets |+| `MC-013` | `library/multiclient.spec.ts` | should remove init scripts upon disconnect |+| `MC-014` | `library/multiclient.spec.ts` | should remove locator handlers upon disconnect |+| `MC-015` | `library/multiclient.spec.ts` | should launch persistent |+| `MC-016` | `library/multiclient.spec.ts` | should avoid side effects upon disconnect |+| `MC-017` | `library/multiclient.spec.ts` | screencast should deliver cached last frame to a new client |+| `MC-018` | `library/multiclient.spec.ts` | should stop tracing upon disconnect |+| `MC-019` | `library/multiclient.spec.ts` | should not deliver an action buffered before the second recording started |++### MO — Mouse++| ID | File | Title |+|---|---|---|+| `MO-001` | `page/page-mouse.spec.ts` | should click the document @smoke |+| `MO-002` | `page/page-mouse.spec.ts` | should dblclick the div |+| `MO-003` | `page/page-mouse.spec.ts` | down and up should generate click |+| `MO-004` | `page/page-mouse.spec.ts` | should pointerdown the div with a custom button |+| `MO-005` | `page/page-mouse.spec.ts` | should report correct buttons property |+| `MO-006` | `page/page-mouse.spec.ts` | should report correct pointerType property |+| `MO-007` | `page/page-mouse.spec.ts` | should select the text with mouse |+| `MO-008` | `page/page-mouse.spec.ts` | should trigger hover state |+| `MO-009` | `page/page-mouse.spec.ts` | should trigger hover state on disabled button |+| `MO-010` | `page/page-mouse.spec.ts` | should trigger hover state with removed window.Node |+| `MO-011` | `page/page-mouse.spec.ts` | should set modifier keys on click |+| `MO-012` | `page/page-mouse.spec.ts` | should tween mouse movement |+| `MO-013` | `page/page-mouse.spec.ts` | should always round down |+| `MO-014` | `page/page-mouse.spec.ts` | should not crash on mouse drag with any button |+| `MO-015` | `page/page-mouse.spec.ts` | should dispatch mouse move after context menu was opened |+| `MO-016` | `page/page-mouse.spec.ts` | should track hover across iframe boundaries |+| `MO-017` | `page/wheel.spec.ts` | should dispatch wheel events @smoke |+| `MO-018` | `page/wheel.spec.ts` | should dispatch wheel events after popup was opened @smoke |+| `MO-019` | `page/wheel.spec.ts` | should dispatch wheel event on svg element |+| `MO-020` | `page/wheel.spec.ts` | should scroll when nobody is listening |+| `MO-021` | `page/wheel.spec.ts` | should set the modifiers |+| `MO-022` | `page/wheel.spec.ts` | should scroll horizontally |+| `MO-023` | `page/wheel.spec.ts` | should work when the event is canceled |++### NA — Navigation++| ID | File | Title |+|---|---|---|+| `NA-001` | `page/page-goto.spec.ts` | should work @smoke |+| `NA-002` | `page/page-goto.spec.ts` | should work with file URL |+| `NA-003` | `page/page-goto.spec.ts` | should navigate from file URL to about:blank |+| `NA-004` | `page/page-goto.spec.ts` | should work with file URL with subframes |+| `NA-005` | `page/page-goto.spec.ts` | should use http for no protocol |+| `NA-006` | `page/page-goto.spec.ts` | should work cross-process |+| `NA-007` | `page/page-goto.spec.ts` | should work with cross-process that fails before committing |+| `NA-008` | `page/page-goto.spec.ts` | should work with Cross-Origin-Opener-Policy |+| `NA-009` | `page/page-goto.spec.ts` | should work with Cross-Origin-Opener-Policy and {history, Cross-Origin-Embedder-Policy and history} state *(2 copies)* |+| `NA-010` | `page/page-goto.spec.ts` | should work with Cross-Origin-Opener-Policy and interception |+| `NA-011` | `page/page-goto.spec.ts` | should work with Cross-Origin-Opener-Policy after redirect |+| `NA-012` | `page/page-goto.spec.ts` | should capture iframe navigation request |+| `NA-013` | `page/page-goto.spec.ts` | should capture cross-process iframe navigation request |+| `NA-014` | `page/page-goto.spec.ts` | should work with anchor navigation |+| `NA-015` | `page/page-goto.spec.ts` | should work with redirects |+| `NA-016` | `page/page-goto.spec.ts` | should navigate to about:blank |+| `NA-017` | `page/page-goto.spec.ts` | should return response when page changes its URL after load |+| `NA-018` | `page/page-goto.spec.ts` | should work with subframes return 204 |+| `NA-019` | `page/page-goto.spec.ts` | should work with subframes return 204 with domcontentloaded |+| `NA-020` | `page/page-goto.spec.ts` | should fail when server returns 204 |+| `NA-021` | `page/page-goto.spec.ts` | should navigate to empty page with domcontentloaded |+| `NA-022` | `page/page-goto.spec.ts` | should work when page calls history API in beforeunload |+| `NA-023` | `page/page-goto.spec.ts` | should fail when navigating to bad url |+| `NA-024` | `page/page-goto.spec.ts` | should fail when navigating to bad SSL |+| `NA-025` | `page/page-goto.spec.ts` | should fail when navigating to bad SSL after redirects |+| `NA-026` | `page/page-goto.spec.ts` | should not crash when navigating to bad SSL after a cross origin navigation |+| `NA-027` | `page/page-goto.spec.ts` | should not throw if networkidle0 is passed as an option |+| `NA-028` | `page/page-goto.spec.ts` | should throw if networkidle2 is passed as an option |+| `NA-029` | `page/page-goto.spec.ts` | should fail when main resources failed to load |+| `NA-030` | `page/page-goto.spec.ts` | should fail when exceeding maximum navigation timeout |+| `NA-031` | `page/page-goto.spec.ts` | should fail when exceeding default maximum navigation timeout |+| `NA-032` | `page/page-goto.spec.ts` | should fail when exceeding browser context navigation timeout |+| `NA-033` | `page/page-goto.spec.ts` | should fail when exceeding default maximum timeout |+| `NA-034` | `page/page-goto.spec.ts` | should fail when exceeding browser context timeout |+| `NA-035` | `page/page-goto.spec.ts` | should prioritize default navigation timeout over default timeout |+| `NA-036` | `page/page-goto.spec.ts` | should disable timeout when its set to 0 |+| `NA-037` | `page/page-goto.spec.ts` | should fail when replaced by another navigation |+| `NA-038` | `page/page-goto.spec.ts` | js redirect overrides url bar navigation |+| `NA-039` | `page/page-goto.spec.ts` | should succeed on url bar navigation when there is pending navigation |+| `NA-040` | `page/page-goto.spec.ts` | should work when navigating to valid url |+| `NA-041` | `page/page-goto.spec.ts` | should work when navigating to data url |+| `NA-042` | `page/page-goto.spec.ts` | should work when navigating to 404 |+| `NA-043` | `page/page-goto.spec.ts` | should return last response in redirect chain |+| `NA-044` | `page/page-goto.spec.ts` | should not leak listeners during navigation |+| `NA-045` | `page/page-goto.spec.ts` | should not leak listeners during bad navigation |+| `NA-046` | `page/page-goto.spec.ts` | should not leak listeners during 20 waitForNavigation |+| `NA-047` | `page/page-goto.spec.ts` | should navigate to dataURL and not fire dataURL requests |+| `NA-048` | `page/page-goto.spec.ts` | should navigate to URL with hash and fire requests without hash |+| `NA-049` | `page/page-goto.spec.ts` | should work with self requesting page |+| `NA-050` | `page/page-goto.spec.ts` | should fail when navigating and show the url at the error message |+| `NA-051` | `page/page-goto.spec.ts` | should be able to navigate to a page controlled by service worker |+| `NA-052` | `page/page-goto.spec.ts` | should send referer |+| `NA-053` | `page/page-goto.spec.ts` | should send referer of cross-origin URL |+| `NA-054` | `page/page-goto.spec.ts` | should reject referer option when setExtraHTTPHeaders provides referer |+| `NA-055` | `page/page-goto.spec.ts` | should override referrer-policy |+| `NA-056` | `page/page-goto.spec.ts` | should fail when canceled by another navigation |+| `NA-057` | `page/page-goto.spec.ts` | should work with lazy loading iframes |+| `NA-058` | `page/page-goto.spec.ts` | should report raw buffer for main resource |+| `NA-059` | `page/page-goto.spec.ts` | should not throw unhandled rejections on invalid url |+| `NA-060` | `page/page-goto.spec.ts` | should not crash when RTCPeerConnection is used |+| `NA-061` | `page/page-goto.spec.ts` | should properly wait for load |+| `NA-062` | `page/page-goto.spec.ts` | should not resolve goto upon window.stop() |+| `NA-063` | `page/page-goto.spec.ts` | should return from goto if new navigation is started |+| `NA-064` | `page/page-goto.spec.ts` | should return when navigation is committed if commit is specified |+| `NA-065` | `page/page-goto.spec.ts` | should wait for load when iframe attaches and detaches |+| `NA-066` | `page/page-goto.spec.ts` | should return url with basic auth info |+| `NA-067` | `page/page-navigation.spec.ts` | should work with \_blank target |+| `NA-068` | `page/page-navigation.spec.ts` | should work with cross-process \_blank target |+| `NA-069` | `page/page-navigation.spec.ts` | should work with \_blank target in form |+| `NA-070` | `page/page-navigation.spec.ts` | should not throw TargetClosedException on cross-origin redirect after click |+| `NA-071` | `page/page-history.spec.ts` | page.goBack should work @smoke |+| `NA-072` | `page/page-history.spec.ts` | page.goBack should work with HistoryAPI |+| `NA-073` | `page/page-history.spec.ts` | page.goBack should work for file urls |+| `NA-074` | `page/page-history.spec.ts` | goBack/goForward should work with bfcache-able pages |+| `NA-075` | `page/page-history.spec.ts` | page.reload should work |+| `NA-076` | `page/page-history.spec.ts` | page.reload should work with data url |+| `NA-077` | `page/page-history.spec.ts` | page.reload during renderer-initiated navigation |+| `NA-078` | `page/page-history.spec.ts` | page.reload should not resolve with same-document navigation |+| `NA-079` | `page/page-history.spec.ts` | page.reload should work with same origin redirect |+| `NA-080` | `page/page-history.spec.ts` | page.reload should work with cross-origin redirect |+| `NA-081` | `page/page-history.spec.ts` | page.reload should work on a page with a hash |+| `NA-082` | `page/page-history.spec.ts` | page.reload should work on a page with a hash at the end |+| `NA-083` | `page/page-history.spec.ts` | page.goBack during renderer-initiated navigation |+| `NA-084` | `page/page-history.spec.ts` | page.goForward during renderer-initiated navigation |+| `NA-085` | `page/page-history.spec.ts` | regression test for issue 20791 |+| `NA-086` | `page/page-history.spec.ts` | should reload proper page |+| `NA-087` | `page/page-event-load.spec.ts` | should fire once |+| `NA-088` | `page/page-event-load.spec.ts` | should fire once with iframe navigation |+| `NA-089` | `library/browsercontext-base-url.spec.ts` | should construct a new URL when a baseURL in browser.newContext is passed to page.goto @smoke |+| `NA-090` | `library/browsercontext-base-url.spec.ts` | should construct a new URL when a baseURL in browser.newPage is passed to page.goto |+| `NA-091` | `library/browsercontext-base-url.spec.ts` | should construct a new URL when a baseURL in browserType.launchPersistentContext is passed to page.goto |+| `NA-092` | `library/browsercontext-base-url.spec.ts` | should construct the URLs correctly when a baseURL without a trailing slash in browser.newPage is passed to page.goto |+| `NA-093` | `library/browsercontext-base-url.spec.ts` | should construct the URLs correctly when a baseURL with a trailing slash in browser.newPage is passed to page.goto |+| `NA-094` | `library/browsercontext-base-url.spec.ts` | should not construct a new URL when valid URLs are passed |+| `NA-095` | `library/browsercontext-base-url.spec.ts` | should be able to match a URL relative to its given URL with urlMatcher |+| `NA-096` | `library/browsercontext-base-url.spec.ts` | should not construct a new URL with baseURL when a glob was used |++### NE — Network++| ID | File | Title |+|---|---|---|+| `NE-001` | `page/page-network-request.spec.ts` | should work for main frame navigation request |+| `NE-002` | `page/page-network-request.spec.ts` | should work for subframe navigation request |+| `NE-003` | `page/page-network-request.spec.ts` | should work for fetch requests @smoke |+| `NE-004` | `page/page-network-request.spec.ts` | should work for a redirect |+| `NE-005` | `page/page-network-request.spec.ts` | should not work for a redirect and interception |+| `NE-006` | `page/page-network-request.spec.ts` | should return headers |+| `NE-007` | `page/page-network-request.spec.ts` | should get the same headers as the server |+| `NE-008` | `page/page-network-request.spec.ts` | should not return allHeaders() until they are available |+| `NE-009` | `page/page-network-request.spec.ts` | should get the same headers as the server CORS |+| `NE-010` | `page/page-network-request.spec.ts` | should not get preflight CORS requests when intercepting |+| `NE-011` | `page/page-network-request.spec.ts` | should return postData |+| `NE-012` | `page/page-network-request.spec.ts` | should work with binary post data |+| `NE-013` | `page/page-network-request.spec.ts` | should work with binary post data and interception |+| `NE-014` | `page/page-network-request.spec.ts` | should override post data content type |+| `NE-015` | `page/page-network-request.spec.ts` | should get \|undefined\| with postData() when there is no post data |+| `NE-016` | `page/page-network-request.spec.ts` | should parse the json post data |+| `NE-017` | `page/page-network-request.spec.ts` | should parse the data if content-type is application/x-www-form-urlencoded |+| `NE-018` | `page/page-network-request.spec.ts` | should parse the data if content-type is application/x-www-form-urlencoded; charset=UTF-8 |+| `NE-019` | `page/page-network-request.spec.ts` | should get \|undefined\| with postDataJSON() when there is no post data |+| `NE-020` | `page/page-network-request.spec.ts` | should return multipart/form-data |+| `NE-021` | `page/page-network-request.spec.ts` | should return event source |+| `NE-022` | `page/page-network-request.spec.ts` | should return navigation bit |+| `NE-023` | `page/page-network-request.spec.ts` | should return navigation bit when navigating to image |+| `NE-024` | `page/page-network-request.spec.ts` | should report raw headers |+| `NE-025` | `page/page-network-request.spec.ts` | should report raw response headers in redirects |+| `NE-026` | `page/page-network-request.spec.ts` | should report all cookies in one header |+| `NE-027` | `page/page-network-request.spec.ts` | should not allow to access frame on popup main request |+| `NE-028` | `page/page-network-request.spec.ts` | page.reload return 304 status code |+| `NE-029` | `page/page-network-request.spec.ts` | should handle mixed-content blocked requests |+| `NE-030` | `page/page-network-response.spec.ts` | should work @smoke |+| `NE-031` | `page/page-network-response.spec.ts` | should return multiple header value |+| `NE-032` | `page/page-network-response.spec.ts` | should return text |+| `NE-033` | `page/page-network-response.spec.ts` | should return uncompressed text |+| `NE-034` | `page/page-network-response.spec.ts` | should return uncompressed text for brotli encoding |+| `NE-035` | `page/page-network-response.spec.ts` | should return text for identity encoding |+| `NE-036` | `page/page-network-response.spec.ts` | should throw when requesting body of redirected response |+| `NE-037` | `page/page-network-response.spec.ts` | should wait until response completes |+| `NE-038` | `page/page-network-response.spec.ts` | should return json |+| `NE-039` | `page/page-network-response.spec.ts` | should return body |+| `NE-040` | `page/page-network-response.spec.ts` | should return body with compression |+| `NE-041` | `page/page-network-response.spec.ts` | should return non-utf8 body even when content-type says utf8 |+| `NE-042` | `page/page-network-response.spec.ts` | should return status text |+| `NE-043` | `page/page-network-response.spec.ts` | should report all headers |+| `NE-044` | `page/page-network-response.spec.ts` | should report multiple set-cookie headers |+| `NE-045` | `page/page-network-response.spec.ts` | should behave the same way for headers and allHeaders |+| `NE-046` | `page/page-network-response.spec.ts` | should provide a Response with a file URL |+| `NE-047` | `page/page-network-response.spec.ts` | should return set-cookie header after route.fulfill |+| `NE-048` | `page/page-network-response.spec.ts` | should return headers after route.fulfill |+| `NE-049` | `page/page-network-response.spec.ts` | should report if request was fromServiceWorker |+| `NE-050` | `page/page-network-response.spec.ts` | should return body for prefetch script |+| `NE-051` | `page/page-network-response.spec.ts` | should return body for image with evicted body |+| `NE-052` | `page/page-network-response.spec.ts` | should bypass disk cache when page interception is enabled |+| `NE-053` | `page/page-network-response.spec.ts` | request.existingResponse should return null before response is received |+| `NE-054` | `page/page-network-response.spec.ts` | request.existingResponse should return the response after it is received |+| `NE-055` | `page/page-network-response.spec.ts` | should return http version |+| `NE-056` | `page/page-network-response.spec.ts` | Response.formData() should parse multipart/form-data in page context |+| `NE-057` | `page/page-network-response.spec.ts` | should give a readable error when response.body() races with navigation |+| `NE-058` | `page/page-network-sizes.spec.ts` | should set bodySize and headersSize |+| `NE-059` | `page/page-network-sizes.spec.ts` | should set bodySize to 0 if there was no body |+| `NE-060` | `page/page-network-sizes.spec.ts` | should set bodySize, headersSize, and transferSize |+| `NE-061` | `page/page-network-sizes.spec.ts` | should set bodySize to 0 when there was no response body |+| `NE-062` | `page/page-network-sizes.spec.ts` | should have the correct responseBodySize |+| `NE-063` | `page/page-network-sizes.spec.ts` | should have the correct responseBodySize for chunked request |+| `NE-064` | `page/page-network-sizes.spec.ts` | should have the correct responseBodySize with gzip compression |+| `NE-065` | `page/page-network-sizes.spec.ts` | should handle redirects |+| `NE-066` | `page/page-network-sizes.spec.ts` | should throw for failed requests |+| `NE-067` | `page/page-network-sizes.spec.ts` | should work with {200, 401, 404, 500} status code *(4 copies)* |+| `NE-068` | `page/page-network-sizes.spec.ts` | should have correct responseBodySize for 404 with content |+| `NE-069` | `page/page-network-sizes.spec.ts` | should return sizes without hanging |+| `NE-070` | `page/page-network-idle.spec.ts` | should navigate to empty page with networkidle |+| `NE-071` | `page/page-network-idle.spec.ts` | should wait for networkidle to succeed navigation |+| `NE-072` | `page/page-network-idle.spec.ts` | should wait for networkidle to succeed navigation with request from previous navigation |+| `NE-073` | `page/page-network-idle.spec.ts` | should wait for networkidle in waitForNavigation |+| `NE-074` | `page/page-network-idle.spec.ts` | should wait for networkidle in setContent |+| `NE-075` | `page/page-network-idle.spec.ts` | should wait for networkidle in setContent with request from previous navigation |+| `NE-076` | `page/page-network-idle.spec.ts` | should wait for networkidle when navigating iframe |+| `NE-077` | `page/page-network-idle.spec.ts` | should wait for networkidle in setContent from the child frame |+| `NE-078` | `page/page-network-idle.spec.ts` | should wait for networkidle from the child frame |+| `NE-079` | `page/page-network-idle.spec.ts` | should wait for networkidle from the popup |+| `NE-080` | `page/page-network-idle.spec.ts` | should wait for networkidle when iframe attaches and detaches |+| `NE-081` | `page/page-network-idle.spec.ts` | should work after repeated navigations in the same page |+| `NE-082` | `page/page-network-idle.spec.ts` | should not wait for an open EventSource connection |+| `NE-083` | `page/page-network-idle.spec.ts` | should not wait for an open EventSource connection in setContent |+| `NE-084` | `page/page-event-network.spec.ts` | Page.Events.Request @smoke |+| `NE-085` | `page/page-event-network.spec.ts` | Page.Events.Response @smoke |+| `NE-086` | `page/page-event-network.spec.ts` | Page.Events.RequestFailed @smoke |+| `NE-087` | `page/page-event-network.spec.ts` | Page.Events.RequestFinished @smoke |+| `NE-088` | `page/page-event-network.spec.ts` | should fire events in proper order |+| `NE-089` | `page/page-event-network.spec.ts` | should support redirects |+| `NE-090` | `page/page-event-network.spec.ts` | should resolve responses after a navigation |+| `NE-091` | `page/page-event-request.spec.ts` | should fire for navigation requests |+| `NE-092` | `page/page-event-request.spec.ts` | should fire for iframes |+| `NE-093` | `page/page-event-request.spec.ts` | should fire for fetches |+| `NE-094` | `page/page-event-request.spec.ts` | should fire for fetches with keepalive: true |+| `NE-095` | `page/page-event-request.spec.ts` | should report requests and responses handled by service worker |+| `NE-096` | `page/page-event-request.spec.ts` | should report requests and responses handled by service worker with routing |+| `NE-097` | `page/page-event-request.spec.ts` | should report navigation requests and responses handled by service worker |+| `NE-098` | `page/page-event-request.spec.ts` | should report navigation requests and responses handled by service worker with routing |+| `NE-099` | `page/page-event-request.spec.ts` | should return response body when Cross-Origin-Opener-Policy is set |+| `NE-100` | `page/page-event-request.spec.ts` | should fire requestfailed when intercepting race |+| `NE-101` | `page/page-event-request.spec.ts` | main resource xhr should have type xhr |+| `NE-102` | `page/page-event-request.spec.ts` | should finish 204 request |+| `NE-103` | `page/page-event-request.spec.ts` | should fail 204 navigation request |+| `NE-104` | `page/page-event-request.spec.ts` | \<picture\> resource should have type image |+| `NE-105` | `page/page-event-request.spec.ts` | should not expose preflight OPTIONS request |+| `NE-106` | `page/page-event-request.spec.ts` | should not expose preflight OPTIONS request with network interception |+| `NE-107` | `page/page-event-request.spec.ts` | should return last requests |+| `NE-108` | `page/network-post-data.spec.ts` | should return correct postData buffer for utf-8 body |+| `NE-109` | `page/network-post-data.spec.ts` | should return post data w/o content-type @smoke |+| `NE-110` | `page/network-post-data.spec.ts` | should throw on invalid JSON in post data |+| `NE-111` | `page/network-post-data.spec.ts` | should return post data for PUT requests |+| `NE-112` | `page/network-post-data.spec.ts` | should get post data for file/blob |+| `NE-113` | `page/network-post-data.spec.ts` | should get post data for navigator.sendBeacon api calls |+| `NE-114` | `page/page-set-extra-http-headers.spec.ts` | should work @smoke |+| `NE-115` | `page/page-set-extra-http-headers.spec.ts` | should work with redirects |+| `NE-116` | `page/page-set-extra-http-headers.spec.ts` | should work with extra headers from browser context |+| `NE-117` | `page/page-set-extra-http-headers.spec.ts` | should throw for non-string header values |+| `NE-118` | `page/page-set-extra-http-headers.spec.ts` | should not duplicate referer header |+| `NE-119` | `library/browsercontext-set-extra-http-headers.spec.ts` | should override extra headers from browser context |+| `NE-120` | `library/browsercontext-set-extra-http-headers.spec.ts` | should throw for non-string header values |+| `NE-121` | `library/browsercontext-network-event.spec.ts` | BrowserContext.Events.Request |+| `NE-122` | `library/browsercontext-network-event.spec.ts` | BrowserContext.Events.Response |+| `NE-123` | `library/browsercontext-network-event.spec.ts` | BrowserContext.Events.RequestFailed |+| `NE-124` | `library/browsercontext-network-event.spec.ts` | BrowserContext.Events.RequestFinished |+| `NE-125` | `library/browsercontext-network-event.spec.ts` | should fire events in proper order |+| `NE-126` | `library/browsercontext-network-event.spec.ts` | should not fire events for favicon or favicon redirects |+| `NE-127` | `library/browsercontext-network-event.spec.ts` | should reject response.finished if context closes |+| `NE-128` | `library/network-timeout.spec.ts` | httpRequest should honor socketTimeout while connecting |+| `NE-129` | `library/network-timeout.spec.ts` | httpRequest should honor socketTimeout for stalled responses |+| `NE-130` | `library/network-timeout.spec.ts` | httpRequest should honor ipv4first result order |+| `NE-131` | `library/resource-timing.spec.ts` | should work @smoke |+| `NE-132` | `library/resource-timing.spec.ts` | should work for subresource |+| `NE-133` | `library/resource-timing.spec.ts` | should work for SSL |+| `NE-134` | `library/resource-timing.spec.ts` | should work for redirect |+| `NE-135` | `library/resource-timing.spec.ts` | should work when serving from memory cache |+| `NE-136` | `library/ignorehttpserrors.spec.ts` | should work @smoke |+| `NE-137` | `library/ignorehttpserrors.spec.ts` | should isolate contexts |+| `NE-138` | `library/ignorehttpserrors.spec.ts` | should isolated contexts that share network process |+| `NE-139` | `library/ignorehttpserrors.spec.ts` | should work with mixed content |+| `NE-140` | `library/ignorehttpserrors.spec.ts` | should work with WebSocket |+| `NE-141` | `library/ignorehttpserrors.spec.ts` | should fail with WebSocket if not ignored |+| `NE-142` | `library/ignorehttpserrors.spec.ts` | serviceWorker should intercept document request |++### OO — OOPIF++| ID | File | Title |+|---|---|---|+| `OO-001` | `library/chromium/oopif.spec.ts` | should report oopif frames |+| `OO-002` | `library/chromium/oopif.spec.ts` | should handle oopif detach |+| `OO-003` | `library/chromium/oopif.spec.ts` | should remove workers of a detached oopif |+| `OO-004` | `library/chromium/oopif.spec.ts` | should not hang in unrouteAll when oopif worker is gone |+| `OO-005` | `library/chromium/oopif.spec.ts` | should handle remote -\> local -\> remote transitions |+| `OO-006` | `library/chromium/oopif.spec.ts` | should get the proper viewport |+| `OO-007` | `library/chromium/oopif.spec.ts` | should expose function |+| `OO-008` | `library/chromium/oopif.spec.ts` | should emulate media |+| `OO-009` | `library/chromium/oopif.spec.ts` | should emulate offline |+| `OO-010` | `library/chromium/oopif.spec.ts` | should support context options |+| `OO-011` | `library/chromium/oopif.spec.ts` | should respect route |+| `OO-012` | `library/chromium/oopif.spec.ts` | should take screenshot |+| `OO-013` | `library/chromium/oopif.spec.ts` | should load oopif iframes with subresources and route |+| `OO-014` | `library/chromium/oopif.spec.ts` | should report main requests |+| `OO-015` | `library/chromium/oopif.spec.ts` | should support exposeFunction |+| `OO-016` | `library/chromium/oopif.spec.ts` | should support addInitScript |+| `OO-017` | `library/chromium/oopif.spec.ts` | should click a button when it overlays oopif |+| `OO-018` | `library/chromium/oopif.spec.ts` | should report google.com frame with headed |+| `OO-019` | `library/chromium/oopif.spec.ts` | ElementHandle.boundingBox() should work |+| `OO-020` | `library/chromium/oopif.spec.ts` | should click |+| `OO-021` | `library/chromium/oopif.spec.ts` | contentFrame should work |+| `OO-022` | `library/chromium/oopif.spec.ts` | should allow cdp sessions on oopifs |+| `OO-023` | `library/chromium/oopif.spec.ts` | should emit filechooser event for iframe |+| `OO-024` | `library/chromium/oopif.spec.ts` | should be able to click in iframe |+| `OO-025` | `library/chromium/oopif.spec.ts` | should not throw on exposeFunction when oopif detaches |+| `OO-026` | `library/chromium/oopif.spec.ts` | should intercept response body from oopif |+| `OO-027` | `library/chromium/oopif.spec.ts` | should navigate a local frame to oopif with frame.goto |+| `OO-028` | `library/chromium/oopif.spec.ts` | should allow to re-connect to OOPIFs with CDP when iframes were there already |+| `OO-029` | `library/chromium/oopif.spec.ts` | should report the whole frame tree when connecting over CDP to nested OOPIFs |++### PA — Page++| ID | File | Title |+|---|---|---|+| `PA-001` | `page/page-basic.spec.ts` | should fire load when expected |+| `PA-002` | `page/page-basic.spec.ts` | async stacks should work |+| `PA-003` | `page/page-basic.spec.ts` | should provide access to the opener page |+| `PA-004` | `page/page-basic.spec.ts` | should fire domcontentloaded when expected |+| `PA-005` | `page/page-basic.spec.ts` | should pass self as argument to domcontentloaded event |+| `PA-006` | `page/page-basic.spec.ts` | should pass self as argument to load event |+| `PA-007` | `page/page-basic.spec.ts` | page.url should work |+| `PA-008` | `page/page-basic.spec.ts` | page.url should include hashes |+| `PA-009` | `page/page-basic.spec.ts` | page.title should return the page title |+| `PA-010` | `page/page-basic.spec.ts` | page.title should not throw during navigation |+| `PA-011` | `page/page-basic.spec.ts` | page.close should work with window.close |+| `PA-012` | `page/page-basic.spec.ts` | page.frame should respect name |+| `PA-013` | `page/page-basic.spec.ts` | page.frame should respect url |+| `PA-014` | `page/page-basic.spec.ts` | should have sane user agent |+| `PA-015` | `page/page-basic.spec.ts` | page.press should work |+| `PA-016` | `page/page-basic.spec.ts` | page.press should work for Enter |+| `PA-017` | `page/page-basic.spec.ts` | frame.press should work |+| `PA-018` | `page/page-basic.spec.ts` | has navigator.webdriver set to true |+| `PA-019` | `page/page-basic.spec.ts` | should iterate over page properties |+| `PA-020` | `page/page-set-content.spec.ts` | should work @smoke |+| `PA-021` | `page/page-set-content.spec.ts` | should work with domcontentloaded |+| `PA-022` | `page/page-set-content.spec.ts` | should work with commit |+| `PA-023` | `page/page-set-content.spec.ts` | should work with doctype |+| `PA-024` | `page/page-set-content.spec.ts` | should work with HTML 4 doctype |+| `PA-025` | `page/page-set-content.spec.ts` | should include shadow roots |+| `PA-026` | `page/page-set-content.spec.ts` | should respect timeout |+| `PA-027` | `page/page-set-content.spec.ts` | should respect default navigation timeout |+| `PA-028` | `page/page-set-content.spec.ts` | should await resources to load |+| `PA-029` | `page/page-set-content.spec.ts` | should work fast enough |+| `PA-030` | `page/page-set-content.spec.ts` | should work with tricky content |+| `PA-031` | `page/page-set-content.spec.ts` | should work with accents |+| `PA-032` | `page/page-set-content.spec.ts` | should work with emojis |+| `PA-033` | `page/page-set-content.spec.ts` | should work with newline |+| `PA-034` | `page/page-set-content.spec.ts` | content() should throw nice error during navigation |+| `PA-035` | `page/page-set-content.spec.ts` | should return empty content there is no iframe src |+| `PA-036` | `page/page-set-content.spec.ts` | should handle timeout properly |+| `PA-037` | `page/page-set-content.spec.ts` | should handle timeout properly 2 |+| `PA-038` | `page/page-transition.spec.ts` | should not crash when filter transition completes |+| `PA-039` | `library/page-close.spec.ts` | should close page with active dialog |+| `PA-040` | `library/page-close.spec.ts` | expect should not print timed out error message when page closes |+| `PA-041` | `library/page-close.spec.ts` | addLocatorHandler should throw when page closes |+| `PA-042` | `library/page-close.spec.ts` | should reject all promises when page is closed |+| `PA-043` | `library/page-close.spec.ts` | should set the page close state |+| `PA-044` | `library/page-close.spec.ts` | should pass page to close event |+| `PA-045` | `library/page-close.spec.ts` | should terminate network waiters |+| `PA-046` | `library/page-close.spec.ts` | should be callable twice |+| `PA-047` | `library/page-close.spec.ts` | should return null if parent page has been closed |+| `PA-048` | `library/page-close.spec.ts` | should fail with error upon disconnect |+| `PA-049` | `library/page-close.spec.ts` | page.close should work with window.close |+| `PA-050` | `library/page-close.spec.ts` | should not throw UnhandledPromiseRejection when page closes |+| `PA-051` | `library/page-close.spec.ts` | interrupt request.response() and request.allHeaders() on page.close |+| `PA-052` | `library/page-close.spec.ts` | should not treat navigations as new popups |+| `PA-053` | `library/page-close.spec.ts` | should not result in unhandled rejection |+| `PA-054` | `library/page-close.spec.ts` | should reject response.finished if page closes |+| `PA-055` | `library/page-close.spec.ts` | should not throw when continuing while page is closing |+| `PA-056` | `library/page-close.spec.ts` | should not throw when continuing after page is closed |++### PC — Playwright client++| ID | File | Title |+|---|---|---|+| `PC-001` | `library/playwright-client.spec.ts` | should connect from a page and drive the same browser |++### PD — PDF++| ID | File | Title |+|---|---|---|+| `PD-001` | `library/pdf.spec.ts` | should be able to save file |+| `PD-002` | `library/pdf.spec.ts` | should be able to generate outline |++### PE — Permissions++| ID | File | Title |+|---|---|---|+| `PE-001` | `library/permissions.spec.ts` | permissions › should be prompt by default |+| `PE-002` | `library/permissions.spec.ts` | permissions › should deny permission when not listed |+| `PE-003` | `library/permissions.spec.ts` | permissions › should fail when bad permission is given |+| `PE-004` | `library/permissions.spec.ts` | permissions › should grant geolocation permission when origin is listed |+| `PE-005` | `library/permissions.spec.ts` | permissions › should prompt for geolocation permission when origin is not listed |+| `PE-006` | `library/permissions.spec.ts` | permissions › should grant notifications permission when listed |+| `PE-007` | `library/permissions.spec.ts` | permissions › should accumulate when adding |+| `PE-008` | `library/permissions.spec.ts` | permissions › should clear permissions |+| `PE-009` | `library/permissions.spec.ts` | permissions › should grant permission when listed for all domains |+| `PE-010` | `library/permissions.spec.ts` | permissions › should grant permission when creating context |+| `PE-011` | `library/permissions.spec.ts` | permissions › should reset permissions |+| `PE-012` | `library/permissions.spec.ts` | permissions › should trigger permission onchange |+| `PE-013` | `library/permissions.spec.ts` | permissions › should isolate permissions between browser contexts |+| `PE-014` | `library/permissions.spec.ts` | should support clipboard read |+| `PE-015` | `library/permissions.spec.ts` | should isolate the headless clipboard from the operating system |+| `PE-016` | `library/permissions.spec.ts` | storage access |+| `PE-017` | `library/permissions.spec.ts` | should be able to use the local-fonts API |+| `PE-018` | `library/permissions.spec.ts` | local network request is allowed from public origin |+| `PE-019` | `library/permissions.spec.ts` | can request screen-wake-lock |+| `PE-020` | `library/permissions.spec.ts` | camera and microphone › should capture when camera and microphone are granted |+| `PE-021` | `library/permissions.spec.ts` | camera and microphone › should reject when no permission is granted |+| `PE-022` | `library/permissions.spec.ts` | camera and microphone › should gate audio and video independently |+| `PE-023` | `library/permissions.spec.ts` | camera and microphone › should stop capturing after permissions are cleared |++### PO — Popup++| ID | File | Title |+|---|---|---|+| `PO-001` | `page/page-event-popup.spec.ts` | should work @smoke |+| `PO-002` | `page/page-event-popup.spec.ts` | should work with window features |+| `PO-003` | `page/page-event-popup.spec.ts` | should emit for immediately closed popups |+| `PO-004` | `page/page-event-popup.spec.ts` | should emit for immediately closed popups 2 |+| `PO-005` | `page/page-event-popup.spec.ts` | should be able to capture alert |+| `PO-006` | `page/page-event-popup.spec.ts` | should work with empty url |+| `PO-007` | `page/page-event-popup.spec.ts` | should work with noopener and no url |+| `PO-008` | `page/page-event-popup.spec.ts` | should work with noopener and about:blank |+| `PO-009` | `page/page-event-popup.spec.ts` | should work with noopener and url |+| `PO-010` | `page/page-event-popup.spec.ts` | should work with clicking target=\_blank |+| `PO-011` | `page/page-event-popup.spec.ts` | should work with fake-clicking target=\_blank and rel=noopener |+| `PO-012` | `page/page-event-popup.spec.ts` | should work with clicking target=\_blank and rel=noopener |+| `PO-013` | `page/page-event-popup.spec.ts` | should report popup opened from iframes |+| `PO-014` | `library/popup.spec.ts` | should inherit user agent from browser context @smoke |+| `PO-015` | `library/popup.spec.ts` | should respect routes from browser context |+| `PO-016` | `library/popup.spec.ts` | should inherit extra headers from browser context |+| `PO-017` | `library/popup.spec.ts` | should inherit offline from browser context |+| `PO-018` | `library/popup.spec.ts` | should inherit http credentials from browser context |+| `PO-019` | `library/popup.spec.ts` | should inherit touch support from browser context |+| `PO-020` | `library/popup.spec.ts` | should inherit viewport size from browser context |+| `PO-021` | `library/popup.spec.ts` | should use viewport size from window features |+| `PO-022` | `library/popup.spec.ts` | should respect routes from browser context when using window.open |+| `PO-023` | `library/popup.spec.ts` | BrowserContext.addInitScript should apply to an in-process popup |+| `PO-024` | `library/popup.spec.ts` | BrowserContext.addInitScript should apply to a cross-process popup |+| `PO-025` | `library/popup.spec.ts` | should expose function from browser context |+| `PO-026` | `library/popup.spec.ts` | should not dispatch binding on a closed page |+| `PO-027` | `library/popup.spec.ts` | should not throttle rAF in the opener page |+| `PO-028` | `library/popup.spec.ts` | should not throw when click closes popup |++### PR — Proxy++| ID | File | Title |+|---|---|---|+| `PR-001` | `library/proxy.spec.ts` | should throw for bad server value |+| `PR-002` | `library/proxy.spec.ts` | should use proxy @smoke |+| `PR-003` | `library/proxy.spec.ts` | should use proxy for second page |+| `PR-004` | `library/proxy.spec.ts` | should work with IP:PORT notion |+| `PR-005` | `library/proxy.spec.ts` | should proxy local network requests › {by default, with other bypasses} › {localhost, loopback address, link-local} *(6 copies)* |+| `PR-006` | `library/proxy.spec.ts` | should allow bypassing {localhost, 127.0.0.1} requests *(2 copies)* |+| `PR-007` | `library/proxy.spec.ts` | should authenticate |+| `PR-008` | `library/proxy.spec.ts` | should reconnect with credentials after CONNECT 407 closes the socket |+| `PR-009` | `library/proxy.spec.ts` | should work with authenticate followed by redirect |+| `PR-010` | `library/proxy.spec.ts` | should exclude patterns |+| `PR-011` | `library/proxy.spec.ts` | should bypass proxy for {localhost when localhost, 127.0.0.1 when 127.0.0.1} is in bypass list *(2 copies)* |+| `PR-012` | `library/proxy.spec.ts` | should use socks proxy |+| `PR-013` | `library/proxy.spec.ts` | should use socks proxy in second page |+| `PR-014` | `library/proxy.spec.ts` | does launch without a port |+| `PR-015` | `library/proxy.spec.ts` | should use proxy with emulated user agent |+| `PR-016` | `library/proxy.spec.ts` | should use SOCKS proxy for websocket requests |+| `PR-017` | `library/proxy.spec.ts` | should use http proxy for websocket requests |+| `PR-018` | `library/browsercontext-proxy.spec.ts` | should work when passing the proxy only on the context level |+| `PR-019` | `library/browsercontext-proxy.spec.ts` | should ignore legacy {'per-context', 'http://per-context'} launch proxy *(2 copies)* |+| `PR-020` | `library/browsercontext-proxy.spec.ts` | should throw for bad server value |+| `PR-021` | `library/browsercontext-proxy.spec.ts` | should use proxy |+| `PR-022` | `library/browsercontext-proxy.spec.ts` | should send secure cookies to subdomain.localhost |+| `PR-023` | `library/browsercontext-proxy.spec.ts` | should set cookie for top-level domain |+| `PR-024` | `library/browsercontext-proxy.spec.ts` | should proxy local network requests › {by default, with other bypasses} › {localhost, loopback address, link-local} *(6 copies)* |+| `PR-025` | `library/browsercontext-proxy.spec.ts` | should use ipv6 proxy |+| `PR-026` | `library/browsercontext-proxy.spec.ts` | should use proxy twice |+| `PR-027` | `library/browsercontext-proxy.spec.ts` | should use proxy for second page |+| `PR-028` | `library/browsercontext-proxy.spec.ts` | should use proxy for https urls |+| `PR-029` | `library/browsercontext-proxy.spec.ts` | should work with IP:PORT notion |+| `PR-030` | `library/browsercontext-proxy.spec.ts` | should throw for socks5 authentication |+| `PR-031` | `library/browsercontext-proxy.spec.ts` | should throw for socks4 authentication |+| `PR-032` | `library/browsercontext-proxy.spec.ts` | should authenticate |+| `PR-033` | `library/browsercontext-proxy.spec.ts` | should authenticate with empty password |+| `PR-034` | `library/browsercontext-proxy.spec.ts` | should isolate proxy credentials between contexts |+| `PR-035` | `library/browsercontext-proxy.spec.ts` | should exclude patterns |+| `PR-036` | `library/browsercontext-proxy.spec.ts` | should use socks proxy |+| `PR-037` | `library/browsercontext-proxy.spec.ts` | should use socks proxy in second page |+| `PR-038` | `library/browsercontext-proxy.spec.ts` | does launch without a port |+| `PR-039` | `library/browsercontext-proxy.spec.ts` | should isolate proxy credentials between contexts on navigation |+| `PR-040` | `library/proxy-pattern.spec.ts` | socks proxy patter matcher |+| `PR-041` | `library/fetch-proxy.spec.ts` | context request should pick up proxy credentials |+| `PR-042` | `library/fetch-proxy.spec.ts` | global request should pick up proxy credentials |+| `PR-043` | `library/fetch-proxy.spec.ts` | should work with context level proxy |+| `PR-044` | `library/fetch-proxy.spec.ts` | should support proxy.bypass |+| `PR-045` | `library/fetch-proxy.spec.ts` | should use socks proxy |+| `PR-046` | `library/fetch-proxy.spec.ts` | should send correct ALPN protocol to HTTPS proxy |+| `PR-047` | `library/fetch-proxy.spec.ts` | should apply proxy.bypass to redirect targets |++### PS — Parser++| ID | File | Title |+|---|---|---|+| `PS-001` | `library/locator-parser.spec.ts` | should parse getByText, getByLabel, getByPlaceholder, getByAltText and getByTitle |+| `PS-002` | `library/locator-parser.spec.ts` | should parse getByTestId |+| `PS-003` | `library/locator-parser.spec.ts` | should parse getByTestId with a custom test id attribute |+| `PS-004` | `library/locator-parser.spec.ts` | should parse getByRef |+| `PS-005` | `library/locator-parser.spec.ts` | should parse getByRole with every role |+| `PS-006` | `library/locator-parser.spec.ts` | should parse getByRole options |+| `PS-007` | `library/locator-parser.spec.ts` | should parse getByRole name and description |+| `PS-008` | `library/locator-parser.spec.ts` | should parse getByRole options in any order |+| `PS-009` | `library/locator-parser.spec.ts` | should parse locator with a selector |+| `PS-010` | `library/locator-parser.spec.ts` | should parse locator and filter options |+| `PS-011` | `library/locator-parser.spec.ts` | should parse first, last, nth and visible |+| `PS-012` | `library/locator-parser.spec.ts` | should parse and, or, locator and within with a locator argument |+| `PS-013` | `library/locator-parser.spec.ts` | should parse chained refinements |+| `PS-014` | `library/locator-parser.spec.ts` | should parse frame locators |+| `PS-015` | `library/locator-parser.spec.ts` | should parse FrameLocator.locator with a locator argument |+| `PS-016` | `library/locator-parser.spec.ts` | should parse owner |+| `PS-017` | `library/locator-parser.spec.ts` | should parse describe |+| `PS-018` | `library/locator-parser.spec.ts` | should parse deeply nested locators |+| `PS-019` | `library/locator-parser.spec.ts` | should parse generated locators |+| `PS-020` | `library/locator-parser.spec.ts` | should parse javascript string escapes |+| `PS-021` | `library/locator-parser.spec.ts` | should parse python string escapes |+| `PS-022` | `library/locator-parser.spec.ts` | should parse java string escapes |+| `PS-023` | `library/locator-parser.spec.ts` | should parse csharp string escapes |+| `PS-024` | `library/locator-parser.spec.ts` | should parse javascript regular expressions |+| `PS-025` | `library/locator-parser.spec.ts` | should parse python regular expressions |+| `PS-026` | `library/locator-parser.spec.ts` | should parse java regular expressions |+| `PS-027` | `library/locator-parser.spec.ts` | should parse csharp regular expressions |+| `PS-028` | `library/locator-parser.spec.ts` | should parse csharp options with an explicit type |+| `PS-029` | `library/locator-parser.spec.ts` | should parse trailing commas |+| `PS-030` | `library/locator-parser.spec.ts` | should parse unusual whitespace |+| `PS-031` | `library/locator-parser.spec.ts` | should return selectors as is |+| `PS-032` | `library/locator-parser.spec.ts` | should reject malformed javascript locators |+| `PS-033` | `library/locator-parser.spec.ts` | should reject malformed python locators |+| `PS-034` | `library/locator-parser.spec.ts` | should reject malformed java locators |+| `PS-035` | `library/locator-parser.spec.ts` | should reject malformed csharp locators |+| `PS-036` | `library/locator-parser.spec.ts` | should reject methods that the receiver does not have |+| `PS-037` | `library/locator-parser.spec.ts` | should reject arguments of a wrong type or count |+| `PS-038` | `library/component-parser.spec.ts` | should parse |+| `PS-039` | `library/component-parser.spec.ts` | should parse short attributes |+| `PS-040` | `library/component-parser.spec.ts` | should parse all operators |+| `PS-041` | `library/component-parser.spec.ts` | should tolerate spacing |+| `PS-042` | `library/component-parser.spec.ts` | should escape |+| `PS-043` | `library/component-parser.spec.ts` | should parse int values |+| `PS-044` | `library/component-parser.spec.ts` | should parse float values |+| `PS-045` | `library/component-parser.spec.ts` | should parse bool |+| `PS-046` | `library/component-parser.spec.ts` | should parse regex |+| `PS-047` | `library/component-parser.spec.ts` | should parse identifiers |+| `PS-048` | `library/component-parser.spec.ts` | should parse unquoted string |+| `PS-049` | `library/component-parser.spec.ts` | should throw on malformed selector |+| `PS-050` | `library/css-parser.spec.ts` | should parse css |+| `PS-051` | `library/css-parser.spec.ts` | should throw on malformed css |++### QS — Query selector++| ID | File | Title |+|---|---|---|+| `QS-001` | `page/queryselector.spec.ts` | should throw for non-string selector |+| `QS-002` | `page/queryselector.spec.ts` | should query existing element with css selector @smoke |+| `QS-003` | `page/queryselector.spec.ts` | should query existing element with text selector |+| `QS-004` | `page/queryselector.spec.ts` | should query existing element with xpath selector |+| `QS-005` | `page/queryselector.spec.ts` | should return null for non-existing element |+| `QS-006` | `page/queryselector.spec.ts` | should auto-detect xpath selector |+| `QS-007` | `page/queryselector.spec.ts` | should auto-detect xpath selector with starting parenthesis |+| `QS-008` | `page/queryselector.spec.ts` | should auto-detect xpath selector starting with .. |+| `QS-009` | `page/queryselector.spec.ts` | should auto-detect text selector |+| `QS-010` | `page/queryselector.spec.ts` | should auto-detect css selector |+| `QS-011` | `page/queryselector.spec.ts` | should support \>\> syntax |+| `QS-012` | `page/queryselector.spec.ts` | should query existing elements |+| `QS-013` | `page/queryselector.spec.ts` | should return empty array if nothing is found |+| `QS-014` | `page/queryselector.spec.ts` | xpath should query existing element |+| `QS-015` | `page/queryselector.spec.ts` | xpath should return empty array for non-existing element |+| `QS-016` | `page/queryselector.spec.ts` | xpath should return multiple elements |+| `QS-017` | `page/queryselector.spec.ts` | $$ should work with bogus Array.from |++### RE — Retarget++| ID | File | Title |+|---|---|---|+| `RE-001` | `page/retarget.spec.ts` | element state checks should work as expected for label with zero-sized input |+| `RE-002` | `page/retarget.spec.ts` | should wait for enclosing disabled button |+| `RE-003` | `page/retarget.spec.ts` | should wait for enclosing button with a disabled fieldset |+| `RE-004` | `page/retarget.spec.ts` | should wait for enclosing enabled button |+| `RE-005` | `page/retarget.spec.ts` | should check the box outside shadow dom label |+| `RE-006` | `page/retarget.spec.ts` | setInputFiles should work with label |+| `RE-007` | `page/retarget.spec.ts` | enabled/disabled retargeting |+| `RE-008` | `page/retarget.spec.ts` | visible/hidden retargeting |+| `RE-009` | `page/retarget.spec.ts` | editable retargeting |+| `RE-010` | `page/retarget.spec.ts` | input value retargeting |+| `RE-011` | `page/retarget.spec.ts` | selection retargeting |+| `RE-012` | `page/retarget.spec.ts` | select options retargeting |+| `RE-013` | `page/retarget.spec.ts` | direct actions retargeting |+| `RE-014` | `page/retarget.spec.ts` | check retargeting |+| `RE-015` | `page/retarget.spec.ts` | should not retarget anchor into parent label |++### RO — Route++| ID | File | Title |+|---|---|---|+| `RO-001` | `page/page-route.spec.ts` | should intercept @smoke |+| `RO-002` | `page/page-route.spec.ts` | should unroute |+| `RO-003` | `page/page-route.spec.ts` | should not support ? in glob pattern |+| `RO-004` | `page/page-route.spec.ts` | should work when POST is redirected with 302 |+| `RO-005` | `page/page-route.spec.ts` | should work when header manipulation headers with redirect |+| `RO-006` | `page/page-route.spec.ts` | should be able to remove headers |+| `RO-007` | `page/page-route.spec.ts` | should contain referer header |+| `RO-008` | `page/page-route.spec.ts` | should properly return navigation response when URL has cookies |+| `RO-009` | `page/page-route.spec.ts` | should not override cookie header |+| `RO-010` | `page/page-route.spec.ts` | should show custom HTTP headers |+| `RO-011` | `page/page-route.spec.ts` | should work with redirect inside sync XHR |+| `RO-012` | `page/page-route.spec.ts` | should pause intercepted XHR until continue |+| `RO-013` | `page/page-route.spec.ts` | should pause intercepted fetch request until continue |+| `RO-014` | `page/page-route.spec.ts` | should work with custom referer headers |+| `RO-015` | `page/page-route.spec.ts` | should be abortable |+| `RO-016` | `page/page-route.spec.ts` | should be abortable with custom error codes |+| `RO-017` | `page/page-route.spec.ts` | should not throw if request was cancelled by the page |+| `RO-018` | `page/page-route.spec.ts` | should send referer |+| `RO-019` | `page/page-route.spec.ts` | should fail navigation when aborting main resource |+| `RO-020` | `page/page-route.spec.ts` | should not work with redirects |+| `RO-021` | `page/page-route.spec.ts` | should chain fallback w/ dynamic URL |+| `RO-022` | `page/page-route.spec.ts` | should work with redirects for subresources |+| `RO-023` | `page/page-route.spec.ts` | should work with equal requests |+| `RO-024` | `page/page-route.spec.ts` | should navigate to dataURL and not fire dataURL requests |+| `RO-025` | `page/page-route.spec.ts` | should be able to fetch dataURL and not fire dataURL requests |+| `RO-026` | `page/page-route.spec.ts` | should navigate to URL with hash and and fire requests without hash |+| `RO-027` | `page/page-route.spec.ts` | should work with encoded server |+| `RO-028` | `page/page-route.spec.ts` | should work with badly encoded server |+| `RO-029` | `page/page-route.spec.ts` | should work with encoded server - 2 |+| `RO-030` | `page/page-route.spec.ts` | should not throw "Invalid Interception Id" if the request was cancelled |+| `RO-031` | `page/page-route.spec.ts` | should intercept main resource during cross-process navigation |+| `RO-032` | `page/page-route.spec.ts` | should fulfill with redirect status |+| `RO-033` | `page/page-route.spec.ts` | should not fulfill with redirect status |+| `RO-034` | `page/page-route.spec.ts` | should support cors with GET |+| `RO-035` | `page/page-route.spec.ts` | should add Access-Control-Allow-Origin by default when fulfill |+| `RO-036` | `page/page-route.spec.ts` | should allow null origin for about:blank |+| `RO-037` | `page/page-route.spec.ts` | should respect cors overrides |+| `RO-038` | `page/page-route.spec.ts` | should not auto-intercept non-preflight OPTIONS without network interception |+| `RO-039` | `page/page-route.spec.ts` | should not auto-intercept non-preflight OPTIONS with network interception |+| `RO-040` | `page/page-route.spec.ts` | should support cors with POST |+| `RO-041` | `page/page-route.spec.ts` | should support cors with credentials |+| `RO-042` | `page/page-route.spec.ts` | should not abort preflighted cross-origin redirect when a route is registered |+| `RO-043` | `page/page-route.spec.ts` | should reject cors with disallowed credentials |+| `RO-044` | `page/page-route.spec.ts` | should support cors for different methods |+| `RO-045` | `page/page-route.spec.ts` | should support the times parameter with route matching |+| `RO-046` | `page/page-route.spec.ts` | should work if handler with times parameter was removed from another handler |+| `RO-047` | `page/page-route.spec.ts` | should support async handler w/ times |+| `RO-048` | `page/page-route.spec.ts` | route abort with times: 1 should not affect second sequential fetch |+| `RO-049` | `page/page-route.spec.ts` | should contain raw request header |+| `RO-050` | `page/page-route.spec.ts` | should contain sec-fetch headers in route |+| `RO-051` | `page/page-route.spec.ts` | should contain raw response header |+| `RO-052` | `page/page-route.spec.ts` | should contain raw response header after fulfill |+| `RO-053` | `page/page-route.spec.ts` | {route.fulfill, route.continue, route.fallback, route.abort} should throw if called twice *(4 copies)* |+| `RO-054` | `page/page-route.spec.ts` | should intercept when postData is more than 1MB |+| `RO-055` | `page/page-route.spec.ts` | should be able to intercept every navigation to a page controlled by service worker |+| `RO-056` | `page/page-route.spec.ts` | should respect URLPattern ignoreCase |+| `RO-057` | `page/page-request-continue.spec.ts` | should work |+| `RO-058` | `page/page-request-continue.spec.ts` | should amend HTTP headers |+| `RO-059` | `page/page-request-continue.spec.ts` | should not allow to override unsafe HTTP headers |+| `RO-060` | `page/page-request-continue.spec.ts` | should delete header with undefined value |+| `RO-061` | `page/page-request-continue.spec.ts` | should amend method |+| `RO-062` | `page/page-request-continue.spec.ts` | should override request url |+| `RO-063` | `page/page-request-continue.spec.ts` | should not allow changing protocol when overriding url |+| `RO-064` | `page/page-request-continue.spec.ts` | should not throw if request was cancelled by the page |+| `RO-065` | `page/page-request-continue.spec.ts` | should override method along with url |+| `RO-066` | `page/page-request-continue.spec.ts` | should amend method on main request |+| `RO-067` | `page/page-request-continue.spec.ts` | post data › should amend post data |+| `RO-068` | `page/page-request-continue.spec.ts` | post data › should compute content-length from post data |+| `RO-069` | `page/page-request-continue.spec.ts` | post data › should amend method and post data |+| `RO-070` | `page/page-request-continue.spec.ts` | post data › should amend utf8 post data |+| `RO-071` | `page/page-request-continue.spec.ts` | post data › should amend longer post data |+| `RO-072` | `page/page-request-continue.spec.ts` | post data › should amend binary post data |+| `RO-073` | `page/page-request-continue.spec.ts` | post data › should use content-type from original request |+| `RO-074` | `page/page-request-continue.spec.ts` | should work with Cross-Origin-Opener-Policy |+| `RO-075` | `page/page-request-continue.spec.ts` | should not delete the origin header |+| `RO-076` | `page/page-request-continue.spec.ts` | should continue preload link requests |+| `RO-077` | `page/page-request-continue.spec.ts` | should respect set-cookie in redirect response |+| `RO-078` | `page/page-request-continue.spec.ts` | continue should not propagate cookie override to redirects |+| `RO-079` | `page/page-request-continue.spec.ts` | continue should not override cookie |+| `RO-080` | `page/page-request-continue.spec.ts` | continue with headers should send fresh cookie from the browser cookie store |+| `RO-081` | `page/page-request-continue.spec.ts` | continue with headers should send fresh cookie after a redirect |+| `RO-082` | `page/page-request-continue.spec.ts` | redirect after continue should be able to delete cookie |+| `RO-083` | `page/page-request-continue.spec.ts` | continue should propagate headers to redirects |+| `RO-084` | `page/page-request-continue.spec.ts` | continue should drop content-length on redirects |+| `RO-085` | `page/page-request-continue.spec.ts` | redirected requests should report overridden headers |+| `RO-086` | `page/page-request-continue.spec.ts` | continue should delete headers on redirects |+| `RO-087` | `page/page-request-continue.spec.ts` | propagate headers same origin redirect |+| `RO-088` | `page/page-request-continue.spec.ts` | propagate headers cross origin |+| `RO-089` | `page/page-request-continue.spec.ts` | propagate headers cross origin redirect |+| `RO-090` | `page/page-request-continue.spec.ts` | propagate headers cross origin redirect after interception |+| `RO-091` | `page/page-request-continue.spec.ts` | continue should pass on 307 cross-origin redirect |+| `RO-092` | `page/page-request-continue.spec.ts` | should intercept css variable with background url |+| `RO-093` | `page/page-request-continue.spec.ts` | continue should not change multipart/form-data body |+| `RO-094` | `page/page-request-continue.spec.ts` | should not forward Host header on cross-origin redirect |+| `RO-095` | `page/page-request-continue.spec.ts` | postData should return empty string when overriding body with empty string |+| `RO-096` | `page/page-request-fulfill.spec.ts` | should work |+| `RO-097` | `page/page-request-fulfill.spec.ts` | should work with buffer as body |+| `RO-098` | `page/page-request-fulfill.spec.ts` | should work with status code 422 |+| `RO-099` | `page/page-request-fulfill.spec.ts` | should fulfill with unuassigned status codes |+| `RO-100` | `page/page-request-fulfill.spec.ts` | should not throw if request was cancelled by the page |+| `RO-101` | `page/page-request-fulfill.spec.ts` | should allow mocking binary responses |+| `RO-102` | `page/page-request-fulfill.spec.ts` | should allow mocking svg with charset |+| `RO-103` | `page/page-request-fulfill.spec.ts` | should work with file path |+| `RO-104` | `page/page-request-fulfill.spec.ts` | should stringify intercepted request response headers |+| `RO-105` | `page/page-request-fulfill.spec.ts` | should not modify the headers sent to the server |+| `RO-106` | `page/page-request-fulfill.spec.ts` | should include the origin header |+| `RO-107` | `page/page-request-fulfill.spec.ts` | should fulfill with global fetch result |+| `RO-108` | `page/page-request-fulfill.spec.ts` | should fulfill with fetch result |+| `RO-109` | `page/page-request-fulfill.spec.ts` | should fulfill with fetch result and overrides |+| `RO-110` | `page/page-request-fulfill.spec.ts` | should fetch original request and fulfill |+| `RO-111` | `page/page-request-fulfill.spec.ts` | should fulfill with multiple set-cookie |+| `RO-112` | `page/page-request-fulfill.spec.ts` | should fulfill with fetch response that has multiple set-cookie |+| `RO-113` | `page/page-request-fulfill.spec.ts` | headerValue should return set-cookie from intercepted response |+| `RO-114` | `page/page-request-fulfill.spec.ts` | should fulfill with har response |+| `RO-115` | `page/page-request-fulfill.spec.ts` | should fulfill preload link requests |+| `RO-116` | `page/page-request-fulfill.spec.ts` | should fulfill json |+| `RO-117` | `page/page-request-fulfill.spec.ts` | should fulfill with gzip and readback |+| `RO-118` | `page/page-request-fulfill.spec.ts` | should not go to the network for fulfilled requests body |+| `RO-119` | `page/page-request-fulfill.spec.ts` | should return body for fulfilled responses |+| `RO-120` | `page/page-request-fallback.spec.ts` | should work |+| `RO-121` | `page/page-request-fallback.spec.ts` | should fall back |+| `RO-122` | `page/page-request-fallback.spec.ts` | should fall back async |+| `RO-123` | `page/page-request-fallback.spec.ts` | should not chain fulfill |+| `RO-124` | `page/page-request-fallback.spec.ts` | should not chain abort |+| `RO-125` | `page/page-request-fallback.spec.ts` | should fall back after exception |+| `RO-126` | `page/page-request-fallback.spec.ts` | should chain once |+| `RO-127` | `page/page-request-fallback.spec.ts` | should amend HTTP headers |+| `RO-128` | `page/page-request-fallback.spec.ts` | should delete header with undefined value |+| `RO-129` | `page/page-request-fallback.spec.ts` | should amend method |+| `RO-130` | `page/page-request-fallback.spec.ts` | should override request url |+| `RO-131` | `page/page-request-fallback.spec.ts` | post data › should amend post data |+| `RO-132` | `page/page-request-fallback.spec.ts` | post data › should amend binary post data |+| `RO-133` | `page/page-request-fallback.spec.ts` | post data › should amend json post data |+| `RO-134` | `page/page-request-intercept.spec.ts` | should fulfill intercepted response |+| `RO-135` | `page/page-request-intercept.spec.ts` | should fulfill response with empty body |+| `RO-136` | `page/page-request-intercept.spec.ts` | should override with defaults when intercepted response not provided |+| `RO-137` | `page/page-request-intercept.spec.ts` | should fulfill with any response |+| `RO-138` | `page/page-request-intercept.spec.ts` | should support fulfill after intercept |+| `RO-139` | `page/page-request-intercept.spec.ts` | should give access to the intercepted response |+| `RO-140` | `page/page-request-intercept.spec.ts` | should give access to the intercepted response body |+| `RO-141` | `page/page-request-intercept.spec.ts` | should intercept multipart/form-data request body |+| `RO-142` | `page/page-request-intercept.spec.ts` | should fulfill intercepted response using alias |+| `RO-143` | `page/page-request-intercept.spec.ts` | should support timeout option in route.fetch |+| `RO-144` | `page/page-request-intercept.spec.ts` | should not follow redirects when maxRedirects is set to 0 in route.fetch |+| `RO-145` | `page/page-request-intercept.spec.ts` | should intercept with url override |+| `RO-146` | `page/page-request-intercept.spec.ts` | should intercept with post data override |+| `RO-147` | `page/page-request-intercept.spec.ts` | request.postData is not null when fetching FormData with a Blob |+| `RO-148` | `page/page-request-intercept.spec.ts` | should abort favicon requests if interception is enabled |+| `RO-149` | `page/page-request-gc.spec.ts` | should work |+| `RO-150` | `page/page-request-gc.spec.ts` | should collect element retained by locator hit-target interceptor after detach |+| `RO-151` | `page/interception.spec.ts` | should work with navigation @smoke |+| `RO-152` | `page/interception.spec.ts` | should intercept after a service worker |+| `RO-153` | `page/interception.spec.ts` | should work with glob |+| `RO-154` | `page/interception.spec.ts` | should throw on unbalanced glob braces |+| `RO-155` | `page/interception.spec.ts` | should throw on page.route with invalid glob |+| `RO-156` | `page/interception.spec.ts` | should intercept by glob |+| `RO-157` | `page/interception.spec.ts` | should intercept network activity from worker |+| `RO-158` | `page/interception.spec.ts` | should intercept worker requests when enabled after worker creation |+| `RO-159` | `page/interception.spec.ts` | should intercept network activity from worker 2 |+| `RO-160` | `page/interception.spec.ts` | should work with regular expression passed from a different context |+| `RO-161` | `page/interception.spec.ts` | should intercept every request matching a global regexp |+| `RO-162` | `page/interception.spec.ts` | should not break remote worker importScripts |+| `RO-163` | `page/interception.spec.ts` | should disable memory cache when intercepting |+| `RO-164` | `page/interception.spec.ts` | should intercept blob url requests |+| `RO-165` | `library/browsercontext-route.spec.ts` | should intercept |+| `RO-166` | `library/browsercontext-route.spec.ts` | should unroute |+| `RO-167` | `library/browsercontext-route.spec.ts` | should yield to page.route |+| `RO-168` | `library/browsercontext-route.spec.ts` | should fall back to context.route |+| `RO-169` | `library/browsercontext-route.spec.ts` | should support Set-Cookie header |+| `RO-170` | `library/browsercontext-route.spec.ts` | should ignore secure Set-Cookie header for insecure requests |+| `RO-171` | `library/browsercontext-route.spec.ts` | should use Set-Cookie header in future requests |+| `RO-172` | `library/browsercontext-route.spec.ts` | should work with ignoreHTTPSErrors |+| `RO-173` | `library/browsercontext-route.spec.ts` | should support the times parameter with route matching |+| `RO-174` | `library/browsercontext-route.spec.ts` | should work if handler with times parameter was removed from another handler |+| `RO-175` | `library/browsercontext-route.spec.ts` | should support async handler w/ times |+| `RO-176` | `library/browsercontext-route.spec.ts` | should overwrite post body with empty string |+| `RO-177` | `library/browsercontext-route.spec.ts` | should chain fallback |+| `RO-178` | `library/browsercontext-route.spec.ts` | should chain fallback w/ dynamic URL |+| `RO-179` | `library/browsercontext-route.spec.ts` | should not chain fulfill |+| `RO-180` | `library/browsercontext-route.spec.ts` | should not chain abort |+| `RO-181` | `library/browsercontext-route.spec.ts` | should chain fallback into page |+| `RO-182` | `library/browsercontext-route.spec.ts` | should fall back async |+| `RO-183` | `library/browsercontext-route.spec.ts` | should bypass disk cache when context interception is enabled |+| `RO-184` | `library/browsercontext-route.spec.ts` | should fulfill popup main request using alias |+| `RO-185` | `library/browsercontext-route.spec.ts` | should respect URLPattern ignoreCase |+| `RO-186` | `library/unroute-behavior.spec.ts` | context.unroute should not wait for pending handlers to complete |+| `RO-187` | `library/unroute-behavior.spec.ts` | context.unrouteAll removes all handlers |+| `RO-188` | `library/unroute-behavior.spec.ts` | context.unrouteAll should wait for pending handlers to complete |+| `RO-189` | `library/unroute-behavior.spec.ts` | context.unrouteAll should not wait for pending handlers to complete if behavior is ignoreErrors |+| `RO-190` | `library/unroute-behavior.spec.ts` | page.close should not wait for active route handlers on the owning context |+| `RO-191` | `library/unroute-behavior.spec.ts` | context.close should not wait for active route handlers on the owned pages |+| `RO-192` | `library/unroute-behavior.spec.ts` | page.unroute should not wait for pending handlers to complete |+| `RO-193` | `library/unroute-behavior.spec.ts` | page.unrouteAll removes all routes |+| `RO-194` | `library/unroute-behavior.spec.ts` | page.unrouteAll should wait for pending handlers to complete |+| `RO-195` | `library/unroute-behavior.spec.ts` | page.unrouteAll should not wait for pending handlers to complete if behavior is ignoreErrors |+| `RO-196` | `library/unroute-behavior.spec.ts` | page.close does not wait for active route handlers |+| `RO-197` | `library/unroute-behavior.spec.ts` | route.continue should not throw if page has been closed |+| `RO-198` | `library/unroute-behavior.spec.ts` | route.fallback should not throw if page has been closed |+| `RO-199` | `library/unroute-behavior.spec.ts` | route.fulfill should not throw if page has been closed |+| `RO-200` | `library/unroute-behavior.spec.ts` | should not continue requests in flight (page) |+| `RO-201` | `library/unroute-behavior.spec.ts` | should not continue requests in flight (context) |++### SC — Screencast++| ID | File | Title |+|---|---|---|+| `SC-001` | `library/screencast.spec.ts` | screencast.start delivers frames via onFrame callback |+| `SC-002` | `library/screencast.spec.ts` | applies backpressure while async onFrame callback is pending |+| `SC-003` | `library/screencast.spec.ts` | onFrame receives viewport size |+| `SC-004` | `library/screencast.spec.ts` | start throws if screencast is already started |+| `SC-005` | `library/screencast.spec.ts` | start allows restart with different options after stop |+| `SC-006` | `library/screencast.spec.ts` | start returns a disposable that stops screencast |+| `SC-007` | `library/screencast.spec.ts` | start/stop twice without path creates two files in artifactsDir |+| `SC-008` | `library/screencast.spec.ts` | start should work when recordVideo is set |+| `SC-009` | `library/screencast.spec.ts` | start should record video with the requested fps |+| `SC-010` | `library/screencast.spec.ts` | start should throw on invalid fps |+| `SC-011` | `library/screencast.spec.ts` | start should fail when another recording is in progress |+| `SC-012` | `library/screencast.spec.ts` | stop should not fail when no recording is in progress |+| `SC-013` | `library/screencast.spec.ts` | start should finish when page is closed |+| `SC-014` | `library/screencast.spec.ts` | empty video |+| `SC-015` | `library/screencast.spec.ts` | start dispose stops recording |+| `SC-016` | `library/screencast-actions.spec.ts` | should show annotation on click |+| `SC-017` | `library/screencast-actions.spec.ts` | should render annotation styles |+| `SC-018` | `library/screencast-actions.spec.ts` | should position title at {top-left, top, bottom-left, bottom, bottom-right} *(5 copies)* |+| `SC-019` | `library/screencast-actions.spec.ts` | should clear annotation after duration |+| `SC-020` | `library/screencast-actions.spec.ts` | should annotate fill action |+| `SC-021` | `library/screencast-actions.spec.ts` | should stop showing actions after dispose |+| `SC-022` | `library/screencast-actions.spec.ts` | should stop showing actions after hideActions |+| `SC-023` | `library/screencast-actions.spec.ts` | should render an action cursor that animates to the click point |+| `SC-024` | `library/screencast-actions.spec.ts` | cursor moves between two pointer actions |+| `SC-025` | `library/screencast-actions.spec.ts` | cursor: "none" suppresses the action cursor decoration |+| `SC-026` | `library/screencast-actions.spec.ts` | cursor stays at the last action point until hideActions |+| `SC-027` | `library/screencast-actions.spec.ts` | should survive navigation |+| `SC-028` | `library/screencast-overlay.spec.ts` | should add and remove overlay |+| `SC-029` | `library/screencast-overlay.spec.ts` | should add multiple overlays |+| `SC-030` | `library/screencast-overlay.spec.ts` | should hide and show overlays |+| `SC-031` | `library/screencast-overlay.spec.ts` | should survive navigation |+| `SC-032` | `library/screencast-overlay.spec.ts` | should remove overlay and not restore after navigation |+| `SC-033` | `library/screencast-overlay.spec.ts` | should sanitize scripts from overlay html |+| `SC-034` | `library/screencast-overlay.spec.ts` | should strip event handlers from overlay html |+| `SC-035` | `library/screencast-overlay.spec.ts` | should auto-remove overlay after timeout |+| `SC-036` | `library/screencast-overlay.spec.ts` | should allow styles in overlay html |+| `SC-037` | `library/screencast-overlay.spec.ts` | should show overlay above {dialog, popover} opened before it *(2 copies)* |+| `SC-038` | `library/screencast-overlay.spec.ts` | should keep overlay above {dialog, popover} opened after it *(2 copies)* |++### SE — Selectors++| ID | File | Title |+|---|---|---|+| `SE-001` | `page/selectors-css.spec.ts` | should work with large DOM @smoke |+| `SE-002` | `page/selectors-css.spec.ts` | should work for open shadow roots |+| `SE-003` | `page/selectors-css.spec.ts` | should work with \> combinator and spaces |+| `SE-004` | `page/selectors-css.spec.ts` | should work with comma separated list |+| `SE-005` | `page/selectors-css.spec.ts` | should keep dom order with comma separated list |+| `SE-006` | `page/selectors-css.spec.ts` | should return multiple captures for the same node |+| `SE-007` | `page/selectors-css.spec.ts` | should return multiple captures when going up the hierarchy |+| `SE-008` | `page/selectors-css.spec.ts` | should work with comma separated list in various positions |+| `SE-009` | `page/selectors-css.spec.ts` | should work with comma inside text |+| `SE-010` | `page/selectors-css.spec.ts` | should work with attribute selectors |+| `SE-011` | `page/selectors-css.spec.ts` | should not match root after \>\> |+| `SE-012` | `page/selectors-css.spec.ts` | should work with numerical id |+| `SE-013` | `page/selectors-css.spec.ts` | should work with wrong-case id |+| `SE-014` | `page/selectors-css.spec.ts` | should work with \* |+| `SE-015` | `page/selectors-css.spec.ts` | should work with :nth-child |+| `SE-016` | `page/selectors-css.spec.ts` | should work with :nth-child(of) notation with nested functions |+| `SE-017` | `page/selectors-css.spec.ts` | should work with :not |+| `SE-018` | `page/selectors-css.spec.ts` | should work with ~ |+| `SE-019` | `page/selectors-css.spec.ts` | should work with + |+| `SE-020` | `page/selectors-css.spec.ts` | should work with spaces in :nth-child and :not |+| `SE-021` | `page/selectors-css.spec.ts` | should work with :is |+| `SE-022` | `page/selectors-css.spec.ts` | should work with :has |+| `SE-023` | `page/selectors-css.spec.ts` | should work with :scope |+| `SE-024` | `page/selectors-css.spec.ts` | should work with :scope and class |+| `SE-025` | `page/selectors-css.spec.ts` | should absolutize relative selectors |+| `SE-026` | `page/selectors-css.spec.ts` | css on the handle should be relative |+| `SE-027` | `page/selectors-css.spec.ts` | should use light DOM structure for child combinator with slotted content |+| `SE-028` | `page/selectors-text.spec.ts` | should work @smoke |+| `SE-029` | `page/selectors-text.spec.ts` | should work with :text |+| `SE-030` | `page/selectors-text.spec.ts` | should support empty string |+| `SE-031` | `page/selectors-text.spec.ts` | should work across nodes |+| `SE-032` | `page/selectors-text.spec.ts` | text-is() should ignore comments |+| `SE-033` | `page/selectors-text.spec.ts` | should work with text nodes in quoted mode |+| `SE-034` | `page/selectors-text.spec.ts` | should clear caches |+| `SE-035` | `page/selectors-text.spec.ts` | should work with :has-text |+| `SE-036` | `page/selectors-text.spec.ts` | should work with large DOM |+| `SE-037` | `page/selectors-text.spec.ts` | should be case sensitive if quotes are specified |+| `SE-038` | `page/selectors-text.spec.ts` | should search for a substring without quotes |+| `SE-039` | `page/selectors-text.spec.ts` | should skip head, script and style |+| `SE-040` | `page/selectors-text.spec.ts` | should match input\[type=button\|submit\|reset\] |+| `SE-041` | `page/selectors-text.spec.ts` | should work for open shadow roots |+| `SE-042` | `page/selectors-text.spec.ts` | should prioritize light dom over shadow dom in the same parent |+| `SE-043` | `page/selectors-text.spec.ts` | should waitForSelector with distributed elements |+| `SE-044` | `page/selectors-text.spec.ts` | should match root after \>\> |+| `SE-045` | `page/selectors-text.spec.ts` | should match root after \>\> with \* |+| `SE-046` | `page/selectors-text.spec.ts` | should work with leading and trailing spaces |+| `SE-047` | `page/selectors-text.spec.ts` | should work with unpaired quotes when not at the start |+| `SE-048` | `page/selectors-text.spec.ts` | should work with paired quotes in the middle of selector |+| `SE-049` | `page/selectors-text.spec.ts` | hasText and internal:text should match full node text in strict mode |+| `SE-050` | `page/selectors-role.spec.ts` | should detect roles |+| `SE-051` | `page/selectors-role.spec.ts` | should support selected |+| `SE-052` | `page/selectors-role.spec.ts` | should support checked |+| `SE-053` | `page/selectors-role.spec.ts` | should support pressed |+| `SE-054` | `page/selectors-role.spec.ts` | should support expanded |+| `SE-055` | `page/selectors-role.spec.ts` | should support disabled |+| `SE-056` | `page/selectors-role.spec.ts` | should inherit disabled from the ancestor |+| `SE-057` | `page/selectors-role.spec.ts` | should support disabled fieldset |+| `SE-058` | `page/selectors-role.spec.ts` | should support level |+| `SE-059` | `page/selectors-role.spec.ts` | should filter hidden, unless explicitly asked for |+| `SE-060` | `page/selectors-role.spec.ts` | should support name |+| `SE-061` | `page/selectors-role.spec.ts` | should support option name with html whitespace |+| `SE-062` | `page/selectors-role.spec.ts` | errors |+| `SE-063` | `page/selectors-role.spec.ts` | hidden with shadow dom slots |+| `SE-064` | `page/selectors-role.spec.ts` | should support output accessible name |+| `SE-065` | `page/selectors-role.spec.ts` | should not match scope by default |+| `SE-066` | `page/selectors-role.spec.ts` | should not match inert elements, unless explicitly asked for |+| `SE-067` | `page/selectors-role.spec.ts` | should not match elements outside of a modal dialog |+| `SE-068` | `page/selectors-role.spec.ts` | should match the topmost modal dialog |+| `SE-069` | `page/selectors-role.spec.ts` | should respect PLAYWRIGHT\_SKIP\_INERT\_CHECK |+| `SE-070` | `page/selectors-role.spec.ts` | should respect PLAYWRIGHT\_SKIP\_DIALOG\_CHECK |+| `SE-071` | `page/selectors-get-by.spec.ts` | getByTestId should work |+| `SE-072` | `page/selectors-get-by.spec.ts` | getByTestId with custom testId should work |+| `SE-073` | `page/selectors-get-by.spec.ts` | getByTestId with comma-separated testIdAttributes should match any |+| `SE-074` | `page/selectors-get-by.spec.ts` | getByTestId should escape id |+| `SE-075` | `page/selectors-get-by.spec.ts` | getByTestId should work for regex |+| `SE-076` | `page/selectors-get-by.spec.ts` | getByText should work |+| `SE-077` | `page/selectors-get-by.spec.ts` | getByLabel should work |+| `SE-078` | `page/selectors-get-by.spec.ts` | getByLabel should work with nested elements |+| `SE-079` | `page/selectors-get-by.spec.ts` | getByLabel should work with multiply-labelled input |+| `SE-080` | `page/selectors-get-by.spec.ts` | getByLabel should work with ancestor label and multiple controls |+| `SE-081` | `page/selectors-get-by.spec.ts` | getByLabel should work with ancestor label and for |+| `SE-082` | `page/selectors-get-by.spec.ts` | getByLabel should work with aria-labelledby |+| `SE-083` | `page/selectors-get-by.spec.ts` | getByLabel should prioritize aria-labelledby over native label |+| `SE-084` | `page/selectors-get-by.spec.ts` | getByLabel should work with aria-label |+| `SE-085` | `page/selectors-get-by.spec.ts` | getByLabel should ignore empty aria-label |+| `SE-086` | `page/selectors-get-by.spec.ts` | getByLabel should prioritize aria-labelledby over aria-label |+| `SE-087` | `page/selectors-get-by.spec.ts` | getByPlaceholder should work |+| `SE-088` | `page/selectors-get-by.spec.ts` | getByAltText should work |+| `SE-089` | `page/selectors-get-by.spec.ts` | getByTitle should work |+| `SE-090` | `page/selectors-get-by.spec.ts` | getBy escaping |+| `SE-091` | `page/selectors-get-by.spec.ts` | getByRole escaping |+| `SE-092` | `page/selectors-get-by.spec.ts` | getByRole should accept regexp with v flag |+| `SE-093` | `page/selectors-get-by.spec.ts` | getByRole with description |+| `SE-094` | `page/selectors-get-by.spec.ts` | getByRole with description via aria-describedby |+| `SE-095` | `page/selectors-get-by.spec.ts` | getByRole with description via title fallback |+| `SE-096` | `page/selectors-get-by.spec.ts` | getByRole with description whitespace normalization |+| `SE-097` | `page/selectors-get-by.spec.ts` | locators should not be affected by global and sticky regex flags |+| `SE-098` | `page/selectors-frame.spec.ts` | should work for iframe @smoke |+| `SE-099` | `page/selectors-frame.spec.ts` | should work for iframe (handle) |+| `SE-100` | `page/selectors-frame.spec.ts` | should work for nested iframe |+| `SE-101` | `page/selectors-frame.spec.ts` | should work for nested iframe (handle) |+| `SE-102` | `page/selectors-frame.spec.ts` | should work for $ and $$ |+| `SE-103` | `page/selectors-frame.spec.ts` | $ should not wait for frame |+| `SE-104` | `page/selectors-frame.spec.ts` | $$ should not wait for frame |+| `SE-105` | `page/selectors-frame.spec.ts` | $eval should throw for missing frame |+| `SE-106` | `page/selectors-frame.spec.ts` | $$eval should not throw for missing frame |+| `SE-107` | `page/selectors-frame.spec.ts` | should work for $ and $$ (handle) |+| `SE-108` | `page/selectors-frame.spec.ts` | should work for $eval |+| `SE-109` | `page/selectors-frame.spec.ts` | should work for $eval (handle) |+| `SE-110` | `page/selectors-frame.spec.ts` | should work for $$eval |+| `SE-111` | `page/selectors-frame.spec.ts` | should work for $$eval (handle) |+| `SE-112` | `page/selectors-frame.spec.ts` | should not allow dangling enter-frame |+| `SE-113` | `page/selectors-frame.spec.ts` | should not allow leading enter-frame |+| `SE-114` | `page/selectors-frame.spec.ts` | should not allow capturing before enter-frame |+| `SE-115` | `page/selectors-frame.spec.ts` | should capture after the enter-frame |+| `SE-116` | `page/selectors-frame.spec.ts` | should click in lazy iframe |+| `SE-117` | `page/selectors-frame.spec.ts` | waitFor should survive frame reattach |+| `SE-118` | `page/selectors-frame.spec.ts` | waitForSelector should survive frame reattach (handle) |+| `SE-119` | `page/selectors-frame.spec.ts` | waitForSelector should survive iframe navigation (handle) |+| `SE-120` | `page/selectors-frame.spec.ts` | click should survive frame reattach |+| `SE-121` | `page/selectors-frame.spec.ts` | click should survive iframe navigation |+| `SE-122` | `page/selectors-frame.spec.ts` | click should survive navigation |+| `SE-123` | `page/selectors-frame.spec.ts` | should non work for non-frame |+| `SE-124` | `page/selectors-frame.spec.ts` | should match in a descendant frame |+| `SE-125` | `page/selectors-frame.spec.ts` | should match in a deeply nested frame |+| `SE-126` | `page/selectors-frame.spec.ts` | should not match a chain across frames |+| `SE-127` | `page/selectors-frame.spec.ts` | should match multiple elements |+| `SE-128` | `page/selectors-frame.spec.ts` | should throw when matching elements in multiple frames |+| `SE-129` | `page/selectors-frame.spec.ts` | should not allow any-frame in the middle of a selector |+| `SE-130` | `page/selectors-frame.spec.ts` | should allow entering frames from any frame |+| `SE-131` | `page/selectors-frame.spec.ts` | should not allow any-frame after entering a frame |+| `SE-132` | `page/selectors-frame.spec.ts` | should not allow dangling enter-frame after any-frame |+| `SE-133` | `page/selectors-misc.spec.ts` | should work for open shadow roots |+| `SE-134` | `page/selectors-misc.spec.ts` | should click on links in shadow dom |+| `SE-135` | `page/selectors-misc.spec.ts` | should work with :visible |+| `SE-136` | `page/selectors-misc.spec.ts` | should work with \>\> visible= |+| `SE-137` | `page/selectors-misc.spec.ts` | should work with \>\> visible=false |+| `SE-138` | `page/selectors-misc.spec.ts` | should work with :nth-match |+| `SE-139` | `page/selectors-misc.spec.ts` | should work with nth= |+| `SE-140` | `page/selectors-misc.spec.ts` | should work with strict mode and chaining |+| `SE-141` | `page/selectors-misc.spec.ts` | should work with layout selectors |+| `SE-142` | `page/selectors-misc.spec.ts` | should escape the scope with \>\> |+| `SE-143` | `page/selectors-misc.spec.ts` | xpath should be relative |+| `SE-144` | `page/selectors-misc.spec.ts` | should work with pipe in xpath |+| `SE-145` | `page/selectors-misc.spec.ts` | should print original xpath in error |+| `SE-146` | `page/selectors-misc.spec.ts` | data-testid on the handle should be relative |+| `SE-147` | `page/selectors-misc.spec.ts` | should properly determine visibility of display:contents elements |+| `SE-148` | `page/selectors-misc.spec.ts` | should work with internal:has= |+| `SE-149` | `page/selectors-misc.spec.ts` | should work with internal:has-not= |+| `SE-150` | `page/selectors-misc.spec.ts` | should work with internal:and= |+| `SE-151` | `page/selectors-misc.spec.ts` | should work with internal:or= |+| `SE-152` | `page/selectors-misc.spec.ts` | should work with internal:chain= |+| `SE-153` | `page/selectors-misc.spec.ts` | chaining should work with large DOM @smoke |+| `SE-154` | `page/selectors-register.spec.ts` | textContent should be atomic |+| `SE-155` | `page/selectors-register.spec.ts` | innerText should be atomic |+| `SE-156` | `page/selectors-register.spec.ts` | innerHTML should be atomic |+| `SE-157` | `page/selectors-register.spec.ts` | getAttribute should be atomic |+| `SE-158` | `page/selectors-register.spec.ts` | isVisible should be atomic |+| `SE-159` | `page/selectors-register.spec.ts` | should take java-style string |+| `SE-160` | `library/selectors-register.spec.ts` | should work |+| `SE-161` | `library/selectors-register.spec.ts` | should work when registered on global |+| `SE-162` | `library/selectors-register.spec.ts` | should work with path |+| `SE-163` | `library/selectors-register.spec.ts` | should work in main and isolated world |+| `SE-164` | `library/selectors-register.spec.ts` | should handle errors |+| `SE-165` | `library/selectors-register.spec.ts` | should throw "already registered" error when registering |+| `SE-166` | `library/selectors-register.spec.ts` | should not rely on engines working from the root |+| `SE-167` | `library/selectors-register.spec.ts` | should throw a nice error if the selector returns a bad value |++### SI — Signals++| ID | File | Title |+|---|---|---|+| `SI-001` | `library/signals.spec.ts` | should close the browser when the node process closes |+| `SI-002` | `library/signals.spec.ts` | should remove temp dir on process.exit |+| `SI-003` | `library/signals.spec.ts` | signals › should report browser close signal 2 |+| `SI-004` | `library/signals.spec.ts` | signals › should close the browser on SIGINT |+| `SI-005` | `library/signals.spec.ts` | signals › should close the browser on SIGTERM |+| `SI-006` | `library/signals.spec.ts` | signals › should close the browser on SIGHUP |+| `SI-007` | `library/signals.spec.ts` | signals › should kill the browser on double SIGINT and remove temp dir |+| `SI-008` | `library/signals.spec.ts` | signals › should kill the browser on SIGINT + SIGTERM |+| `SI-009` | `library/signals.spec.ts` | signals › should kill the browser on SIGTERM + SIGINT |+| `SI-010` | `library/signals.spec.ts` | signals › should not prevent default SIGTERM handling after browser close |++### SL — Slow motion++| ID | File | Title |+|---|---|---|+| `SL-001` | `library/slowmo.spec.ts` | slowMo › Page SlowMo check |+| `SL-002` | `library/slowmo.spec.ts` | slowMo › Page SlowMo click |+| `SL-003` | `library/slowmo.spec.ts` | slowMo › Page SlowMo dblclick |+| `SL-004` | `library/slowmo.spec.ts` | slowMo › Page SlowMo dispatchEvent |+| `SL-005` | `library/slowmo.spec.ts` | slowMo › Page SlowMo fill |+| `SL-006` | `library/slowmo.spec.ts` | slowMo › Page SlowMo focus |+| `SL-007` | `library/slowmo.spec.ts` | slowMo › Page SlowMo goto |+| `SL-008` | `library/slowmo.spec.ts` | slowMo › Page SlowMo hover |+| `SL-009` | `library/slowmo.spec.ts` | slowMo › Page SlowMo press |+| `SL-010` | `library/slowmo.spec.ts` | slowMo › Page SlowMo reload |+| `SL-011` | `library/slowmo.spec.ts` | slowMo › Page SlowMo selectOption |+| `SL-012` | `library/slowmo.spec.ts` | slowMo › Page SlowMo setInputFiles |+| `SL-013` | `library/slowmo.spec.ts` | slowMo › Page SlowMo type |+| `SL-014` | `library/slowmo.spec.ts` | slowMo › Page SlowMo uncheck |+| `SL-015` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo check |+| `SL-016` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo click |+| `SL-017` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo dblclick |+| `SL-018` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo dispatchEvent |+| `SL-019` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo fill |+| `SL-020` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo focus |+| `SL-021` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo goto |+| `SL-022` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo hover |+| `SL-023` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo press |+| `SL-024` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo selectOption |+| `SL-025` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo setInputFiles |+| `SL-026` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo type |+| `SL-027` | `library/slowmo.spec.ts` | slowMo › Frame SlowMo uncheck |+| `SL-028` | `library/slowmo.spec.ts` | slowMo › ElementHandle SlowMo check |+| `SL-029` | `library/slowmo.spec.ts` | slowMo › ElementHandle SlowMo click |+| `SL-030` | `library/slowmo.spec.ts` | slowMo › ElementHandle SlowMo dblclick |+| `SL-031` | `library/slowmo.spec.ts` | slowMo › ElementHandle SlowMo dispatchEvent |+| `SL-032` | `library/slowmo.spec.ts` | slowMo › ElementHandle SlowMo fill |+| `SL-033` | `library/slowmo.spec.ts` | slowMo › ElementHandle SlowMo focus |+| `SL-034` | `library/slowmo.spec.ts` | slowMo › ElementHandle SlowMo hover |+| `SL-035` | `library/slowmo.spec.ts` | slowMo › ElementHandle SlowMo press |+| `SL-036` | `library/slowmo.spec.ts` | slowMo › ElementHandle SlowMo selectOption |+| `SL-037` | `library/slowmo.spec.ts` | slowMo › ElementHandle SlowMo setInputFiles |+| `SL-038` | `library/slowmo.spec.ts` | slowMo › ElementHandle SlowMo type |+| `SL-039` | `library/slowmo.spec.ts` | slowMo › ElementHandle SlowMo uncheck |++### SM — Strict mode++| ID | File | Title |+|---|---|---|+| `SM-001` | `page/page-strict.spec.ts` | should fail page.textContent in strict mode |+| `SM-002` | `page/page-strict.spec.ts` | should fail page.getAttribute in strict mode |+| `SM-003` | `page/page-strict.spec.ts` | should fail page.fill in strict mode |+| `SM-004` | `page/page-strict.spec.ts` | should fail page.$ in strict mode |+| `SM-005` | `page/page-strict.spec.ts` | should fail page.waitForSelector in strict mode |+| `SM-006` | `page/page-strict.spec.ts` | should fail page.dispatchEvent in strict mode |+| `SM-007` | `page/page-strict.spec.ts` | should properly format :nth-child() in strict mode message |+| `SM-008` | `page/page-strict.spec.ts` | should escape class names |+| `SM-009` | `page/page-strict.spec.ts` | should escape tag names |+| `SM-010` | `page/page-strict.spec.ts` | should keep the engine name for a "text=.." selector in strict mode |+| `SM-011` | `library/browsercontext-strict.spec.ts` | should not fail page.textContent in non-strict mode |+| `SM-012` | `library/browsercontext-strict.spec.ts` | strict context mode › should fail page.textContent in strict mode |+| `SM-013` | `library/browsercontext-strict.spec.ts` | strict context mode › should fail page.click in strict mode |+| `SM-014` | `library/browsercontext-strict.spec.ts` | strict context mode › should opt out of strict mode |++### SO — Select option++| ID | File | Title |+|---|---|---|+| `SO-001` | `page/page-select-option.spec.ts` | should select single option @smoke |+| `SO-002` | `page/page-select-option.spec.ts` | should select single option by value |+| `SO-003` | `page/page-select-option.spec.ts` | should fall back to selecting by label |+| `SO-004` | `page/page-select-option.spec.ts` | should select single option by label |+| `SO-005` | `page/page-select-option.spec.ts` | should select single option by label with html whitespace |+| `SO-006` | `page/page-select-option.spec.ts` | should select single option by handle |+| `SO-007` | `page/page-select-option.spec.ts` | should select single option by index |+| `SO-008` | `page/page-select-option.spec.ts` | should select single option by multiple attributes |+| `SO-009` | `page/page-select-option.spec.ts` | should not select single option when some attributes do not match |+| `SO-010` | `page/page-select-option.spec.ts` | should select only first option |+| `SO-011` | `page/page-select-option.spec.ts` | should not throw when select causes navigation |+| `SO-012` | `page/page-select-option.spec.ts` | should select multiple options |+| `SO-013` | `page/page-select-option.spec.ts` | should select multiple options with attributes |+| `SO-014` | `page/page-select-option.spec.ts` | should respect event bubbling |+| `SO-015` | `page/page-select-option.spec.ts` | should throw when element is not a \<select\> |+| `SO-016` | `page/page-select-option.spec.ts` | should return \[\] on no matched values |+| `SO-017` | `page/page-select-option.spec.ts` | should return an array of matched values |+| `SO-018` | `page/page-select-option.spec.ts` | should return an array of one element when multiple is not set |+| `SO-019` | `page/page-select-option.spec.ts` | should return \[\] on no values |+| `SO-020` | `page/page-select-option.spec.ts` | should not allow null items |+| `SO-021` | `page/page-select-option.spec.ts` | should unselect with null |+| `SO-022` | `page/page-select-option.spec.ts` | should deselect all options when passed no values for a multiple select |+| `SO-023` | `page/page-select-option.spec.ts` | should deselect all options when passed no values for a select without multiple |+| `SO-024` | `page/page-select-option.spec.ts` | should throw if passed wrong types |+| `SO-025` | `page/page-select-option.spec.ts` | should work when re-defining top-level Event class |+| `SO-026` | `page/page-select-option.spec.ts` | should wait for option to be present |+| `SO-027` | `page/page-select-option.spec.ts` | should wait for option index to be present |+| `SO-028` | `page/page-select-option.spec.ts` | should wait for multiple options to be present |+| `SO-029` | `page/page-select-option.spec.ts` | input event.composed should be true and cross shadow dom boundary |+| `SO-030` | `page/page-select-option.spec.ts` | should wait for select to be enabled |+| `SO-031` | `page/page-select-option.spec.ts` | should wait for option to be enabled |+| `SO-032` | `page/page-select-option.spec.ts` | should wait for optgroup to be enabled |+| `SO-033` | `page/page-select-option.spec.ts` | should wait for select to be swapped |++### SQ — Sequence++| ID | File | Title |+|---|---|---|+| `SQ-001` | `library/unit/sequence.spec.ts` | should return an empty array when the input is empty |+| `SQ-002` | `library/unit/sequence.spec.ts` | should handle a single-element array |+| `SQ-003` | `library/unit/sequence.spec.ts` | should handle an array with no repeats |+| `SQ-004` | `library/unit/sequence.spec.ts` | should handle contiguous repeats of single elements |+| `SQ-005` | `library/unit/sequence.spec.ts` | should detect longer repeating substrings |+| `SQ-006` | `library/unit/sequence.spec.ts` | should handle multiple repeating substrings |+| `SQ-007` | `library/unit/sequence.spec.ts` | should handle complex cases with overlapping repeats |+| `SQ-008` | `library/unit/sequence.spec.ts` | should handle complex acceptance cases with multiple possible repeats |+| `SQ-009` | `library/unit/sequence.spec.ts` | should handle non-repeating sequences correctly |+| `SQ-010` | `library/unit/sequence.spec.ts` | should handle a case where the entire array is a repeating sequence |+| `SQ-011` | `library/unit/sequence.spec.ts` | should correctly identify the maximal repeating substring |+| `SQ-012` | `library/unit/sequence.spec.ts` | should handle repeats with varying lengths |+| `SQ-013` | `library/unit/sequence.spec.ts` | should correctly handle a repeat count of one (k adjustment to zero) |+| `SQ-014` | `library/unit/sequence.spec.ts` | should correctly handle repeats at the end of the array |+| `SQ-015` | `library/unit/sequence.spec.ts` | should not overcount repeats when the last potential repeat is incomplete |+| `SQ-016` | `library/unit/sequence.spec.ts` | should handle single repeats correctly when the substring length is greater than one |++### SS — Screenshot++| ID | File | Title |+|---|---|---|+| `SS-001` | `page/page-screenshot.spec.ts` | page screenshot › should work @smoke |+| `SS-002` | `page/page-screenshot.spec.ts` | page screenshot › should not capture blinking caret by default |+| `SS-003` | `page/page-screenshot.spec.ts` | page screenshot › should capture blinking caret if explicitly asked for |+| `SS-004` | `page/page-screenshot.spec.ts` | page screenshot › should capture blinking caret in shadow dom |+| `SS-005` | `page/page-screenshot.spec.ts` | page screenshot › should clip rect |+| `SS-006` | `page/page-screenshot.spec.ts` | page screenshot › should clip rect with fullPage |+| `SS-007` | `page/page-screenshot.spec.ts` | page screenshot › should clip elements to the viewport |+| `SS-008` | `page/page-screenshot.spec.ts` | page screenshot › should throw on clip outside the viewport |+| `SS-009` | `page/page-screenshot.spec.ts` | page screenshot › should throw on a negative clip size |+| `SS-010` | `page/page-screenshot.spec.ts` | page screenshot › should run in parallel |+| `SS-011` | `page/page-screenshot.spec.ts` | page screenshot › should take fullPage screenshots |+| `SS-012` | `page/page-screenshot.spec.ts` | page screenshot › should take fullPage screenshots and mask elements outside of it |+| `SS-013` | `page/page-screenshot.spec.ts` | page screenshot › should restore viewport after fullPage screenshot |+| `SS-014` | `page/page-screenshot.spec.ts` | page screenshot › should allow transparency |+| `SS-015` | `page/page-screenshot.spec.ts` | page screenshot › should render white background on jpeg file |+| `SS-016` | `page/page-screenshot.spec.ts` | page screenshot › should produce a valid webp screenshot |+| `SS-017` | `page/page-screenshot.spec.ts` | page screenshot › path option should detect webp |+| `SS-018` | `page/page-screenshot.spec.ts` | page screenshot › quality option should work for webp |+| `SS-019` | `page/page-screenshot.spec.ts` | page screenshot › webp screenshots should be lossless by default |+| `SS-020` | `page/page-screenshot.spec.ts` | page screenshot › should allow transparency with webp |+| `SS-021` | `page/page-screenshot.spec.ts` | page screenshot › quality option should throw for webp when out of range |+| `SS-022` | `page/page-screenshot.spec.ts` | page screenshot › should work with odd clip size on Retina displays |+| `SS-023` | `page/page-screenshot.spec.ts` | page screenshot › should work for canvas |+| `SS-024` | `page/page-screenshot.spec.ts` | page screenshot › should capture canvas changes |+| `SS-025` | `page/page-screenshot.spec.ts` | page screenshot › should work for webgl |+| `SS-026` | `page/page-screenshot.spec.ts` | page screenshot › should work for translateZ |+| `SS-027` | `page/page-screenshot.spec.ts` | page screenshot › should work while navigating |+| `SS-028` | `page/page-screenshot.spec.ts` | page screenshot › should work with iframe in shadow |+| `SS-029` | `page/page-screenshot.spec.ts` | page screenshot › path option should work |+| `SS-030` | `page/page-screenshot.spec.ts` | page screenshot › path option should create subdirectories |+| `SS-031` | `page/page-screenshot.spec.ts` | page screenshot › path option should detect jpeg |+| `SS-032` | `page/page-screenshot.spec.ts` | page screenshot › path option should throw for unsupported mime type |+| `SS-033` | `page/page-screenshot.spec.ts` | page screenshot › quality option should throw for png |+| `SS-034` | `page/page-screenshot.spec.ts` | page screenshot › zero quality option should throw for png |+| `SS-035` | `page/page-screenshot.spec.ts` | page screenshot › quality option should work for jpeg |+| `SS-036` | `page/page-screenshot.spec.ts` | page screenshot › should prefer type over extension |+| `SS-037` | `page/page-screenshot.spec.ts` | page screenshot › should not issue resize event |+| `SS-038` | `page/page-screenshot.spec.ts` | page screenshot › should work with Array deleted |+| `SS-039` | `page/page-screenshot.spec.ts` | page screenshot › should take fullPage screenshots during navigation |+| `SS-040` | `page/page-screenshot.spec.ts` | page screenshot › mask option › should work |+| `SS-041` | `page/page-screenshot.spec.ts` | page screenshot › mask option › should work with locator |+| `SS-042` | `page/page-screenshot.spec.ts` | page screenshot › mask option › should work with elementhandle |+| `SS-043` | `page/page-screenshot.spec.ts` | page screenshot › mask option › should mask multiple elements |+| `SS-044` | `page/page-screenshot.spec.ts` | page screenshot › mask option › should mask inside iframe |+| `SS-045` | `page/page-screenshot.spec.ts` | page screenshot › mask option › should mask in parallel |+| `SS-046` | `page/page-screenshot.spec.ts` | page screenshot › mask option › should remove mask after screenshot |+| `SS-047` | `page/page-screenshot.spec.ts` | page screenshot › mask option › should work when subframe has stalled navigation |+| `SS-048` | `page/page-screenshot.spec.ts` | page screenshot › mask option › should work when subframe used document.open after a weird url |+| `SS-049` | `page/page-screenshot.spec.ts` | page screenshot › mask option › should work when mask color is not pink #F0F |+| `SS-050` | `page/page-screenshot.spec.ts` | page screenshot › mask option › should hide elements based on attr |+| `SS-051` | `page/page-screenshot.spec.ts` | page screenshot › mask option › should remove elements based on attr |+| `SS-052` | `page/page-screenshot.spec.ts` | page screenshot animations › should not capture infinite css animation |+| `SS-053` | `page/page-screenshot.spec.ts` | page screenshot animations › should not capture pseudo element css animation |+| `SS-054` | `page/page-screenshot.spec.ts` | page screenshot animations › should not capture css animations in shadow DOM |+| `SS-055` | `page/page-screenshot.spec.ts` | page screenshot animations › should stop animations that happen right before screenshot |+| `SS-056` | `page/page-screenshot.spec.ts` | page screenshot animations › should resume infinite animations |+| `SS-057` | `page/page-screenshot.spec.ts` | page screenshot animations › should not capture infinite web animations |+| `SS-058` | `page/page-screenshot.spec.ts` | page screenshot animations › should fire transitionend for finite transitions |+| `SS-059` | `page/page-screenshot.spec.ts` | page screenshot animations › should capture screenshots after layoutchanges in transitionend event |+| `SS-060` | `page/page-screenshot.spec.ts` | page screenshot animations › should not change animation with playbackRate equal to 0 |+| `SS-061` | `page/page-screenshot.spec.ts` | page screenshot animations › should trigger particular events for css transitions |+| `SS-062` | `page/page-screenshot.spec.ts` | page screenshot animations › should trigger particular events for INfinite css animation |+| `SS-063` | `page/page-screenshot.spec.ts` | page screenshot animations › should trigger particular events for finite css animation |+| `SS-064` | `page/page-screenshot.spec.ts` | page screenshot animations › should wait for fonts to load |+| `SS-065` | `page/page-screenshot.spec.ts` | should throw if screenshot size is too large |+| `SS-066` | `page/page-screenshot.spec.ts` | page screenshot should capture css transform |+| `SS-067` | `page/page-screenshot.spec.ts` | should capture css box-shadow |+| `SS-068` | `library/screenshot.spec.ts` | page screenshot › should run in parallel in multiple pages |+| `SS-069` | `library/screenshot.spec.ts` | page screenshot › should work with a mobile viewport |+| `SS-070` | `library/screenshot.spec.ts` | page screenshot › should work with a mobile viewport and clip |+| `SS-071` | `library/screenshot.spec.ts` | page screenshot › should work with a mobile viewport and fullPage |+| `SS-072` | `library/screenshot.spec.ts` | page screenshot › should work with device scale factor |+| `SS-073` | `library/screenshot.spec.ts` | page screenshot › should work with device scale factor and clip |+| `SS-074` | `library/screenshot.spec.ts` | page screenshot › should work with device scale factor and scale:css |+| `SS-075` | `library/screenshot.spec.ts` | page screenshot › should produce screenshot of correct size with scale:css and null viewport |+| `SS-076` | `library/screenshot.spec.ts` | page screenshot › should work with device scale factor, clip and scale:css |+| `SS-077` | `library/screenshot.spec.ts` | page screenshot › should throw if screenshot size is too large with device scale factor |+| `SS-078` | `library/screenshot.spec.ts` | page screenshot › should work with large size |+| `SS-079` | `library/screenshot.spec.ts` | page screenshot › should handle vh units |+| `SS-080` | `library/screenshot.spec.ts` | page screenshot › should not hang when event loop is blocked |+| `SS-081` | `library/screenshot.spec.ts` | element screenshot › element screenshot should work with a mobile viewport |+| `SS-082` | `library/screenshot.spec.ts` | element screenshot › element screenshot should work with device scale factor |+| `SS-083` | `library/screenshot.spec.ts` | element screenshot › should take screenshots when default viewport is null |+| `SS-084` | `library/screenshot.spec.ts` | element screenshot › should take fullPage screenshots when default viewport is null |+| `SS-085` | `library/screenshot.spec.ts` | element screenshot › should restore default viewport after fullPage screenshot |+| `SS-086` | `library/screenshot.spec.ts` | element screenshot › should restore viewport after page screenshot and exception |+| `SS-087` | `library/screenshot.spec.ts` | element screenshot › should restore viewport after page screenshot and timeout |+| `SS-088` | `library/screenshot.spec.ts` | element screenshot › should take element screenshot when default viewport is null and restore back |+| `SS-089` | `library/screenshot.spec.ts` | element screenshot › should restore viewport after element screenshot and exception |+| `SS-090` | `library/screenshot.spec.ts` | element screenshot › element screenshots should handle vh units |+| `SS-091` | `library/screenshot.spec.ts` | element screenshot › should work if the main resource hangs |+| `SS-092` | `library/screenshot.spec.ts` | element screenshot › should capture full element when larger than viewport with device scale factor |+| `SS-093` | `library/screenshot.spec.ts` | element screenshot › should capture full element when larger than viewport with device scale factor and scale:css |+| `SS-094` | `library/screenshot.spec.ts` | element screenshot › page screenshot should capture css transform with device pixels |++### ST — Storage++| ID | File | Title |+|---|---|---|+| `ST-001` | `library/browsercontext-storage-state.spec.ts` | should capture local storage |+| `ST-002` | `library/browsercontext-storage-state.spec.ts` | should set local storage |+| `ST-003` | `library/browsercontext-storage-state.spec.ts` | should report good error if the url is not valid |+| `ST-004` | `library/browsercontext-storage-state.spec.ts` | should round-trip through the file |+| `ST-005` | `library/browsercontext-storage-state.spec.ts` | should round-trip OPFS |+| `ST-006` | `library/browsercontext-storage-state.spec.ts` | should capture cookies |+| `ST-007` | `library/browsercontext-storage-state.spec.ts` | should not emit events about internal page |+| `ST-008` | `library/browsercontext-storage-state.spec.ts` | should not restore localStorage twice |+| `ST-009` | `library/browsercontext-storage-state.spec.ts` | should handle missing file |+| `ST-010` | `library/browsercontext-storage-state.spec.ts` | should handle malformed file |+| `ST-011` | `library/browsercontext-storage-state.spec.ts` | should serialize storageState with lone surrogates |+| `ST-012` | `library/browsercontext-storage-state.spec.ts` | should work when service worker is intefering |+| `ST-013` | `library/browsercontext-storage-state.spec.ts` | should work when service worker is intefering and the origin is not open |+| `ST-014` | `library/browsercontext-storage-state.spec.ts` | should set local storage in third-party context |+| `ST-015` | `library/browsercontext-storage-state.spec.ts` | should roundtrip local storage in third-party context |+| `ST-016` | `library/browsercontext-storage-state.spec.ts` | should support IndexedDB |+| `ST-017` | `library/browsercontext-storage-state.spec.ts` | should roundtrip IndexedDB values and keys with {newContext, setStorageState} *(2 copies)* |+| `ST-018` | `library/browsercontext-storage-state.spec.ts` | should support empty indexedDB |+| `ST-019` | `library/browsercontext-storage-state.spec.ts` | should not leave IndexedDB connections open |+| `ST-020` | `library/browsercontext-storage-state.spec.ts` | should round-trip WebAuthn credentials with storageState |+| `ST-021` | `library/browsercontext-storage-state.spec.ts` | setStorageState should replace credentials |+| `ST-022` | `library/browsercontext-storage-state.spec.ts` | setStorageState should handle missing file |+| `ST-023` | `page/page-localstorage.spec.ts` | localStorage.items returns empty array on fresh origin |+| `ST-024` | `page/page-localstorage.spec.ts` | localStorage.getItem returns null for missing key |+| `ST-025` | `page/page-localstorage.spec.ts` | localStorage.setItem persists and surfaces in items()/getItem() |+| `ST-026` | `page/page-localstorage.spec.ts` | localStorage.setItem overwrites existing value |+| `ST-027` | `page/page-localstorage.spec.ts` | localStorage.removeItem removes a single item |+| `ST-028` | `page/page-localstorage.spec.ts` | localStorage.clear empties storage |+| `ST-029` | `page/page-localstorage.spec.ts` | sessionStorage round-trip |+| `ST-030` | `page/page-localstorage.spec.ts` | localStorage and sessionStorage are independent |+| `ST-031` | `page/page-localstorage.spec.ts` | storage methods are scoped to the current origin |+| `ST-032` | `page/page-cache-storage.spec.ts` | CacheStorage entry should survive page.reload() |++### TA — Tap++| ID | File | Title |+|---|---|---|+| `TA-001` | `library/tap.spec.ts` | should send all of the correct events @smoke |+| `TA-002` | `library/tap.spec.ts` | trial run should not tap |+| `TA-003` | `library/tap.spec.ts` | should not send mouse events touchstart is canceled |+| `TA-004` | `library/tap.spec.ts` | should not send mouse events when touchend is canceled |+| `TA-005` | `library/tap.spec.ts` | should not wait for a navigation caused by a tap |+| `TA-006` | `library/tap.spec.ts` | should work with modifiers |+| `TA-007` | `library/tap.spec.ts` | should send well formed touch points |+| `TA-008` | `library/tap.spec.ts` | should wait until an element is visible to tap it |+| `TA-009` | `library/tap.spec.ts` | locators › should send all of the correct events |+| `TA-010` | `library/locator-dispatchevent-touch.spec.ts` | should support touch points in touch event arguments |++### TO — Timeout runner++| ID | File | Title |+|---|---|---|+| `TO-001` | `library/unit/timeout-runner.spec.ts` | raceAgainstDeadline should not emit TimeoutNegativeWarning for a passed deadline |++### TR — Tracing++| ID | File | Title |+|---|---|---|+| `TR-001` | `library/tracing.spec.ts` | should collect trace with resources, but no js |+| `TR-002` | `library/tracing.spec.ts` | should use the correct title for event driven callbacks |+| `TR-003` | `library/tracing.spec.ts` | should not store secrets in context options |+| `TR-004` | `library/tracing.spec.ts` | should not collect snapshots by default |+| `TR-005` | `library/tracing.spec.ts` | should not collect action screenshots and aria snapshots by default |+| `TR-006` | `library/tracing.spec.ts` | should collect action screenshots |+| `TR-007` | `library/tracing.spec.ts` | should collect aria snapshots |+| `TR-008` | `library/tracing.spec.ts` | can call tracing.group/groupEnd at any time and auto-close |+| `TR-009` | `library/tracing.spec.ts` | should not include buffers in the trace |+| `TR-010` | `library/tracing.spec.ts` | should exclude internal pages |+| `TR-011` | `library/tracing.spec.ts` | should record context API request trace independently |+| `TR-012` | `library/tracing.spec.ts` | should collect two traces |+| `TR-013` | `library/tracing.spec.ts` | should respect tracesDir and name |+| `TR-014` | `library/tracing.spec.ts` | should not include trace resources from the previous chunks |+| `TR-015` | `library/tracing.spec.ts` | should overwrite existing file |+| `TR-016` | `library/tracing.spec.ts` | should collect sources |+| `TR-017` | `library/tracing.spec.ts` | should record network failures |+| `TR-018` | `library/tracing.spec.ts` | should recover tracing after a failed stop |+| `TR-019` | `library/tracing.spec.ts` | should release the stack session when saving the trace fails |+| `TR-020` | `library/tracing.spec.ts` | should not crash when browser closes mid-trace |+| `TR-021` | `library/tracing.spec.ts` | should survive browser.close with auto-created traces dir |+| `TR-022` | `library/tracing.spec.ts` | should not stall on dialogs |+| `TR-023` | `library/tracing.spec.ts` | should produce screencast frames {fit, crop, scale} *(3 copies)* |+| `TR-024` | `library/tracing.spec.ts` | should include interrupted actions |+| `TR-025` | `library/tracing.spec.ts` | should throw when starting with different options |+| `TR-026` | `library/tracing.spec.ts` | should throw when stopping without start |+| `TR-027` | `library/tracing.spec.ts` | should not throw when stopping without start but not exporting |+| `TR-028` | `library/tracing.spec.ts` | start should return a disposable that discards the trace |+| `TR-029` | `library/tracing.spec.ts` | startChunk should return a disposable that discards the chunk |+| `TR-030` | `library/tracing.spec.ts` | should work with multiple chunks |+| `TR-031` | `library/tracing.spec.ts` | should export trace concurrently to second navigation |+| `TR-032` | `library/tracing.spec.ts` | should not hang for clicks that open dialogs |+| `TR-033` | `library/tracing.spec.ts` | should ignore iframes in head |+| `TR-034` | `library/tracing.spec.ts` | should hide internal stack frames |+| `TR-035` | `library/tracing.spec.ts` | should hide internal stack frames in expect |+| `TR-036` | `library/tracing.spec.ts` | should record global request trace |+| `TR-037` | `library/tracing.spec.ts` | should store global request traces separately |+| `TR-038` | `library/tracing.spec.ts` | should store postData for global request |+| `TR-039` | `library/tracing.spec.ts` | should not flush console events |+| `TR-040` | `library/tracing.spec.ts` | should flush console events on tracing stop |+| `TR-041` | `library/tracing.spec.ts` | should not emit after w/o before |+| `TR-042` | `library/tracing.spec.ts` | should save trace while a WebSocket keeps streaming frames |+| `TR-043` | `library/chromium/tracing.spec.ts` | should output a trace |+| `TR-044` | `library/chromium/tracing.spec.ts` | should create directories as needed |+| `TR-045` | `library/chromium/tracing.spec.ts` | should run with custom categories if provided |+| `TR-046` | `library/chromium/tracing.spec.ts` | should throw if tracing on two pages |+| `TR-047` | `library/chromium/tracing.spec.ts` | should return a buffer |+| `TR-048` | `library/chromium/tracing.spec.ts` | should work without options |+| `TR-049` | `library/chromium/tracing.spec.ts` | should support a buffer without a path |++### TV — Trace viewer++| ID | File | Title |+|---|---|---|+| `TV-001` | `library/trace-viewer.spec.ts` | should show empty trace viewer |+| `TV-002` | `library/trace-viewer.spec.ts` | should open two trace viewers |+| `TV-003` | `library/trace-viewer.spec.ts` | should open trace viewer on specific host |+| `TV-004` | `library/trace-viewer.spec.ts` | should show tracing.group in the action list with location |+| `TV-005` | `library/trace-viewer.spec.ts` | should open simple trace viewer |+| `TV-006` | `library/trace-viewer.spec.ts` | should filter actions by text |+| `TV-007` | `library/trace-viewer.spec.ts` | should keep selected action in view after Show all |+| `TV-008` | `library/trace-viewer.spec.ts` | should activate Show all with keyboard |+| `TV-009` | `library/trace-viewer.spec.ts` | should open uncompressed trace directory |+| `TV-010` | `library/trace-viewer.spec.ts` | should show action context on locators and other common actions |+| `TV-011` | `library/trace-viewer.spec.ts` | should complain about newer version of trace in old viewer |+| `TV-012` | `library/trace-viewer.spec.ts` | should properly synchronize local and remote time |+| `TV-013` | `library/trace-viewer.spec.ts` | should contain action info |+| `TV-014` | `library/trace-viewer.spec.ts` | should render console |+| `TV-015` | `library/trace-viewer.spec.ts` | should show console source for multiple pages |+| `TV-016` | `library/trace-viewer.spec.ts` | should highlight console message on timeline on hover |+| `TV-017` | `library/trace-viewer.spec.ts` | should open console errors on click |+| `TV-018` | `library/trace-viewer.spec.ts` | should open console errors with keyboard |+| `TV-019` | `library/trace-viewer.spec.ts` | should show params and return value |+| `TV-020` | `library/trace-viewer.spec.ts` | should show null as a param |+| `TV-021` | `library/trace-viewer.spec.ts` | should truncate long return values with ellipsis but copy full value |+| `TV-022` | `library/trace-viewer.spec.ts` | should have correct snapshot size |+| `TV-023` | `library/trace-viewer.spec.ts` | should have correct stack trace |+| `TV-024` | `library/trace-viewer.spec.ts` | should have network requests |+| `TV-025` | `library/trace-viewer.spec.ts` | should attribute network requests to service workers |+| `TV-026` | `library/trace-viewer.spec.ts` | should highlight network request on timeline on hover |+| `TV-027` | `library/trace-viewer.spec.ts` | should filter network requests by resource type |+| `TV-028` | `library/trace-viewer.spec.ts` | should filter network requests by multiple resource types |+| `TV-029` | `library/trace-viewer.spec.ts` | should show font preview |+| `TV-030` | `library/trace-viewer.spec.ts` | should syntax highlight body |+| `TV-031` | `library/trace-viewer.spec.ts` | should filter network requests by url |+| `TV-032` | `library/trace-viewer.spec.ts` | should have network request overrides |+| `TV-033` | `library/trace-viewer.spec.ts` | should show canceled status for requests canceled by navigation |+| `TV-034` | `library/trace-viewer.spec.ts` | should have network request overrides 2 |+| `TV-035` | `library/trace-viewer.spec.ts` | should filter network requests by websocket type |+| `TV-036` | `library/trace-viewer.spec.ts` | should show websocket messages |+| `TV-037` | `library/trace-viewer.spec.ts` | should show snapshot URL and copy button |+| `TV-038` | `library/trace-viewer.spec.ts` | should popup snapshot |+| `TV-039` | `library/trace-viewer.spec.ts` | should capture attribute mutations inside a popup window |+| `TV-040` | `library/trace-viewer.spec.ts` | should capture iframe with sandbox attribute |+| `TV-041` | `library/trace-viewer.spec.ts` | should capture data-url svg iframe |+| `TV-042` | `library/trace-viewer.spec.ts` | should not let style text break out of the style element |+| `TV-043` | `library/trace-viewer.spec.ts` | should contain adopted style sheets |+| `TV-044` | `library/trace-viewer.spec.ts` | should work with adopted style sheets and replace/replaceSync |+| `TV-045` | `library/trace-viewer.spec.ts` | should work with adopted style sheets and all: unset |+| `TV-046` | `library/trace-viewer.spec.ts` | empty adopted style sheets should not prevent node refs |+| `TV-047` | `library/trace-viewer.spec.ts` | should work with nesting CSS selectors |+| `TV-048` | `library/trace-viewer.spec.ts` | should restore scroll positions |+| `TV-049` | `library/trace-viewer.spec.ts` | should restore control values |+| `TV-050` | `library/trace-viewer.spec.ts` | should work with meta CSP |+| `TV-051` | `library/trace-viewer.spec.ts` | should handle multiple headers |+| `TV-052` | `library/trace-viewer.spec.ts` | should handle src=blob |+| `TV-053` | `library/trace-viewer.spec.ts` | should handle file URIs |+| `TV-054` | `library/trace-viewer.spec.ts` | should preserve currentSrc |+| `TV-055` | `library/trace-viewer.spec.ts` | should register custom elements |+| `TV-056` | `library/trace-viewer.spec.ts` | should not treat synthetic shadow root as a shadow root |+| `TV-057` | `library/trace-viewer.spec.ts` | should highlight target elements |+| `TV-058` | `library/trace-viewer.spec.ts` | should highlight target element in shadow dom |+| `TV-059` | `library/trace-viewer.spec.ts` | should highlight expect failure |+| `TV-060` | `library/trace-viewer.spec.ts` | should show action source |+| `TV-061` | `library/trace-viewer.spec.ts` | should follow redirects |+| `TV-062` | `library/trace-viewer.spec.ts` | should include metainfo |+| `TV-063` | `library/trace-viewer.spec.ts` | should open v6 trace file |+| `TV-064` | `library/trace-viewer.spec.ts` | should not crash with broken locator |+| `TV-065` | `library/trace-viewer.spec.ts` | should serve overridden request |+| `TV-066` | `library/trace-viewer.spec.ts` | should display waitForLoadState even if did not wait for it |+| `TV-067` | `library/trace-viewer.spec.ts` | should display language-specific locators |+| `TV-068` | `library/trace-viewer.spec.ts` | should pick locator |+| `TV-069` | `library/trace-viewer.spec.ts` | should generate aria snapshot with unaltered urls |+| `TV-070` | `library/trace-viewer.spec.ts` | should update highlight when typing locator |+| `TV-071` | `library/trace-viewer.spec.ts` | should update highlight when typing snapshot |+| `TV-072` | `library/trace-viewer.spec.ts` | should open trace-1.31 |+| `TV-073` | `library/trace-viewer.spec.ts` | should open trace-1.37 |+| `TV-074` | `library/trace-viewer.spec.ts` | should prefer later resource request with the same method |+| `TV-075` | `library/trace-viewer.spec.ts` | should ignore 304 responses |+| `TV-076` | `library/trace-viewer.spec.ts` | should pick locator in iframe |+| `TV-077` | `library/trace-viewer.spec.ts` | should highlight locator in iframe while typing |+| `TV-078` | `library/trace-viewer.spec.ts` | should preserve noscript when javascript is disabled |+| `TV-079` | `library/trace-viewer.spec.ts` | should remove noscript by default |+| `TV-080` | `library/trace-viewer.spec.ts` | should remove noscript when javaScriptEnabled is set to true |+| `TV-081` | `library/trace-viewer.spec.ts` | should open snapshot in new browser context |+| `TV-082` | `library/trace-viewer.spec.ts` | should show similar actions from legacy library-only trace |+| `TV-083` | `library/trace-viewer.spec.ts` | should show correct request start time |+| `TV-084` | `library/trace-viewer.spec.ts` | should not record route actions |+| `TV-085` | `library/trace-viewer.spec.ts` | should not record network actions |+| `TV-086` | `library/trace-viewer.spec.ts` | should show baseURL in metadata pane |+| `TV-087` | `library/trace-viewer.spec.ts` | should not leak recorders |+| `TV-088` | `library/trace-viewer.spec.ts` | should serve css without content-type |+| `TV-089` | `library/trace-viewer.spec.ts` | canvas disabled title |+| `TV-090` | `library/trace-viewer.spec.ts` | canvas clipping |+| `TV-091` | `library/trace-viewer.spec.ts` | canvas clipping in iframe |+| `TV-092` | `library/trace-viewer.spec.ts` | should show only one pointer with multilevel iframes |+| `TV-093` | `library/trace-viewer.spec.ts` | should show a popover |+| `TV-094` | `library/trace-viewer.spec.ts` | should show a modal dialog |+| `TV-095` | `library/trace-viewer.spec.ts` | should open settings dialog |+| `TV-096` | `library/trace-viewer.spec.ts` | should toggle theme color |+| `TV-097` | `library/trace-viewer.spec.ts` | should reflect system color scheme changes in document theme |+| `TV-098` | `library/trace-viewer.spec.ts` | should toggle canvas rendering |+| `TV-099` | `library/trace-viewer.spec.ts` | should display aria mode |+| `TV-100` | `library/trace-viewer.spec.ts` | should disable aria setting when there are no aria snapshots |+| `TV-101` | `library/trace-viewer.spec.ts` | should force aria mode when there are no dom snapshots |+| `TV-102` | `library/trace-viewer.spec.ts` | should notify parent when ready to receive messages |+| `TV-103` | `library/trace-viewer.spec.ts` | should render blob trace received from opener |+| `TV-104` | `library/trace-viewer.spec.ts` | shouldn't render not-blob trace received from message |+| `TV-105` | `library/trace-viewer.spec.ts` | should not trip over complex urls in style tags |+| `TV-106` | `library/trace-viewer.spec.ts` | should render locator descriptions |+| `TV-107` | `library/trace-viewer.spec.ts` | should load trace from HTTP with progress indicator |+| `TV-108` | `library/trace-viewer.spec.ts` | should filter actions |+| `TV-109` | `library/trace-viewer.spec.ts` | should handle failed snapshots due to dialog |+| `TV-110` | `library/trace-viewer.spec.ts` | should survive service worker restart |+| `TV-111` | `library/trace-viewer.spec.ts` | should not navigate on anchor clicks |+| `TV-112` | `library/trace-viewer.spec.ts` | should respect CSSOM changes |+| `TV-113` | `library/trace-viewer.spec.ts` | should preserve custom doctype |+| `TV-114` | `library/trace-viewer.spec.ts` | should replace meta charset attr that specifies charset |+| `TV-115` | `library/trace-viewer.spec.ts` | should replace meta content attr that specifies charset |+| `TV-116` | `library/trace-viewer.spec.ts` | should drop meta http-equiv refresh during recording |+| `TV-117` | `library/trace-viewer.spec.ts` | should neutralize meta http-equiv refresh during rendering |+| `TV-118` | `library/trace-viewer.spec.ts` | snapshots should be served with a script-src policy |+| `TV-119` | `library/trace-viewer.spec.ts` | snapshot iframes should be sandboxed |+| `TV-120` | `library/trace-viewer.spec.ts` | should capture iframe with srcdoc |+| `TV-121` | `library/trace-viewer.spec.ts` | should render snapshots from the second chunk |+| `TV-122` | `library/trace-viewer.spec.ts` | take trace paths via stdin |+| `TV-123` | `library/snapshot-renderer.spec.ts` | snapshot renderer escapes attacker-controlled {callId, snapshotName} in script context *(2 copies)* |+| `TV-124` | `library/snapshot-renderer.spec.ts` | snapshot renderer nonces the bootstrap script |+| `TV-125` | `library/snapshot-renderer.spec.ts` | snapshot renderer strips event handler attributes |+| `TV-126` | `library/snapshot-renderer.spec.ts` | snapshot renderer strips onclick attributes |+| `TV-127` | `library/snapshot-renderer.spec.ts` | snapshot renderer neutralizes iframe srcdoc |+| `TV-128` | `library/snapshot-renderer.spec.ts` | snapshot renderer neutralizes iframe sandbox |+| `TV-129` | `library/snapshot-renderer.spec.ts` | snapshot renderer neutralizes object data attribute |+| `TV-130` | `library/snapshot-renderer.spec.ts` | snapshot renderer neutralizes embed src attribute |+| `TV-131` | `library/snapshot-renderer.spec.ts` | snapshot renderer handles case-insensitive iframe tag names |+| `TV-132` | `library/snapshot-renderer.spec.ts` | snapshot renderer drops unsafe tag names that smuggle attributes |+| `TV-133` | `library/snapshot-renderer.spec.ts` | snapshot renderer still renders ordinary custom elements |+| `TV-134` | `library/snapshot-renderer.spec.ts` | stripAnsiEscapes should not exhibit polynomial backtracking |+| `TV-135` | `library/snapshot-renderer.spec.ts` | stripAnsiEscapes handles common ANSI sequences after fix |++### TZ — Timezone++| ID | File | Title |+|---|---|---|+| `TZ-001` | `library/browsercontext-timezone-id.spec.ts` | should work @smoke |+| `TZ-002` | `library/browsercontext-timezone-id.spec.ts` | should throw for invalid timezone IDs when creating pages |+| `TZ-003` | `library/browsercontext-timezone-id.spec.ts` | should work for multiple pages sharing same process |+| `TZ-004` | `library/browsercontext-timezone-id.spec.ts` | should not change default timezone in another context |+| `TZ-005` | `library/browsercontext-timezone-id.spec.ts` | should affect Intl.DateTimeFormat().resolvedOptions().timeZone |+| `TZ-006` | `library/browsercontext-timezone-id.spec.ts` | should propagate timezone to workers |++### UA — User agent++| ID | File | Title |+|---|---|---|+| `UA-001` | `library/browsercontext-user-agent.spec.ts` | should work |+| `UA-002` | `library/browsercontext-user-agent.spec.ts` | should work for subframes |+| `UA-003` | `library/browsercontext-user-agent.spec.ts` | should emulate device user-agent |+| `UA-004` | `library/browsercontext-user-agent.spec.ts` | should make a copy of default options |+| `UA-005` | `library/browsercontext-user-agent.spec.ts` | custom user agent for download |+| `UA-006` | `library/browsercontext-user-agent.spec.ts` | should work for navigator.userAgentData and sec-ch-ua headers |++### VI — Video++| ID | File | Title |+|---|---|---|+| `VI-001` | `library/video.spec.ts` | screencast › should not have video by default |+| `VI-002` | `library/video.spec.ts` | screencast › should not throw without recordVideo.dir |+| `VI-003` | `library/video.spec.ts` | screencast › should capture static page |+| `VI-004` | `library/video.spec.ts` | screencast › should pad a short frame to the video size |+| `VI-005` | `library/video.spec.ts` | screencast › should continue recording main page after popup closes |+| `VI-006` | `library/video.spec.ts` | screencast › should expose video path |+| `VI-007` | `library/video.spec.ts` | screencast › should delete video |+| `VI-008` | `library/video.spec.ts` | screencast › should expose video path blank page |+| `VI-009` | `library/video.spec.ts` | screencast › should work with weird screen resolution |+| `VI-010` | `library/video.spec.ts` | screencast › should work with relative path for recordVideo.dir |+| `VI-011` | `library/video.spec.ts` | screencast › should expose video path blank popup |+| `VI-012` | `library/video.spec.ts` | screencast › should capture navigation |+| `VI-013` | `library/video.spec.ts` | screencast › should capture css transformation |+| `VI-014` | `library/video.spec.ts` | screencast › should work for popups |+| `VI-015` | `library/video.spec.ts` | screencast › should scale frames down to the requested size |+| `VI-016` | `library/video.spec.ts` | screencast › should use viewport scaled down to fit into 800x800 as default size |+| `VI-017` | `library/video.spec.ts` | screencast › should be 800x450 by default |+| `VI-018` | `library/video.spec.ts` | screencast › should record video with the requested fps |+| `VI-019` | `library/video.spec.ts` | screencast › should throw on invalid fps |+| `VI-020` | `library/video.spec.ts` | screencast › should be 800x600 with null viewport |+| `VI-021` | `library/video.spec.ts` | screencast › should capture static page in persistent context @smoke |+| `VI-022` | `library/video.spec.ts` | screencast › should emulate an iphone |+| `VI-023` | `library/video.spec.ts` | screencast › should throw on browser close |+| `VI-024` | `library/video.spec.ts` | screencast › should throw if browser dies |+| `VI-025` | `library/video.spec.ts` | screencast › should wait for video to finish if page was closed |+| `VI-026` | `library/video.spec.ts` | screencast › should close ffmpeg even if there were no frames |+| `VI-027` | `library/video.spec.ts` | screencast › should not create video for internal pages |+| `VI-028` | `library/video.spec.ts` | screencast › should capture full viewport |+| `VI-029` | `library/video.spec.ts` | screencast › should capture full viewport on hidpi |+| `VI-030` | `library/video.spec.ts` | screencast › should work with video+trace |+| `VI-031` | `library/video.spec.ts` | should saveAs video |++### VP — Viewport++| ID | File | Title |+|---|---|---|+| `VP-001` | `library/browsercontext-viewport.spec.ts` | should get the proper default viewport size |+| `VP-002` | `library/browsercontext-viewport.spec.ts` | should set the proper viewport size |+| `VP-003` | `library/browsercontext-viewport.spec.ts` | should return correct outerWidth and outerHeight |+| `VP-004` | `library/browsercontext-viewport.spec.ts` | landscape viewport should have width larger than height |+| `VP-005` | `library/browsercontext-viewport.spec.ts` | should emulate device width |+| `VP-006` | `library/browsercontext-viewport.spec.ts` | should emulate device height |+| `VP-007` | `library/browsercontext-viewport.spec.ts` | should emulate availWidth and availHeight |+| `VP-008` | `library/browsercontext-viewport.spec.ts` | should not have touch by default |+| `VP-009` | `library/browsercontext-viewport.spec.ts` | should throw on tap if hasTouch is not enabled |+| `VP-010` | `library/browsercontext-viewport.spec.ts` | should support touch with null viewport |+| `VP-011` | `library/browsercontext-viewport.spec.ts` | should keep touch emulation after screenshot beyond viewport |+| `VP-012` | `library/browsercontext-viewport.spec.ts` | should set both screen and viewport options |+| `VP-013` | `library/browsercontext-viewport.spec.ts` | should report null viewportSize when given null viewport |+| `VP-014` | `library/browsercontext-viewport.spec.ts` | should drag with high dpi |+| `VP-015` | `library/browsercontext-viewport.spec.ts` | WebKit Windows headed should have a minimal viewport |+| `VP-016` | `library/browsercontext-viewport.spec.ts` | should be able to get correct orientation angle on non-mobile devices |+| `VP-017` | `library/browsercontext-viewport.spec.ts` | should set window.screen.orientation.type for mobile devices |++### WA — Wait for++| ID | File | Title |+|---|---|---|+| `WA-001` | `page/page-wait-for-function.spec.ts` | should timeout |+| `WA-002` | `page/page-wait-for-function.spec.ts` | should accept a string |+| `WA-003` | `page/page-wait-for-function.spec.ts` | should work when resolved right before execution context disposal |+| `WA-004` | `page/page-wait-for-function.spec.ts` | should poll on interval |+| `WA-005` | `page/page-wait-for-function.spec.ts` | should avoid side effects after timeout |+| `WA-006` | `page/page-wait-for-function.spec.ts` | should throw on polling:mutation |+| `WA-007` | `page/page-wait-for-function.spec.ts` | should poll on raf |+| `WA-008` | `page/page-wait-for-function.spec.ts` | should fail with predicate throwing on first call |+| `WA-009` | `page/page-wait-for-function.spec.ts` | should fail with predicate throwing sometimes |+| `WA-010` | `page/page-wait-for-function.spec.ts` | should fail with ReferenceError on wrong page |+| `WA-011` | `page/page-wait-for-function.spec.ts` | should work with strict CSP policy |+| `WA-012` | `page/page-wait-for-function.spec.ts` | should throw on bad polling value |+| `WA-013` | `page/page-wait-for-function.spec.ts` | should throw negative polling interval |+| `WA-014` | `page/page-wait-for-function.spec.ts` | should return the success value as a JSHandle |+| `WA-015` | `page/page-wait-for-function.spec.ts` | should return the window as a success value |+| `WA-016` | `page/page-wait-for-function.spec.ts` | should accept ElementHandle arguments |+| `WA-017` | `page/page-wait-for-function.spec.ts` | should respect timeout |+| `WA-018` | `page/page-wait-for-function.spec.ts` | should respect default timeout |+| `WA-019` | `page/page-wait-for-function.spec.ts` | should disable timeout when its set to 0 |+| `WA-020` | `page/page-wait-for-function.spec.ts` | should survive cross-process navigation |+| `WA-021` | `page/page-wait-for-function.spec.ts` | should survive navigations |+| `WA-022` | `page/page-wait-for-function.spec.ts` | should work with multiline body |+| `WA-023` | `page/page-wait-for-function.spec.ts` | should wait for predicate with arguments |+| `WA-024` | `page/page-wait-for-function.spec.ts` | should not be called after finishing successfully |+| `WA-025` | `page/page-wait-for-function.spec.ts` | should not be called after finishing unsuccessfully |+| `WA-026` | `page/page-wait-for-function.spec.ts` | should throw when frame is detached |+| `WA-027` | `page/page-wait-for-selector-1.spec.ts` | should throw on waitFor |+| `WA-028` | `page/page-wait-for-selector-1.spec.ts` | should tolerate waitFor=visible |+| `WA-029` | `page/page-wait-for-selector-1.spec.ts` | should immediately resolve promise if node exists |+| `WA-030` | `page/page-wait-for-selector-1.spec.ts` | elementHandle.waitForSelector should immediately resolve if node exists |+| `WA-031` | `page/page-wait-for-selector-1.spec.ts` | elementHandle.waitForSelector should wait |+| `WA-032` | `page/page-wait-for-selector-1.spec.ts` | elementHandle.waitForSelector should timeout |+| `WA-033` | `page/page-wait-for-selector-1.spec.ts` | elementHandle.waitForSelector should throw on navigation |+| `WA-034` | `page/page-wait-for-selector-1.spec.ts` | should work with removed MutationObserver |+| `WA-035` | `page/page-wait-for-selector-1.spec.ts` | should resolve promise when node is added |+| `WA-036` | `page/page-wait-for-selector-1.spec.ts` | should report logs while waiting for visible |+| `WA-037` | `page/page-wait-for-selector-1.spec.ts` | should report logs while waiting for hidden |+| `WA-038` | `page/page-wait-for-selector-1.spec.ts` | should report logs when the selector resolves to multiple elements |+| `WA-039` | `page/page-wait-for-selector-1.spec.ts` | should resolve promise when node is added in shadow dom |+| `WA-040` | `page/page-wait-for-selector-1.spec.ts` | should work when node is added through innerHTML |+| `WA-041` | `page/page-wait-for-selector-1.spec.ts` | page.waitForSelector is shortcut for main frame |+| `WA-042` | `page/page-wait-for-selector-1.spec.ts` | should run in specified frame |+| `WA-043` | `page/page-wait-for-selector-1.spec.ts` | should throw when frame is detached |+| `WA-044` | `page/page-wait-for-selector-2.spec.ts` | should survive cross-process navigation |+| `WA-045` | `page/page-wait-for-selector-2.spec.ts` | should wait for visible |+| `WA-046` | `page/page-wait-for-selector-2.spec.ts` | should not consider visible when zero-sized |+| `WA-047` | `page/page-wait-for-selector-2.spec.ts` | should wait for visible recursively |+| `WA-048` | `page/page-wait-for-selector-2.spec.ts` | should consider outside of viewport visible |+| `WA-049` | `page/page-wait-for-selector-2.spec.ts` | hidden should wait for hidden |+| `WA-050` | `page/page-wait-for-selector-2.spec.ts` | hidden should wait for display: none |+| `WA-051` | `page/page-wait-for-selector-2.spec.ts` | hidden should wait for removal |+| `WA-052` | `page/page-wait-for-selector-2.spec.ts` | should return null if waiting to hide non-existing element |+| `WA-053` | `page/page-wait-for-selector-2.spec.ts` | should respect timeout |+| `WA-054` | `page/page-wait-for-selector-2.spec.ts` | should have an error message specifically for awaiting an element to be hidden |+| `WA-055` | `page/page-wait-for-selector-2.spec.ts` | should respond to node attribute mutation |+| `WA-056` | `page/page-wait-for-selector-2.spec.ts` | should return the element handle |+| `WA-057` | `page/page-wait-for-selector-2.spec.ts` | should have correct stack trace for timeout |+| `WA-058` | `page/page-wait-for-selector-2.spec.ts` | should throw for unknown state option |+| `WA-059` | `page/page-wait-for-selector-2.spec.ts` | should throw for visibility option |+| `WA-060` | `page/page-wait-for-selector-2.spec.ts` | should throw for true state option |+| `WA-061` | `page/page-wait-for-selector-2.spec.ts` | should throw for false state option |+| `WA-062` | `page/page-wait-for-selector-2.spec.ts` | should support \>\> selector syntax |+| `WA-063` | `page/page-wait-for-selector-2.spec.ts` | should wait for detached if already detached |+| `WA-064` | `page/page-wait-for-selector-2.spec.ts` | should wait for detached |+| `WA-065` | `page/page-wait-for-selector-2.spec.ts` | should support some fancy xpath |+| `WA-066` | `page/page-wait-for-selector-2.spec.ts` | should respect timeout xpath |+| `WA-067` | `page/page-wait-for-selector-2.spec.ts` | should run in specified frame xpath |+| `WA-068` | `page/page-wait-for-selector-2.spec.ts` | should throw when frame is detached xpath |+| `WA-069` | `page/page-wait-for-selector-2.spec.ts` | should return the element handle xpath |+| `WA-070` | `page/page-wait-for-selector-2.spec.ts` | should allow you to select an element with single slash xpath |+| `WA-071` | `page/page-wait-for-selector-2.spec.ts` | should correctly handle hidden shadow host |+| `WA-072` | `page/page-wait-for-selector-2.spec.ts` | should work when navigating before node adoption |+| `WA-073` | `page/page-wait-for-selector-2.spec.ts` | should fail when navigating while on handle |+| `WA-074` | `page/page-wait-for-selector-2.spec.ts` | should fail if element handle was detached while waiting |+| `WA-075` | `page/page-wait-for-selector-2.spec.ts` | should succeed if element handle was detached while waiting for hidden |+| `WA-076` | `page/page-wait-for-selector-2.spec.ts` | should succeed if element handle was detached while waiting for detached |+| `WA-077` | `page/page-wait-for-load-state.spec.ts` | should pick up ongoing navigation |+| `WA-078` | `page/page-wait-for-load-state.spec.ts` | should respect timeout |+| `WA-079` | `page/page-wait-for-load-state.spec.ts` | should resolve immediately if loaded |+| `WA-080` | `page/page-wait-for-load-state.spec.ts` | should throw for bad state |+| `WA-081` | `page/page-wait-for-load-state.spec.ts` | should resolve immediately if load state matches |+| `WA-082` | `page/page-wait-for-load-state.spec.ts` | should work with pages that have loaded before being connected to |+| `WA-083` | `page/page-wait-for-load-state.spec.ts` | should wait for load state of empty url popup |+| `WA-084` | `page/page-wait-for-load-state.spec.ts` | should wait for load state of about:blank popup |+| `WA-085` | `page/page-wait-for-load-state.spec.ts` | should wait for load state of about:blank popup with noopener |+| `WA-086` | `page/page-wait-for-load-state.spec.ts` | should wait for load state of popup with network url |+| `WA-087` | `page/page-wait-for-load-state.spec.ts` | should wait for load state of popup with network url and noopener |+| `WA-088` | `page/page-wait-for-load-state.spec.ts` | should work with clicking target=\_blank |+| `WA-089` | `page/page-wait-for-load-state.spec.ts` | should wait for load state of newPage |+| `WA-090` | `page/page-wait-for-load-state.spec.ts` | should resolve after popup load |+| `WA-091` | `page/page-wait-for-load-state.spec.ts` | should work for frame |+| `WA-092` | `page/page-wait-for-load-state.spec.ts` | should work with javascript: iframe |+| `WA-093` | `page/page-wait-for-load-state.spec.ts` | should work with broken data-url iframe |+| `WA-094` | `page/page-wait-for-load-state.spec.ts` | should work with broken blob-url iframe |+| `WA-095` | `page/page-wait-for-navigation.spec.ts` | should work |+| `WA-096` | `page/page-wait-for-navigation.spec.ts` | should respect timeout |+| `WA-097` | `page/page-wait-for-navigation.spec.ts` | should work with both domcontentloaded and load |+| `WA-098` | `page/page-wait-for-navigation.spec.ts` | should work with commit |+| `WA-099` | `page/page-wait-for-navigation.spec.ts` | should work with clicking on anchor links |+| `WA-100` | `page/page-wait-for-navigation.spec.ts` | should work with clicking on links which do not commit navigation |+| `WA-101` | `page/page-wait-for-navigation.spec.ts` | should work with history.pushState() |+| `WA-102` | `page/page-wait-for-navigation.spec.ts` | should work with history.replaceState() |+| `WA-103` | `page/page-wait-for-navigation.spec.ts` | should work with DOM history.back()/history.forward() |+| `WA-104` | `page/page-wait-for-navigation.spec.ts` | should work when subframe issues window.stop() |+| `WA-105` | `page/page-wait-for-navigation.spec.ts` | should work with url match |+| `WA-106` | `page/page-wait-for-navigation.spec.ts` | should work with url match for same document navigations |+| `WA-107` | `page/page-wait-for-navigation.spec.ts` | should work for cross-process navigations |+| `WA-108` | `page/page-wait-for-navigation.spec.ts` | should work on frame |+| `WA-109` | `page/page-wait-for-navigation.spec.ts` | should fail when frame detaches |+| `WA-110` | `page/page-wait-for-url.spec.ts` | should work |+| `WA-111` | `page/page-wait-for-url.spec.ts` | should respect timeout |+| `WA-112` | `page/page-wait-for-url.spec.ts` | should work with both domcontentloaded and load |+| `WA-113` | `page/page-wait-for-url.spec.ts` | should work with commit |+| `WA-114` | `page/page-wait-for-url.spec.ts` | should work with commit and about:blank |+| `WA-115` | `page/page-wait-for-url.spec.ts` | should work with clicking on anchor links |+| `WA-116` | `page/page-wait-for-url.spec.ts` | should work with history.pushState() |+| `WA-117` | `page/page-wait-for-url.spec.ts` | should work with history.replaceState() |+| `WA-118` | `page/page-wait-for-url.spec.ts` | should work with DOM history.back()/history.forward() |+| `WA-119` | `page/page-wait-for-url.spec.ts` | should work with url match for same document navigations |+| `WA-120` | `page/page-wait-for-url.spec.ts` | should work on frame |+| `WA-121` | `page/page-wait-for-request.spec.ts` | should work |+| `WA-122` | `page/page-wait-for-request.spec.ts` | should work with predicate |+| `WA-123` | `page/page-wait-for-request.spec.ts` | should respect timeout |+| `WA-124` | `page/page-wait-for-request.spec.ts` | should respect default timeout |+| `WA-125` | `page/page-wait-for-request.spec.ts` | should log the url |+| `WA-126` | `page/page-wait-for-request.spec.ts` | should work with no timeout |+| `WA-127` | `page/page-wait-for-request.spec.ts` | should work with url match |+| `WA-128` | `page/page-wait-for-request.spec.ts` | should work with url match regular expression from a different context |+| `WA-129` | `page/page-wait-for-response.spec.ts` | should work |+| `WA-130` | `page/page-wait-for-response.spec.ts` | should respect timeout |+| `WA-131` | `page/page-wait-for-response.spec.ts` | should respect default timeout |+| `WA-132` | `page/page-wait-for-response.spec.ts` | should log the url |+| `WA-133` | `page/page-wait-for-response.spec.ts` | should work with predicate |+| `WA-134` | `page/page-wait-for-response.spec.ts` | should work with async predicate |+| `WA-135` | `page/page-wait-for-response.spec.ts` | sync predicate should be only called once |+| `WA-136` | `page/page-wait-for-response.spec.ts` | should work with no timeout |++### WM — WebMCP++| ID | File | Title |+|---|---|---|+| `WM-001` | `library/webmcp.spec.ts` | should list tools registered by the page |+| `WM-002` | `library/webmcp.spec.ts` | should report no tools when the page registers none |+| `WM-003` | `library/webmcp.spec.ts` | should call a tool |+| `WM-004` | `library/webmcp.spec.ts` | should return isError results as is |+| `WM-005` | `library/webmcp.spec.ts` | should throw when the tool throws |+| `WM-006` | `library/webmcp.spec.ts` | should throw for an unknown tool |+| `WM-007` | `library/webmcp.spec.ts` | should time out when the tool does not settle |+| `WM-008` | `library/webmcp.spec.ts` | should drop tools after navigation |+| `WM-009` | `library/webmcp.spec.ts` | should list a tool registered after load |+| `WM-010` | `library/webmcp.spec.ts` | should list tools while a tool is running |+| `WM-011` | `library/webmcp.spec.ts` | should list declarative tools |+| `WM-012` | `library/webmcp.spec.ts` | should scope tools to their frame |+| `WM-013` | `library/webmcp.spec.ts` | should call same-name tools in their own frame |+| `WM-014` | `library/webmcp.spec.ts` | should list and call tools in cross-origin and nested frames |+| `WM-015` | `library/webmcp-disabled.spec.ts` | should throw when the browser was launched without WebMCP |++### WO — Workers++| ID | File | Title |+|---|---|---|+| `WO-001` | `page/workers.spec.ts` | Page.workers @smoke |+| `WO-002` | `page/workers.spec.ts` | should emit created and destroyed events |+| `WO-003` | `page/workers.spec.ts` | should reject in-flight evaluate and emit close when page closes |+| `WO-004` | `page/workers.spec.ts` | should report console logs |+| `WO-005` | `page/workers.spec.ts` | should have timestamp on worker console messages |+| `WO-006` | `page/workers.spec.ts` | should not report console logs from workers twice |+| `WO-007` | `page/workers.spec.ts` | should have JSHandles for console logs |+| `WO-008` | `page/workers.spec.ts` | should evaluate |+| `WO-009` | `page/workers.spec.ts` | should report console event on the worker |+| `WO-010` | `page/workers.spec.ts` | should report console event on the worker when not listening on page or context |+| `WO-011` | `page/workers.spec.ts` | should report errors |+| `WO-012` | `page/workers.spec.ts` | should clear upon navigation |+| `WO-013` | `page/workers.spec.ts` | should clear upon cross-process navigation |+| `WO-014` | `page/workers.spec.ts` | should attribute network activity for worker inside iframe to the iframe |+| `WO-015` | `page/workers.spec.ts` | should report network activity |+| `WO-016` | `page/workers.spec.ts` | should report network activity on worker creation |+| `WO-017` | `page/workers.spec.ts` | should report worker script as network request |+| `WO-018` | `page/workers.spec.ts` | should report worker script as network request after redirect |+| `WO-019` | `page/workers.spec.ts` | should dispatch console messages when page has workers |+| `WO-020` | `page/workers.spec.ts` | should report and intercept network from nested worker |+| `WO-021` | `page/workers.spec.ts` | should support extra http headers |+| `WO-022` | `page/workers.spec.ts` | should support offline |+| `WO-023` | `page/workers.spec.ts` | should resolve worker script allHeaders in main frame |+| `WO-024` | `page/workers.spec.ts` | should resolve worker script allHeaders in iframe |+| `WO-025` | `page/workers.spec.ts` | should resolve worker script allHeaders in nested worker inside iframe |+| `WO-026` | `library/shared-worker.spec.ts` | should survive shared worker restart |+| `WO-027` | `library/browsercontext-service-worker-policy.spec.ts` | should allow service workers by default |+| `WO-028` | `library/browsercontext-service-worker-policy.spec.ts` | should allow {literal, cache-only, network-fallback, preload-fallback} service worker navigation while offline *(4 copies)* |+| `WO-029` | `library/browsercontext-service-worker-policy.spec.ts` | block › blocks service worker registration |+| `WO-030` | `library/browsercontext-service-worker-policy.spec.ts` | block › should not throw error on about:blank |+| `WO-031` | `library/browsercontext-service-worker-policy.spec.ts` | block › should not throw error in opaque sandboxed iframe |++### WS — WebSocket++| ID | File | Title |+|---|---|---|+| `WS-001` | `library/web-socket.spec.ts` | should work @smoke |+| `WS-002` | `library/web-socket.spec.ts` | should emit close events |+| `WS-003` | `library/web-socket.spec.ts` | should emit frame events |+| `WS-004` | `library/web-socket.spec.ts` | should filter out the close events when the server closes with a message |+| `WS-005` | `library/web-socket.spec.ts` | should pass self as argument to close event |+| `WS-006` | `library/web-socket.spec.ts` | should emit binary frame events |+| `WS-007` | `library/web-socket.spec.ts` | should emit error |+| `WS-008` | `library/web-socket.spec.ts` | should not have stray error events |+| `WS-009` | `library/web-socket.spec.ts` | should reject waitForEvent on socket close |+| `WS-010` | `library/web-socket.spec.ts` | should reject waitForEvent on page close |+| `WS-011` | `library/web-socket.spec.ts` | should not tear down the page when a WebSocket is opened inside a worker |+| `WS-012` | `library/web-socket.spec.ts` | should turn off when offline |+| `WS-013` | `library/web-socket.spec.ts` | should send extra HTTP headers on WebSocket handshake |+| `WS-014` | `library/web-socket.spec.ts` | should send extra HTTP headers on WebSocket handshake from a worker |+| `WS-015` | `library/route-web-socket.spec.ts` | {no-mock, no-match, pass-through} › should work with text message *(3 copies)* |+| `WS-016` | `library/route-web-socket.spec.ts` | {no-mock, no-match, pass-through} › should work with binaryType=blob *(3 copies)* |+| `WS-017` | `library/route-web-socket.spec.ts` | {no-mock, no-match, pass-through} › should work with binaryType=arraybuffer *(3 copies)* |+| `WS-018` | `library/route-web-socket.spec.ts` | {no-mock, no-match, pass-through} › should work when connection errors out *(3 copies)* |+| `WS-019` | `library/route-web-socket.spec.ts` | {no-mock, no-match, pass-through} › should work with error after successful open *(3 copies)* |+| `WS-020` | `library/route-web-socket.spec.ts` | {no-mock, no-match, pass-through} › should work with client-side close *(3 copies)* |+| `WS-021` | `library/route-web-socket.spec.ts` | {no-mock, no-match, pass-through} › should pass through the required protocol *(3 copies)* |+| `WS-022` | `library/route-web-socket.spec.ts` | {no-mock, no-match, pass-through} › should work with relative WebSocket URL *(3 copies)* |+| `WS-023` | `library/route-web-socket.spec.ts` | should work with ws.close |+| `WS-024` | `library/route-web-socket.spec.ts` | should observe upstream handshake failure when connectToServer is used |+| `WS-025` | `library/route-web-socket.spec.ts` | should observe multiple concurrent routed WebSockets with connectToServer |+| `WS-026` | `library/route-web-socket.spec.ts` | should pattern match |+| `WS-027` | `library/route-web-socket.spec.ts` | should work with server |+| `WS-028` | `library/route-web-socket.spec.ts` | should work without server |+| `WS-029` | `library/route-web-socket.spec.ts` | should route WebSockets in already loaded documents |+| `WS-030` | `library/route-web-socket.spec.ts` | should emit close upon frame navigation |+| `WS-031` | `library/route-web-socket.spec.ts` | should emit close upon frame detach |+| `WS-032` | `library/route-web-socket.spec.ts` | should route on context |+| `WS-033` | `library/route-web-socket.spec.ts` | should not throw after page closure |+| `WS-034` | `library/route-web-socket.spec.ts` | should not throw with empty handler |+| `WS-035` | `library/route-web-socket.spec.ts` | should throw when connecting twice |+| `WS-036` | `library/route-web-socket.spec.ts` | should work with no trailing slash |+| `WS-037` | `library/route-web-socket.spec.ts` | should work with baseURL |+| `WS-038` | `library/route-web-socket.spec.ts` | should work with baseURL regardless of scheme casing |+| `WS-039` | `library/route-web-socket.spec.ts` | should expose protocols to the route handler |+| `WS-040` | `library/route-web-socket.spec.ts` | should expose protocols on server-side route |diff --git a/tests/webview/expectations/webkit-webview-page.txt b/tests/webview/expectations/webkit-webview-page.txtindex 3c8c82643b..96d618df89 100644--- a/tests/webview/expectations/webkit-webview-page.txt+++ b/tests/webview/expectations/webkit-webview-page.txt@@ -13,67 +13,67 @@# neither Emulation.setDeviceMetricsOverride nor Page.setScreenSizeOverride# are exposed on Cocoa builds — see wvPage.updateEmulatedViewportSize.# ============================================================================-page/elementhandle-bounding-box.spec.ts › should force a layout [fail]-page/elementhandle-bounding-box.spec.ts › should get frame box [fail]-page/elementhandle-bounding-box.spec.ts › should handle nested frames [fail]-page/elementhandle-bounding-box.spec.ts › should work [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › path option should create subdirectories [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should capture full element when larger than viewport [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should capture full element when larger than viewport in parallel [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should prefer type over extension [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should scroll 15000px into view [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should scroll element into view [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should take into account padding and border [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should take screenshot of disabled button [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should wait for element to stop moving [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should wait for visible [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should work [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should work when main world busts JSON.stringify [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should work with a rotated element [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should work with webp [fail]-page/expect-matcher-result.spec.ts › toHaveScreenshot should populate matcherResult [fail]-page/locator-misc-2.spec.ts › should return bounding box [fail]-page/locator-misc-2.spec.ts › should take screenshot [fail]-page/page-add-locator-handler.spec.ts › should work with toHaveScreenshot [fail]-page/page-click-timeout-4.spec.ts › should fail to click the button behind a large header after scrolling around [fail]-page/page-click.spec.ts › should click a button that is overlaid by a permission popup [fail]-page/page-click.spec.ts › should click the button behind position:absolute header [fail]-page/page-click.spec.ts › should click the button behind sticky header [fail]-page/page-click.spec.ts › should click the button with fixed position inside an iframe [fail]-page/page-screenshot.spec.ts › page screenshot animations › should wait for fonts to load [fail]-page/page-screenshot.spec.ts › page screenshot › mask option › should hide elements based on attr [fail]-page/page-screenshot.spec.ts › page screenshot › mask option › should mask in parallel [fail]-page/page-screenshot.spec.ts › page screenshot › mask option › should mask multiple elements [fail]-page/page-screenshot.spec.ts › page screenshot › mask option › should remove elements based on attr [fail]-page/page-screenshot.spec.ts › page screenshot › mask option › should remove mask after screenshot [fail]-page/page-screenshot.spec.ts › page screenshot › mask option › should work [fail]-page/page-screenshot.spec.ts › page screenshot › mask option › should work when mask color is not pink #F0F [fail]-page/page-screenshot.spec.ts › page screenshot › mask option › should work with elementhandle [fail]-page/page-screenshot.spec.ts › page screenshot › mask option › should work with locator [fail]-page/page-screenshot.spec.ts › page screenshot › path option should create subdirectories [fail]-page/page-screenshot.spec.ts › page screenshot › path option should detect jpeg [fail]-page/page-screenshot.spec.ts › page screenshot › path option should detect webp [fail]-page/page-screenshot.spec.ts › page screenshot › path option should work [fail]-page/page-screenshot.spec.ts › page screenshot › should allow transparency [fail]-page/page-screenshot.spec.ts › page screenshot › should allow transparency with webp [fail]-page/page-screenshot.spec.ts › page screenshot › should clip elements to the viewport [fail]-page/page-screenshot.spec.ts › page screenshot › should clip rect [fail]-page/page-screenshot.spec.ts › page screenshot › should clip rect with fullPage [fail]-page/page-screenshot.spec.ts › page screenshot › should produce a valid webp screenshot [fail]-page/page-screenshot.spec.ts › page screenshot › should render white background on jpeg file [fail]-page/page-screenshot.spec.ts › page screenshot › should restore viewport after fullPage screenshot [fail]-page/page-screenshot.spec.ts › page screenshot › should run in parallel [fail]-page/page-screenshot.spec.ts › page screenshot › should take fullPage screenshots [fail]-page/page-screenshot.spec.ts › page screenshot › should take fullPage screenshots and mask elements outside of it [fail]-page/page-screenshot.spec.ts › page screenshot › should take fullPage screenshots during navigation [fail]-page/page-screenshot.spec.ts › page screenshot › should throw on a negative clip size [fail]-page/page-screenshot.spec.ts › page screenshot › should throw on clip outside the viewport [fail]-page/page-screenshot.spec.ts › page screenshot › should work @smoke [fail]-page/page-screenshot.spec.ts › page screenshot › should work for canvas [fail]-page/page-screenshot.spec.ts › page screenshot › should work for translateZ [fail]-page/page-screenshot.spec.ts › page screenshot › should work for webgl [fail]-page/page-screenshot.spec.ts › page screenshot › should work while navigating [fail]-page/page-screenshot.spec.ts › page screenshot › should work with Array deleted [fail]+page/elementhandle-bounding-box.spec.ts › EH-007 should force a layout [fail]+page/elementhandle-bounding-box.spec.ts › EH-003 should get frame box [fail]+page/elementhandle-bounding-box.spec.ts › EH-002 should handle nested frames [fail]+page/elementhandle-bounding-box.spec.ts › EH-001 should work [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-090 path option should create subdirectories [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-079 should capture full element when larger than viewport [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-078 should capture full element when larger than viewport in parallel [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-091 should prefer type over extension [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-081 should scroll 15000px into view [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-080 should scroll element into view [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-077 should take into account padding and border [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-089 should take screenshot of disabled button [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-088 should wait for element to stop moving [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-085 should wait for visible [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-074 should work [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-076 should work when main world busts JSON.stringify [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-082 should work with a rotated element [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-075 should work with webp [fail]+page/expect-matcher-result.spec.ts › EX-180 toHaveScreenshot should populate matcherResult [fail]+page/locator-misc-2.spec.ts › LO-147 should return bounding box [fail]+page/locator-misc-2.spec.ts › LO-146 should take screenshot [fail]+page/page-add-locator-handler.spec.ts › LH-008 should work with toHaveScreenshot [fail]+page/page-click-timeout-4.spec.ts › CL-122 should fail to click the button behind a large header after scrolling around [fail]+page/page-click.spec.ts › CL-078 should click a button that is overlaid by a permission popup [fail]+page/page-click.spec.ts › CL-037 should click the button behind position:absolute header [fail]+page/page-click.spec.ts › CL-036 should click the button behind sticky header [fail]+page/page-click.spec.ts › CL-035 should click the button with fixed position inside an iframe [fail]+page/page-screenshot.spec.ts › page screenshot animations › SS-064 should wait for fonts to load [fail]+page/page-screenshot.spec.ts › page screenshot › mask option › SS-050 should hide elements based on attr [fail]+page/page-screenshot.spec.ts › page screenshot › mask option › SS-045 should mask in parallel [fail]+page/page-screenshot.spec.ts › page screenshot › mask option › SS-043 should mask multiple elements [fail]+page/page-screenshot.spec.ts › page screenshot › mask option › SS-051 should remove elements based on attr [fail]+page/page-screenshot.spec.ts › page screenshot › mask option › SS-046 should remove mask after screenshot [fail]+page/page-screenshot.spec.ts › page screenshot › mask option › SS-040 should work [fail]+page/page-screenshot.spec.ts › page screenshot › mask option › SS-049 should work when mask color is not pink #F0F [fail]+page/page-screenshot.spec.ts › page screenshot › mask option › SS-042 should work with elementhandle [fail]+page/page-screenshot.spec.ts › page screenshot › mask option › SS-041 should work with locator [fail]+page/page-screenshot.spec.ts › page screenshot › SS-030 path option should create subdirectories [fail]+page/page-screenshot.spec.ts › page screenshot › SS-031 path option should detect jpeg [fail]+page/page-screenshot.spec.ts › page screenshot › SS-017 path option should detect webp [fail]+page/page-screenshot.spec.ts › page screenshot › SS-029 path option should work [fail]+page/page-screenshot.spec.ts › page screenshot › SS-014 should allow transparency [fail]+page/page-screenshot.spec.ts › page screenshot › SS-020 should allow transparency with webp [fail]+page/page-screenshot.spec.ts › page screenshot › SS-007 should clip elements to the viewport [fail]+page/page-screenshot.spec.ts › page screenshot › SS-005 should clip rect [fail]+page/page-screenshot.spec.ts › page screenshot › SS-006 should clip rect with fullPage [fail]+page/page-screenshot.spec.ts › page screenshot › SS-016 should produce a valid webp screenshot [fail]+page/page-screenshot.spec.ts › page screenshot › SS-015 should render white background on jpeg file [fail]+page/page-screenshot.spec.ts › page screenshot › SS-013 should restore viewport after fullPage screenshot [fail]+page/page-screenshot.spec.ts › page screenshot › SS-010 should run in parallel [fail]+page/page-screenshot.spec.ts › page screenshot › SS-011 should take fullPage screenshots [fail]+page/page-screenshot.spec.ts › page screenshot › SS-012 should take fullPage screenshots and mask elements outside of it [fail]+page/page-screenshot.spec.ts › page screenshot › SS-039 should take fullPage screenshots during navigation [fail]+page/page-screenshot.spec.ts › page screenshot › SS-009 should throw on a negative clip size [fail]+page/page-screenshot.spec.ts › page screenshot › SS-008 should throw on clip outside the viewport [fail]+page/page-screenshot.spec.ts › page screenshot › SS-001 should work @smoke [fail]+page/page-screenshot.spec.ts › page screenshot › SS-023 should work for canvas [fail]+page/page-screenshot.spec.ts › page screenshot › SS-026 should work for translateZ [fail]+page/page-screenshot.spec.ts › page screenshot › SS-025 should work for webgl [fail]+page/page-screenshot.spec.ts › page screenshot › SS-027 should work while navigating [fail]+page/page-screenshot.spec.ts › page screenshot › SS-038 should work with Array deleted [fail]# ============================================================================# mouse-offset-border-box (3 tests)@@ -86,9 +86,9 @@ page/page-screenshot.spec.ts › page screenshot › should work with Array dele# difference, not an input-translation bug — drop once the simulator ships a# WebKit that measures from the padding box.# ============================================================================-page/page-click.spec.ts › should click a button in scrolling container with offset [fail]-page/page-click.spec.ts › should click the button with em border with offset [fail]-page/page-click.spec.ts › should click the button with px border with offset [fail]+page/page-click.spec.ts › CL-041 should click a button in scrolling container with offset [fail]+page/page-click.spec.ts › CL-039 should click the button with em border with offset [fail]+page/page-click.spec.ts › CL-038 should click the button with px border with offset [fail]# ============================================================================# frame-element-and-ownership (remaining)@@ -105,21 +105,21 @@ page/page-click.spec.ts › should click the button with px border with offset [# coordinates without translating into the subframe's offset — same gap as# the frame bounding-box section).# ============================================================================-page/frame-evaluate.spec.ts › should not allow cross-frame element handles when frames do not script each other [fail]-page/frame-frame-element.spec.ts › should work inside closed shadow root [fail]-page/frame-frame-element.spec.ts › should work inside declarative shadow root [fail]-page/frame-goto.spec.ts › should return matching responses [fail]-page/page-click.spec.ts › should not hang when frame is detached [fail]-page/page-drag.spec.ts › Drag and drop › should work inside iframe [fail]-page/page-wait-for-selector-1.spec.ts › page.waitForSelector is shortcut for main frame [fail]+page/frame-evaluate.spec.ts › FR-008 should not allow cross-frame element handles when frames do not script each other [fail]+page/frame-frame-element.spec.ts › FR-018 should work inside closed shadow root [fail]+page/frame-frame-element.spec.ts › FR-019 should work inside declarative shadow root [fail]+page/frame-goto.spec.ts › FR-023 should return matching responses [fail]+page/page-click.spec.ts › CL-069 should not hang when frame is detached [fail]+page/page-drag.spec.ts › Drag and drop › DD-004 should work inside iframe [fail]+page/page-wait-for-selector-1.spec.ts › WA-041 page.waitForSelector is shortcut for main frame [fail]# ============================================================================# expose-function (2 tests)# page.exposeFunction / exposeBinding are not implemented — the bootstrap# script path needs to be extended with a binding bridge over Runtime.evaluate.# ============================================================================-page/elementhandle-screenshot.spec.ts › element screenshot › should not issue resize event [fail]-page/locator-misc-1.spec.ts › should focus and blur a button [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-092 should not issue resize event [fail]+page/locator-misc-1.spec.ts › LO-136 should focus and blur a button [fail]# ============================================================================# service-worker (3 tests)@@ -128,10 +128,10 @@ page/locator-misc-1.spec.ts › should focus and blur a button [fail]# session ('Target closed'). Passes in isolation but fails in the full run# because service-worker registration persists across tests.# ============================================================================-page/interception.spec.ts › should intercept after a service worker [fail]-page/page-event-request.spec.ts › should report navigation requests and responses handled by service worker [fail]-page/page-event-request.spec.ts › should report requests and responses handled by service worker with routing [fail]-page/page-goto.spec.ts › should be able to navigate to a page controlled by service worker [fail]+page/interception.spec.ts › RO-152 should intercept after a service worker [fail]+page/page-event-request.spec.ts › NE-097 should report navigation requests and responses handled by service worker [fail]+page/page-event-request.spec.ts › NE-096 should report requests and responses handled by service worker with routing [fail]+page/page-goto.spec.ts › NA-051 should be able to navigate to a page controlled by service worker [fail]# ============================================================================# out-of-process-iframe (1 test)@@ -139,14 +139,14 @@ page/page-goto.spec.ts › should be able to navigate to a page controlled by se# attach — it drives the page through the top-level page target only. Actions# that must reach inside a cross-origin iframe therefore time out.# ============================================================================-page/page-click-scroll.spec.ts › should scroll into view element in iframe [fail]+page/page-click-scroll.spec.ts › CL-100 should scroll into view element in iframe [fail]# ============================================================================# native-drag-and-drop (1 test)# Synthetic mouse events cannot drive WebKit's native HTML5 drag controller, so# dragstart/dragenter/dragover/drop are never produced for draggable elements.# ============================================================================-page/page-drag.spec.ts › Drag and drop › should send the right events [fail]+page/page-drag.spec.ts › Drag and drop › DD-002 should send the right events [fail]# ============================================================================# screenshot-animations (4 tests)@@ -154,17 +154,17 @@ page/page-drag.spec.ts › Drag and drop › should send the right events [fail]# over the stock RDP (no Playwright screenshot patches), so animation-sensitive# screenshot comparisons differ.# ============================================================================-page/page-screenshot.spec.ts › page screenshot animations › should capture screenshots after layoutchanges in transitionend event › make sure transition is actually running [fail]-page/page-screenshot.spec.ts › page screenshot animations › should fire transitionend for finite transitions › make sure transition is actually running [fail]-page/page-screenshot.spec.ts › page screenshot animations › should not capture css animations in shadow DOM [fail]-page/page-screenshot.spec.ts › page screenshot animations › should not capture pseudo element css animation [fail]+page/page-screenshot.spec.ts › page screenshot animations › SS-059 should capture screenshots after layoutchanges in transitionend event › make sure transition is actually running [fail]+page/page-screenshot.spec.ts › page screenshot animations › SS-058 should fire transitionend for finite transitions › make sure transition is actually running [fail]+page/page-screenshot.spec.ts › page screenshot animations › SS-054 should not capture css animations in shadow DOM [fail]+page/page-screenshot.spec.ts › page screenshot animations › SS-053 should not capture pseudo element css animation [fail]# ============================================================================# network-request-tracking (1 test)# Rapidly-issued requests are occasionally dropped from the page's request log# on the stock RDP, so the full ordered list comes back incomplete.# ============================================================================-page/page-event-request.spec.ts › should return last requests [fail]+page/page-event-request.spec.ts › NE-107 should return last requests [fail]# ============================================================================# redirect-interception (3 tests)@@ -172,9 +172,9 @@ page/page-event-request.spec.ts › should return last requests [fail]# backend — redirected (and redirected subresource) requests are not surfaced# to the route handler, and the final navigation response comes back null.# ============================================================================-page/page-route.spec.ts › should not work with redirects [fail]-page/page-route.spec.ts › should chain fallback w/ dynamic URL [fail]-page/page-route.spec.ts › should work with redirects for subresources [fail]+page/page-route.spec.ts › RO-020 should not work with redirects [fail]+page/page-route.spec.ts › RO-021 should chain fallback w/ dynamic URL [fail]+page/page-route.spec.ts › RO-022 should work with redirects for subresources [fail]# ============================================================================# main-navigation-fulfill-flaky (6 tests)@@ -185,12 +185,12 @@ page/page-route.spec.ts › should work with redirects for subresources [fail]# <img>) is unaffected. Pre-existing flakiness, surfaced now that the suite# runs again. Needs the provisional target to honor Target.setPauseOnStart.# ============================================================================-page/page-request-fulfill.spec.ts › should work [fail]-page/page-request-fulfill.spec.ts › should work with buffer as body [fail]-page/page-request-fulfill.spec.ts › should work with status code 422 [fail]-page/page-request-fulfill.spec.ts › should fulfill with fetch response that has multiple set-cookie [fail]-page/page-request-fulfill.spec.ts › should fulfill with fetch result and overrides [fail]-page/page-request-fulfill.spec.ts › should fulfill with gzip and readback [fail]+page/page-request-fulfill.spec.ts › RO-096 should work [fail]+page/page-request-fulfill.spec.ts › RO-097 should work with buffer as body [fail]+page/page-request-fulfill.spec.ts › RO-098 should work with status code 422 [fail]+page/page-request-fulfill.spec.ts › RO-112 should fulfill with fetch response that has multiple set-cookie [fail]+page/page-request-fulfill.spec.ts › RO-109 should fulfill with fetch result and overrides [fail]+page/page-request-fulfill.spec.ts › RO-117 should fulfill with gzip and readback [fail]# ============================================================================# element-not-attached (11 tests)@@ -199,14 +199,14 @@ page/page-request-fulfill.spec.ts › should fulfill with gzip and readback [fai# shielding, so DOM mutations between checks can detach the handle. Needs the# same retry-with-fresh-handle pattern that wkPage uses.# ============================================================================-page/elementhandle-misc.spec.ts › should fill input [fail]-page/elementhandle-misc.spec.ts › should hover [fail]-page/elementhandle-misc.spec.ts › should hover when Node is removed [fail]-page/elementhandle-scroll-into-view.spec.ts › should work @smoke [fail]-page/locator-misc-2.spec.ts › should scroll into view [fail]-page/page-keyboard.spec.ts › should handle selectAll [fail]-page/page-screenshot.spec.ts › page screenshot animations › should not capture infinite css animation [fail]-page/page-screenshot.spec.ts › page screenshot animations › should not capture infinite web animations [fail]+page/elementhandle-misc.spec.ts › EH-047 should fill input [fail]+page/elementhandle-misc.spec.ts › EH-045 should hover [fail]+page/elementhandle-misc.spec.ts › EH-046 should hover when Node is removed [fail]+page/elementhandle-scroll-into-view.spec.ts › EH-093 should work @smoke [fail]+page/locator-misc-2.spec.ts › LO-141 should scroll into view [fail]+page/page-keyboard.spec.ts › KB-030 should handle selectAll [fail]+page/page-screenshot.spec.ts › page screenshot animations › SS-052 should not capture infinite css animation [fail]+page/page-screenshot.spec.ts › page screenshot animations › SS-057 should not capture infinite web animations [fail]# ============================================================================# assertion-mismatch (179 tests)@@ -214,240 +214,240 @@ page/page-screenshot.spec.ts › page screenshot animations › should not captu# (user-agent strings, layout metrics, screenshot expectations, etc.). Each# deserves individual triage.# ============================================================================-page/elementhandle-bounding-box.spec.ts › should handle scroll offset and click [fail]-page/expect-misc.spec.ts › toBeInViewport › should respect ratio option [fail]-page/expect-misc.spec.ts › toBeInViewport › should work [fail]-page/expect-misc.spec.ts › toHaveURL › fail string [fail]-page/expect-misc.spec.ts › toHaveURL › fail with negative predicate [fail]-page/expect-misc.spec.ts › toHaveURL › fail with positive predicate [fail]-page/expect-misc.spec.ts › toHaveURL › pass [fail]-page/expect-misc.spec.ts › toHaveURL › resolve predicate after retries [fail]-page/expect-misc.spec.ts › toHaveURL › resolve predicate on initial call [fail]-page/expect-misc.spec.ts › toHaveURL › support ignoreCase [fail]-page/frame-evaluate.spec.ts › should dispose context on cross-origin navigation [fail]-page/frame-evaluate.spec.ts › should dispose context on navigation [fail]-page/interception.spec.ts › should intercept network activity from worker 2 [fail]-page/locator-misc-1.spec.ts › should clear input [fail]-page/locator-misc-2.spec.ts › should scroll zero-sized element into view [fail]-page/locator-query.spec.ts › should allow some, but not all nested frameLocators [fail]-page/network-post-data.spec.ts › should return correct postData buffer for utf-8 body [fail]-page/network-post-data.spec.ts › should throw on invalid JSON in post data [fail]-page/page-add-init-script.spec.ts › init script should run only once in iframe [fail]-page/page-add-locator-handler.spec.ts › should work when owner frame detaches [fail]-page/page-add-locator-handler.spec.ts › should work with locator.hover() [fail]-page/page-aria-snapshot-ai.spec.ts › emit generic roles for nodes w/o roles [fail]-page/page-aria-snapshot-ai.spec.ts › should include cursor pointer hint [fail]-page/page-aria-snapshot-ai.spec.ts › should not generate refs for elements with pointer-events:none [fail]-page/page-aria-snapshot-ai.spec.ts › should not nest cursor pointer hints [fail]-page/page-autowaiting-basic.spec.ts › should await form-post on click [fail]-page/page-autowaiting-basic.spec.ts › should await navigation when clicking anchor [fail]-page/page-autowaiting-basic.spec.ts › should report navigation in the log when clicking anchor [fail]-page/page-autowaiting-basic.spec.ts › should work with waitForLoadState(load) [fail]-page/page-basic.spec.ts › async stacks should work [fail]-page/page-basic.spec.ts › has navigator.webdriver set to true [fail]-page/page-basic.spec.ts › page.url should include hashes [fail]-page/page-click-scroll.spec.ts › should scroll into view span element [fail]-page/page-click.spec.ts › ensure events are dispatched in the individual tasks [fail]-page/page-click.spec.ts › should fire contextmenu event on right click in correct order [fail]-page/page-click.spec.ts › should set PointerEvent.pressure on pointerdown [fail]-page/page-click.spec.ts › should set PointerEvent.pressure on pointermove [fail]-page/page-dispatchevent.spec.ts › should dispatch absolute device orientation event [fail]-page/page-drag.spec.ts › Drag and drop › should cancel on escape [fail]-page/page-drag.spec.ts › Drag and drop › should work @smoke [fail]-page/page-drag.spec.ts › Drag and drop › should work if the drag event is captured but not canceled [fail]-page/page-drag.spec.ts › Drag and drop › should work with locators [fail]-page/page-drag.spec.ts › Drag and drop › should work with the helper method [fail]-page/page-drag.spec.ts › should handle custom dataTransfer [fail]-page/page-emulate-media.spec.ts › should keep reduced motion and color emulation after reload [fail]-page/page-expose-function.spec.ts › should fail with busted Array.prototype.toJSON [fail]-page/page-fill.spec.ts › input event.composed should be true and cross shadow dom boundary - date [fail]-page/page-fill.spec.ts › input event.composed should be true and cross shadow dom boundary - datetime-local [fail]-page/page-fill.spec.ts › input event.composed should be true and cross shadow dom boundary - time [fail]-page/page-fill.spec.ts › should be able to clear using fill() [fail]-page/page-fill.spec.ts › should be able to fill input[type=number] with empty string [fail]-page/page-fill.spec.ts › should fill date input after clicking [fail]-page/page-fill.spec.ts › should fill datetime-local input [fail]-page/page-fill.spec.ts › should fill month input [fail]-page/page-fill.spec.ts › should fill time input [fail]-page/page-fill.spec.ts › should fill week input [fail]-page/page-focus.spec.ts › keeps focus on element when attempting to focus a non-focusable element [fail]-page/page-focus.spec.ts › should traverse focus [fail]-page/page-focus.spec.ts › should traverse focus in all directions [fail]-page/page-focus.spec.ts › should traverse only form elements [fail]-page/page-goto.spec.ts › should disable timeout when its set to 0 [fail]-page/page-goto.spec.ts › should fail when canceled by another navigation [fail]-page/page-goto.spec.ts › should fail when navigating to bad url [fail]-page/page-goto.spec.ts › should fail when replaced by another navigation [fail]-page/page-goto.spec.ts › should override referrer-policy [fail]-page/page-goto.spec.ts › should return url with basic auth info [fail]-page/page-goto.spec.ts › should send referer [fail]-page/page-goto.spec.ts › should send referer of cross-origin URL [fail]-page/page-goto.spec.ts › should work with cross-process that fails before committing [fail]-page/page-history.spec.ts › page.goBack should work with HistoryAPI [fail]-page/page-history.spec.ts › page.reload should work with data url [fail]-page/page-keyboard.spec.ts › should be able to prevent selectAll [fail]-page/page-keyboard.spec.ts › should dispatch a click event on a button when Space gets pressed [fail]-page/page-keyboard.spec.ts › should dispatch insertText after context menu was opened [fail]-page/page-keyboard.spec.ts › should move around the selection in a contenteditable [fail]-page/page-keyboard.spec.ts › should move to the start of the document [fail]-page/page-keyboard.spec.ts › should move with the arrow keys [fail]-page/page-keyboard.spec.ts › should scroll with PageDown [fail]-page/page-keyboard.spec.ts › should support MacOS shortcuts [fail]-page/page-keyboard.spec.ts › should support simple copy-pasting [fail]-page/page-keyboard.spec.ts › should support simple cut-pasting [fail]-page/page-keyboard.spec.ts › should support undo-redo [fail]-page/page-localstorage.spec.ts › localStorage.removeItem removes a single item [fail]-page/page-mouse.spec.ts › down and up should generate click [fail]-page/page-mouse.spec.ts › should click the document @smoke [fail]-page/page-mouse.spec.ts › should dblclick the div [fail]-page/page-mouse.spec.ts › should report correct pointerType property [fail]-page/page-network-request.spec.ts › should get the same headers as the server [fail]-page/page-network-request.spec.ts › should get the same headers as the server CORS [fail]-page/page-network-request.spec.ts › should not return allHeaders() until they are available [fail]-page/page-network-request.spec.ts › should parse the data if content-type is application/x-www-form-urlencoded [fail]-page/page-network-request.spec.ts › should parse the data if content-type is application/x-www-form-urlencoded; charset=UTF-8 [fail]-page/page-network-request.spec.ts › should report all cookies in one header [fail]-page/page-network-request.spec.ts › should report raw headers [fail]-page/page-network-request.spec.ts › should return postData [fail]-page/page-network-request.spec.ts › should work with binary post data [fail]-page/page-network-request.spec.ts › should work with binary post data and interception [fail]+page/elementhandle-bounding-box.spec.ts › EH-004 should handle scroll offset and click [fail]+page/expect-misc.spec.ts › toBeInViewport › EX-234 should respect ratio option [fail]+page/expect-misc.spec.ts › toBeInViewport › EX-233 should work [fail]+page/expect-misc.spec.ts › toHaveURL › EX-215 fail string [fail]+page/expect-misc.spec.ts › toHaveURL › EX-218 fail with negative predicate [fail]+page/expect-misc.spec.ts › toHaveURL › EX-217 fail with positive predicate [fail]+page/expect-misc.spec.ts › toHaveURL › EX-214 pass [fail]+page/expect-misc.spec.ts › toHaveURL › EX-220 resolve predicate after retries [fail]+page/expect-misc.spec.ts › toHaveURL › EX-219 resolve predicate on initial call [fail]+page/expect-misc.spec.ts › toHaveURL › EX-221 support ignoreCase [fail]+page/frame-evaluate.spec.ts › FR-004 should dispose context on cross-origin navigation [fail]+page/frame-evaluate.spec.ts › FR-003 should dispose context on navigation [fail]+page/interception.spec.ts › RO-159 should intercept network activity from worker 2 [fail]+page/locator-misc-1.spec.ts › LO-131 should clear input [fail]+page/locator-misc-2.spec.ts › LO-142 should scroll zero-sized element into view [fail]+page/locator-query.spec.ts › LO-178 should allow some, but not all nested frameLocators [fail]+page/network-post-data.spec.ts › NE-108 should return correct postData buffer for utf-8 body [fail]+page/network-post-data.spec.ts › NE-110 should throw on invalid JSON in post data [fail]+page/page-add-init-script.spec.ts › IS-011 init script should run only once in iframe [fail]+page/page-add-locator-handler.spec.ts › LH-009 should work when owner frame detaches [fail]+page/page-add-locator-handler.spec.ts › LH-003 should work with locator.hover() [fail]+page/page-aria-snapshot-ai.spec.ts › AR-056 emit generic roles for nodes w/o roles [fail]+page/page-aria-snapshot-ai.spec.ts › AR-058 should include cursor pointer hint [fail]+page/page-aria-snapshot-ai.spec.ts › AR-055 should not generate refs for elements with pointer-events:none [fail]+page/page-aria-snapshot-ai.spec.ts › AR-059 should not nest cursor pointer hints [fail]+page/page-autowaiting-basic.spec.ts › AW-005 should await form-post on click [fail]+page/page-autowaiting-basic.spec.ts › AW-001 should await navigation when clicking anchor [fail]+page/page-autowaiting-basic.spec.ts › AW-010 should report navigation in the log when clicking anchor [fail]+page/page-autowaiting-basic.spec.ts › AW-008 should work with waitForLoadState(load) [fail]+page/page-basic.spec.ts › PA-002 async stacks should work [fail]+page/page-basic.spec.ts › PA-018 has navigator.webdriver set to true [fail]+page/page-basic.spec.ts › PA-008 page.url should include hashes [fail]+page/page-click-scroll.spec.ts › CL-099 should scroll into view span element [fail]+page/page-click.spec.ts › CL-081 ensure events are dispatched in the individual tasks [fail]+page/page-click.spec.ts › CL-083 should fire contextmenu event on right click in correct order [fail]+page/page-click.spec.ts › CL-085 should set PointerEvent.pressure on pointerdown [fail]+page/page-click.spec.ts › CL-086 should set PointerEvent.pressure on pointermove [fail]+page/page-dispatchevent.spec.ts › DE-015 should dispatch absolute device orientation event [fail]+page/page-drag.spec.ts › Drag and drop › DD-005 should cancel on escape [fail]+page/page-drag.spec.ts › Drag and drop › DD-001 should work @smoke [fail]+page/page-drag.spec.ts › Drag and drop › DD-010 should work if the drag event is captured but not canceled [fail]+page/page-drag.spec.ts › Drag and drop › DD-016 should work with locators [fail]+page/page-drag.spec.ts › Drag and drop › DD-013 should work with the helper method [fail]+page/page-drag.spec.ts › DD-019 should handle custom dataTransfer [fail]+page/page-emulate-media.spec.ts › EM-009 should keep reduced motion and color emulation after reload [fail]+page/page-expose-function.spec.ts › EF-020 should fail with busted Array.prototype.toJSON [fail]+page/page-fill.spec.ts › FI-009 input event.composed should be true and cross shadow dom boundary - date [fail]+page/page-fill.spec.ts › FI-009 input event.composed should be true and cross shadow dom boundary - datetime-local [fail]+page/page-fill.spec.ts › FI-009 input event.composed should be true and cross shadow dom boundary - time [fail]+page/page-fill.spec.ts › FI-030 should be able to clear using fill() [fail]+page/page-fill.spec.ts › FI-028 should be able to fill input[type=number] with empty string [fail]+page/page-fill.spec.ts › FI-008 should fill date input after clicking [fail]+page/page-fill.spec.ts › FI-013 should fill datetime-local input [fail]+page/page-fill.spec.ts › FI-011 should fill month input [fail]+page/page-fill.spec.ts › FI-010 should fill time input [fail]+page/page-fill.spec.ts › FI-012 should fill week input [fail]+page/page-focus.spec.ts › FO-010 keeps focus on element when attempting to focus a non-focusable element [fail]+page/page-focus.spec.ts › FO-004 should traverse focus [fail]+page/page-focus.spec.ts › FO-005 should traverse focus in all directions [fail]+page/page-focus.spec.ts › FO-006 should traverse only form elements [fail]+page/page-goto.spec.ts › NA-036 should disable timeout when its set to 0 [fail]+page/page-goto.spec.ts › NA-056 should fail when canceled by another navigation [fail]+page/page-goto.spec.ts › NA-023 should fail when navigating to bad url [fail]+page/page-goto.spec.ts › NA-037 should fail when replaced by another navigation [fail]+page/page-goto.spec.ts › NA-055 should override referrer-policy [fail]+page/page-goto.spec.ts › NA-066 should return url with basic auth info [fail]+page/page-goto.spec.ts › NA-052 should send referer [fail]+page/page-goto.spec.ts › NA-053 should send referer of cross-origin URL [fail]+page/page-goto.spec.ts › NA-007 should work with cross-process that fails before committing [fail]+page/page-history.spec.ts › NA-072 page.goBack should work with HistoryAPI [fail]+page/page-history.spec.ts › NA-076 page.reload should work with data url [fail]+page/page-keyboard.spec.ts › KB-032 should be able to prevent selectAll [fail]+page/page-keyboard.spec.ts › KB-041 should dispatch a click event on a button when Space gets pressed [fail]+page/page-keyboard.spec.ts › KB-050 should dispatch insertText after context menu was opened [fail]+page/page-keyboard.spec.ts › KB-039 should move around the selection in a contenteditable [fail]+page/page-keyboard.spec.ts › KB-040 should move to the start of the document [fail]+page/page-keyboard.spec.ts › KB-002 should move with the arrow keys [fail]+page/page-keyboard.spec.ts › KB-038 should scroll with PageDown [fail]+page/page-keyboard.spec.ts › KB-033 should support MacOS shortcuts [fail]+page/page-keyboard.spec.ts › KB-043 should support simple copy-pasting [fail]+page/page-keyboard.spec.ts › KB-044 should support simple cut-pasting [fail]+page/page-keyboard.spec.ts › KB-045 should support undo-redo [fail]+page/page-localstorage.spec.ts › ST-027 localStorage.removeItem removes a single item [fail]+page/page-mouse.spec.ts › MO-003 down and up should generate click [fail]+page/page-mouse.spec.ts › MO-001 should click the document @smoke [fail]+page/page-mouse.spec.ts › MO-002 should dblclick the div [fail]+page/page-mouse.spec.ts › MO-006 should report correct pointerType property [fail]+page/page-network-request.spec.ts › NE-007 should get the same headers as the server [fail]+page/page-network-request.spec.ts › NE-009 should get the same headers as the server CORS [fail]+page/page-network-request.spec.ts › NE-008 should not return allHeaders() until they are available [fail]+page/page-network-request.spec.ts › NE-017 should parse the data if content-type is application/x-www-form-urlencoded [fail]+page/page-network-request.spec.ts › NE-018 should parse the data if content-type is application/x-www-form-urlencoded; charset=UTF-8 [fail]+page/page-network-request.spec.ts › NE-026 should report all cookies in one header [fail]+page/page-network-request.spec.ts › NE-024 should report raw headers [fail]+page/page-network-request.spec.ts › NE-011 should return postData [fail]+page/page-network-request.spec.ts › NE-012 should work with binary post data [fail]+page/page-network-request.spec.ts › NE-013 should work with binary post data and interception [fail]# A subframe document request is reported without a frame (the frame is created# later on Page.frameNavigated), so request.frame() does not match the subframe.-page/page-network-request.spec.ts › should work for subframe navigation request [fail]-page/page-network-sizes.spec.ts › should handle redirects [fail]-page/page-network-sizes.spec.ts › should have the correct responseBodySize for chunked request [fail]-page/page-network-sizes.spec.ts › should set bodySize and headersSize [fail]-page/page-network-sizes.spec.ts › should work with 200 status code [fail]-page/page-network-sizes.spec.ts › should work with 401 status code [fail]-page/page-network-sizes.spec.ts › should work with 404 status code [fail]-page/page-network-sizes.spec.ts › should work with 500 status code [fail]-page/page-request-continue.spec.ts › continue should not override cookie [fail]-page/page-request-continue.spec.ts › continue should not propagate cookie override to redirects [fail]-page/page-request-continue.spec.ts › propagate headers same origin redirect [fail]-page/page-request-continue.spec.ts › redirect after continue should be able to delete cookie [fail]-page/page-request-continue.spec.ts › should respect set-cookie in redirect response [fail]-page/page-request-fallback.spec.ts › should not chain abort [fail]-page/page-request-fulfill.spec.ts › should fulfill with har response [fail]-page/page-request-fulfill.spec.ts › should fulfill with multiple set-cookie [fail]-page/page-request-intercept.spec.ts › should support timeout option in route.fetch [fail]-page/page-route.spec.ts › should fail navigation when aborting main resource [fail]-page/page-route.spec.ts › should not auto-intercept non-preflight OPTIONS with network interception [fail]-page/page-route.spec.ts › should send referer [fail]-page/page-screenshot.spec.ts › page screenshot animations › should capture screenshots after layoutchanges in transitionend event › make sure transition is actually running [fail]-page/page-screenshot.spec.ts › page screenshot animations › should fire transitionend for finite transitions › make sure transition is actually running [fail]-page/page-screenshot.spec.ts › page screenshot animations › should stop animations that happen right before screenshot [fail]-page/page-screenshot.spec.ts › page screenshot › should capture blinking caret if explicitly asked for [fail]-page/page-set-input-files.spec.ts › should throw an error if the file does not exist [fail]-page/page-set-input-files.spec.ts › should throw if a directory and files are passed [fail]-page/page-set-input-files.spec.ts › should throw when uploading a file in a directory upload input [fail]-page/page-set-input-files.spec.ts › should throw when uploading a folder in a normal file upload input [fail]-page/page-set-input-files.spec.ts › should upload a folder and throw for multiple directories [fail]-page/page-wait-for-navigation.spec.ts › should respect timeout [fail]-page/page-wait-for-navigation.spec.ts › should work with DOM history.back()/history.forward() [fail]-page/page-wait-for-selector-1.spec.ts › should report logs while waiting for visible [fail]-page/page-wait-for-url.spec.ts › should work with DOM history.back()/history.forward() [fail]-page/wheel.spec.ts › should work when the event is canceled [fail]+page/page-network-request.spec.ts › NE-002 should work for subframe navigation request [fail]+page/page-network-sizes.spec.ts › NE-065 should handle redirects [fail]+page/page-network-sizes.spec.ts › NE-063 should have the correct responseBodySize for chunked request [fail]+page/page-network-sizes.spec.ts › NE-058 should set bodySize and headersSize [fail]+page/page-network-sizes.spec.ts › NE-067 should work with 200 status code [fail]+page/page-network-sizes.spec.ts › NE-067 should work with 401 status code [fail]+page/page-network-sizes.spec.ts › NE-067 should work with 404 status code [fail]+page/page-network-sizes.spec.ts › NE-067 should work with 500 status code [fail]+page/page-request-continue.spec.ts › RO-079 continue should not override cookie [fail]+page/page-request-continue.spec.ts › RO-078 continue should not propagate cookie override to redirects [fail]+page/page-request-continue.spec.ts › RO-087 propagate headers same origin redirect [fail]+page/page-request-continue.spec.ts › RO-082 redirect after continue should be able to delete cookie [fail]+page/page-request-continue.spec.ts › RO-077 should respect set-cookie in redirect response [fail]+page/page-request-fallback.spec.ts › RO-124 should not chain abort [fail]+page/page-request-fulfill.spec.ts › RO-114 should fulfill with har response [fail]+page/page-request-fulfill.spec.ts › RO-111 should fulfill with multiple set-cookie [fail]+page/page-request-intercept.spec.ts › RO-143 should support timeout option in route.fetch [fail]+page/page-route.spec.ts › RO-019 should fail navigation when aborting main resource [fail]+page/page-route.spec.ts › RO-039 should not auto-intercept non-preflight OPTIONS with network interception [fail]+page/page-route.spec.ts › RO-018 should send referer [fail]+page/page-screenshot.spec.ts › page screenshot animations › SS-059 should capture screenshots after layoutchanges in transitionend event › make sure transition is actually running [fail]+page/page-screenshot.spec.ts › page screenshot animations › SS-058 should fire transitionend for finite transitions › make sure transition is actually running [fail]+page/page-screenshot.spec.ts › page screenshot animations › SS-055 should stop animations that happen right before screenshot [fail]+page/page-screenshot.spec.ts › page screenshot › SS-003 should capture blinking caret if explicitly asked for [fail]+page/page-set-input-files.spec.ts › IF-010 should throw an error if the file does not exist [fail]+page/page-set-input-files.spec.ts › IF-005 should throw if a directory and files are passed [fail]+page/page-set-input-files.spec.ts › IF-007 should throw when uploading a file in a directory upload input [fail]+page/page-set-input-files.spec.ts › IF-006 should throw when uploading a folder in a normal file upload input [fail]+page/page-set-input-files.spec.ts › IF-004 should upload a folder and throw for multiple directories [fail]+page/page-wait-for-navigation.spec.ts › WA-096 should respect timeout [fail]+page/page-wait-for-navigation.spec.ts › WA-103 should work with DOM history.back()/history.forward() [fail]+page/page-wait-for-selector-1.spec.ts › WA-036 should report logs while waiting for visible [fail]+page/page-wait-for-url.spec.ts › WA-118 should work with DOM history.back()/history.forward() [fail]+page/wheel.spec.ts › MO-023 should work when the event is canceled [fail]# ============================================================================# misc (99 tests)# Failures that have not been grouped yet — eyeball before extending the# categories above.# ============================================================================-page/elementhandle-screenshot.spec.ts › element screenshot › should work for an element with an offset [fail]-page/elementhandle-screenshot.spec.ts › element screenshot › should work for an element with fractional dimensions [fail]-page/elementhandle-scroll-into-view.spec.ts › should throw for detached element [fail]-page/elementhandle-scroll-into-view.spec.ts › should wait for display:none to become visible [fail]-page/frame-evaluate.spec.ts › should work in iframes that interrupted initial javascript url navigation [fail]-page/frame-goto.spec.ts › should reject when frame detaches [fail]-page/page-aria-snapshot-ai.spec.ts › should snapshot a locator inside an iframe [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-087 should work for an element with an offset [fail]+page/elementhandle-screenshot.spec.ts › element screenshot › EH-086 should work for an element with fractional dimensions [fail]+page/elementhandle-scroll-into-view.spec.ts › EH-094 should throw for detached element [fail]+page/elementhandle-scroll-into-view.spec.ts › EH-095 should wait for display:none to become visible [fail]+page/frame-evaluate.spec.ts › FR-012 should work in iframes that interrupted initial javascript url navigation [fail]+page/frame-goto.spec.ts › FR-021 should reject when frame detaches [fail]+page/page-aria-snapshot-ai.spec.ts › AR-050 should snapshot a locator inside an iframe [fail]# Unexpected pass: test.fail(webkit) expects ephemeral CacheStorage, but the iOS# WebView uses the persistent default data store, so the entry survives reload.-page/page-cache-storage.spec.ts › CacheStorage entry should survive page.reload() [fail]-page/page-emulate-media.spec.ts › should report hover and fine pointer for desktop [fail]+page/page-cache-storage.spec.ts › ST-032 CacheStorage entry should survive page.reload() [fail]+page/page-emulate-media.spec.ts › EM-012 should report hover and fine pointer for desktop [fail]# evaluate() function arguments (#41801) work in the main frame, but the# callback bridge is not wired for subframes, so the evaluate never resolves.-page/page-evaluate-callback.spec.ts › should work in a child frame [fail]-page/page-evaluate-callback.spec.ts › should work with locator.evaluate inside an iframe [fail]-page/page-evaluate.spec.ts › should await promise from popup [fail]-page/page-evaluate.spec.ts › should evaluate exception [fail]-page/page-evaluate.spec.ts › should evaluate exception with a function on the stack [fail]-page/page-evaluate.spec.ts › should not leak handles [fail]-page/page-evaluate.spec.ts › should not leak utility script [fail]-page/page-evaluate.spec.ts › should respect use strict expression [fail]-page/page-evaluate.spec.ts › should throw error with detailed information on exception inside promise [fail]-page/page-evaluate.spec.ts › should work even when JSON is set to null [fail]-page/page-evaluate.spec.ts › should work with CSP [fail]-page/page-evaluate.spec.ts › should work with new Function() and CSP [fail]-page/page-evaluate.spec.ts › should work with non-strict expressions [fail]-page/page-evaluate.spec.ts › should work with overridden Object.defineProperty [fail]-page/page-evaluate.spec.ts › should work with overridden globalThis.Window/Document/Node [fail]-page/page-event-network.spec.ts › should resolve responses after a navigation [fail]-page/page-event-pageerror.spec.ts › should contain sourceURL [fail]-page/page-event-pageerror.spec.ts › should fire [fail]-page/page-event-request.spec.ts › main resource xhr should have type xhr [fail]-page/page-event-request.spec.ts › should finish 204 request [fail]-page/page-event-request.spec.ts › should fire requestfailed when intercepting race [fail]-page/page-event-request.spec.ts › should report navigation requests and responses handled by service worker with routing [fail]-page/page-event-request.spec.ts › should return response body when Cross-Origin-Opener-Policy is set [fail]-page/page-expose-function.spec.ts › should work with busted Array.prototype.map/push [fail]-page/page-expose-function.spec.ts › should work with overridden console object [fail]+page/page-evaluate-callback.spec.ts › EV-124 should work in a child frame [fail]+page/page-evaluate-callback.spec.ts › EV-131 should work with locator.evaluate inside an iframe [fail]+page/page-evaluate.spec.ts › EV-070 should await promise from popup [fail]+page/page-evaluate.spec.ts › EV-078 should evaluate exception [fail]+page/page-evaluate.spec.ts › EV-077 should evaluate exception with a function on the stack [fail]+page/page-evaluate.spec.ts › EV-075 should not leak handles [fail]+page/page-evaluate.spec.ts › EV-074 should not leak utility script [fail]+page/page-evaluate.spec.ts › EV-073 should respect use strict expression [fail]+page/page-evaluate.spec.ts › EV-068 should throw error with detailed information on exception inside promise [fail]+page/page-evaluate.spec.ts › EV-069 should work even when JSON is set to null [fail]+page/page-evaluate.spec.ts › EV-076 should work with CSP [fail]+page/page-evaluate.spec.ts › EV-071 should work with new Function() and CSP [fail]+page/page-evaluate.spec.ts › EV-072 should work with non-strict expressions [fail]+page/page-evaluate.spec.ts › EV-094 should work with overridden Object.defineProperty [fail]+page/page-evaluate.spec.ts › EV-096 should work with overridden globalThis.Window/Document/Node [fail]+page/page-event-network.spec.ts › NE-090 should resolve responses after a navigation [fail]+page/page-event-pageerror.spec.ts › ER-003 should contain sourceURL [fail]+page/page-event-pageerror.spec.ts › ER-001 should fire [fail]+page/page-event-request.spec.ts › NE-101 main resource xhr should have type xhr [fail]+page/page-event-request.spec.ts › NE-102 should finish 204 request [fail]+page/page-event-request.spec.ts › NE-100 should fire requestfailed when intercepting race [fail]+page/page-event-request.spec.ts › NE-098 should report navigation requests and responses handled by service worker with routing [fail]+page/page-event-request.spec.ts › NE-099 should return response body when Cross-Origin-Opener-Policy is set [fail]+page/page-expose-function.spec.ts › EF-019 should work with busted Array.prototype.map/push [fail]+page/page-expose-function.spec.ts › EF-018 should work with overridden console object [fail]page/page-fill.spec.ts › should throw on incorrect date [fail]page/page-fill.spec.ts › should throw on incorrect month [fail]page/page-fill.spec.ts › should throw on incorrect time [fail]page/page-fill.spec.ts › should throw on incorrect week [fail]-page/page-focus.spec.ts › clicking checkbox should activate it [fail]-page/page-focus.spec.ts › tab should cycle between document elements and browser [fail]-page/page-focus.spec.ts › tab should cycle between single input and browser [fail]-page/page-goto.spec.ts › js redirect overrides url bar navigation [fail]-page/page-goto.spec.ts › should fail when main resources failed to load [fail]-page/page-goto.spec.ts › should fail when navigating and show the url at the error message [fail]-page/page-goto.spec.ts › should fail when navigating to bad SSL [fail]-page/page-goto.spec.ts › should fail when navigating to bad SSL after redirects [fail]-page/page-goto.spec.ts › should fail when server returns 204 [fail]-page/page-goto.spec.ts › should work with Cross-Origin-Opener-Policy [fail]-page/page-goto.spec.ts › should work with Cross-Origin-Opener-Policy after redirect [fail]-page/page-goto.spec.ts › should work with Cross-Origin-Opener-Policy and interception [fail]-page/page-goto.spec.ts › should work with anchor navigation [fail]-page/page-goto.spec.ts › should work with file URL [fail]-page/page-goto.spec.ts › should work with file URL with subframes [fail]-page/page-history.spec.ts › page.goBack should work for file urls [fail]-page/page-history.spec.ts › page.goForward during renderer-initiated navigation [fail]-page/page-history.spec.ts › page.reload should work on a page with a hash [fail]-page/page-history.spec.ts › page.reload should work with cross-origin redirect [fail]-page/page-history.spec.ts › should reload proper page [fail]-page/page-localstorage.spec.ts › storage methods are scoped to the current origin [fail]-page/page-mouse.spec.ts › should pointerdown the div with a custom button [fail]-page/page-mouse.spec.ts › should select the text with mouse [fail]-page/page-navigation.spec.ts › should work with _blank target in form [fail]-page/page-network-request.spec.ts › should handle mixed-content blocked requests [fail]-page/page-network-request.spec.ts › should report raw response headers in redirects [fail]-page/page-network-request.spec.ts › should return multipart/form-data [fail]-page/page-network-request.spec.ts › should return navigation bit [fail]+page/page-focus.spec.ts › FO-007 clicking checkbox should activate it [fail]+page/page-focus.spec.ts › FO-009 tab should cycle between document elements and browser [fail]+page/page-focus.spec.ts › FO-008 tab should cycle between single input and browser [fail]+page/page-goto.spec.ts › NA-038 js redirect overrides url bar navigation [fail]+page/page-goto.spec.ts › NA-029 should fail when main resources failed to load [fail]+page/page-goto.spec.ts › NA-050 should fail when navigating and show the url at the error message [fail]+page/page-goto.spec.ts › NA-024 should fail when navigating to bad SSL [fail]+page/page-goto.spec.ts › NA-025 should fail when navigating to bad SSL after redirects [fail]+page/page-goto.spec.ts › NA-020 should fail when server returns 204 [fail]+page/page-goto.spec.ts › NA-008 should work with Cross-Origin-Opener-Policy [fail]+page/page-goto.spec.ts › NA-011 should work with Cross-Origin-Opener-Policy after redirect [fail]+page/page-goto.spec.ts › NA-010 should work with Cross-Origin-Opener-Policy and interception [fail]+page/page-goto.spec.ts › NA-014 should work with anchor navigation [fail]+page/page-goto.spec.ts › NA-002 should work with file URL [fail]+page/page-goto.spec.ts › NA-004 should work with file URL with subframes [fail]+page/page-history.spec.ts › NA-073 page.goBack should work for file urls [fail]+page/page-history.spec.ts › NA-084 page.goForward during renderer-initiated navigation [fail]+page/page-history.spec.ts › NA-081 page.reload should work on a page with a hash [fail]+page/page-history.spec.ts › NA-080 page.reload should work with cross-origin redirect [fail]+page/page-history.spec.ts › NA-086 should reload proper page [fail]+page/page-localstorage.spec.ts › ST-031 storage methods are scoped to the current origin [fail]+page/page-mouse.spec.ts › MO-004 should pointerdown the div with a custom button [fail]+page/page-mouse.spec.ts › MO-007 should select the text with mouse [fail]+page/page-navigation.spec.ts › NA-069 should work with _blank target in form [fail]+page/page-network-request.spec.ts › NE-029 should handle mixed-content blocked requests [fail]+page/page-network-request.spec.ts › NE-025 should report raw response headers in redirects [fail]+page/page-network-request.spec.ts › NE-020 should return multipart/form-data [fail]+page/page-network-request.spec.ts › NE-022 should return navigation bit [fail]page/page-network-response.spec.ts › should bypass disk cache when context interception is enabled [fail]-page/page-network-response.spec.ts › should provide a Response with a file URL [fail]-page/page-network-response.spec.ts › should return body for prefetch script [fail]-page/page-network-response.spec.ts › should return set-cookie header after route.fulfill [fail]-page/page-request-continue.spec.ts › should continue preload link requests [fail]-page/page-request-continue.spec.ts › should not delete the origin header [fail]-page/page-request-continue.spec.ts › should not forward Host header on cross-origin redirect [fail]-page/page-request-continue.spec.ts › should work with Cross-Origin-Opener-Policy [fail]-page/page-request-fallback.spec.ts › should fall back after exception [fail]-page/page-request-fallback.spec.ts › should work [fail]+page/page-network-response.spec.ts › NE-046 should provide a Response with a file URL [fail]+page/page-network-response.spec.ts › NE-050 should return body for prefetch script [fail]+page/page-network-response.spec.ts › NE-047 should return set-cookie header after route.fulfill [fail]+page/page-request-continue.spec.ts › RO-076 should continue preload link requests [fail]+page/page-request-continue.spec.ts › RO-075 should not delete the origin header [fail]+page/page-request-continue.spec.ts › RO-094 should not forward Host header on cross-origin redirect [fail]+page/page-request-continue.spec.ts › RO-074 should work with Cross-Origin-Opener-Policy [fail]+page/page-request-fallback.spec.ts › RO-125 should fall back after exception [fail]+page/page-request-fallback.spec.ts › RO-120 should work [fail]# The hit-target interceptor element is not released on iOS WebKit, so the# WeakRef stays alive after requestGC().-page/page-request-gc.spec.ts › should collect element retained by locator hit-target interceptor after detach [fail]-page/page-route.spec.ts › should not support ? in glob pattern [fail]-page/page-screenshot.spec.ts › page screenshot › should capture canvas changes [fail]-page/page-screenshot.spec.ts › page screenshot › should work with odd clip size on Retina displays [fail]-page/page-set-input-files.spec.ts › should upload large file [fail]-page/page-set-input-files.spec.ts › should upload large file with relative path [fail]-page/page-wait-for-load-state.spec.ts › should wait for load state of newPage [fail]-page/page-wait-for-url.spec.ts › should work on frame [fail]+page/page-request-gc.spec.ts › RO-150 should collect element retained by locator hit-target interceptor after detach [fail]+page/page-route.spec.ts › RO-003 should not support ? in glob pattern [fail]+page/page-screenshot.spec.ts › page screenshot › SS-024 should capture canvas changes [fail]+page/page-screenshot.spec.ts › page screenshot › SS-022 should work with odd clip size on Retina displays [fail]+page/page-set-input-files.spec.ts › IF-009 should upload large file [fail]+page/page-set-input-files.spec.ts › IF-011 should upload large file with relative path [fail]+page/page-wait-for-load-state.spec.ts › WA-089 should wait for load state of newPage [fail]+page/page-wait-for-url.spec.ts › WA-120 should work on frame [fail]# allHeaders() for the worker script request/response is missing host and# content-type on the stock backend# (https://github.com/microsoft/playwright/issues/39948).-page/workers.spec.ts › should resolve worker script allHeaders in iframe [fail]-page/workers.spec.ts › should resolve worker script allHeaders in main frame [fail]+page/workers.spec.ts › WO-024 should resolve worker script allHeaders in iframe [fail]+page/workers.spec.ts › WO-023 should resolve worker script allHeaders in main frame [fail]# ============================================================================# subframe-navigation (2 tests)@@ -455,8 +455,8 @@ page/workers.spec.ts › should resolve worker script allHeaders in main frame [# Runtime.evaluate(window.location.href=...), which only works on the main# frame — see wvPage.navigateFrame.# ============================================================================-page/frame-goto.spec.ts › should navigate subframes @smoke [fail]-page/page-wait-for-load-state.spec.ts › should work for frame [fail]+page/frame-goto.spec.ts › FR-020 should navigate subframes @smoke [fail]+page/page-wait-for-load-state.spec.ts › WA-091 should work for frame [fail]# ============================================================================# history-navigation (3 tests)@@ -464,8 +464,8 @@ page/page-wait-for-load-state.spec.ts › should work for frame [fail]# Page.goBack/goForward and we have not yet driven the back/forward list via# Runtime.evaluate(history.back()).# ============================================================================-page/page-history.spec.ts › goBack/goForward should work with bfcache-able pages [fail]-page/page-history.spec.ts › page.goBack should work @smoke [fail]+page/page-history.spec.ts › NA-074 goBack/goForward should work with bfcache-able pages [fail]+page/page-history.spec.ts › NA-071 page.goBack should work @smoke [fail]# ============================================================================# unimplemented-other (26 tests)@@ -473,68 +473,68 @@ page/page-history.spec.ts › page.goBack should work @smoke [fail]# WebView backend. Re-triage once the corresponding stubs in wvPage.ts grow# real implementations.# ============================================================================-page/frame-evaluate.spec.ts › should allow cross-frame element handles [fail]-page/page-aria-snapshot-ai.spec.ts › return empty snapshot when iframe is not loaded [fail]-page/page-aria-snapshot-ai.spec.ts › should gracefully fallback when child frame cant be captured [fail]-page/page-aria-snapshot-ai.spec.ts › should limit depth across iframe boundary [fail]-page/page-aria-snapshot-ai.spec.ts › should list iframes [fail]-page/page-aria-snapshot-ai.spec.ts › should persist iframe references [fail]+page/frame-evaluate.spec.ts › FR-007 should allow cross-frame element handles [fail]+page/page-aria-snapshot-ai.spec.ts › AR-080 return empty snapshot when iframe is not loaded [fail]+page/page-aria-snapshot-ai.spec.ts › AR-073 should gracefully fallback when child frame cant be captured [fail]+page/page-aria-snapshot-ai.spec.ts › AR-051 should limit depth across iframe boundary [fail]+page/page-aria-snapshot-ai.spec.ts › AR-049 should list iframes [fail]+page/page-aria-snapshot-ai.spec.ts › AR-054 should persist iframe references [fail]page/page-aria-snapshot-ai.spec.ts › should produce incremental snapshot for iframes [fail]-page/page-aria-snapshot-ai.spec.ts › should stitch all frame snapshots [fail]-page/page-emulate-media.spec.ts › should emulate forcedColors [fail]-page/page-request-intercept.spec.ts › should fulfill intercepted response using alias [fail]-page/page-request-intercept.spec.ts › should intercept with url override [fail]-page/page-request-intercept.spec.ts › should not follow redirects when maxRedirects is set to 0 in route.fetch [fail]-page/page-set-input-files.spec.ts › should detect mime type [fail]-page/page-set-input-files.spec.ts › should emit input and change events [fail]-page/page-set-input-files.spec.ts › should upload a folder [fail]-page/page-set-input-files.spec.ts › should upload the file [fail]-page/page-set-input-files.spec.ts › should upload the file with spaces in name [fail]+page/page-aria-snapshot-ai.spec.ts › AR-052 should stitch all frame snapshots [fail]+page/page-emulate-media.spec.ts › EM-010 should emulate forcedColors [fail]+page/page-request-intercept.spec.ts › RO-142 should fulfill intercepted response using alias [fail]+page/page-request-intercept.spec.ts › RO-145 should intercept with url override [fail]+page/page-request-intercept.spec.ts › RO-144 should not follow redirects when maxRedirects is set to 0 in route.fetch [fail]+page/page-set-input-files.spec.ts › IF-016 should detect mime type [fail]+page/page-set-input-files.spec.ts › IF-018 should emit input and change events [fail]+page/page-set-input-files.spec.ts › IF-002 should upload a folder [fail]+page/page-set-input-files.spec.ts › IF-001 should upload the file [fail]+page/page-set-input-files.spec.ts › IF-012 should upload the file with spaces in name [fail]# ============================================================================# hover-state-missing (5 tests)# ':hover' is not applied during synthetic mouse-move on the WebView — the# stock RDP has no Input.dispatchMouseEvent type='mouseHovered' equivalent.# ============================================================================-page/locator-misc-1.spec.ts › should hover @smoke [fail]-page/locator-misc-1.spec.ts › should hover when Node is removed [fail]-page/page-mouse.spec.ts › should trigger hover state [fail]-page/page-mouse.spec.ts › should trigger hover state on disabled button [fail]-page/page-mouse.spec.ts › should trigger hover state with removed window.Node [fail]+page/locator-misc-1.spec.ts › LO-127 should hover @smoke [fail]+page/locator-misc-1.spec.ts › LO-128 should hover when Node is removed [fail]+page/page-mouse.spec.ts › MO-008 should trigger hover state [fail]+page/page-mouse.spec.ts › MO-009 should trigger hover state on disabled button [fail]+page/page-mouse.spec.ts › MO-010 should trigger hover state with removed window.Node [fail]# ============================================================================# timeout (26 tests)# Test timed out — usually because an unimplemented hook never resolves.# Re-triage once the relevant delegate methods are wired up.# ============================================================================-page/expect-boolean.spec.ts › toBeChecked › with impossible timeout .not [fail]-page/jshandle-as-element.spec.ts › should return ElementHandle for TextNodes [fail]-page/locator-convenience.spec.ts › innerText should produce log [fail]-page/locator-evaluate.spec.ts › should not throw in case of missing selector for all [fail]-page/locator-is-visible.spec.ts › isVisible inside a role=button [fail]-page/locator-query.spec.ts › should support has:locator [fail]-page/locator-query.spec.ts › should support locator.filter [fail]-page/locator-query.spec.ts › should throw on due to strictness [fail]-page/page-autowaiting-basic.spec.ts › should report and collapse log in action [fail]-page/page-autowaiting-basic.spec.ts › should report and collapse log in expect [fail]-page/page-autowaiting-no-hang.spec.ts › assigning location to about:blank after non-about:blank [fail]-page/page-autowaiting-no-hang.spec.ts › calling window.stop sync [fail]+page/expect-boolean.spec.ts › toBeChecked › EX-016 with impossible timeout .not [fail]+page/jshandle-as-element.spec.ts › JH-003 should return ElementHandle for TextNodes [fail]+page/locator-convenience.spec.ts › LO-063 innerText should produce log [fail]+page/locator-evaluate.spec.ts › LO-088 should not throw in case of missing selector for all [fail]+page/locator-is-visible.spec.ts › LO-123 isVisible inside a role=button [fail]+page/locator-query.spec.ts › LO-172 should support has:locator [fail]+page/locator-query.spec.ts › LO-173 should support locator.filter [fail]+page/locator-query.spec.ts › LO-160 should throw on due to strictness [fail]+page/page-autowaiting-basic.spec.ts › AW-011 should report and collapse log in action [fail]+page/page-autowaiting-basic.spec.ts › AW-012 should report and collapse log in expect [fail]+page/page-autowaiting-no-hang.spec.ts › AW-017 assigning location to about:blank after non-about:blank [fail]+page/page-autowaiting-no-hang.spec.ts › AW-015 calling window.stop sync [fail]# Pre-existing (fails on main too): a same-document navigation via the Navigation# API does not update the frame URL on the stock WebView backend.-page/page-autowaiting-no-hang.spec.ts › clicking a link intercepted by the Navigation API same-document [fail]-page/page-drag.spec.ts › Drag and drop › should respect the drop effect [fail]-page/page-drag.spec.ts › Drag and drop › should work if a frame is stalled [fail]-page/page-evaluate.spec.ts › should return -Infinity [fail]-page/page-goto.spec.ts › should not leak listeners during bad navigation [fail]-page/page-goto.spec.ts › should not throw unhandled rejections on invalid url [fail]-page/page-history.spec.ts › page.goBack during renderer-initiated navigation [fail]-page/page-localstorage.spec.ts › localStorage.setItem overwrites existing value [fail]-page/page-network-idle.spec.ts › should wait for networkidle from the child frame [fail]-page/page-network-idle.spec.ts › should wait for networkidle in setContent [fail]-page/page-request-continue.spec.ts › should not throw if request was cancelled by the page [fail]-page/page-route.spec.ts › should not throw "Invalid Interception Id" if the request was cancelled [fail]-page/page-screenshot.spec.ts › should capture css box-shadow [fail]-page/to-match-aria-snapshot.spec.ts › should not match what is not matched [fail]+page/page-autowaiting-no-hang.spec.ts › AW-022 clicking a link intercepted by the Navigation API same-document [fail]+page/page-drag.spec.ts › Drag and drop › DD-008 should respect the drop effect [fail]+page/page-drag.spec.ts › Drag and drop › DD-012 should work if a frame is stalled [fail]+page/page-evaluate.spec.ts › EV-036 should return -Infinity [fail]+page/page-goto.spec.ts › NA-045 should not leak listeners during bad navigation [fail]+page/page-goto.spec.ts › NA-059 should not throw unhandled rejections on invalid url [fail]+page/page-history.spec.ts › NA-083 page.goBack during renderer-initiated navigation [fail]+page/page-localstorage.spec.ts › ST-026 localStorage.setItem overwrites existing value [fail]+page/page-network-idle.spec.ts › NE-078 should wait for networkidle from the child frame [fail]+page/page-network-idle.spec.ts › NE-074 should wait for networkidle in setContent [fail]+page/page-request-continue.spec.ts › RO-064 should not throw if request was cancelled by the page [fail]+page/page-route.spec.ts › RO-030 should not throw "Invalid Interception Id" if the request was cancelled [fail]+page/page-screenshot.spec.ts › SS-067 should capture css box-shadow [fail]+page/to-match-aria-snapshot.spec.ts › AR-134 should not match what is not matched [fail]# ============================================================================# structural-unsupported (remaining)@@ -552,101 +552,101 @@ page/to-match-aria-snapshot.spec.ts › should not match what is not matched [fa# frame-evaluate / frame-hierarchy / frame-frame-element / elementhandle-*-frame# tests). Kept skipped until the provisional-target pause gap is addressed.# ============================================================================-page/frame-evaluate.spec.ts › should work in iframes that interrupted initial javascript url navigation [fail]-page/locator-frame.spec.ts › should work for iframe @smoke [fail]-page/locator-frame.spec.ts › should work for nested iframe [fail]-page/page-add-init-script.spec.ts › init script should run only once in iframe [fail]-page/page-aria-snapshot-ai.spec.ts › return empty snapshot when iframe is not loaded [fail]-page/page-aria-snapshot-ai.spec.ts › should limit depth across iframe boundary [fail]-page/page-aria-snapshot-ai.spec.ts › should list iframes [fail]-page/page-aria-snapshot-ai.spec.ts › should mark iframe as active when it contains focused element [fail]-page/page-aria-snapshot-ai.spec.ts › should persist iframe references [fail]+page/frame-evaluate.spec.ts › FR-012 should work in iframes that interrupted initial javascript url navigation [fail]+page/locator-frame.spec.ts › LO-089 should work for iframe @smoke [fail]+page/locator-frame.spec.ts › LO-090 should work for nested iframe [fail]+page/page-add-init-script.spec.ts › IS-011 init script should run only once in iframe [fail]+page/page-aria-snapshot-ai.spec.ts › AR-080 return empty snapshot when iframe is not loaded [fail]+page/page-aria-snapshot-ai.spec.ts › AR-051 should limit depth across iframe boundary [fail]+page/page-aria-snapshot-ai.spec.ts › AR-049 should list iframes [fail]+page/page-aria-snapshot-ai.spec.ts › AR-079 should mark iframe as active when it contains focused element [fail]+page/page-aria-snapshot-ai.spec.ts › AR-054 should persist iframe references [fail]page/page-aria-snapshot-ai.spec.ts › should produce incremental snapshot for iframes [fail]-page/page-aria-snapshot-ai.spec.ts › should snapshot a locator inside an iframe [fail]-page/page-aria-snapshot-ai.spec.ts › should support many properties on iframes [fail]+page/page-aria-snapshot-ai.spec.ts › AR-050 should snapshot a locator inside an iframe [fail]+page/page-aria-snapshot-ai.spec.ts › AR-081 should support many properties on iframes [fail]# frame/frameset elements are treated like iframes in aria snapshots (#41828) —# same frame-stitching gap as the iframe entries above.-page/page-aria-snapshot-ai.spec.ts › should snapshot a locator inside a frameset frame [fail]-page/page-aria-snapshot-ai.spec.ts › should stitch iframes inside a frameset frame [fail]-page/page-aria-snapshot-ai.spec.ts › should stitch nested frameset documents [fail]-page/page-aria-snapshot.spec.ts › auto-waits the locator and does not include iframes [fail]-page/page-aria-snapshot.spec.ts › should snapshot a locator inside an iframe [fail]-page/page-autowaiting-no-hang.spec.ts › opening a popup [fail]-page/page-click-scroll.spec.ts › should scroll into view element in iframe [fail]-page/page-click.spec.ts › should click a button that is overlaid by a permission popup [fail]-page/page-click.spec.ts › should click in a nested transformed iframe [fail]-page/page-click.spec.ts › should click in a transformed iframe [fail]-page/page-click.spec.ts › should click in a transformed iframe with force [fail]-page/page-click.spec.ts › should click the button with fixed position inside an iframe [fail]-page/page-click.spec.ts › should issue clicks in parallel in page and popup [fail]-page/page-drag.spec.ts › Drag and drop › iframe › should drag into an iframe [fail]-page/page-drag.spec.ts › Drag and drop › iframe › should drag out of an iframe [fail]-page/page-drag.spec.ts › Drag and drop › should work inside iframe [fail]-page/page-evaluate.spec.ts › should await promise from popup [fail]-page/page-event-console.spec.ts › should not throw when there are console messages in detached iframes [fail]-page/page-event-load.spec.ts › should fire once with iframe navigation [fail]-page/page-event-popup.spec.ts › should be able to capture alert [fail]-page/page-event-popup.spec.ts › should emit for immediately closed popups [fail]-page/page-event-popup.spec.ts › should emit for immediately closed popups 2 [fail]-page/page-event-popup.spec.ts › should report popup opened from iframes [fail]-page/page-event-popup.spec.ts › should work @smoke [fail]-page/page-event-popup.spec.ts › should work with clicking target=_blank [fail]-page/page-event-popup.spec.ts › should work with clicking target=_blank and rel=noopener [fail]-page/page-event-popup.spec.ts › should work with empty url [fail]-page/page-event-popup.spec.ts › should work with fake-clicking target=_blank and rel=noopener [fail]-page/page-event-popup.spec.ts › should work with noopener and about:blank [fail]-page/page-event-popup.spec.ts › should work with noopener and no url [fail]-page/page-event-popup.spec.ts › should work with noopener and url [fail]-page/page-event-popup.spec.ts › should work with window features [fail]-page/page-event-request.spec.ts › should fire for iframes [fail]-page/page-filechooser.spec.ts › should accept single file [fail]-page/page-filechooser.spec.ts › should be able to read selected file [fail]-page/page-filechooser.spec.ts › should be able to reset selected files with empty file list [fail]-page/page-filechooser.spec.ts › should emit event addListener/removeListener [fail]-page/page-filechooser.spec.ts › should emit event after navigation [fail]-page/page-filechooser.spec.ts › should emit event for iframe [fail]-page/page-filechooser.spec.ts › should emit event on/off [fail]-page/page-filechooser.spec.ts › should emit event once [fail]-page/page-filechooser.spec.ts › should emit event via prepend [fail]-page/page-filechooser.spec.ts › should not throw when filechooser belongs to iframe [fail]-page/page-filechooser.spec.ts › should not throw when frame is detached immediately [fail]-page/page-filechooser.spec.ts › should not trim big uploaded files [fail]-page/page-filechooser.spec.ts › should prioritize exact timeout over default timeout [fail]-page/page-filechooser.spec.ts › should respect default timeout when there is no custom timeout [fail]-page/page-filechooser.spec.ts › should respect timeout [fail]-page/page-filechooser.spec.ts › should return the same file chooser when there are many watchdogs simultaneously [fail]-page/page-filechooser.spec.ts › should trigger listener added before navigation [fail]-page/page-filechooser.spec.ts › should upload multiple large files [fail]-page/page-filechooser.spec.ts › should work for "multiple" [fail]-page/page-filechooser.spec.ts › should work for "webkitdirectory" [fail]-page/page-filechooser.spec.ts › should work for single file pick [fail]-page/page-filechooser.spec.ts › should work when file input is attached to DOM [fail]-page/page-filechooser.spec.ts › should work when file input is not attached to DOM [fail]-page/page-filechooser.spec.ts › should work with no timeout [fail]-page/page-goto.spec.ts › should capture cross-process iframe navigation request [fail]-page/page-goto.spec.ts › should capture iframe navigation request [fail]-page/page-goto.spec.ts › should work with lazy loading iframes [fail]-page/page-network-idle.spec.ts › should wait for networkidle from the popup [fail]-page/page-network-idle.spec.ts › should wait for networkidle when iframe attaches and detaches [fail]-page/page-network-idle.spec.ts › should wait for networkidle when navigating iframe [fail]-page/page-network-request.spec.ts › should not allow to access frame on popup main request [fail]+page/page-aria-snapshot-ai.spec.ts › AR-083 should snapshot a locator inside a frameset frame [fail]+page/page-aria-snapshot-ai.spec.ts › AR-084 should stitch iframes inside a frameset frame [fail]+page/page-aria-snapshot-ai.spec.ts › AR-085 should stitch nested frameset documents [fail]+page/page-aria-snapshot.spec.ts › AR-037 auto-waits the locator and does not include iframes [fail]+page/page-aria-snapshot.spec.ts › AR-039 should snapshot a locator inside an iframe [fail]+page/page-autowaiting-no-hang.spec.ts › AW-019 opening a popup [fail]+page/page-click-scroll.spec.ts › CL-100 should scroll into view element in iframe [fail]+page/page-click.spec.ts › CL-078 should click a button that is overlaid by a permission popup [fail]+page/page-click.spec.ts › CL-080 should click in a nested transformed iframe [fail]+page/page-click.spec.ts › CL-077 should click in a transformed iframe [fail]+page/page-click.spec.ts › CL-079 should click in a transformed iframe with force [fail]+page/page-click.spec.ts › CL-035 should click the button with fixed position inside an iframe [fail]+page/page-click.spec.ts › CL-003 should issue clicks in parallel in page and popup [fail]+page/page-drag.spec.ts › Drag and drop › iframe › DD-006 should drag into an iframe [fail]+page/page-drag.spec.ts › Drag and drop › iframe › DD-007 should drag out of an iframe [fail]+page/page-drag.spec.ts › Drag and drop › DD-004 should work inside iframe [fail]+page/page-evaluate.spec.ts › EV-070 should await promise from popup [fail]+page/page-event-console.spec.ts › CM-010 should not throw when there are console messages in detached iframes [fail]+page/page-event-load.spec.ts › NA-088 should fire once with iframe navigation [fail]+page/page-event-popup.spec.ts › PO-005 should be able to capture alert [fail]+page/page-event-popup.spec.ts › PO-003 should emit for immediately closed popups [fail]+page/page-event-popup.spec.ts › PO-004 should emit for immediately closed popups 2 [fail]+page/page-event-popup.spec.ts › PO-013 should report popup opened from iframes [fail]+page/page-event-popup.spec.ts › PO-001 should work @smoke [fail]+page/page-event-popup.spec.ts › PO-010 should work with clicking target=_blank [fail]+page/page-event-popup.spec.ts › PO-012 should work with clicking target=_blank and rel=noopener [fail]+page/page-event-popup.spec.ts › PO-006 should work with empty url [fail]+page/page-event-popup.spec.ts › PO-011 should work with fake-clicking target=_blank and rel=noopener [fail]+page/page-event-popup.spec.ts › PO-008 should work with noopener and about:blank [fail]+page/page-event-popup.spec.ts › PO-007 should work with noopener and no url [fail]+page/page-event-popup.spec.ts › PO-009 should work with noopener and url [fail]+page/page-event-popup.spec.ts › PO-002 should work with window features [fail]+page/page-event-request.spec.ts › NE-092 should fire for iframes [fail]+page/page-filechooser.spec.ts › FC-017 should accept single file [fail]+page/page-filechooser.spec.ts › FC-019 should be able to read selected file [fail]+page/page-filechooser.spec.ts › FC-020 should be able to reset selected files with empty file list [fail]+page/page-filechooser.spec.ts › FC-006 should emit event addListener/removeListener [fail]+page/page-filechooser.spec.ts › FC-024 should emit event after navigation [fail]+page/page-filechooser.spec.ts › FC-004 should emit event for iframe [fail]+page/page-filechooser.spec.ts › FC-005 should emit event on/off [fail]+page/page-filechooser.spec.ts › FC-002 should emit event once [fail]+page/page-filechooser.spec.ts › FC-003 should emit event via prepend [fail]+page/page-filechooser.spec.ts › FC-009 should not throw when filechooser belongs to iframe [fail]+page/page-filechooser.spec.ts › FC-010 should not throw when frame is detached immediately [fail]+page/page-filechooser.spec.ts › FC-018 should not trim big uploaded files [fail]+page/page-filechooser.spec.ts › FC-013 should prioritize exact timeout over default timeout [fail]+page/page-filechooser.spec.ts › FC-012 should respect default timeout when there is no custom timeout [fail]+page/page-filechooser.spec.ts › FC-011 should respect timeout [fail]+page/page-filechooser.spec.ts › FC-016 should return the same file chooser when there are many watchdogs simultaneously [fail]+page/page-filechooser.spec.ts › FC-025 should trigger listener added before navigation [fail]+page/page-filechooser.spec.ts › FC-001 should upload multiple large files [fail]+page/page-filechooser.spec.ts › FC-022 should work for "multiple" [fail]+page/page-filechooser.spec.ts › FC-023 should work for "webkitdirectory" [fail]+page/page-filechooser.spec.ts › FC-021 should work for single file pick [fail]+page/page-filechooser.spec.ts › FC-007 should work when file input is attached to DOM [fail]+page/page-filechooser.spec.ts › FC-008 should work when file input is not attached to DOM [fail]+page/page-filechooser.spec.ts › FC-014 should work with no timeout [fail]+page/page-goto.spec.ts › NA-013 should capture cross-process iframe navigation request [fail]+page/page-goto.spec.ts › NA-012 should capture iframe navigation request [fail]+page/page-goto.spec.ts › NA-057 should work with lazy loading iframes [fail]+page/page-network-idle.spec.ts › NE-079 should wait for networkidle from the popup [fail]+page/page-network-idle.spec.ts › NE-080 should wait for networkidle when iframe attaches and detaches [fail]+page/page-network-idle.spec.ts › NE-076 should wait for networkidle when navigating iframe [fail]+page/page-network-request.spec.ts › NE-027 should not allow to access frame on popup main request [fail]page/page-request-intercept.spec.ts › should fulfill popup main request using alias [fail]-page/page-screenshot.spec.ts › page screenshot › mask option › should mask inside iframe [fail]-page/page-screenshot.spec.ts › page screenshot › should work with iframe in shadow [fail]-page/page-set-content.spec.ts › should return empty content there is no iframe src [fail]-page/page-set-input-files.spec.ts › should upload a file after popup [fail]-page/page-wait-for-load-state.spec.ts › should resolve after popup load [fail]-page/page-wait-for-load-state.spec.ts › should wait for load state of about:blank popup [fail]-page/page-wait-for-load-state.spec.ts › should wait for load state of about:blank popup with noopener [fail]-page/page-wait-for-load-state.spec.ts › should wait for load state of empty url popup [fail]-page/page-wait-for-load-state.spec.ts › should wait for load state of popup with network url [fail]-page/page-wait-for-load-state.spec.ts › should wait for load state of popup with network url and noopener [fail]-page/selectors-frame.spec.ts › should work for iframe (handle) [fail]-page/selectors-frame.spec.ts › should work for iframe @smoke [fail]-page/selectors-frame.spec.ts › should work for nested iframe [fail]-page/selectors-frame.spec.ts › should work for nested iframe (handle) [fail]-page/wheel.spec.ts › should dispatch wheel events after popup was opened @smoke [fail]-page/workers.spec.ts › should attribute network activity for worker inside iframe to the iframe [fail]+page/page-screenshot.spec.ts › page screenshot › mask option › SS-044 should mask inside iframe [fail]+page/page-screenshot.spec.ts › page screenshot › SS-028 should work with iframe in shadow [fail]+page/page-set-content.spec.ts › PA-035 should return empty content there is no iframe src [fail]+page/page-set-input-files.spec.ts › IF-008 should upload a file after popup [fail]+page/page-wait-for-load-state.spec.ts › WA-090 should resolve after popup load [fail]+page/page-wait-for-load-state.spec.ts › WA-084 should wait for load state of about:blank popup [fail]+page/page-wait-for-load-state.spec.ts › WA-085 should wait for load state of about:blank popup with noopener [fail]+page/page-wait-for-load-state.spec.ts › WA-083 should wait for load state of empty url popup [fail]+page/page-wait-for-load-state.spec.ts › WA-086 should wait for load state of popup with network url [fail]+page/page-wait-for-load-state.spec.ts › WA-087 should wait for load state of popup with network url and noopener [fail]+page/selectors-frame.spec.ts › SE-099 should work for iframe (handle) [fail]+page/selectors-frame.spec.ts › SE-098 should work for iframe @smoke [fail]+page/selectors-frame.spec.ts › SE-100 should work for nested iframe [fail]+page/selectors-frame.spec.ts › SE-101 should work for nested iframe (handle) [fail]+page/wheel.spec.ts › MO-018 should dispatch wheel events after popup was opened @smoke [fail]+page/workers.spec.ts › WO-014 should attribute network activity for worker inside iframe to the iframe [fail]# ============================================================================# native-ui-picker (15 tests)@@ -655,19 +655,19 @@ page/workers.spec.ts › should attribute network activity for worker inside ifr# protocol can't dismiss, leaving the worker stuck for every subsequent test.# Bulk-skipped until we can drive the picker (or override it in the bridge).# ============================================================================-page/page-fill.spec.ts › input event.composed should be true and cross shadow dom boundary - color [fail]-page/page-fill.spec.ts › input event.composed should be true and cross shadow dom boundary - date [fail]-page/page-fill.spec.ts › input event.composed should be true and cross shadow dom boundary - datetime-local [fail]-page/page-fill.spec.ts › input event.composed should be true and cross shadow dom boundary - month [fail]-page/page-fill.spec.ts › input event.composed should be true and cross shadow dom boundary - time [fail]-page/page-fill.spec.ts › input event.composed should be true and cross shadow dom boundary - week [fail]-page/page-fill.spec.ts › should fill color input [fail]-page/page-fill.spec.ts › should fill color input case insensitive [fail]-page/page-fill.spec.ts › should fill date input after clicking [fail]-page/page-fill.spec.ts › should fill datetime-local input [fail]-page/page-fill.spec.ts › should fill month input [fail]-page/page-fill.spec.ts › should fill time input [fail]-page/page-fill.spec.ts › should fill week input [fail]+page/page-fill.spec.ts › FI-009 input event.composed should be true and cross shadow dom boundary - color [fail]+page/page-fill.spec.ts › FI-009 input event.composed should be true and cross shadow dom boundary - date [fail]+page/page-fill.spec.ts › FI-009 input event.composed should be true and cross shadow dom boundary - datetime-local [fail]+page/page-fill.spec.ts › FI-009 input event.composed should be true and cross shadow dom boundary - month [fail]+page/page-fill.spec.ts › FI-009 input event.composed should be true and cross shadow dom boundary - time [fail]+page/page-fill.spec.ts › FI-009 input event.composed should be true and cross shadow dom boundary - week [fail]+page/page-fill.spec.ts › FI-006 should fill color input [fail]+page/page-fill.spec.ts › FI-007 should fill color input case insensitive [fail]+page/page-fill.spec.ts › FI-008 should fill date input after clicking [fail]+page/page-fill.spec.ts › FI-013 should fill datetime-local input [fail]+page/page-fill.spec.ts › FI-011 should fill month input [fail]+page/page-fill.spec.ts › FI-010 should fill time input [fail]+page/page-fill.spec.ts › FI-012 should fill week input [fail]page/page-fill.spec.ts › should throw on incorrect color value [fail]page/page-fill.spec.ts › should throw on incorrect datetime-local [fail]@@ -678,54 +678,54 @@ page/page-fill.spec.ts › should throw on incorrect datetime-local [fail]# leaves the page target dead for the next test's first navigation (see the# worker-remaining section). Re-run and prune this section as triggers are fixed.# ============================================================================-page/elementhandle-owner-frame.spec.ts › should work for adopted elements [fail]-page/elementhandle-query-selector.spec.ts › should work for adopted elements [fail]-page/elementhandle-scroll-into-view.spec.ts › should scroll display:contents into view [fail]-page/frame-hierarchy.spec.ts › should send "framenavigated" when navigating on anchor URLs [fail]-page/interception.spec.ts › should intercept worker requests when enabled after worker creation [fail]+page/elementhandle-owner-frame.spec.ts › EH-061 should work for adopted elements [fail]+page/elementhandle-query-selector.spec.ts › EH-069 should work for adopted elements [fail]+page/elementhandle-scroll-into-view.spec.ts › EH-096 should scroll display:contents into view [fail]+page/frame-hierarchy.spec.ts › FR-026 should send "framenavigated" when navigating on anchor URLs [fail]+page/interception.spec.ts › RO-158 should intercept worker requests when enabled after worker creation [fail]# The custom selector navigates cross-process from inside query(), killing the# page target.-page/locator-query.spec.ts › count() should not throw during navigation [fail]-page/network-post-data.spec.ts › should get post data for file/blob [fail]-page/network-post-data.spec.ts › should get post data for navigator.sendBeacon api calls [fail]-page/page-add-init-script.spec.ts › should work after a cross origin navigation [fail]-page/page-autowaiting-basic.spec.ts › should await cross-process navigation when clicking anchor [fail]-page/page-autowaiting-basic.spec.ts › should await form-get on click [fail]-page/page-basic.spec.ts › page.close should work with window.close [fail]-page/page-basic.spec.ts › should provide access to the opener page [fail]-page/page-click-scroll.spec.ts › should scroll into view display:contents [fail]-page/page-click-scroll.spec.ts › should scroll into view display:contents with position [fail]-page/page-click.spec.ts › should click a very large button with offset [fail]-page/page-click.spec.ts › should click the button when window.innerWidth is corrupted [fail]-page/page-click.spec.ts › should select the text by triple clicking [fail]-page/page-dispatchevent.spec.ts › should dispatch click when node is added in shadow dom [fail]-page/page-evaluate.spec.ts › should not throw an error when evaluation does a navigation [fail]-page/page-evaluate.spec.ts › should transfer 100Mb of data from page to node.js [fail]-page/page-expose-function.spec.ts › should work on frames [fail]-page/page-expose-function.spec.ts › should work on frames before navigation [fail]-page/page-goto.spec.ts › js redirect overrides url bar navigation [fail]-page/page-request-fulfill.spec.ts › should fulfill preload link requests [fail]-page/page-route.spec.ts › should not fulfill with redirect status [fail]-page/page-screenshot.spec.ts › page screenshot animations › should trigger particular events for INfinite css animation [fail]-page/page-screenshot.spec.ts › page screenshot animations › should trigger particular events for finite css animation [fail]-page/page-wait-for-function.spec.ts › should survive navigations [fail]-page/page-wait-for-load-state.spec.ts › should wait for load state of about:blank popup [fail]-page/page-wait-for-load-state.spec.ts › should wait for load state of about:blank popup with noopener [fail]-page/page-wait-for-load-state.spec.ts › should wait for load state of popup with network url [fail]-page/page-wait-for-load-state.spec.ts › should wait for load state of popup with network url and noopener [fail]-page/page-wait-for-load-state.spec.ts › should work with clicking target=_blank [fail]-page/page-wait-for-load-state.spec.ts › should work with pages that have loaded before being connected to [fail]-page/page-wait-for-navigation.spec.ts › should work on frame [fail]-page/page-wait-for-navigation.spec.ts › should work with clicking on anchor links [fail]-page/page-wait-for-navigation.spec.ts › should work with history.pushState() [fail]-page/page-wait-for-navigation.spec.ts › should work with history.replaceState() [fail]-page/page-wait-for-navigation.spec.ts › should work with url match for same document navigations [fail]-page/page-wait-for-selector-2.spec.ts › should support >> selector syntax [fail]-page/page-wait-for-url.spec.ts › should work with clicking on anchor links [fail]-page/page-wait-for-url.spec.ts › should work with history.pushState() [fail]-page/page-wait-for-url.spec.ts › should work with history.replaceState() [fail]-page/page-wait-for-url.spec.ts › should work with url match for same document navigations [fail]-page/retarget.spec.ts › should check the box outside shadow dom label [fail]+page/locator-query.spec.ts › LO-182 count() should not throw during navigation [fail]+page/network-post-data.spec.ts › NE-112 should get post data for file/blob [fail]+page/network-post-data.spec.ts › NE-113 should get post data for navigator.sendBeacon api calls [fail]+page/page-add-init-script.spec.ts › IS-008 should work after a cross origin navigation [fail]+page/page-autowaiting-basic.spec.ts › AW-003 should await cross-process navigation when clicking anchor [fail]+page/page-autowaiting-basic.spec.ts › AW-004 should await form-get on click [fail]+page/page-basic.spec.ts › PA-011 page.close should work with window.close [fail]+page/page-basic.spec.ts › PA-003 should provide access to the opener page [fail]+page/page-click-scroll.spec.ts › CL-095 should scroll into view display:contents [fail]+page/page-click-scroll.spec.ts › CL-097 should scroll into view display:contents with position [fail]+page/page-click.spec.ts › CL-040 should click a very large button with offset [fail]+page/page-click.spec.ts › CL-065 should click the button when window.innerWidth is corrupted [fail]+page/page-click.spec.ts › CL-016 should select the text by triple clicking [fail]+page/page-dispatchevent.spec.ts › DE-008 should dispatch click when node is added in shadow dom [fail]+page/page-evaluate.spec.ts › EV-064 should not throw an error when evaluation does a navigation [fail]+page/page-evaluate.spec.ts › EV-067 should transfer 100Mb of data from page to node.js [fail]+page/page-expose-function.spec.ts › EF-010 should work on frames [fail]+page/page-expose-function.spec.ts › EF-011 should work on frames before navigation [fail]+page/page-goto.spec.ts › NA-038 js redirect overrides url bar navigation [fail]+page/page-request-fulfill.spec.ts › RO-115 should fulfill preload link requests [fail]+page/page-route.spec.ts › RO-033 should not fulfill with redirect status [fail]+page/page-screenshot.spec.ts › page screenshot animations › SS-062 should trigger particular events for INfinite css animation [fail]+page/page-screenshot.spec.ts › page screenshot animations › SS-063 should trigger particular events for finite css animation [fail]+page/page-wait-for-function.spec.ts › WA-021 should survive navigations [fail]+page/page-wait-for-load-state.spec.ts › WA-084 should wait for load state of about:blank popup [fail]+page/page-wait-for-load-state.spec.ts › WA-085 should wait for load state of about:blank popup with noopener [fail]+page/page-wait-for-load-state.spec.ts › WA-086 should wait for load state of popup with network url [fail]+page/page-wait-for-load-state.spec.ts › WA-087 should wait for load state of popup with network url and noopener [fail]+page/page-wait-for-load-state.spec.ts › WA-088 should work with clicking target=_blank [fail]+page/page-wait-for-load-state.spec.ts › WA-082 should work with pages that have loaded before being connected to [fail]+page/page-wait-for-navigation.spec.ts › WA-108 should work on frame [fail]+page/page-wait-for-navigation.spec.ts › WA-099 should work with clicking on anchor links [fail]+page/page-wait-for-navigation.spec.ts › WA-101 should work with history.pushState() [fail]+page/page-wait-for-navigation.spec.ts › WA-102 should work with history.replaceState() [fail]+page/page-wait-for-navigation.spec.ts › WA-106 should work with url match for same document navigations [fail]+page/page-wait-for-selector-2.spec.ts › WA-062 should support >> selector syntax [fail]+page/page-wait-for-url.spec.ts › WA-115 should work with clicking on anchor links [fail]+page/page-wait-for-url.spec.ts › WA-116 should work with history.pushState() [fail]+page/page-wait-for-url.spec.ts › WA-117 should work with history.replaceState() [fail]+page/page-wait-for-url.spec.ts › WA-119 should work with url match for same document navigations [fail]+page/retarget.spec.ts › RE-005 should check the box outside shadow dom label [fail]# ============================================================================# busy-main-thread (1 test)@@ -733,5 +733,5 @@ page/retarget.spec.ts › should check the box outside shadow dom label [fail]# can't recover from without a full process restart. Left to run, its teardown would# exhaust the page fixture timeout and expensively recycle the worker on every shard.# ============================================================================-page/page-set-content.spec.ts › should handle timeout properly 2 [fail]+page/page-set-content.spec.ts › PA-037 should handle timeout properly 2 [fail]diff --git a/utils/lint_tests.js b/utils/lint_tests.jsindex 06b4f6d0f4..bc28418785 100644--- a/utils/lint_tests.js+++ b/utils/lint_tests.js@@ -20,7 +20,7 @@ const path = require('path');// Note: we ignore stdout for smaller output.try {- execSync('npm run test -- --list --forbid-only', {+ execSync('npm run test -- --list --forbid-only --reporter=./tests/config/registryReporter.ts', {stdio: ['ignore', 'ignore', 'inherit'],cwd: path.join(__dirname, '..'),});