react-component / react-component/input-number

How do I set a data-test-id | data-* property?

Open
#599 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
323
Forks
188
Avg merge
20h 3m
Merged PRs (30d)
1

Description

hello everybody
looking a little at the component documentation, I didn't find (at least at first) a way to define properties to select the components via the e2e test engine.
this can be easily bypassed with an id, or something like that
but is there a way to define a property specifically to facilitate/standardize selectors for the test engine?

If not, perhaps it could be interesting to provide the possibility for the user to configure a selector of this type (data* or data-*)

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 component documentation and inspect how input properties are exposed to the e2e test engine. Determine whether a standardized data-* selector can be configured or supported, then document the resulting usage or requirements and verify it with the relevant e2e selector flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.