Playwright error locator.click: Timeout 30000ms exceeded
The element never became actionable (visible, enabled, stable, receiving events) within Playwright's default 30s action timeout.
Why this happens
- The element is covered by an overlay, spinner, or modal
- The locator matched zero elements, or matched an element that's still animating in
- The app genuinely never reaches the state the test expects
How to fix it
- Run with `npx playwright test --debug` to step through and see exactly what Playwright is waiting on
- Open the trace (`npx playwright show-trace`): the action log shows the specific 'waiting for' condition that never resolved
- Fix the underlying block (dismiss the overlay, wait for the spinner to detach) rather than just raising the timeout
- Only as a last resort, extend the action's own timeout: `await locator.click({ timeout: 60000 })`