From 215dcaab26699bda29bee2a8f945b1b30d50d670 Mon Sep 17 00:00:00 2001 From: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz> Date: Tue, 18 Aug 2026 12:00:29 -0400 Subject: [PATCH] test(e2e): allow hash-route bootstrap responses Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz> --- desktop/tests/helpers/bootstrap.ts | 4 ++-- web/tests/helpers/bootstrap.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop/tests/helpers/bootstrap.ts b/desktop/tests/helpers/bootstrap.ts index 0eb8a81578..f2d553706c 100644 --- a/desktop/tests/helpers/bootstrap.ts +++ b/desktop/tests/helpers/bootstrap.ts @@ -37,11 +37,11 @@ export async function bootstrapE2ePage( throw bootstrapFailure(expectedOrigin, page.url(), error); } - if (!response?.ok()) { + if (response && !response.ok()) { throw bootstrapFailure( expectedOrigin, page.url(), - `navigation returned HTTP ${response?.status() ?? "no response"}`, + `navigation returned HTTP ${response.status()}`, ); } diff --git a/web/tests/helpers/bootstrap.ts b/web/tests/helpers/bootstrap.ts index 9b96ae6cc3..ffdd8beafe 100644 --- a/web/tests/helpers/bootstrap.ts +++ b/web/tests/helpers/bootstrap.ts @@ -37,11 +37,11 @@ export async function bootstrapE2ePage( throw bootstrapFailure(expectedOrigin, page.url(), error); } - if (!response?.ok()) { + if (response && !response.ok()) { throw bootstrapFailure( expectedOrigin, page.url(), - `navigation returned HTTP ${response?.status() ?? "no response"}`, + `navigation returned HTTP ${response.status()}`, ); }