Skip to content

Commit d129e38

Browse files
committed
Update BulletChart.spec.tsx
1 parent 4dd3a08 commit d129e38

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/charts/src/components/BulletChart/test/BulletChart.spec.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ test.describe('BulletChart', () => {
7676
test('onDataPointClick', async ({ mount, page }) => {
7777
await mount(<BulletChartDataPointClickTest />);
7878

79-
// BulletChart renders the data label as a <text> element on top of the bar (insideTop).
80-
// A real user click on the label doesn't fire onDataPointClick (only clicks on the bar
81-
// shape do). Click near the bottom edge of the bar to land on the rect, not the label.
79+
// make sure not to click the label, as currently the event is only fired when the actual bar is clicked.
8280
const firstBar = page.locator('.recharts-bar-rectangle path').first();
8381
const box = await firstBar.boundingBox();
8482
await page.mouse.click(box.x + box.width / 2, box.y + box.height - 3);

0 commit comments

Comments
 (0)