Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(e2e): Update E2E tooltip selectors (#70839)

mendral-app[bot]4fe2e4e2d085
diff --git a/playwright/page-models/insights/chartInsightBase.ts b/playwright/page-models/insights/chartInsightBase.ts
index aa34cdfbf6f3..942fa2bbb72c 100644
--- a/playwright/page-models/insights/chartInsightBase.ts
+++ b/playwright/page-models/insights/chartInsightBase.ts
@@ -12,7 +12,7 @@ export class ChartInsightBase {
chartLocator: Locator
) {
this.chart = chartLocator
- this.tooltip = page.getByTestId('insight-tooltip')
+ this.tooltip = page.locator('[data-hog-charts-tooltip]')
this.dateRangeButton = page.getByTestId('date-filter')
this.chartTypeButton = page.getByTestId('chart-filter')
this.comparisonButton = page.getByTestId('compare-filter')
diff --git a/playwright/page-models/insights/funnelsInsight.ts b/playwright/page-models/insights/funnelsInsight.ts
index d4040152feea..7628bd6d7bcb 100644
--- a/playwright/page-models/insights/funnelsInsight.ts
+++ b/playwright/page-models/insights/funnelsInsight.ts
@@ -25,7 +25,7 @@ export class FunnelsInsight {
this.stepLegends = this.verticalChart.getByTestId('funnel-step-legend')
this.layoutSelector = page.getByTestId('funnel-bar-layout-selector')
this.stepOrderFilter = page.getByTestId('funnel-step-order-filter')
- this.tooltip = page.getByTestId('funnel-tooltip')
+ this.tooltip = page.locator('[data-hog-charts-tooltip]')
this.taxonomicFilter = new TaxonomicFilter(page)
this.conversionWindowSection = page.getByTestId('funnel-conversion-window-filter')
this.conversionWindowInput = this.conversionWindowSection.getByRole('spinbutton')