: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(signals): remove leftover verdict dialogs between ReportContextMenu cases (#125253)
Phil Haack94985abced0f
diff --git a/products/signals/frontend/inbox/components/cards/ReportContextMenu.test.tsx b/products/signals/frontend/inbox/components/cards/ReportContextMenu.test.tsxindex a2fa44386f33..0bb4790ca231 100644--- a/products/signals/frontend/inbox/components/cards/ReportContextMenu.test.tsx+++ b/products/signals/frontend/inbox/components/cards/ReportContextMenu.test.tsx@@ -70,7 +70,11 @@ describe('ReportContextMenu', () => {})// The menu content renders in a portal, so cleanup keeps one case's rows out of the next.- afterEach(cleanup)+ // The verdict dialogs mount a separate React root on document.body. cleanup does not remove it.+ afterEach(() => {+ cleanup()+ document.body.innerHTML = ''+ })// The menu must mirror the detail pane's eligibility rules; a drifted guard silently offers a// dead-end action (a 409 transition, a duplicate PR) or hides a legitimate one. Every menu