test(e2e): allow hash-route bootstrap responses

Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
This commit is contained in:
Brother Darryl
2026-08-18 12:00:29 -04:00
parent 5d5baba4c2
commit 215dcaab26
2 changed files with 4 additions and 4 deletions

View File

@@ -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()}`,
);
}

View File

@@ -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()}`,
);
}