Playwright · sdk · fg-0312

A stuck click burns the whole test and fails as 'Test timeout of 30000ms exceeded' instead of naming the locator

Test timeout of 30000ms exceeded.

Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100

Cause

Actions and navigations have no timeout of their own by default, so they wait until the 30 s test timeout ends the test. Assertions use a separate 5 s expect timeout.

Fix

Set actionTimeout and navigationTimeout below the test timeout so a missing element fails fast with its own error.

Apply

// playwright.config.ts
export default defineConfig({
  timeout: 60_000,
  expect: { timeout: 10_000 },
  use: { actionTimeout: 10_000, navigationTimeout: 30_000 },
})

Affects: Playwright Test, all current versions

Sources

Have your agent know this before it fails

claude mcp add --transport http footgun https://getfootgun.com/api/mcp