---
title: "Automated Accessibility Testing at Slack"
description: "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."
url: "https://swe.quest/articles/automated-accessibility-testing-at-slack-ada6bed3cb3ffab2"
canonical: "https://slack.engineering/automated-accessibility-testing-at-slack/"
source: "Slack Engineering"
published: "2025-01-07"
difficulty: "medium"
kind: "Case study"
reading_minutes: 12
tags: ["accessibility","testing","frontend","ci-cd"]
---

# Automated Accessibility Testing at Slack

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2025-01-07, 12 min read, Case study. Original: [https://slack.engineering/automated-accessibility-testing-at-slack/](https://slack.engineering/automated-accessibility-testing-at-slack/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Accessibility](https://swe.quest/tags/accessibility.md) (Web & mobile)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- Playwright end-to-end testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- WCAG basics
- TypeScript ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))

## Keywords

Axe, axe-core, Playwright, WCAG, Jest, React Testing Library, Buildkite, Jira

## Related posts

- [How AI-assisted development helped us build the new Dropbox experience](https://swe.quest/articles/how-ai-assisted-development-helped-us-build-the-new-dropbox-experience-87aa82f0afa45830.md): Dropbox Tech · 2026-11-05 · Easy · 8 min read · AI for coding, Frontend, React, Accessibility, Testing
  Dropbox shipped its new AI-powered experience on a fixed launch deadline by using AI coding agents to handle integration, accessibility and test work.
- [End-to-end test probes with Playwright](https://swe.quest/articles/end-to-end-test-probes-with-playwright-7071f390329a920e.md): Zalando Engineering · 2024-07-18 · Medium · 6 min read · Testing, Observability, Frontend, TypeScript
  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.
- [Continuous AI for accessibility: How GitHub transforms feedback into inclusion](https://swe.quest/articles/continuous-ai-for-accessibility-how-github-transforms-feedback-into-inclusion-c36ff177f3a2d142.md): GitHub Engineering · 2026-03-12 · Medium · 14 min read · Accessibility, AI agents, LLMs, CI/CD
  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.
- [Agentic Testing: Where Agents Fit in the E2E Testing Stack](https://swe.quest/articles/agentic-testing-where-agents-fit-in-the-e2e-testing-stack-fa760680a95bc5c9.md): Slack Engineering · 2026-06-11 · Medium · 11 min read · Testing, AI agents, LLMs, Cost optimization
  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).
- [Balancing Old Tricks with New Feats: AI-Powered Conversion From Enzyme to React Testing Library at Slack](https://swe.quest/articles/balancing-old-tricks-with-new-feats-ai-powered-conversion-from-enzyme-to-react-0b1af45f56ad7d09.md): Slack Engineering · 2024-05-22 · Medium · 15 min read · Testing, AI for coding, Refactoring & migrations, React, LLMs
  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).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
