fix(ci): Fix flaky Playwright tests blocking test reruns by mendral-app[bot] · Pull Request #45132 · PostHog/posthog

1 min read Original article ↗
…iables

- annotations.spec.ts: Add explicit waits and better error handling
  - Wait for modal to open before filling input
  - Add timeouts to prevent flaky failures
  - Use locator variables for better readability

- insight-variables.spec.ts: Skip test that requires missing demo data
  - Test requires InsightVariablesDataGenerator which isn't run by default
  - Added FIXME comment explaining the issue and potential solutions
  - Prevents false failures on test reruns

@assign-reviewers-posthog bot requested a review from a team

January 15, 2026 13:03

greptile-apps[bot]

- Remove explicit timeouts as defaults (40s CI, 10s local) are sufficient
- Addresses code review feedback

@webjunkie webjunkie changed the title Fix flaky Playwright tests blocking test reruns fix(ci): Fix flaky Playwright tests blocking test reruns

Jan 15, 2026

thmsobrmlr

- Remove test.skip() as dashboard is available in demo environment
- Add explicit wait for dashboard list to load
- Add wait for InsightCard to ensure dashboard content is loaded
- Addresses code review feedback about inaccurate comment

graphite-app[bot]

greptile-apps[bot]

- Wait for InsightCard to be visible after page.goto() with query variables
- Ensures page reloads and cards update with new query variable values
- Addresses code review feedback

@timgl