Skip to content

Console browser tests: lower the default Playwright timeout to 5 s #1391

Closed

Description

@JacobStephens2

Problem

The Console browser tests (console/tests/*.test.cjs) use Playwright's default timeout of 30 s per action and locator wait, except experiments.test.cjs, which sets 10 s on its pages. Console pages answer in well under a second against fixture records, so a 30 s wait only matters when a test is already broken. Each broken step then stalls the run for half a minute. In one run on branch ui, eight tests broken by a markup change took about 30 s each before reporting, which made the edit, test and fix loop on Console UI work much slower than it needed to be.

Change

  • Add a shared console/tests/playwright.cjs that re-exports playwright with chromium.launch wrapped, so every context from browser.newContext() and every page from browser.newPage() defaults to a 5 s timeout (DEFAULT_TIMEOUT).
  • Every test file requires ./playwright.cjs instead of playwright.
  • Explicit per-call timeouts and experiments.test.cjs's page.setDefaultTimeout(10000) stay as they are. A step that really needs longer asks for it at the call site.

Acceptance

  • A locator that never matches fails after about 5 s, not 30 s.
  • npm test --prefix console passes as before (apart from known failures that are tracked separately).
  • console/README.md says where the default lives and how to ask for longer.

Implemented on branch ui (not yet merged).

Activity

  1. added
    needs-triage
    ready-for-agent
    and removed
    needs-triage
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions