`isVirtualPointerEvent` classifies playwright `click` as drag start
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 1.6k
- Avg merge
- 3d 9m
- Merged PRs (30d)
- 59
Description
### Provide a general summary of the issue here
I'm writing tests for a draggable collection and my tests for clicking on an item in the collection are breaking because isVirtualPointerEvent returns true for playwright click events
### 🤔 Expected Behavior?
Click doesn't trigger drag start in playwright
### 😯 Current Behavior
Click does trigger drag start and freezes the app
### 💁 Possible Solution
I can write my tests to work around it but would be nice to fix
### 🔦 Context
_No response_
### 🖥️ Steps to Reproduce
If you want I can try to make a small example but clicking on an item in any draggable collaection through playwright should work
### Version
@react-aria/dnd 3.3.0
### What browsers are you seeing the problem on?
Chrome
### If other, please specify.
_No response_
### What operating system are you using?
Mac
### 🧢 Your Company/Team
_No response_
### 🕷 Tracking Issue
_No response_
Contributor guide
Research direction
Start by locating isVirtualPointerEvent in the @react-aria/dnd implementation and reproduce the reported behavior with a Playwright click on an item in a draggable collection. Check the existing drag and pointer-event tests if present; done means a Playwright click does not start a drag or freeze the app while dragging still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- playwright, react, typescript
- Domain
- frontend, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100