refactor: Specific error status codes (#18847)

This commit is contained in:
Omar López authored and GitHub committed 2025-01-24 07:09:54 +00:00
1 parent b3f946dd0b
commit 1fd4c3fd4c
4 files changed
+54 -8

No files matched your search

+1 -4
View File
@@ -93,10 +93,7 @@ test.describe("free user", () => {
await page.goto(bookingUrl);
// book same time spot again
await bookTimeSlot(page, {
/** FIXME: this should be a 409 conflict */
expectedStatusCode: 500,
});
await bookTimeSlot(page, { expectedStatusCode: 409 });
await page.locator("[data-testid=booking-fail]").waitFor({ state: "visible" });
});