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', () => {
// 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,

Loading…
Cancel
Save