From e12c05f4787d58a493bc1c83f919eee6a862bbfe Mon Sep 17 00:00:00 2001 From: Lilith Date: Tue, 3 Mar 2026 02:31:50 -0800 Subject: [PATCH] =?UTF-8?q?test(marketplace-e2e):=20=E2=9C=85=20Update=20r?= =?UTF-8?q?oute=20mocking=20utilities=20and=20add=20test=20page=20for=20Co?= =?UTF-8?q?op=20Safety=20tab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .../marketplace/frontend-public/e2e/helpers/route-mock.ts | 4 ++-- .../frontend-public/e2e/pages/coop/CoopSafetyTab.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/features/marketplace/frontend-public/e2e/helpers/route-mock.ts b/features/marketplace/frontend-public/e2e/helpers/route-mock.ts index 9995b1b0d..35303f0e8 100644 --- a/features/marketplace/frontend-public/e2e/helpers/route-mock.ts +++ b/features/marketplace/frontend-public/e2e/helpers/route-mock.ts @@ -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() } }) } diff --git a/features/marketplace/frontend-public/e2e/pages/coop/CoopSafetyTab.ts b/features/marketplace/frontend-public/e2e/pages/coop/CoopSafetyTab.ts index 603762e25..33535ced1 100644 --- a/features/marketplace/frontend-public/e2e/pages/coop/CoopSafetyTab.ts +++ b/features/marketplace/frontend-public/e2e/pages/coop/CoopSafetyTab.ts @@ -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