diff --git a/tests/e2e/support/api/graph/userManagement.ts b/tests/e2e/support/api/graph/userManagement.ts index 5ccb4fc378d..b4d65731ebc 100644 --- a/tests/e2e/support/api/graph/userManagement.ts +++ b/tests/e2e/support/api/graph/userManagement.ts @@ -29,6 +29,7 @@ export const createUser = async ({ user, admin }: { user: User; admin: User }): body, user: admin }) + checkResponseStatus(response, 'Failed while creating user') const responseData = await response.json() diff --git a/tests/e2e/support/objects/app-admin-settings/users/actions.ts b/tests/e2e/support/objects/app-admin-settings/users/actions.ts index ee6ccf984d4..7f2f3d1dc4f 100644 --- a/tests/e2e/support/objects/app-admin-settings/users/actions.ts +++ b/tests/e2e/support/objects/app-admin-settings/users/actions.ts @@ -14,7 +14,6 @@ export const changeAccountEnabled = async (args: { value: boolean }): Promise => { const { page, value, uuid } = args - console.log(uuid) await page.locator(util.format(userIdSelector, uuid)).click() await page.waitForSelector(editActionBtn) await page.locator(`.context-menu`).locator(editActionBtn).click() diff --git a/tests/e2e/support/objects/app-admin-settings/users/index.ts b/tests/e2e/support/objects/app-admin-settings/users/index.ts index 0419698fdf4..eb2cc4ae8fc 100644 --- a/tests/e2e/support/objects/app-admin-settings/users/index.ts +++ b/tests/e2e/support/objects/app-admin-settings/users/index.ts @@ -9,11 +9,10 @@ export class Users { this.#usersEnvironment = new UsersEnvironment() this.#page = page } - async allowLogin({ key }: { key: string }): Promise { const { uuid } = this.#usersEnvironment.getUser({ key }) + await changeAccountEnabled({ uuid, value: true, page: this.#page }) } - async forbidLogin({ key }: { key: string }): Promise { const { uuid } = this.#usersEnvironment.getUser({ key }) await changeAccountEnabled({ uuid, value: false, page: this.#page })