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(test): increase findByText timeout for rerender assertion (#62637)

mendral-app[bot]237a961eb3a8
diff --git a/frontend/src/lib/components/TablePreview/DatabaseTablePreview.test.tsx b/frontend/src/lib/components/TablePreview/DatabaseTablePreview.test.tsx
index 20ab677ad0d7..5d465d27915d 100644
--- a/frontend/src/lib/components/TablePreview/DatabaseTablePreview.test.tsx
+++ b/frontend/src/lib/components/TablePreview/DatabaseTablePreview.test.tsx
@@ -188,7 +188,7 @@ describe('DatabaseTablePreview', () => {
</Provider>
)
- expect(await screen.findByText('second result')).toBeInTheDocument()
+ expect(await screen.findByText('second result', {}, { timeout: 3000 })).toBeInTheDocument()
expect(screen.queryByText('first result')).not.toBeInTheDocument()
expect(executedQueries).toHaveLength(2)
expect(executedQueries[1]).toContain(expectedQueryContains)