René's URL Explorer Experiment


Title: Update dependency @playwright/test to v1.64.1 by renovate[bot] · Pull Request #79 · developing-today/code · GitHub

Open Graph Title: Update dependency @playwright/test to v1.64.1 by renovate[bot] · Pull Request #79 · developing-today/code

X Title: Update dependency @playwright/test to v1.64.1 by renovate[bot] · Pull Request #79 · developing-today/code

Description: NoteThis PR body was truncated due to platform limits. This PR contains the following updates: Package Change Age Confidence @playwright/test (source) 1.28.0 → 1.64.1 @playwright/test (source) 1.63.0 → 1.64.1 Release Notes microsoft/playwright (@​playwright/test) v1.64.1 Compare Source Bug Fixes #​43247 [Bug]: _electron.launch intermittently loses a packaged app's first window since 1.64.0 #​43242 [Regression]: Chromium 155+ aborts a preflighted cross-origin redirect whenever any route is registered (net::ERR_ABORTED) v1.64.0 Compare Source 🧰 WebMCP New page.webmcp and frame.webmcp give access to the tools that a page registers through the experimental WebMCP browser API, so you can test them like any other part of your app: const browser = await chromium.launch({ args: ['--enable-features=WebMCP'] }); const page = await browser.newPage(); await page.goto('https://example.com'); for (const tool of await page.webmcp.tools()) console.log(tool.name, tool.description); const result = await page.webmcp.callTool('add', { a: 2, b: 40 }); console.log(result.content[0].text); // "42" Playwright MCP also supports WebMCP by default, with page-defined tools offered to the agent as webmcp_. Pass --no-webmcp to opt out. playwright-cli exposes them as well: playwright-cli webmcp-list playwright-cli webmcp-call search_catalog --params '{"query":"cats"}' 🎬 Better videos Videos can now be recorded at a custom frame rate, and the decorations for actions are styled with plain CSS: // playwright.config.ts import { defineConfig } from '@playwright/test'; export default defineConfig({ use: { video: { mode: 'on', size: { width: 1920, height: 1080 }, fps: 60, show: { actions: { style: { point: 'width: 20px; height: 20px; border-radius: 50%; background: red', highlight: 'outline: 2px solid #​333; background: rgba(0, 128, 255, .15)', title: 'font-size: 16px', }, }, }, }, }, }); New fps option in testOptions.video, recordVideo and screencast.start(). Firefox and WebKit currently capture up to 25 frames per second. New style option takes CSS declarations for the point marker, the target highlight and the action title. It replaces the fontSize option, which is now deprecated. The cursor stays visible at the last action point, survives navigations and travels along a natural, eased path. Videos are encoded with VP9 instead of VP8, which takes less CPU and produces smaller files of the same or better quality. All video options are also available in Playwright MCP and playwright-cli. 🎯 Test runner New testProject.default option keeps a project in the config without running it by default. You can configure every browser you care about, and let a plain npx playwright test run just your favourite one: // playwright.config.ts import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ projects: [ { name: 'chromium', use: devices['Desktop Chrome'] }, { name: 'firefox', use: devices['Desktop Firefox'], default: false }, { name: 'webkit', use: devices['Desktop Safari'], default: false }, ], }); npx playwright test # runs chromium only npx playwright test --project=firefox # runs firefox npx playwright test --project="*" # runs all three, for example on CI New --shuffle command line option schedules tests in a random order, which helps to find tests that accidentally depend on each other. npx playwright test --shuffle # Running 42 tests using 4 workers, shuffle seed 271828182 # ... # Pass the seed to reproduce the same order. npx playwright test --shuffle 271828182 New lock option in test.describe.configure() adds test locks to all tests in a file or a group: test.describe.configure({ lock: 'user-settings' }); New type option of toHaveScreenshot in testConfig.expect stores all unnamed screenshots as WebP: // playwright.config.ts export default defineConfig({ expect: { toHaveScreenshot: { type: 'webp' }, }, }); 🪆 Locator.within() New locator.within() combines two locators that you already have, reading in the natural order — "this button, within that dialog": const saveButton = page.getByRole('button', { name: 'Save' }); const dialog = page.getByTestId('settings-dialog'); await saveButton.within(dialog).click(); Relative locators such as locator.nth() or locator.first() are resolved inside each parent separately, which makes column-like queries straightforward: // The third cell of every row, not the third cell in the table. const thirdColumn = page.getByRole('cell').nth(2).within(page.getByRole('row')); await expect(thirdColumn).toHaveText(['Apple', 'Banana', 'Cherry']); New APIs New page.getByRef() locates an element by its aria ref, such as e2, reported by page.ariaSnapshot() in the 'ai' mode. New option includeShadow in page.content() and frame.content() serializes open shadow roots as declarative shadow DOM. New option signCount sets the initial signature counter of a virtual credential. credentials.create() and credentials.get() return the current signCount, and it is saved and restored together with the credentials in the storage state. New fullConfig.filteredProjects lists the projects that were selected to run after applying the --project filter. It is available in global setup and reporters. New apiRequestContext.addCookies(), apiRequestContext.cookies() and apiRequestContext.clearCookies() manage cookies of a request context, mirroring the BrowserContext methods: await request.addCookies([{ name: 'session-id', value: '42', url: 'https://example.com' }]); console.log(await request.cookies('https://example.com')); await request.clearCookies({ name: 'session-id' }); Breaking changes ⚠️ screen property is now forwarded from the device descriptors. If you use ...devices['Desktop Chrome'] and alike, window.screen and media queries now see the emulated screen size. You can opt-out by explicitly setting screen to undefined: // playwright.config.ts export default defineConfig({ use: { ...devices['Desktop Chrome'], screen: undefined, }, }); JSX in your test files now follows your tsconfig.json. Playwright compiles JSX in test files according to the jsx, jsxFactory, jsxFragmentFactory and jsxImportSource tsconfig options, and defaults to the automatic runtime from react/jsx-runtime. --update-snapshots=missing now passes the test run. Tests that only create missing snapshots now pass in the 'missing' mode of testConfig.updateSnapshots, so that CI can generate new snapshots and verify the existing ones in a single run. The mode used when the option is not specified is now called 'default' and behaves as before: missing snapshots are written and the test fails. Elements inside hidden iframes are considered hidden. Elements inside an iframe that is not visible, for example with visibility: hidden, are now considered hidden by actions, locator.isVisible() and expect(locator).toBeVisible(). Browser Versions Chromium 156.0.8078.4 Mozilla Firefox 157.0 WebKit 27.2 This version was also tested against the following stable channels: Google Chrome 155 Microsoft Edge 155 v1.63.0 Compare Source 🔒 Test locks Tests that access a shared resource — an external service, a global account setting — can now declare a named lock. Tests that share a lock name never run concurrently, across files, workers and projects, while everything else keeps running in parallel: test('update user settings', { lock: 'user-settings' }, async ({ page }) => { // never runs at the same time as other tests holding 'user-settings' }); A test can hold multiple locks, and test.describe() accepts a lock for the whole group. Learn more about test locks. 🪟 Locate across frames page.frameLocator() and frame.frameLocator() called without a selector search in any frame of the subtree, so you no longer need to locate the iframe first: // Finds the button in any frame on the page. await page.frameLocator().getByRole('button').click(); The rest of the locator resolves inside a single frame, just like a regular locator, and an error is thrown when it matches elements in several frames. 👁️ Visible-only locators New locator.visible() returns a locator that matches only visible elements. It is the recommended replacement for the :visible CSS pseudo-class: await page.locator('button').visible().click(); 🧾 Step params and subtitles Steps now carry structured data for reporters. Playwright API steps report the target locator and call arguments, and test.step() accepts subtitle and params options for your own steps: await test.step('Login', async () => { // ... }, { subtitle: 'as admin', params: { user: 'admin' } }); Reporters receive them via testStep.subtitle and testStep.params. For Playwright API steps, the subtitle is the locator or the navigation url — for example, Click with subtitle getByRole('button'). Both are rendered next to the step title in the trace viewer and the HTML report. 🖼️ Aria and screen snapshots in traces The snapshots option of tracing.start() and the testOptions.trace fixture option now accept an object selecting what to capture on every action: // playwright.config.ts export default defineConfig({ use: { trace: { mode: 'on', snapshots: { dom: true, aria: true, screen: true } }, }, }); With aria and screen snapshots recorded, the new Display Aria mode in the trace viewer shows the action screenshot side by side with the aria snapshot, and hovering an aria node highlights it on the screenshot. New APIs Browser and Context httpCredentials now also accepts an array of credentials. The first entry matching the request origin is used, and entries without an origin match any request. New option opfs includes the origin private file system in the storage state, so it can be persisted and restored into later contexts. New events page.on('dialogclosed') and browserContext.on('dialogclosed') are emitted when a JavaScript dialog is accepted, dismissed or closed by the user. Locators New locator.ariaSnapshotJSON() and page.ariaSnapshotJSON() return the aria snapshot as a JSON value instead of YAML markup, with mode, depth and boxes options. apiRequestContext.get() and other request methods accept a type argument that types the response json(): const response = await request.get('/api/users/42'); const user = await response.json(); // typed as User Test runner New standalone testOptions.reducedMotion, testOptions.forcedColors and testOptions.contrast options. New --add-reporter command line option appends a reporter on top of the ones configured in playwright.config, instead of replacing them like --reporter does. New omitTags option for the list, line, dot, github and junit reporters suppresses the tags that are automatically appended to test titles. Command line npx playwright install --no-remove keeps the browsers of other Playwright installations instead of removing them. npx playwright codegen --http-credentials records against pages behind HTTP authentication. Miscellaneous New built-in perfetto reporter writes a Trace Event Format file for the Perfetto UI or chrome://tracing, rendering the test run as a timeline with a lane per worker. The HTML report renders a duration waterfall next to test steps. Announcements ⚠️ The experimental @playwright/experimental-ct-react, @playwright/experimental-ct-react17 and @playwright/experimental-ct-vue packages will no longer be updated. Follow the migration guide to move to the stories model introduced in 1.62. Story ids passed to fixtures.mount() can now be typed through the generated Stories registry. ⚠️ Ubuntu 20.04 is not supported anymore. 🐧 On Linux arm64, Playwright now downloads the Chrome for Testing build of Chromium, the same build used on all other platforms. Browser Versions Chromium 153.0.8010.12 Mozilla Firefox 155.0 WebKit 26.6 This version was also tested against the following stable channels: Google Chrome 153 Microsoft Edge 153 v1.62.1 Compare Source Bug Fixes #​41989 [Regression]: tsconfig "extends" bare specifier isn't resolved via node_modules walk-up like tsc (fatal since 1.62) #​41998 [Regression]: directory-form tsconfig project references ("path": "../pkg") fail to resolve (fatal since 1.62) #​41985 Accessibility snapshot drops button name when text is nested inside spans with aria-hidden SVG #​42000 [Regression]: page.evaluate() arg of a branded primitive type (string & { brand }) no longer type-checks since 1.62 #​42013 [BUG]Image-type actionable elements are not presented in the snapshot. v1.62.0 Compare Source 🧱 New component testing model Component testing moves to a stories and galleries model. A story wraps your component in one specific scenario — hard-coded props, mock data, providers — and a gallery page that you serve renders stories on demand. The new fixtures.mount() fixture navigates to the gallery, mounts a story by id, and returns a Locator scoped to the story's root element: test('click should expand', async ({ mount }) => { const component = await mount('components/Expandable/Stateful'); await component.getByRole('button').click(); await expect(component.getByTestId('expanded')).toHaveValue('true'); }); Pass a story type as a template argument to type-check its props, and use update(props) / unmount() on the returned locator to re-render or tear down within a test. 🛑 Cancel operations with AbortSignal Most operations and web-first assertions now accept a signal option that takes an AbortSignal, letting you cancel long-running actions, navigations, waits, and assertions: const controller = new AbortController(); setTimeout(() => controller.abort(), 1000); await page.getByRole('button', { name: 'Submit' }).click({ signal: controller.signal }); await expect(page.getByText('Done')).toBeVisible({ signal: controller.signal }); Providing a signal does not disable the default timeout; pass timeout: 0 to disable it. 🖼️ WebP screenshots expect(page).toHaveScreenshot() and expect(locator).toHaveScreenshot() can now store snapshots in the WebP format — just give the snapshot a .webp name: // Visual comparisons store the golden snapshot as lossless WebP. await expect(page).toHaveScreenshot('homepage.webp'); // Standalone screenshots can trade quality for size with lossy WebP. await page.screenshot({ path: 'homepage.webp', quality: 50 }); page.screenshot() and [locator.screenshot() (https://playwright.dev/docs/api/class-locator#locator-screenshot) also accept webp as a type, where quality 100 (the default) is lossless and lower values use lossy compression. 🧩 Custom test filtering with Reporter.preprocess() New reporter.preprocess() hook runs after the configuration is resolved and before reporter.onBegin(), letting a reporter mark individual tests as skipped, excluded, fixed, or failing through a TestRun object: class MyReporter { async preprocess({ config, suite, testRun }) { for (const test of suite.allTests()) { if (shouldSkip(test)) testRun.skip(test); } } } 🔁 Isolated retries New testConfig.retryStrategy controls when failed tests are retried. The default 'immediate' retries as soon as a worker is free; 'isolated' runs all retries at the end, one by one in a single worker, to minimize interference with the rest of the suite: // playwright.config.ts export default defineConfig({ retries: 2, retryStrategy: 'isolated', }); New APIs Browser and Context New option credentials includes the context's virtual WebAuthn Credentials (passkeys) in the storage state, so they can be persisted and re-seeded into later contexts. Actions New scroll option ("auto" | "none") on actions to opt out of Playwright's automatic scroll-into-view. Network New apiResponse.timing() returns resource timing information for an API response. Evaluation New locator.waitForFunction() waits until a function — called with the matching element — returns a truthy value. page.evaluate() and related methods now accept functions as evaluate arguments. page.addInitScript() / browserContext.addInitScript() now accept functions as init-script arguments. Command line & MCP Playwright now bundles the Playwright MCP server and playwright-cli, runnable via npx playwright mcp and npx playwright cli. Reporters The HTML report's Merge files grouping — previously only a UI toggle — can now be enabled from the config with the new mergeFiles reporter option: // playwright.config.ts export default defineConfig({ reporter: [['html', { mergeFiles: true }]], }); Announcements ⚠️ Debian 11 is not supported anymore. Browser Versions Chromium 151.0.7922.34 Mozilla Firefox 153.0 WebKit 26.5 This version was also tested against the following stable channels: Google Chrome 151 Microsoft Edge 151 v1.61.1 Compare Source Bug Fixes #​41365 [Bug]: Expect.Extend matcher with same name as default matcher in same expect instance overrides default matchers implementation to custom matcher #​41351 [Bug]: Playwright UI mode: apiRequestContext._wrapApiCall reports unexpected number of bytes (same test passes in headed mode) #​41360 [Bug]: Trace viewer: message times in websockets are downscaled by 1000 #​41311 [Bug]: [Regression]: Sync loader throws "context.conditions?.includes is not a function" on Node 22.15 #​41371 [Regression]: Sync ESM loader (registerHooks) fails to resolve extensionless .ts subpath imports across pnpm workspace symlinks v1.61.0 Compare Source 🔑 WebAuthn passkeys New Credentials virtual authenticator, available via browserContext.credentials, lets tests register passkeys and answer navigator.credentials.create() / navigator.credentials.get() ceremonies in the page — no real hardware key required, works in all browsers: const context = await browser.newContext(); // Seed a passkey your backend provisioned for a test user. await context.credentials.create('example.com', { id: credentialId, userHandle, privateKey, publicKey, }); await context.credentials.install(); const page = await context.newPage(); await page.goto('https://example.com/login'); // The page's navigator.credentials.get() is answered with the seeded passkey. You can also let the app register a passkey once in a setup test, read it back with credentials.get(), and seed it into later tests — see Credentials for details. 🗃️ Web Storage New WebStorage API, available via page.localStorage and page.sessionStorage, reads and writes the page's storage for the current origin: await page.localStorage.setItem('token', 'abc'); const token = await page.localStorage.getItem('token'); const items = await page.sessionStorage.items(); New APIs Network apiResponse.securityDetails() and apiResponse.serverAddr() mirror the browser-side response.securityDetails() and response.serverAddr(). Browser and Screencast New option artifactsDir in browserType.connectOverCDP() controls where artifacts such as traces and downloads are stored when attached to an existing browser. New option cursor in screencast.showActions() controls the cursor decoration rendered for pointer actions. The onFrame callback in screencast.start() now receives a timestamp of when the frame was presented by the browser. Test runner The testOptions.video option now supports the same set of modes as trace: new 'on-all-retries', 'retain-on-first-failure' and 'retain-on-failure-and-retries' values. See the video modes table for which runs are recorded and kept in each mode. Supported expect.soft.poll(...). New fullConfig.argv — a snapshot of process.argv from the runner process, handy for reading custom arguments passed after the -- separator. New fullConfig.failOnFlakyTests mirrors the config option, so reporters can explain why a flaky run failed. testInfo.errors now lists each sub-error of an AggregateError as a separate entry. New -G command line shorthand for --grep-invert. 🛠️ Other improvements Playwright now supports Ubuntu 26.04. HAR and trace recordings now include WebSocket requests. Browser Versions Chromium 149.0.7827.55 Mozilla Firefox 151.0 WebKit 26.5 This version was also tested against the following stable channels: Google Chrome 149 Microsoft Edge 149 v1.60.0 Compare Source 🌐 HAR recording on Tracing tracing.startHar() / tracing.stopHar() expose HAR recording as a first-class tracing API, with the same content, mode and urlFilter options as recordHar. The returned Disposable makes it easy to scope a recording with await using: await using har = await context.tracing.startHar('trace.har'); const page = await context.newPage(); await page.goto('https://playwright.dev'); // HAR is finalized when `har` goes out of scope. 🪝 Drop API New locator.drop() simulates an external drag-and-drop of files or clipboard-like data onto an element. Playwright dispatches dragenter, dragover, and drop with a synthetic [DataTransfer] in the page context — works cross-browser and is great for testing upload zones: await page.locator('#dropzone').drop({ files: { name: 'note.txt', mimeType: 'text/plain', buffer: Buffer.from('hello') }, }); await page.locator('#dropzone').drop({ data: { 'text/plain': 'hello world', 'text/uri-list': 'https://example.com', }, }); 🎯 Aria snapshots expect(page).toMatchAriaSnapshot() now works on a Page, in addition to a Locator — equivalent to asserting against page.locator('body'). New boxes option on locator.ariaSnapshot() / page.ariaSnapshot() appends each element's bounding box as [box=x,y,width,height], useful for AI consumption. 🛑 test.abort() New test.abort() aborts the currently running test from a fixture, hook, or route handler with an optional message. Use it when you have detected an unrecoverable misuse and want to fail the test right away: test('does not publish to the shared page', async ({ page }) => { await page.route('**/publish', route => { test.abort('Tests must not publish to the shared page. Use the `clone` option.'); return route.abort(); }); // ... }); New APIs Browser, Context and Page Event browser.on('context') — fired when a new context is created on the browser. BrowserContext now mirrors lifecycle events from its pages: browserContext.on('download'), browserContext.on('frameattached'), browserContext.on('framedetached'), browserContext.on('framenavigated'), browserContext.on('pageclose'), browserContext.on('pageload'). Locators and Assertions New option description in page.getByRole() / locator.getByRole() / frame.getByRole() / frameLocator.getByRole() for matching the accessible description. New option pseudo in expect(locator).toHaveCSS() reads computed styles from ::before or ::after. New option style in locator.highlight() applies extra inline CSS to the highlight overlay, plus new page.hideHighlight() to clear all highlights. Network webSocketRoute.protocols() returns the WebSocket subprotocols requested by the page. New option noDefaults in browserType.connectOverCDP() disables Playwright's default overrides on the default context (download behavior, focus emulation, media emulation), so attaching to a user's daily-driver browser doesn't disturb its state. Errors and Reporting New webError.location() mirrors consoleMessage.location(). consoleMessage.location() now exposes line / column properties (lineNumber / columnNumber are deprecated). New testInfoError.errorContext surfaces additional diagnostic context, such as the aria snapshot of the receiver at the time of an expect(...) matcher failure. reporter.onError() now receives a workerInfo argument with details about the worker for fixture teardown errors. Test runner New {testFileBaseName} token in testProject.snapshotPathTemplate — file name without extension. Test runner now errors when a config tries to override a non-option fixture, and rejects workers: 0 or negative values. 🛠️ Other improvements HTML reporter: npx playwright show-report accepts .zip files directly — no need to unzip first. Steps that contain attachments inside nested children show an indicator on the parent step. The repeatEachIndex is shown in the test header when non-zero. Trace Viewer adds a pretty-print toggle for JSON / form request and response bodies in the network details panel. Breaking Changes ⚠️ Removed long-deprecated APIs: Locator.ariaRef() — use the standard locator.ariaSnapshot() pipeline. handle option on BrowserContext.exposeBinding and Page.exposeBinding. logger option on BrowserType.connect and BrowserType.connectOverCDP — use tracing instead. Context options videosPath / videoSize — use recordVideo instead. Browser Versions Chromium 148.0.7778.96 Mozilla Firefox 150.0.2 WebKit 26.4 This version was also tested against the following stable channels: Google Chrome 147 Microsoft Edge 147 v1.59.1 Compare Source Bug Fixes [Windows] Reverted hiding console window when spawning browser processes, which caused regressions including broken codegen, --ui and show commands (#​39990) v1.59.0 Compare Source 🎬 Screencast New page.screencast API provides a unified interface for capturing page content with: Screencast recordings Action annotations Visual overlays Real-time frame capture Agentic video receipts Screencast recording — record video with precise start/stop control, as an alternative to the recordVideo option: await page.screencast.start({ path: 'video.webm' }); // ... perform actions ... await page.screencast.stop(); Action annotations — enable built-in visual annotations that highlight interacted elements and display action titles during recording: await page.screencast.showActions({ position: 'top-right' }); screencast.showActions() accepts position ('top-left', 'top', 'top-right', 'bottom-left', 'bottom', 'bottom-right'), duration (ms per annotation), and fontSize (px). Returns a disposable to stop showing actions. Action annotations can also be enabled in test fixtures via the video option: // playwright.config.ts export default defineConfig({ use: { video: { mode: 'on', show: { actions: { position: 'top-left' }, test: { position: 'top-right' }, }, }, }, }); Visual overlays — add chapter titles and custom HTML overlays on top of the page for richer narration: await page.screencast.showChapter('Adding TODOs', { description: 'Type and press enter for each TODO', duration: 1000, }); await page.screencast.showOverlay('

Recording
'); Real-time frame capture — stream JPEG-encoded frames for custom processing like thumbnails, live previews, AI vision, and more: await page.screencast.start({ onFrame: ({ data }) => sendToVisionModel(data), size: { width: 800, height: 600 }, }); Agentic video receipts — coding agents can produce video evidence of their work. After completing a task, an agent can record a walkthrough video with rich annotations for human review: await page.screencast.start({ path: 'receipt.webm' }); await page.screencast.showActions({ position: 'top-right' }); await page.screencast.showChapter('Verifying checkout flow', { description: 'Added coupon code support per ticket #​1234', }); // Agent performs the verification steps... await page.locator('#coupon').fill('SAVE20'); await page.locator('#apply-coupon').click(); await expect(page.locator('.discount')).toContainText('20%'); await page.screencast.showChapter('Done', { description: 'Coupon applied, discount reflected in total', }); await page.screencast.stop(); The resulting video serves as a receipt: chapter titles provide context, action annotations highlight each interaction, and the visual walkthrough is faster to review than text logs. 🔗 Interoperability New browser.bind() API makes a launched browser available for playwright-cli, @playwright/mcp, and other clients to connect to. Bind a browser — start a browser and bind it so others can connect: const { endpoint } = await browser.bind('my-session', { workspaceDir: '/my/project', }); Connect from playwright-cli — connect to the running browser from your favorite coding agent. playwright-cli attach my-session playwright-cli -s my-session snapshot Connect from @​playwright/mcp — or point your MCP server to the running browser. @playwright/mcp --endpoint=my-session Connect from a Playwright client — use API to connect to the browser. Multiple clients at a time are supported! const browser = await chromium.connect(endpoint); Pass host and port options to bind over WebSocket instead of a named pipe: const { endpoint } = await browser.bind('my-session', { host: 'localhost', port: 0, }); // endpoint is a ws:// URL Call browser.unbind() to stop accepting new connections. 📊 Observability Run playwright-cli show to open the Dashboard that lists all the bound browsers, their statuses, and allows interacting with them: See what your agent is doing on the background browsers Click into the sessions for manual interventions Open DevTools to inspect pages from the background browsers. - `playwright-cli` binds all of its browsers automatically, so you can see what your agents are doing. - Pass `PLAYWRIGHT_DASHBOARD=1` env variable to see all `@playwright/test` browsers in the dashboard. 🐛 CLI debugger for agents Coding agents can now run npx playwright test --debug=cli to attach and debug tests over playwright-cli — perfect for automatically fixing tests in agentic workflows: $ npx playwright test --debug=cli ### Debugging Instructions - Run "playwright-cli attach tw-87b59e" to attach to this test $ playwright-cli attach tw-87b59e ### Session `tw-87b59e` created, attached to `tw-87b59e`. Run commands with: playwright-cli --session=tw-87b59e ### Paused - Navigate to "/" at output/tests/example.spec.ts:4 $ playwright-cli --session tw-87b59e step-over ### Page - Page URL: https://playwright.dev/ - Page Title: Fast and reliable end-to-end testing for modern web apps | Playwright ### Paused - Expect "toHaveTitle" at output/tests/example.spec.ts:7 📋 CLI trace analysis for agents Coding agents can run npx playwright trace to explore Playwright Trace and understand failing or flaky tests from the command line: $ npx playwright trace open test-results/example-has-title-chromium/trace.zip Title: example.spec.ts:3 › has title $ npx playwright trace actions --grep="expect" # Time Action Duration ──── ───────── ─────────────────────────────────────────────────────── ──────── 9. 0:00.859 Expect "toHaveTitle" 5.1s ✗ $ npx playwright trace action 9 Expect "toHaveTitle" Error: expect(page).toHaveTitle(expected) failed Expected pattern: /Wrong Title/ Received string: "Fast and reliable end-to-end testing for modern web apps | Playwright" Timeout: 5000ms Snapshots available: before, after usage: npx playwright trace snapshot 9 --name $ npx playwright trace snapshot 9 --name after ### Page - Page Title: Fast and reliable end-to-end testing for modern web apps | Playwright $ npx playwright trace close ♻️ await using Many APIs now return async disposables, enabling the await using syntax for automatic cleanup: await using page = await context.newPage(); { await using route = await page.route('**/*', route => route.continue()); await using script = await page.addInitScript('console.log("init script here")'); await page.goto('https://playwright.dev'); // do something } // route and init script have been removed at this point 🔍 Snapshots and Locators Method page.ariaSnapshot() to capture the aria snapshot of the page — equivalent to page.locator('body').ariaSnapshot(). Options depth and mode in locator.ariaSnapshot(). Method locator.normalize() converts a locator to follow best practices like test ids and aria roles. Method page.pickLocator() enters an interactive mode where hovering over elements highlights them and shows the corresponding locator. Click an element to get its Locator back. Use page.cancelPickLocator() to cancel. New APIs Screencast page.screencast provides video recording, real-time frame streaming, and overlay management. Methods screencast.start() and screencast.stop() for recording and frame capture. Methods screencast.showActions() and screencast.hideActions() for action annotations. Methods screencast.showChapter() and screencast.showOverlay() for visual overlays. Methods screencast.showOverlays() and screencast.hideOverlays() for overlay visibility control. Storage, Console and Errors Method browserContext.setStorageState() clears existing cookies, local storage, and IndexedDB for all origins and sets a new storage state — no need to create a new context. Methods page.clearConsoleMessages() and page.clearPageErrors() to clear stored messages and errors. Option filter in page.consoleMessages() and page.pageErrors() controls which messages are returned. Method consoleMessage.timestamp(). Miscellaneous browserContext.debugger provides programmatic control over the Playwright debugger. Method browserContext.isClosed(). Method request.existingResponse() returns the response without waiting. Method response.httpVersion() returns the HTTP version used by the response. Events cdpSession.on('event') and cdpSession.on('close') for CDP sessions. Option live in tracing.start() for real-time trace updates. Option artifactsDir in browserType.launch() to configure the artifacts directory. 🛠️ Other improvements UI Mode has an option to only show tests affected by source changes. UI Mode and Trace Viewer have improved action filtering. HTML Reporter shows the list of runs from the same worker. HTML Reporter allows filtering test steps for quick search. New trace mode 'retain-on-failure-and-retries' records a trace for each test run and retains all traces when an attempt fails — great for comparing a passing trace with a failing one from a flaky test. Known Issues ⚠️⚠️ navigator.platform emulation can cause Ctrl or Meta dispatching errors (#​40009). Pass PLAYWRIGHT_NO_UA_PLATFORM = '1' environment variable while we are issuing a patch release. Let us know in the issue how it affected you. Breaking Changes ⚠️ Removed macOS 14 support for WebKit. We recommend upgrading your macOS version, or keeping an older Playwright version. Removed @playwright/experimental-ct-svelte package. junit test reporter now differentiates between types of errors, so some of the previous s are now reported as s. Browser Versions Chromium 147.0.7727.15 Mozilla Firefox 148.0.2 WebKit 26.4 This version was also tested against the following stable channels: Google Chrome 146 Microsoft Edge 146 v1.58.2 Compare Source Highlights #​39121 fix(trace viewer): make paths via stdin work #​39129 fix: do not force swiftshader on chromium mac Browser Versions Chromium 145.0.7632.6 Mozilla Firefox 146.0.1 WebKit 26.0 v1.58.1 Compare Source Highlights #​39036 fix(msedge): fix local network permissions #​39037 chore: update cft download location #​38995 chore(webkit): disable frame sessions on fronzen builds Browser Versions Chromium 145.0.7632.6 Mozilla Firefox 146.0.1 WebKit 26.0 v1.58.0 Compare Source 📣 Playwright CLI+SKILLs 📣 We are adding a new token-efficient CLI mode of operation to Playwright with the skills located at playwright-cli. This brings the long-awaited official SKILL-focused CLI mode to our story and makes it more coding agent-friendly. It is the first snapshot with the essential command set (which is already larger than the original MCP!), but we expect it to grow rapidly. Unlike the token use, that one we expect to go down since snapshots are no longer forced into the LLM! Timeline If you're using merged reports, the HTML report Speedboard tab now shows the Timeline: UI Mode and Trace Viewer Improvements New 'system' theme option follows your OS dark/light mode preference Search functionality (Cmd/Ctrl+F) is now available in code editors Network details panel has been reorganized for better usability JSON responses are now automatically formatted for readability Thanks to @​cpAdm for contributing these improvements! Miscellaneous browserType.connectOverCDP() now accepts an isLocal option. When set to true, it tells Playwright that it runs on the same host as the CDP server, enabling file system optimizations. Breaking Changes ⚠️ Removed _react and _vue selectors. See locators guide for alternatives. Removed :light selector engine suffix. Use standard CSS selectors instead. Option devtools from browserType.launch() has been removed. Use args: ['--auto-open-devtools-for-tabs'] instead. Removed macOS 13 support for WebKit. We recommend to upgrade your macOS version, or keep using an older Playwright version. Browser Versions Chromium 145.0.7632.6 Mozilla Firefox 146.0.1 WebKit 26.0 This version was also tested against the following stable channels: Google Chrome 144 Microsoft Edge 144 v1.57.0 Compare Source Speedboard In HTML reporter, there's a new tab we call "Speedboard": It shows you all your executed tests sorted by slowness, and can help you understand where your test suite is taking longer than expected. Take a look at yours - maybe you'll find some tests that are spending a longer time waiting than they should! [!IMPORTANT] ✂ PR body was truncated to here. Configuration 📅 Schedule: (UTC) Branch creation At any time (no schedule defined) Automerge At any time (no schedule defined) 🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied. ♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 Ignore: Close this PR and you won't be reminded about these updates again. If you want to rebase/retry this PR, check this box This PR was generated by Mend Renovate. View the repository job log.

Open Graph Description: NoteThis PR body was truncated due to platform limits. This PR contains the following updates: Package Change Age Confidence @playwright/test (source) 1.28.0 → 1.64.1 @playwright/test (...

X Description: NoteThis PR body was truncated due to platform limits. This PR contains the following updates: Package Change Age Confidence @playwright/test (source) 1.28.0 → 1.64.1 @playwright/test (...

Opengraph URL: https://github.com/developing-today/code/pull/79

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b22c87db-653f-f58a-e52f-82fae940b32a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA538:C802B:286621:36B057:6B0616DC
html-safe-noncee30ad6d0b377f57d69b567ef26ecf69a75c368c4fdef761ab99acc4607ccf5d2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTM4OkM4MDJCOjI4NjYyMTozNkIwNTc6NkIwNjE2REMiLCJ2aXNpdG9yX2lkIjoiNzIyNjkyMTYxNTY5Mzg0NjIzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac90484bb91a1982777f9a58261e9a7f5f7e7db150895a1ed1842c47298b4b6772
hovercard-subject-tagpull_request:1591824227
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/developing-today/code/pull/79/files
twitter:imagehttps://avatars.githubusercontent.com/in/2740?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/2740?s=400&v=4
og:image:altNoteThis PR body was truncated due to platform limits. This PR contains the following updates: Package Change Age Confidence @playwright/test (source) 1.28.0 → 1.64.1 @playwright/test (...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release866f202ebf7ac5aff8f633417d9fd8a53818a977
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/developing-today/code/pull/79/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fpull%2F79%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fpull%2F79%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/pull/79/files
Reloadhttps://github.com/developing-today/code/pull/79/files
Reloadhttps://github.com/developing-today/code/pull/79/files
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests144 (144)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fdeveloping-today%2Fcode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fdeveloping-today%2Fcode%2Fissues%2Fnew%2Fchoose
dezren39https://github.com/dezren39
mainhttps://github.com/developing-today/code/tree/main
renovate/playwright-monorepohttps://github.com/developing-today/code/tree/renovate/playwright-monorepo
Conversation 6 https://github.com/developing-today/code/pull/79
Commits 3 https://github.com/developing-today/code/pull/79/commits
Checks 3 https://github.com/developing-today/code/pull/79/checks
Files changed https://github.com/developing-today/code/pull/79/files
Please reload this pagehttps://github.com/developing-today/code/pull/79/files
Update dependency @playwright/test to v1.64.1 https://github.com/developing-today/code/pull/79/files#top
Show all changes 3 commits https://github.com/developing-today/code/pull/79/files
2d176d6 Update dependency @playwright/test to v1.64.1 renovate[bot] Oct 22, 2026 https://github.com/developing-today/code/pull/79/commits/2d176d6848abc22fe62767f6b1c972b3b18155ad
cc6b6ed Merge remote-tracking branch 'origin/main' into tmp-79 dezren39 Oct 23, 2026 https://github.com/developing-today/code/pull/79/commits/cc6b6edd38fe71e79355d214b0d5bf1182d8f09b
90f1beb fix(e2e): keep pkgs/id Playwright pinned to Nix browsers dezren39 Oct 23, 2026 https://github.com/developing-today/code/pull/79/commits/90f1beb4dbc4e0bc040081bb930f8704c083317a
Clear filters https://github.com/developing-today/code/pull/79/files
Please reload this pagehttps://github.com/developing-today/code/pull/79/files
Please reload this pagehttps://github.com/developing-today/code/pull/79/files
package-lock.json https://github.com/developing-today/code/pull/79/files#diff-131dc7b84e8d457b2879c248a24f248c6f28fb2fca1599b51ddd7ad15fb4642a
package-lock.json https://github.com/developing-today/code/pull/79/files#diff-3a6a15c142d23d0936804557173ea77bb1cafa06a18a12701febbb6125827de6
pkgs/web-gen-api-axum/end2end/package-lock.jsonhttps://github.com/developing-today/code/pull/79/files#diff-131dc7b84e8d457b2879c248a24f248c6f28fb2fca1599b51ddd7ad15fb4642a
View file https://github.com/developing-today/code/blob/90f1beb4dbc4e0bc040081bb930f8704c083317a/pkgs/web-gen-api-axum/end2end/package-lock.json
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/developing-today/code/pull/79/files
pkgs/web-gen-api/end2end/package-lock.jsonhttps://github.com/developing-today/code/pull/79/files#diff-3a6a15c142d23d0936804557173ea77bb1cafa06a18a12701febbb6125827de6
View file https://github.com/developing-today/code/blob/90f1beb4dbc4e0bc040081bb930f8704c083317a/pkgs/web-gen-api/end2end/package-lock.json
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/developing-today/code/pull/79/files
Please reload this pagehttps://github.com/developing-today/code/pull/79/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.