mirror of
https://github.com/stablyai/orca.git
synced 2026-09-30 00:03:15 +00:00
test(e2e): allow background browser titles to settle
This commit is contained in:
@@ -285,7 +285,8 @@ async function waitForTabIdByExactTitle(
|
||||
const tab = tabs.find((candidate) => candidate.textContent?.trim() === exactTitle)
|
||||
return tab?.getAttribute('data-tab-id') ?? null
|
||||
}, title)
|
||||
await expect.poll(resolveTabId, { timeout: 10_000 }).not.toBeNull()
|
||||
// Background tabs may commit their document title after the guest load settles.
|
||||
await expect.poll(resolveTabId, { timeout: 30_000 }).not.toBeNull()
|
||||
return (await resolveTabId()) as string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user