-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade user event #4426
Merged
Merged
Upgrade user event #4426
Changes from 14 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
25c5edd
Upgrade testing tools
snowystinger b8aa4ba
fix alphabetical order
snowystinger 35a31af
remove all legacy timers
snowystinger e972690
fix lint
snowystinger cbf086f
fix lint for real
snowystinger 030e4a9
fix test
snowystinger ac7dec8
fix snapshot tests
snowystinger 543e19b
Fix 16 and 17 tests
snowystinger 587ae76
fix some alphabet
snowystinger b6cf711
Upgrade user event
snowystinger 599f183
Merge branch 'main' into upgrade-jest
snowystinger 685a3bc
Merge branch 'upgrade-jest' into upgrade-user-event
snowystinger 3d1827e
Merge branch 'main' into upgrade-user-event
snowystinger cf09d5d
Merge branch 'main' into upgrade-user-event
snowystinger 5177271
Merge branch 'main' into upgrade-user-event
snowystinger 55bdb71
Fix react 17 tests
snowystinger 1c2b5c8
Merge branch 'main' into upgrade-user-event
snowystinger d2f735f
remove extra code
snowystinger 5bb4fec
Merge branch 'main' into upgrade-user-event
snowystinger bf353e2
Merge branch 'main' into upgrade-user-event
snowystinger 4412507
fix new test
snowystinger 2a5058d
Merge branch 'main' into upgrade-user-event
snowystinger 587d31b
Merge branch 'main' into upgrade-user-event
snowystinger 870eb8d
Merge branch 'main' into upgrade-user-event
snowystinger File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wonder if we can handle this setup in the global beforeAll step or do this setup + return the user object via a util function call. Would make it easier for external users to do the same setup when we eventually expose these test-utils.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about that, decided it was better to do it individually to make it easier to swap out users if we need to. Not saying this couldn't be improved, I'm just not sure setting up one globally beforeAll is the best way to go about it. A util function call seems fine, I was thinking something like
One interesting thing we could possibly do with this is enforce a specific interaction type for a set of tests. I think I we don't supply pointers to the pointerMap, then the user can't user mouse, so they would have to either use touch or keyboard only. But I haven't tried it yet.