From 4c7d66ac4c575d5feb6f90ce91e5d603a5b7d4d1 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 12 Sep 2023 18:21:44 +0800 Subject: [PATCH] fix(playright): accountUserManagement --- .../db/usersAccounts/accountUserManagement.spec.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/playwright/tests/db/usersAccounts/accountUserManagement.spec.ts b/tests/playwright/tests/db/usersAccounts/accountUserManagement.spec.ts index 10d4513603..9894402115 100644 --- a/tests/playwright/tests/db/usersAccounts/accountUserManagement.spec.ts +++ b/tests/playwright/tests/db/usersAccounts/accountUserManagement.spec.ts @@ -16,6 +16,11 @@ const roleDb = [ ]; test.describe('User roles', () => { + // Org level roles are not available in EE + if (isEE()) { + test.skip(); + } + let accountUsersPage: AccountUsersPage; let accountPage: AccountPage; let signupPage: SignupPage; @@ -25,11 +30,6 @@ test.describe('User roles', () => { let context: any; test.beforeEach(async ({ page }) => { - // Org level roles are not available in EE - if (isEE()) { - test.skip(); - } - context = await setup({ page, isEmptyProject: true, isSuperUser: true }); dashboard = new DashboardPage(page, context.project); accountPage = new AccountPage(page); @@ -65,10 +65,10 @@ test.describe('User roles', () => { test('Invite user, update role and delete user', async () => { test.slow(); + await accountUsersPage.goto(); + // invite user for (let i = 0; i < roleDb.length; i++) { - await accountUsersPage.goto(); - roleDb[i].url = await accountUsersPage.invite({ email: roleDb[i].email, role: roleDb[i].role,