fix tests

This commit is contained in:
counterweight 2025-12-21 21:35:35 +01:00
parent bf1e42a498
commit 621e12cdb5
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C

View file

@ -271,7 +271,10 @@ test.describe("Booking Page - With Availability", () => {
// Book it
await page.getByRole("button", { name: "Book Appointment" }).click();
// Wait for success
// Wait for booking form to disappear (indicates booking completed)
await expect(page.getByRole("button", { name: "Book Appointment" })).not.toBeVisible({ timeout: 10000 });
// Wait for success message
await expect(page.getByText(/Appointment booked/)).toBeVisible();
// Should have one less slot now