Skip to content

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

trivago tech 7 min read Case study mediumAdept

From a long list to a clear signal: baseline-driven accessibility reporting

trivago extended its Selenium-based test framework with baseline-driven accessibility reporting built on axe-core-maven-html-selenium. Each violation is fingerprinted by hashing its rule ID, HTML snippet, CSS selector and impact level, with normalization so small DOM or text changes still match. Pull request results are then compared against a baseline generated from main on every merge and classified as new, fixed or persisting. GitHub Actions workflows store baselines and reports with screenshots in a GCP bucket and fail the PR status whenever new issues appear, while persisting debt is handled separately, with the caveat that automation catches only about 30-50% of accessibility issues.

Related posts

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

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

  • Your alt text passes automated checks. That doesn’t mean it’s any good.

    GitHub Engineering mediumAdept

    GitHub's alt text plugin for its Accessibility Scanner splits checks into five deterministic, on-by-default rules and one opt-in model-backed rule. The deterministic rules flag missing, filename, placeholder, single-generic-word and repeated alt text using exact-match closed sets, accepting misses to avoid false positives. Repeated-alt detection uses on-screen bounding-box gaps rather than DOM order. The opt-in rule sends the image and page context to a vision model through GitHub Models, with an ordered decision procedure, anti-nitpick rules and reasoning-before-verdict structured output to stop it critiquing good alt text. URL redaction, off-by-default cost and privacy controls, and known gaps such as computed accessible names, SVGs and authenticated images are covered.

  • Improving Web Accessibility with Web Platform Tests

    WebKit mediumAdept

    Web Platform Tests (WPT) let one automated accessibility test run across Chromium, Gecko and WebKit, verifying that browsers compute the expected accessibility role and label for DOM elements. Tests are plain HTML with data-* hooks such as data-expectedrole and data-expectedlabel, executed by testharness.js with WebDriver fetching browser-computed accessibility metadata, and run daily in CI with results published to the interop dashboard. Beyond catching cross-browser discrepancies and regressions, such tests have exposed specification ambiguities, such as in accessible name node traversal, prompting fixes across all engines.

  • Unlocking inclusive design: how Primer’s color system is making GitHub.com more inclusive

    GitHub Engineering mediumAdept

    GitHub's Primer design system fixed hundreds of color contrast violations across light and dark modes and all themes by changing its foundational color tokens (Primer Primitives) rather than individual components. The team audited 100+ text/background color pairs against WCAG ratios (4.5:1 and 3:1) and wrote a script that checks every pair across every theme. The script handles semi-transparent colors by first blending the background onto the page background, then blending the text onto that result. The check now runs as a GitHub Action on every Primer pull request, and the changes were rolled out to staff behind a feature flag before going live.

The quest for software engineering knowledge.

Look:
Layout: