small fixes
This commit is contained in:
parent
86c92a7c65
commit
43b250e157
3 changed files with 18 additions and 7 deletions
|
|
@ -91,7 +91,12 @@ test.describe("Availability Page - Admin Access", () => {
|
|||
|
||||
// Wait for "No availability" to disappear first, indicating slots have been loaded
|
||||
await expect(targetCard.getByText("No availability")).not.toBeVisible({ timeout: 10000 });
|
||||
// Then verify the specific slot text appears - this ensures the component has re-rendered
|
||||
|
||||
// Wait for any slot time text to appear (matches pattern like "09:00 - 17:00")
|
||||
// This ensures React has finished rendering the slot badges
|
||||
await expect(targetCard.getByText(/\d{2}:\d{2} - \d{2}:\d{2}/)).toBeVisible({ timeout: 10000 });
|
||||
|
||||
// Then verify the specific slot text appears
|
||||
await expect(targetCard.getByText("09:00 - 17:00")).toBeVisible({ timeout: 5000 });
|
||||
|
||||
// Now clear it - click on the same card using the testid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue