Skip to content

Change data-test-id to something more conventional like data-testid #316

@rsun19

Description

@rsun19

Describe the enhancement or change
A clear and concise description of the request. What is the expected outcome?

I noticed that through this search, there were a few instances of components using data-test-id instead of the conventional data-testid. We want to test these component implementations (for instance, here) through a mock Cypress test, and use our native findByTestId method, which targets the latter selector, not the former. I suspect that there are two ways this can be done:

  1. Allow props so that the user can add their own test id
  2. Change the current selector to data-testid.

Is this request originating from a Red Hat product team? If so, which ones and is there any sort of deadline for this enhancement?

Yes, from the Dashboard Team, however, there is low priority

Any other information?


Jira Issue: PF-4123

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions