refactor: Specific error status codes (#18847)
This commit is contained in:
1 parent
b3f946dd0b
commit
1fd4c3fd4c
4 files changed
+54
-8
No files matched your search
@@ -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" });
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user