Skip to content

Commit b57f66d

Browse files
committed
test(org): skip a prefetch whose body the navigation discarded
1 parent 78cf045 commit b57f66d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • apps/sim/scripts/org-redesign-e2e/checks

‎apps/sim/scripts/org-redesign-e2e/checks/links.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ export async function linksChecks() {
394394
const loadingPrefetched = page.waitForResponse(
395395
async (response) =>
396396
isLinksPayload(new URL(response.url())) &&
397-
(await response.text()).includes('Loading links')
397+
// A prefetch the page moved past has no body left to read, and is not the one awaited.
398+
(await response.text().catch(() => '')).includes('Loading links')
398399
)
399400
await page.goto(orgUrl('/home'))
400401
await loadingPrefetched

0 commit comments

Comments
 (0)