Skip to content

How to override data-testid attribute? #32

@dmitriyzyuzin

Description

@dmitriyzyuzin

Hey, I found that getByTestId method finds elements with the data-testid attribute. I use another attribute for testing in my project.

I see that dom-testing-library allows override it.

Is it possible to override default data-testid from pptr-testing-library?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions