feat(browser): implement several userEvent methods, add fill and dragAndDrop events#5882
Merged
sheremet-va merged 28 commits intovitest-dev:mainfrom Jun 18, 2024
Merged
Conversation
type/clear, add fill event
type/clear, add fill eventtype/clear/tab, add fill event
type/clear/tab, add fill eventtype/clear/tab/keyboard, add fill event
type/clear/tab/keyboard, add fill eventtype/clear/tab/keyboard, add fill event
type/clear/tab/keyboard, add fill eventuserEvent methods, add fill event
b45d3a2 to
d017746
Compare
…mplement keyboard support
114f770 to
9f3052a
Compare
userEvent methods, add fill eventuserEvent methods, add fill and dragAndDrop events
This was referenced Aug 21, 2024
This was referenced Aug 28, 2024
This was referenced Sep 10, 2024
This was referenced Sep 23, 2024
1 task
This was referenced Feb 3, 2025
This was referenced Feb 10, 2025
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Related: #5770
Decided to implement the most frequently used
userEventmethods. Click we already implemented.This PR implements several user event methods:
{selectall})selectOptions, notdeselectOptions)This PR also adds a new method
fillthat will clear the input and type new characters (it doesn't support userEvent syntax and because of that it's faster):TODO:
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yamlunless you introduce a new test example.Tests
pnpm test:ci.Documentation
pnpm run docscommand.