Skip to content

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

Slack Engineering 12 min read Case study mediumAdept

Automated Accessibility Testing at Slack

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.

Related posts

  • How AI-assisted development helped us build the new Dropbox experience

    Dropbox Tech easyNovice

    Dropbox shipped its new AI-powered experience on a fixed launch deadline by using AI coding agents to handle integration, accessibility and test work. The work included bringing web features into the Electron desktop app, partly as embedded web views for full pages and partly as directly imported React components for finer control. Shared React components talk to platform-specific adapters, so each app keeps its own auth, navigation and networking. Agents worked from a written plan agreed with an engineer, ran builds and tests locally, and logged results for review, which delivered 22 accessibility features and retired a legacy file list's tests through 53 tasks finished in one week.

  • End-to-end test probes with Playwright

    Zalando Engineering mediumAdept

    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.

  • Continuous AI for accessibility: How GitHub transforms feedback into inclusion

    GitHub Engineering mediumAdept

    GitHub built an event-driven accessibility feedback pipeline on GitHub Actions, Copilot and the GitHub Models API that turns every user report into a tracked, prioritized issue. Issue creation triggers Copilot analysis that uses stored, PR-editable prompt files instead of fine-tuning. The analysis fills about 80% of 40+ metadata fields and suggests WCAG criteria, severity, affected user groups, team assignment and a reproduction checklist. A second Action parses Copilot's comment to apply labels and board status. Humans verify at each stage, and their corrections are logged to refine the prompts. About 75–80% of reports match existing audit findings and get reprioritized by real-world impact, and issues close only once the user confirms the fix works.

  • 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.

  • Balancing Old Tricks with New Feats: AI-Powered Conversion From Enzyme to React Testing Library at Slack

    Slack Engineering mediumAdept

    Slack converted over 15,000 Enzyme tests to React Testing Library ahead of its React 18 upgrade by combining AST codemods with an LLM (Claude 2.1). AST transformations alone converted about 45% of code. The LLM alone fluctuated between 40-60%. A hybrid pipeline reached about 80% on evaluated files. It fed the LLM the original test, a partially converted codemod output with in-code instructions, and the actual rendered DOM captured per test case via overridden Enzyme mount/shallow methods. A structured prompt with explicit required and optional tasks constrained hallucinations and improved results by 20-30% over the out-of-the-box LLM.

The quest for software engineering knowledge.

Look:
Layout: