Code Monkey home page Code Monkey logo

storybook-test-a11y-ci's Introduction

Example: Storybook accessibility test automation

This repository showcases accessibility test automation with Storybook Test Runner, Jest, Axe, and GitHub Actions, following the tutorial Automate accessibility tests with Storybook from Varun Vachhar.

Additional documentation used to build this example:


This Storybook is deployed on Chromatic: https://main--62cc72dcab307d1666bba837.chromatic.com

What happens when an accessibility regression is introduced?

Example pull request:

Storybook deploy

When you open a pull request or push a new commit, Storybook is automatically deployed to Chromatic (view deploy for the example PR), which shows the violation in the Accessibility panel (thanks to@storybook/addon-a11y).

CI failure

When you open a pull request to this repository, it starts Storybook and runs accessibility tests on all stories. If a violation was found, the PR check fails:

[TEST] Test Suites: 3 failed, 3 total
[TEST] Tests:       3 failed, 5 passed, 8 total
[TEST] Snapshots:   0 total
[TEST] Time:        4.852 s

Browse full test output log

Alternatives

storybook-test-a11y-ci's People

Contributors

kaelig avatar

Stargazers

Viyan.UX Engineer avatar Alexis Córdova avatar Shawn Allen avatar Anand Kumar avatar EM Greeff avatar Marcus Morba avatar jen chan avatar Soumyajit Pathak avatar Mundi Morgado avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.