: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(test): resolve race condition in hogFlowEditorNotificationTestLogic test (#63166)
mendral-app[bot]dcfda1328346
diff --git a/products/workflows/frontend/Workflows/hogflows/panel/testing/hogFlowEditorNotificationTestLogic.test.ts b/products/workflows/frontend/Workflows/hogflows/panel/testing/hogFlowEditorNotificationTestLogic.test.tsindex 14146649fd88..1cd8341f64fc 100644--- a/products/workflows/frontend/Workflows/hogflows/panel/testing/hogFlowEditorNotificationTestLogic.test.ts+++ b/products/workflows/frontend/Workflows/hogflows/panel/testing/hogFlowEditorNotificationTestLogic.test.ts@@ -303,6 +303,11 @@ describe('hogFlowEditorNotificationTestLogic', () => {const distinctId2 = 'person-2-id'const globalsForPerson1 = createGlobals(distinctId1)+ // Wait for afterMount's loadSamplePersons to complete before proceeding+ await expectLogic(logic)+ .toDispatchActions(['loadSamplePersons', 'loadSamplePersonsSuccess'])+ .toFinishAllListeners()+// Reload when sampleGlobals is nullawait expectLogic(logic, () => {logic.actions.setSelectedPersonDistinctId(distinctId1)@@ -365,6 +370,11 @@ describe('hogFlowEditorNotificationTestLogic', () => {const distinctId = 'person-1-id'const globalsForPerson1 = createGlobals(distinctId)+ // Wait for afterMount's loadSamplePersons to complete before proceeding+ await expectLogic(logic)+ .toDispatchActions(['loadSamplePersons', 'loadSamplePersonsSuccess'])+ .toFinishAllListeners()+await expectLogic(logic, () => {logic.actions.setSampleGlobals(JSON.stringify(globalsForPerson1, null, 2))logic.actions.setSelectedPersonDistinctId(distinctId)