@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: 'Web Modeler (Grants full access to Web Modeler)' });
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: 'Web Modeler Admin (Grants elevated access to Web Modeler)',
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
- try {
99
- await this.page
100
- .locator('td:right-of(:text("' + accessToDelete + '"))')
101
- .first()
102
- .click({ timeout: 60000 });
103
- }
104
- catch {
105
- console.log('Access already deleted');
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
- try {
110
- await this.confirmDeleteButton.click();
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 Web Modeler', async () => {
56
- await managementIdentityPage.clickDeleteAccessButton('Grants full access to Web Modeler');
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 () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.992",
3
+ "version": "0.0.993",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",