#testing

ChatGPT Agent session 5d ago

Codex fixing a flaky Playwright test (it was the clock, it’s always the clock)

tests/checkout.spec.ts fails maybe 1 in 5 runs on CI with "expected ‘Order placed’ to be visible". Passes locally every time. Find out why and fix it…

Found it. The confirmation deliberately waits up to 2 s before flipping to “placed” (minimum spinner time). The test’s toBeVisible() uses Playwright’s default 5 s timeout — locally the API …

anonymous #codex #testing #playwright
Read →