@camunda/e2e-test-suite 0.0.992 → 0.0.993
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,7 +48,7 @@ class ManagementIdentityPage {
|
|
|
48
48
|
.filter({ hasText: 'Optimize (Grants full access to Optimize)' });
|
|
49
49
|
this.modelerCheckbox = page
|
|
50
50
|
.locator('label')
|
|
51
|
-
.filter({ hasText: '
|
|
51
|
+
.filter({ hasText: 'Hub (Grants full access to Hub)' });
|
|
52
52
|
this.identityCheckbox = page.locator('label').filter({
|
|
53
53
|
hasText: 'ManagementIdentity (Provides full access to Management Identity)',
|
|
54
54
|
});
|
|
@@ -61,7 +61,7 @@ class ManagementIdentityPage {
|
|
|
61
61
|
this.licenseKeyTagProduction = page.getByText('Production license').first();
|
|
62
62
|
this.licenseKeyTagCommercial = page.getByText('Commercial license');
|
|
63
63
|
this.modelerAdminCheckbox = page.locator('label').filter({
|
|
64
|
-
hasText: '
|
|
64
|
+
hasText: 'Hub Admin (Grants elevated access to Hub)',
|
|
65
65
|
});
|
|
66
66
|
this.openSidebarButton = page.getByLabel('Open User Sidebar');
|
|
67
67
|
this.logoutButton = page.getByRole('button', { name: 'Log out' });
|
|
@@ -95,23 +95,19 @@ class ManagementIdentityPage {
|
|
|
95
95
|
await this.demoUser.click({ timeout: 180000 });
|
|
96
96
|
}
|
|
97
97
|
async clickDeleteAccessButton(accessToDelete) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
98
|
+
const roleRow = this.page
|
|
99
|
+
.locator(':text("' + accessToDelete + '")')
|
|
100
|
+
.first();
|
|
101
|
+
await (0, test_1.expect)(roleRow, `No assigned role matching "${accessToDelete}" was found. The role may ` +
|
|
102
|
+
`already be removed, or its label may have changed in this version.`).toBeVisible({ timeout: 60000 });
|
|
103
|
+
await this.page
|
|
104
|
+
.locator('td:right-of(:text("' + accessToDelete + '"))')
|
|
105
|
+
.first()
|
|
106
|
+
.click({ timeout: 60000 });
|
|
107
107
|
}
|
|
108
108
|
async clickConfirmDeleteButton() {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
catch {
|
|
113
|
-
console.log('Access already deleted');
|
|
114
|
-
}
|
|
109
|
+
await (0, test_1.expect)(this.confirmDeleteButton, 'The delete-role confirmation dialog did not appear.').toBeVisible({ timeout: 60000 });
|
|
110
|
+
await this.confirmDeleteButton.click();
|
|
115
111
|
}
|
|
116
112
|
async clickAssignRolesButton() {
|
|
117
113
|
await this.assignRolesButton.click();
|
|
@@ -52,8 +52,8 @@ SM_8_10_1.test.describe('Identity User Flow Tests', () => {
|
|
|
52
52
|
await managementIdentityPage.clickConfirmDeleteButton();
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
await SM_8_10_1.test.step('Remove Access from
|
|
56
|
-
await managementIdentityPage.clickDeleteAccessButton('Grants full access to
|
|
55
|
+
await SM_8_10_1.test.step('Remove Access from Hub', async () => {
|
|
56
|
+
await managementIdentityPage.clickDeleteAccessButton('Grants full access to Hub');
|
|
57
57
|
await managementIdentityPage.clickConfirmDeleteButton();
|
|
58
58
|
});
|
|
59
59
|
await SM_8_10_1.test.step('Reset Session', async () => {
|