From 6d2ea2110a9e86cc1184d0fb0f40263f57da6edb Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Wed, 29 May 2024 14:46:15 -0300 Subject: [PATCH] Added E2E test --- apps/web/playwright/booking-pages.e2e.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/web/playwright/booking-pages.e2e.ts b/apps/web/playwright/booking-pages.e2e.ts index d4a4f78c25207c..5074f55705a777 100644 --- a/apps/web/playwright/booking-pages.e2e.ts +++ b/apps/web/playwright/booking-pages.e2e.ts @@ -153,6 +153,14 @@ testBothFutureAndLegacyRoutes.describe("pro user", () => { await expect(page).toHaveURL(new RegExp(`${pro.username}/${eventType.slug}`)); }); + test("it returns a 404 when a requested event type does not exist", async ({ page, users }) => { + const [pro] = users.get(); + + const response = page.waitForResponse(`${pro.username}/invalid-event-type`); + + await expect(response.status()).toBe(404); + }); + test("Can cancel the recently created booking and rebook the same timeslot", async ({ page, users,