component-driven / component-driven/cypress-axe

Question: How to skip failures for some specific tags and throw errors for other tags?

Open
#155 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
641
Forks
90
Avg merge
6h 8m
Merged PRs (30d)
1

Description

Hi everyone, I'm new to cypress-axe. :)

I'm currently setting up cypress-axe for component testing and wanted to ask a question related to tags and assertions.

I want to throw an error if an element fails the 'wcag21a' criteria, but at the same time log errors from other tags such as 'cat.*' or 'best-practice'. Is there any preferred way we can change how the assertion works from the usage side?

Thanks in advance!!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the cypress-axe assertion usage for component testing and its tag configuration. Determine whether the usage API can log selected tags while throwing for wcag21a, then document the supported configuration and a minimal example. The issue names no files or tests, so repository exploration is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
cypress, typescript
Domain
testing-qa
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.