Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Zalando Engineering 6 min read Case study mediumAdept

End-to-end test probes with Playwright

Zalando turned its end-to-end tests into production probes: a small set of Playwright scenarios covering critical customer journeys runs every 30 minutes and pages on-call when it fails. The trigger was an incident in which bad headless CMS content broke React hydration on product pages, which neither the Cypress pre-release tests (about 95% reliable after hardening) nor existing alerting caught. Playwright's auto-wait, web-first assertions, fixtures, expect.toPass retry loops and :visible pseudo-class selectors made the simplified tests resilient. The tests first ran for a few weeks in a low-priority email-only 'shadow' mode to remove flakiness, and after paging was enabled they fired only once, during a real outage. The main advice is to keep probes focused on critical journeys, write good selectors, and iterate in shadow mode before paging.

Related posts

  • Building On-call: Continually testing with smoke tests

    incident.io mediumAdept

    incident.io runs an end-to-end smoke test suite for its On-call paging product every minute against production and staging, and also on every pull request and deploy using containers on a single machine. The suite covers core journeys such as alert ingestion and escalation paging, plus edge cases like malformed user JavaScript in alert parsing. Lessons drawn from building it: have each test begin by tearing down leftover state from earlier runs, set up data through the application's own abstractions rather than direct database or ORM writes, and assert on user-visible timing rather than database rows alone. Running continuous traffic also exposed hidden scaling assumptions, such as migrations that slowed down and batch operations that needed rethinking.

  • Agentic Testing: Where Agents Fit in the E2E Testing Stack

    Slack Engineering mediumAdept

    Across 200+ agent-driven E2E runs against Slack test workspaces, agents using Playwright MCP were the most reliable (0% failures on a simple thread-reply flow, ~12% on a longer search flow). Playwright CLI agents failed 12–20%, mostly from auth, navigation timing and session instability. Agent-generated Playwright tests ran fastest (~3 min including generation, ~30–45 s raw) but failed ~48% on the complex flow. Agent runs cost $15–30 each, driven by turn count and retransmitted context such as accessibility-tree snapshots rather than model choice; CLI took ~85 turns versus MCP's ~40. The recommendation is to keep deterministic tests for CI and add agentic testing as a top pyramid layer for exploration, debugging and bug reproduction.

  • Automated Accessibility Testing at Slack

    Slack Engineering mediumAdept

    Slack added automated accessibility checks to its desktop end-to-end tests by integrating Axe into Playwright via @axe-core/playwright, after embedding checks in Jest/React Testing Library proved impractical with its custom Jest setup. Hooking Axe into Playwright's interaction methods was also ruled out, because Locator auto-waiting only guarantees element readiness, not full-page render. The team instead exposed a `runAxeAndSaveViolations` helper on its custom `slack` fixture, scoped to WCAG 2.1 A/AA, excluding known-issue selectors, and reporting only deduplicated critical violations. Results feed a non-blocking 91-test suite gated by an A11Y_ENABLE flag, with screenshots in the Playwright HTML reporter, daily Buildkite runs alerting into Slack, and a Jira workflow for triage with the accessibility team.

  • Rendering huge pull requests in the GitHub Copilot app

    GitHub Engineering mediumAdept

    The GitHub Copilot app's pull request view stays responsive on a 2,200-file, million-line diff with 400+ review comments by splitting document height into two geometries: exact, precomputed prefix-summed code rows and lazily measured dynamic blocks for comments, drafts and composers. A single idle- and scroll-gated measurement pass scoped to about 2400px around the viewport replaces per-block ResizeObserver write-back, which caused feedback loops. Observers only flag blocks for re-measurement, except for user-caused resizes, which commit synchronously at most once per frame. Identity-based scroll anchoring keeps corrections small, and a cache of recent diffs prevents an instantly drawn shell from sitting around an empty diff. Bugs were found with permanent in-app probes asserted as CI budgets and an autonomous headless change→measure→improve loop.

  • Testing a React App in Chrome with Heroku CI

    Heroku Engineering mediumAdept

    End-to-end browser tests for a React app can run automatically in Heroku CI using headless Chrome installed by the Chrome for Testing Heroku Buildpack. The walkthrough builds a small greeting form app, writes Jest and Puppeteer tests for link navigation, input and form submission, and uses start-server-and-test to start the dev server, wait for it, and run tests in one command. An app.json declaring the Chrome for Testing and Node.js buildpacks plus a test script lets every push to the connected GitHub repo trigger the suite in a Heroku pipeline.

The quest for software engineering knowledge.

Look:
Layout: