You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Console browser tests: lower the default Playwright timeout to 5 s #1391
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.
Activity