Repository navigation
NumberControl: refactor styles/tests/stories to TypeScript, replace fireEvent with user-event
#45990
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
ciampo
merged 20 commits into
trunk
from
refactor/number-control-tests-stories-typescript
Nov 25, 2022
Merged
NumberControl: refactor styles/tests/stories to TypeScript, replace fireEvent with user-event
#45990
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f5302a3
Rename files
ciampo f155607
Fix Storybook example types
ciampo 62b58dc
Rename and type styles
ciampo baa9f87
Avoid unnecessary wrapping of `BaseNumberControl`
ciampo b1a47b1
Type `getInput`
ciampo e1b7cc5
Fix more minor type errors
ciampo a471a62
Use `toBeInTheDocument` when possible
ciampo 62fea69
Replace `fireEvent` with `user-event`
ciampo 948a907
Use `toHaveValue` instead of accessing `input.value` directly`
ciampo 14a2a73
Update failing tests to make them pass using `user-event`
ciampo d73a271
Alternative blur method
ciampo 271c688
CHANGELOG
ciampo 0519485
Fix wrong comment
ciampo fd875f3
Adding missing Storybook config
ciampo fa1001d
`toBeInTheDocument()` => `toBeVisible()`
ciampo ba962f6
Remove `getInput()`, replace with inline query
ciampo 82f6e33
Remove redundant `={true}`
ciampo 1bbb118
Refine spinbutton expected onChange argument
ciampo 6edfda4
Remove duplicate test
ciampo 6732efb
Improve test wording
ciampo 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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.