From 7574fa7149c0272c07962bcb9c81373f6781eb0e Mon Sep 17 00:00:00 2001 From: Merge Sim Date: Tue, 8 Sep 2026 13:13:03 -0700 Subject: [PATCH] test(e2e): allow background browser titles to settle --- tests/e2e/browser-tab.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/browser-tab.spec.ts b/tests/e2e/browser-tab.spec.ts index 347f3452c52..a2ebc2a5a30 100644 --- a/tests/e2e/browser-tab.spec.ts +++ b/tests/e2e/browser-tab.spec.ts @@ -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 }