testing-library / testing-library/user-event
Add "touch" cascade
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 258
- PR merge metrics
- No merged PRs in 30d
Description
Problem description
The library provides a nice and ergonomic way to handle mouse and keyboard-based interactions, but currently there is no support for touch.
Suggested solution
Ideally would love a symmetric API to .click() that triggers the appropriate event cascade for a hypothetical touch user. Perhaps it can be introduced in a piecemeal fashion, since covering the entirety of touch interactions is a bit daunting.
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing .click() API and its event cascade. Define the smallest touch interaction to support before expanding scope, then identify the relevant tests and specify the expected event sequence as the completion criterion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100