File tree Expand file tree Collapse file tree
packages/charts/src/components/BulletChart/test Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments