diff --git a/__tests__/integration/api-chart-emit-item-tooltip.spec.ts b/__tests__/integration/api-chart-emit-item-tooltip.spec.ts index 7a26044213..edab11a187 100644 --- a/__tests__/integration/api-chart-emit-item-tooltip.spec.ts +++ b/__tests__/integration/api-chart-emit-item-tooltip.spec.ts @@ -22,13 +22,13 @@ describe('chart.emit', () => { // chart.emit("tooltip:show", options) should show tooltip. await expect(canvas).toMatchDOMSnapshot(dir, 'step0', { - selector: '.tooltip', + selector: '.g2-tooltip', }); // chart.emit("tooltip:hide") should hide tooltip. chart.emit('tooltip:hide'); await expect(canvas).toMatchDOMSnapshot(dir, 'step1', { - selector: '.tooltip', + selector: '.g2-tooltip', }); chart.off(); diff --git a/__tests__/integration/api-chart-emit-pie-tooltip.spec.ts b/__tests__/integration/api-chart-emit-pie-tooltip.spec.ts index 291d07c5f1..96ea3f97be 100644 --- a/__tests__/integration/api-chart-emit-pie-tooltip.spec.ts +++ b/__tests__/integration/api-chart-emit-pie-tooltip.spec.ts @@ -17,7 +17,7 @@ describe('chart.emit', () => { // chart.emit("tooltip:show", options) should show tooltip. await expect(canvas).toMatchDOMSnapshot(dir, 'step0', { - selector: '.tooltip', + selector: '.g2-tooltip', }); }); diff --git a/__tests__/integration/api-chart-emit-series-tooltip.spec.ts b/__tests__/integration/api-chart-emit-series-tooltip.spec.ts index 7833deb7bc..eea4c885e8 100644 --- a/__tests__/integration/api-chart-emit-series-tooltip.spec.ts +++ b/__tests__/integration/api-chart-emit-series-tooltip.spec.ts @@ -23,13 +23,13 @@ describe('chart.emit', () => { // chart.emit("tooltip:show", options) should show tooltip. await expect(canvas).toMatchDOMSnapshot(dir, 'step0', { - selector: '.tooltip', + selector: '.g2-tooltip', }); // chart.emit("tooltip:hide") should hide tooltip. chart.emit('tooltip:hide'); await expect(canvas).toMatchDOMSnapshot(dir, 'step1', { - selector: '.tooltip', + selector: '.g2-tooltip', }); chart.off(); diff --git a/__tests__/integration/api-mark-change-data-tooltip.spec.ts b/__tests__/integration/api-mark-change-data-tooltip.spec.ts index 5cd8aa6659..2fc7078cfa 100644 --- a/__tests__/integration/api-mark-change-data-tooltip.spec.ts +++ b/__tests__/integration/api-mark-change-data-tooltip.spec.ts @@ -30,7 +30,7 @@ describe('mark.changeData tooltip', () => { }), ); await expect(canvas).toMatchDOMSnapshot(dir, render.name, { - selector: `.tooltip`, + selector: '.g2-tooltip', }); }); diff --git a/__tests__/integration/snapshots/api/chart-emit-item-tooltip/step0.html b/__tests__/integration/snapshots/api/chart-emit-item-tooltip/step0.html index f15473bf69..ac87d9f51c 100644 --- a/__tests__/integration/snapshots/api/chart-emit-item-tooltip/step0.html +++ b/__tests__/integration/snapshots/api/chart-emit-item-tooltip/step0.html @@ -1,33 +1,33 @@
Strategy