Skip to content

Commit

Permalink
Navigator: refactor tests to TypeScript and user-event (#44970)
Browse files Browse the repository at this point in the history
* Rename file

* Fix types for framer-motion mock

* Fix types for helper components

* Fix types for helper getter functions

* Fix types for getClientRects mock

* Switch from fireEvent to user-event

* Extract all screen and button text to a variable

* Fix getters errors by removing unnecessary complexity

* CHANGELOG

* Format other changelog entries
  • Loading branch information
ciampo authored Oct 14, 2022
1 parent 8b6e2e3 commit 65b1ee2
Show file tree
Hide file tree
Showing 3 changed files with 473 additions and 474 deletions.
5 changes: 3 additions & 2 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@

### Bug Fix

- `FontSizePicker`: Ensure that fluid font size presets appear correctly in the UI controls ([#44791](https://github.com/WordPress/gutenberg/pull/44791))
- `FontSizePicker`: Ensure that fluid font size presets appear correctly in the UI controls ([#44791](https://github.com/WordPress/gutenberg/pull/44791)).

### Documentation

- `VisuallyHidden`: Add some notes on best practices around stacking contexts when using this component ([#44867](https://github.com/WordPress/gutenberg/pull/44867))
- `VisuallyHidden`: Add some notes on best practices around stacking contexts when using this component ([#44867](https://github.com/WordPress/gutenberg/pull/44867)).

### Internal

- `Modal`: Convert to TypeScript ([#42949](https://github.com/WordPress/gutenberg/pull/42949)).
- `Navigator`: refactor unit tests to TypeScript and to `user-event` ([#44970](https://github.com/WordPress/gutenberg/pull/44970)).

## 21.2.0 (2022-10-05)

Expand Down
Loading

0 comments on commit 65b1ee2

Please sign in to comment.