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,