testing-library / testing-library/dom-testing-library

ByRole doesn't find SVG's graphics-document role

Open
#1,295 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
3.3k
Forks
474
PR merge metrics
No merged PRs in 30d

Description

  • @testing-library/dom 9.3.4 version:
  • Testing Framework and version: N/A
  • DOM Environment: 20.0.3

Basically, it's still this Bug: #1131
The upstream issue was closed more than 1.5 years ago, yet the bug still persists. Is there a possibility that this can be fixed?

Contributor guide

Open the contributing guide

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 by reproducing the ByRole query against an SVG element with the graphics-document role using @testing-library/dom 9.3.4, then read the related issue #1131 for context. Done means the role is recognized by ByRole and a regression test demonstrates the successful query.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
accessibility, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.