test(marketplace-e2e): Update route mocking utilities and add test page for Coop Safety tab

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-03-03 02:31:50 -08:00
parent 77cf453270
commit e12c05f478
2 changed files with 3 additions and 4 deletions

View file

@ -38,7 +38,7 @@ export async function mockApiRoute(
body: JSON.stringify(body),
})
} else {
await route.continue()
await route.fallback()
}
})
}
@ -101,7 +101,7 @@ export async function mockApiDelayed(
body: JSON.stringify(body),
})
} else {
await route.continue()
await route.fallback()
}
})
}

View file

@ -93,8 +93,7 @@ export class CoopSafetyTab {
})
this.buddyAlertBanner = this.tabPanel
.getByRole('alert')
.filter({ hasText: /buddy/i })
.or(this.tabPanel.getByText(/buddy alert/i).locator('..'))
.filter({ hasText: /overdue|escalating/i })
// ── Check-in controls — located by heading text ──
this.checkinSection = this.tabPanel