From 5a8969ac3e132c94e5a6eb211fd60c21fa02f303 Mon Sep 17 00:00:00 2001 From: piquel Date: Thu, 5 Nov 2026 18:40:54 +0100 Subject: [PATCH] test(browser): "removing a connected app" no longer fails one run in three The test ends on the client's callback page, which `serveClient` serves through DevTools. Chromium then asks for that origin's `/favicon.ico`. Nothing waits for that request, so its `Fetch.fulfillRequest` could still be in flight when the context closed, and its rejection failed the test with `cdpSession.send: Target page, context or browser has been closed`. The served page now declares an icon, so Chromium never makes the request. --- tests/browser/helpers.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/browser/helpers.ts b/tests/browser/helpers.ts index d30b1f007..ad8a30b96 100644 --- a/tests/browser/helpers.ts +++ b/tests/browser/helpers.ts @@ -140,7 +140,9 @@ export async function signedUp(browser: Browser, username: string): PromiseClient') + ? Buffer.from('Client') : readFileSync(module) ).toString('base64') });