-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Components: Refactor Tooltip tests to @testing-library/react
#43061
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
8603386
Migrate frim enzyme to testing-library
t-hamano 5764d4a
update text matcher
t-hamano 5901f73
Fix typo
t-hamano 02520e8
Update matcher
t-hamano 19d029c
Refactor fireEvent to userEvent
t-hamano 28b1abe
Brush up test (tooltip won't be rendered)
t-hamano 10274ad
Refactor setTimeout to findBy in one test
t-hamano d6f98a7
Don't use getElementsByClassName
t-hamano cdafb54
Don't use nodeName, childNodes
t-hamano 81b473b
Remove unused event handler
t-hamano 3126a88
Remove tootip position props
t-hamano 4e9b4cf
Add test: should render children with additional popover when hovered
t-hamano d5e17de
Simplify mouse click test
t-hamano 7aa6669
Standardize test cases name
t-hamano 894e815
Add test to 'should render children'
t-hamano 6dc8dcc
Merge two tests for focus
t-hamano 3cf023f
Refactor 'should render children with additional tooltip when hovered…
t-hamano 2a15013
Rename from `handleClick` to `onClickMock`
t-hamano c8b1c0a
Remove unnecessary test 'should show tooltip on delayed mouseenter'
t-hamano dda605a
Reactor: should not show tooltip on focus as result of mouse click
t-hamano 4b143a0
Refactor: should respect custom delay prop when showing tooltip
t-hamano 7f0367a
Refactor: should show tooltip when an element is disabled
t-hamano 38b51af
Refactor: should not show tooltip if the mouse leaves the anchor befo…
t-hamano f5604cc
Merge branch 'trunk' into refactor/tooltip-test-to-testing-library
t-hamano e765736
Update changelog
t-hamano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.