: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(insights): stabilize breakdown-cap tooltip hover test (#70229)
Paul D'Ambraedc31dfd932b
diff --git a/frontend/src/scenes/insights/filters/BreakdownFilter/TaxonomicBreakdownFilter.test.tsx b/frontend/src/scenes/insights/filters/BreakdownFilter/TaxonomicBreakdownFilter.test.tsxindex da4f7070274a..34e213d13a07 100644--- a/frontend/src/scenes/insights/filters/BreakdownFilter/TaxonomicBreakdownFilter.test.tsx+++ b/frontend/src/scenes/insights/filters/BreakdownFilter/TaxonomicBreakdownFilter.test.tsx@@ -1,11 +1,18 @@import '@testing-library/jest-dom'-import { cleanup, screen, waitFor } from '@testing-library/react'+import { cleanup, configure, screen, waitFor } from '@testing-library/react'import userEvent from '@testing-library/user-event'import { NodeKind } from '~/queries/schema/schema-general'import { buildTrendsQuery, renderInsightPage } from '~/test/insight-testing'+// The disabled-reason copy shows through LemonButton's Tooltip, which has a 400ms open+// delay. On contended CI shards that delay plus jsdom positioning can exceed the default+// 1s waitFor budget, so the hover assertions flake. Give them room (and raise the per-test+// timeout to match, so a single waitFor can't exhaust the 5s default test budget).+configure({ asyncUtilTimeout: 5000 })+jest.setTimeout(15000)+jest.mock('lib/components/AutoSizer', () => ({AutoSizer: ({ renderProp }: { renderProp: (size: { height: number; width: number }) => React.ReactNode }) =>renderProp({ height: 400, width: 400 }),