Skip to content

Commit

Permalink
change status code
Browse files Browse the repository at this point in the history
  • Loading branch information
ScharfViktor committed Nov 13, 2023
1 parent d32c4ea commit 931f296
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/support/objects/account/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const requestGdprExport = async (args: { page: Page }): Promise<void> =>
page.waitForResponse(
(resp) =>
resp.url().endsWith('exportPersonalData') &&
resp.status() === 201 &&
resp.status() === 202 &&
resp.request().method() === 'POST'
),
// not waiting for the generation report
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const createGroup = async (args: { page: Page; key: string }): Promise<Re
const [response] = await Promise.all([
page.waitForResponse(
(resp) =>
resp.url().endsWith('groups') && resp.status() === 200 && resp.request().method() === 'POST'
resp.url().endsWith('groups') && resp.status() === 201 && resp.request().method() === 'POST'
),
page.locator(actionConfirmButton).click()
])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const createUser = async (args: {
const [response] = await Promise.all([
page.waitForResponse(
(resp) =>
resp.url().endsWith('users') && resp.status() === 200 && resp.request().method() === 'POST'
resp.url().endsWith('users') && resp.status() === 201 && resp.request().method() === 'POST'
),
page.locator(actionConfirmButton).click()
])
Expand Down

0 comments on commit 931f296

Please sign in to comment.