Browse Source

fix(playright): accountUserManagement

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
4c7d66ac4c
  1. 14
      tests/playwright/tests/db/usersAccounts/accountUserManagement.spec.ts

14
tests/playwright/tests/db/usersAccounts/accountUserManagement.spec.ts

@ -16,6 +16,11 @@ const roleDb = [
]; ];
test.describe('User roles', () => { test.describe('User roles', () => {
// Org level roles are not available in EE
if (isEE()) {
test.skip();
}
let accountUsersPage: AccountUsersPage; let accountUsersPage: AccountUsersPage;
let accountPage: AccountPage; let accountPage: AccountPage;
let signupPage: SignupPage; let signupPage: SignupPage;
@ -25,11 +30,6 @@ test.describe('User roles', () => {
let context: any; let context: any;
test.beforeEach(async ({ page }) => { test.beforeEach(async ({ page }) => {
// Org level roles are not available in EE
if (isEE()) {
test.skip();
}
context = await setup({ page, isEmptyProject: true, isSuperUser: true }); context = await setup({ page, isEmptyProject: true, isSuperUser: true });
dashboard = new DashboardPage(page, context.project); dashboard = new DashboardPage(page, context.project);
accountPage = new AccountPage(page); accountPage = new AccountPage(page);
@ -65,10 +65,10 @@ test.describe('User roles', () => {
test('Invite user, update role and delete user', async () => { test('Invite user, update role and delete user', async () => {
test.slow(); test.slow();
// invite user
for (let i = 0; i < roleDb.length; i++) {
await accountUsersPage.goto(); await accountUsersPage.goto();
// invite user
for (let i = 0; i < roleDb.length; i++) {
roleDb[i].url = await accountUsersPage.invite({ roleDb[i].url = await accountUsersPage.invite({
email: roleDb[i].email, email: roleDb[i].email,
role: roleDb[i].role, role: roleDb[i].role,

Loading…
Cancel
Save