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:
parent
77cf453270
commit
e12c05f478
2 changed files with 3 additions and 4 deletions
|
|
@ -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()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue