Skip to content

Unable to find role #835

Closed
Closed
@ngoble-phdata

Description

@ngoble-phdata
  • @testing-library/react version: 11.2.0
  • Testing Framework and version: Jest (CRA) 26.6.0
  • DOM Environment: jsdom

Problem description:

Unable to find role="execute-button000"

image

It says it can't find that role, but as you can see in the debug print, it clearly exists in the DOM. This also fails for screen.findByRole

image

This seems to be happening to any component I add a custom role to, and was working in previous versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions