|
|
@ -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, |
|
|
|