#26 Digest

This week’s lineup digs into smarter URL handling to stop sneaky redirects, cleaner ways to manage auth headers without leaking them across origins, and how to make your tests more resilient by truly simulating user actions. Plus, we’ve got fresh takes on cutting CI costs, running screen reader automation, and bringing BDD to Playwright in a way your whole team can get behind.


AI

360 green runs, and one test that would pass with the server down

A measured case study on evaluating AI-generated Playwright tests: the author runs the generated suite repeatedly, seeds real bugs, and shows how to judge oracle quality, flakiness, and test isolation beyond just seeing green runs. It also includes practical fixes for weak assertions and leftover test data, plus a checklist for reviewing AI-written tests.

8 mins
dev.to

AI Playwright Tests: MCP, CLI, Agents and Prompts Compared

A detailed comparison of four AI-driven ways to generate Playwright tests—MCP, CLI, built-in agents, and a prompt-only assistant—using the same suite, seed test, and Markdown scenarios. It also shows how to gate generated tests in headless CI and score them for stability, reuse, locator quality, and reviewer edits.

14 mins
currents.dev

News

Playwright 1.64: Shuffle, Test Locks and Breaking Changes

A practical upgrade-focused walkthrough of Playwright 1.64, with useful guidance on using --shuffle, lock-based test isolation, and the new snapshot/update behaviors in CI. It also calls out breaking changes that can quietly affect browser coverage and visual baselines.

12 mins
currents.dev

Tools

You know you can automate screen reader tests right?

Shows how to automate real screen reader journeys with Guidepup and Playwright, including setup, headed execution, and asserting against what VoiceOver/NVDA actually announces. Useful for teams wanting to turn manual accessibility checks into regression tests for critical flows.

7 mins
dev.to

Guides

Validating the URL before page.goto() is not enough: redirects slip past Playwright's page.route()

Shows why validating a user-supplied URL before `page.goto()` is not sufficient in Playwright: redirects can still reach internal addresses even when `page.route()` blocks subresources. It includes a concrete Node/Playwright harness and a safer pattern that manually follows redirects with `route.fetch({ maxRedirects: 0 })` before letting the browser see them.

10 mins
dev.to

From Copy-Paste to a Specification-Driven Test Engine: Reusing Behavior in Large Web Systems

This article explains a specification-driven Playwright test engine for large, grid-heavy web apps, where page capabilities and metadata drive which shared behaviors get tested. It covers the architecture, validation model, and the trade-offs of replacing copy-pasted suites with reusable behavior catalogs.

10 mins
dev.to

How to attach a Playwright auth header without sending it to another origin

A practical deep dive into a subtle Playwright security pitfall: auth headers can leak to redirect targets even when you gate requests by destination. The article shows a defensive TypeScript pattern using `route.fetch` with `maxRedirects: 0`, plus cross-browser reproduction data showing why CORS is not a reliable safeguard.

8 mins
dev.to

GitHub Actions Cost: How to Cut Playwright CI Minutes Without Losing Coverage

A practical deep dive into reducing Playwright CI spend on GitHub Actions without sacrificing coverage. It covers browser binary caching, trigger scoping, job timeouts, Playwright-specific sharding, flaky test cost, artifact retention, and when orchestration is actually worth adding.

18 mins
currents.dev

Your Angular Test Passed. Could the User Click the Button?

A detailed experiment comparing jsdom, Chromium Vitest Browser Mode, and the Playwright provider across six Angular component scenarios. It shows when synthetic interactions are enough and when you need real browser geometry, layout, or actionability checks to catch defects like covered buttons and mispositioned popovers.

14 mins
dev.to

BDD with Playwright: Gherkin scenarios that business people can actually read

A practical deep dive into using playwright-bdd instead of cucumber-js for Gherkin-driven Playwright suites. It covers when BDD is actually worthwhile, how to inject page objects and scenario state as fixtures, and how to keep business-readable scenarios honest in CI with tags like @fail and checks for skipped scenarios.

9 mins
dev.to