Skip to content

Commit db9e820

Browse files
committed
test(plugin-charts): read the y-axis ticks by their tick-labels group
Claude-Session: https://claude.ai/code/session_01JQwxbY75sPQWcfUg8cZQhg Co-authored-by: Claude <noreply@anthropic.com>
1 parent 74d724a commit db9e820

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ui/packages/plugin-charts/src/AdvancedChartImpl.dataLabels-27372.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function labelsOf(container: HTMLElement) {
7979
}
8080

8181
/** The y-axis tick texts, so a label can be read against its own axis. */
82-
function yTicksOf(container: HTMLElement, axis = '.recharts-yAxis') {
82+
function yTicksOf(container: HTMLElement, axis = '.recharts-yAxis-tick-labels') {
8383
return [...container.querySelectorAll(`${axis} .recharts-cartesian-axis-tick-value`)].map((t) =>
8484
(t.textContent ?? '').trim(),
8585
);

0 commit comments

Comments
 (0)