vitest-dev / vitest-dev/vitest
Browser: Add resize capability
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 17.1k
- Forks
- 2k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 94
Description
Clear and concise description of the problem
I have a div that supports resizing and have this div monitored by a resize observer. From what I can tell, I have no means of testing this behavior.
Looking at playwright and webdriver, they have methods that move the cursor, hover and click the mouse down. I would like to see this functionality in vitest.
Suggested solution
page.mouse.down();
page.mouse.move(x, y)
page.mouse.up();
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
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 Vitest's browser testing APIs and how mouse interactions are currently represented. Determine the appropriate entry points and tests for supporting mouse down, movement, and release, then verify that a resizable div observed by ResizeObserver can be tested with the proposed interaction flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100