@automattic/charts 0.46.0 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.46.1] - 2025-11-03
|
|
9
|
+
### Fixed
|
|
10
|
+
- Fix lints. [#45658]
|
|
11
|
+
|
|
8
12
|
## [0.46.0] - 2025-10-28
|
|
9
13
|
### Added
|
|
10
14
|
- Charts: Add interactive legend support to LeaderboardChart [#45581]
|
|
@@ -535,6 +539,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
535
539
|
- Fixed lints following ESLint rule changes for TS [#40584]
|
|
536
540
|
- Fixing a bug in Chart storybook data. [#40640]
|
|
537
541
|
|
|
542
|
+
[0.46.1]: https://github.com/Automattic/charts/compare/v0.46.0...v0.46.1
|
|
538
543
|
[0.46.0]: https://github.com/Automattic/charts/compare/v0.45.0...v0.46.0
|
|
539
544
|
[0.45.0]: https://github.com/Automattic/charts/compare/v0.44.0...v0.45.0
|
|
540
545
|
[0.44.0]: https://github.com/Automattic/charts/compare/v0.43.0...v0.44.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { render, screen, waitFor } from '@testing-library/react';
|
|
2
2
|
import userEvent from '@testing-library/user-event';
|
|
3
|
-
import { act } from 'react';
|
|
4
3
|
import { GlobalChartsProvider } from '../../../providers';
|
|
5
4
|
import PieSemiCircleChart from '../pie-semi-circle-chart';
|
|
6
5
|
|
|
@@ -67,9 +66,7 @@ describe( 'PieSemiCircleChart', () => {
|
|
|
67
66
|
const firstSegment = segments[ 0 ];
|
|
68
67
|
|
|
69
68
|
// Wrap hover interaction in act()
|
|
70
|
-
await
|
|
71
|
-
await user.hover( firstSegment );
|
|
72
|
-
} );
|
|
69
|
+
await user.hover( firstSegment );
|
|
73
70
|
|
|
74
71
|
// Check for tooltip by looking for the specific tooltip role
|
|
75
72
|
const tooltip = screen.getByRole( 'tooltip' );
|
|
@@ -90,17 +87,13 @@ describe( 'PieSemiCircleChart', () => {
|
|
|
90
87
|
const segments = screen.getAllByTestId( 'pie-segment' );
|
|
91
88
|
const firstSegment = segments[ 0 ];
|
|
92
89
|
|
|
93
|
-
await
|
|
94
|
-
await user.hover( firstSegment );
|
|
95
|
-
} );
|
|
90
|
+
await user.hover( firstSegment );
|
|
96
91
|
|
|
97
92
|
// Wait for tooltip to be visible - it should show in the BaseTooltip component
|
|
98
93
|
const tooltip = await screen.findByRole( 'tooltip' );
|
|
99
94
|
expect( tooltip ).toHaveTextContent( 'MacOS' );
|
|
100
95
|
|
|
101
|
-
await
|
|
102
|
-
await user.unhover( firstSegment );
|
|
103
|
-
} );
|
|
96
|
+
await user.unhover( firstSegment );
|
|
104
97
|
|
|
105
98
|
// Verify tooltip is gone - checking for the tooltip role specifically
|
|
106
99
|
await waitFor( () => {
|