|
|
|
@ -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(); |
|
|
|
|
|
|
|
|
|
// invite user
|
|
|
|
|
for (let i = 0; i < roleDb.length; i++) { |
|
|
|
|
await accountUsersPage.goto(); |
|
|
|
|
|
|
|
|
|
// invite user
|
|
|
|
|
for (let i = 0; i < roleDb.length; i++) { |
|
|
|
|
roleDb[i].url = await accountUsersPage.invite({ |
|
|
|
|
email: roleDb[i].email, |
|
|
|
|
role: roleDb[i].role, |
|
|
|
|