6393 Commits
Author SHA1 Message Date
microsoft-playwright-automation[bot] 36b06485cc fix(cli): exit run-server when stdin closes (#44258)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-20 15:27:30 -08:00
microsoft-playwright-automation[bot] eacf88727e fix(install): remove unused Chromium dependency checks (#44234)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-20 15:26:56 -08:00
microsoft-playwright-automation[bot] f5edf1887e fix(har): avoid hanging on open page dialogs (#44245)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-20 15:26:34 -08:00
Pavel Feldman 99d4c415db feat(chromium): attach to a running browser with a remote-debugging:// or extension:// URL (#44247) 2026-11-20 11:10:19 -08:00
Dmitry Gozman 2f1592a70b test: allow tip-of-tree Chromium revision in install tests (#44256) 2026-11-20 16:17:14 +00:00
Pavel Feldman a018f24a4f feat(cli): list browser profiles and attach to a profile with --profile-dir-name (#44243) 2026-11-19 17:19:22 -08:00
Dmitry Gozman dad6310470 test: fix failing and flaky tests on the bots (#44230) 2026-11-19 20:48:04 +00:00
microsoft-playwright-automation[bot] 13f054782a feat(test): add deferred retry strategy (#44235)
Add `retryStrategy: 'deferred'` to queue retries after unrun tests and allow them to run on available workers. Keep exclusive retry execution for `isolated` and preserve existing test locks.

Update the configuration docs and generated types. Extend ordering coverage and add a synchronized check for retries overlapping with first attempts and other retries.

Fixes https://github.com/microsoft/playwright/issues/44226

<sub>Triaged on Linux by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/44576418773)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-19 12:47:09 -07:00
microsoft-playwright-automation[bot] 221cbc8ed3 test: avoid large core dumps in crash tests (#44102)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-19 19:15:47 +00:00
microsoft-playwright-automation[bot] 09dab5d709 fix(locator): [breaking] await waitForFunction predicate promises (#44220)
`Locator.waitForFunction` checked a returned promise for truthiness instead of awaiting its value, so async predicates passed immediately and rejections were lost.

Await the element callback before checking its result. Extend the existing promise and error tests to cover false results, delayed resolution with polling, and rejection.

Fixes https://github.com/microsoft/playwright/issues/44217

<sub>Triaged on Linux by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/44370243233)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-19 10:05:30 -07:00
microsoft-playwright-automation[bot] e528ef8ccd test(junit): expect native classname path separators (#44232)
The fileRoot test assumed forward slashes in `classname`, but JUnit preserves the native suite path. Use `path.join` for that assertion and keep the normalized `file` expectations unchanged. The existing test covers both direct and merged reports.

Fixes https://github.com/microsoft/playwright/issues/44225

<sub>Triaged on Windows by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/44562945812)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-19 10:04:23 -07:00
microsoft-playwright-automation[bot] ff7cf8ebdb feat(aria): include required state in snapshots (#44210)
Add the missing `required` state to ARIA snapshot extraction, JSON/YAML output, parsing and matching, with documentation and coverage in the existing flags test.

Limit the state to WAI-ARIA 1.2 supported roles, including inherited roles. Native `required` takes precedence over `aria-required="false"`; false values stay omitted from output but can be asserted explicitly.

Fixes https://github.com/microsoft/playwright/issues/44204

<sub>Triaged on Linux by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/44350239660)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-19 09:04:12 -07:00
microsoft-playwright-automation[bot] 38a4621a12 fix(screenshots): preserve baselines when capture is unstable (#44151)
Screenshot capture failures can include an intermediate image. Snapshot updates treated that image as a successful capture and overwrote the baseline.

Mark stable baseline mismatches in the internal screenshot result and update only from those results. Preserve stable-image updates, comparison tolerances, and existing capture errors. Extend the existing update test to check that an unstable capture leaves the stable baseline unchanged.

Fixes https://github.com/microsoft/playwright/issues/44128

<sub>Triaged on Windows by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/43960226570)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-19 09:03:31 -07:00
microsoft-playwright-automation[bot] 28c4b2e0ad test(workers): cover redirected shared worker startup (#44158)
Cover relative script redirects and helper imports for a SharedWorker started after classic and module workers. The reported stall did not reproduce on Linux with 1.65.0 or main, including 600 two-CPU runs per version; this adds coverage without claiming a fix.

A separate test is needed because the existing dedicated-worker redirect test asserts network events that SharedWorkers do not expose, while the SharedWorker restart test checks page lifecycle without redirects.

Issue: https://github.com/microsoft/playwright/issues/44134

<sub>Triaged on Linux - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/43960289428)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 16:21:56 -07:00
microsoft-playwright-automation[bot] 6244a88979 fix(trace-viewer): keep action marker aligned while scrolling (#44154)
The red action marker was positioned only when the DOM snapshot loaded, so it stayed at the old viewport coordinates after scrolling. Recompute its position on document and shadow-root scroll events, including scrollable descendants.

The extended target-highlight test checks alignment before scrolling, after scrolling down, and after returning to the original position. It fails without the fix and passes with Chromium, Firefox and WebKit recordings.

Fixes https://github.com/microsoft/playwright/issues/44127

<sub>Triaged on macOS by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/43960219698)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 13:23:02 -07:00
microsoft-playwright-automation[bot] d6cd3abc4b fix(cli): refresh WebMCP tools before listing (#44216)
`webmcp-list` reads the tools cached by the last snapshot, so it misses tools registered later.

Refresh through `Tab.updateWebMCPTools()` before rendering the list. This keeps the cache current while preserving the WebMCP configuration gate and dialog handling. Extend the existing CLI test with a tool registered after `open`, without another snapshot.

Refs https://github.com/microsoft/playwright-cli/issues/544

<sub>Triaged on macOS by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/44354240106)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 13:22:35 -07:00
microsoft-playwright-automation[bot] 0116d08ff0 fix(mcp): fall back for filenames in unsuitable workspaces (#44155)
Explicit relative output filenames bypass the unsuitable-workspace fallback used for automatically named files. Use the same directory suitability check for both, while preserving absolute filenames and input-file resolution.

Check Windows directory writability by creating an exclusive temporary file: `fs.accessSync(W_OK)` does not check Windows ACLs.

Fixes https://github.com/microsoft/playwright/issues/44138

<sub>Triaged on Windows by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/43960297452)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 13:13:54 -07:00
microsoft-playwright-automation[bot] 4df46f33c2 test(frames): cover child navigation during parent redirects (#44213)
Extend the existing frame-detachment test with a cross-origin child navigating while its parent redirects twice. Check that the final page loads and no child frames remain.

The reported crash did not reproduce on 1.58.0 or main, headless or headed, on Chromium, Firefox or WebKit. This adds coverage only; it does not change the navigation handler.

Issue: https://github.com/microsoft/playwright/issues/44207

<sub>Triaged on Linux by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/44350260075)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 13:09:47 -07:00
microsoft-playwright-automation[bot] 084caef129 fix(mcp): coerce INI URL redaction parameters to an array (#44182)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 10:40:27 -08:00
microsoft-playwright-automation[bot] 8fff5ce314 fix(trace): extract empty inline attachments (#44183)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 10:39:43 -08:00
microsoft-playwright-automation[bot] bfc459c18e fix(route): preserve JSON fulfillment content types (#44149)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 10:31:55 -08:00
microsoft-playwright-automation[bot] d456688ec2 fix(aria): snapshot standalone SVG documents (#44147)
ARIA snapshots wait for `body,frameset`, which never matches standalone SVG documents. Also accept `:root:not(html)` for page and child-frame snapshots, preserving HTML body waiting and frameset handling.

Extend the existing AR-096 test with a standalone SVG, checking JSON output and the AI snapshot against the document-root locator.

Fixes https://github.com/microsoft/playwright/issues/44124

<sub>Triaged on Linux by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/43960177188)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 09:37:49 -07:00
Pavel Feldman dc99b6cbf8 fix(ui-mode): show the trace viewer in a frame from its own server (#44196) 2026-11-18 08:22:45 -08:00
Dmitry Gozman 67909fe178 test: do not depend on the api name prefix of error messages, part 2 (#44208) 2026-11-18 16:21:10 +00:00
Yury Semikhatsky 8124fc3923 test: accept the context destroyed error in the worker evaluate test (#44195) 2026-11-17 17:35:04 -08:00
Pavel Feldman c2651d4867 feat(connect): add launchOptions option to browserType.connect (#44106) 2026-11-17 16:26:41 -08:00
Pavel Feldman 9c013a2324 fix(trace-viewer): harden snapshot rendering (#44177) 2026-11-17 13:21:57 -08:00
Pavel Feldman 9efd7d3147 fix(server): sandbox trace file routes and check the WebSocket origin (#44178) 2026-11-17 13:21:35 -08:00
Pavel Feldman 384e47d881 fix(server): do not reveal the endpoint path over HTTP (#44190) 2026-11-17 13:20:43 -08:00
BhanuTeja Indla 75e1e71404 feat(html-reporter): add Blink mode for image mismatches (#44131)
Add a 500 ms toggle between actual and expected images in image mismatch views.
blink-mode-recording.webm

Fixes: https://github.com/microsoft/playwright/issues/44126
2026-11-17 11:32:47 -07:00