fix tests
This commit is contained in:
parent
bf1e42a498
commit
621e12cdb5
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue