Skip to content

Automated accessibility tests - GlLabel

Description

Implement automated accessibility tests for the GlLabel component. Automated accessibility tests use the axe-core engine to find issues on GitLab UI components.

What to test?

  • Default label
  • Scoped label
  • Label with close button
  • Focus state
  • Color contrast in labels with a light or dark background.

How to write tests?

Read the axe accessibility test documentation to learn how to implement automated A11Y tests using the axe-core addon in Cypress.

Edited by Enrique Alcántara