Skip to content

Commit

Permalink
Added E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
keithwillcode committed May 29, 2024
1 parent 2220daa commit 6d2ea21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/web/playwright/booking-pages.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6d2ea21

Please sign in to comment.