Commit cf1b0dac authored by Tobias Koppers's avatar Tobias Koppers

fix(test): increase elementByCssInstant timeout from 10ms to 100ms

The 10ms timeout was too short for Playwright's internal IPC overhead
on CI machines, causing flakiness in instant-navs-devtools tests.
100ms still keeps the "instant" semantics (no page load wait) while
providing enough headroom for slow CI environments.
Co-Authored-By: 's avatarClaude <noreply@anthropic.com>
parent 9e150930
......@@ -437,7 +437,7 @@ export class Playwright<TCurrent = undefined> {
/** A replacement for the default `browser.elementByCss` that doesn't wait for the page to fire "load". */
elementByCssInstant(selector: string, opts?: ElementByCssOpts) {
return this.waitForElementByCss(selector, {
timeout: 10,
timeout: 100,
waitUntil: false,
...opts,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment