@camunda/e2e-test-suite 0.0.1073 → 0.0.1075
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.
|
@@ -89,7 +89,14 @@ class OCIdentityRolesPage {
|
|
|
89
89
|
exact: true,
|
|
90
90
|
});
|
|
91
91
|
this.createRoleModalCreateButton = this.createRoleModal.getByRole('button', { name: 'Create role' });
|
|
92
|
-
|
|
92
|
+
// The design-system DataTable renders the row's dangerous action as a
|
|
93
|
+
// labelled button - the trash icon is aria-hidden and the accessible name
|
|
94
|
+
// comes from the visible "Delete" text - while Carbon rendered an icon
|
|
95
|
+
// button carrying aria-label="Delete". getByLabel only matches the latter,
|
|
96
|
+
// so match the accessible name instead, which covers both DOMs.
|
|
97
|
+
this.deleteRoleButton = (rowName) => this.rolesList
|
|
98
|
+
.getByRole('row', { name: rowName })
|
|
99
|
+
.getByRole('button', { name: /^delete/i });
|
|
93
100
|
this.deleteRoleModal = page.getByRole('dialog', { name: /delete role/i });
|
|
94
101
|
this.closeDeleteRoleModal = this.deleteRoleModal.getByRole('button', {
|
|
95
102
|
name: 'Close',
|
|
@@ -81,9 +81,14 @@ class OCTenantPage {
|
|
|
81
81
|
.getByRole('dialog')
|
|
82
82
|
.getByRole('button', { name: 'Cancel' });
|
|
83
83
|
this.gotItButton = page.getByRole('button', { name: 'Got it' });
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
// The design-system Admin shell replaced Carbon's table toolbar search
|
|
85
|
+
// (labelled "Filter table") with an input whose aria-label is its
|
|
86
|
+
// placeholder, so match the new shell first and fall back to the legacy
|
|
87
|
+
// one - the same dual-shell pattern the Admin nav locators use.
|
|
88
|
+
this.filterTableSearchbox = page
|
|
89
|
+
.getByRole('searchbox', { name: 'Search by tenant ID' })
|
|
90
|
+
.or(page.getByRole('searchbox', { name: 'Filter table' }))
|
|
91
|
+
.first();
|
|
87
92
|
this.row = (name) => this.page.getByRole('row').filter({ hasText: name }).first();
|
|
88
93
|
}
|
|
89
94
|
async clickCreateTenantMainButton() {
|
|
@@ -196,7 +201,7 @@ class OCTenantPage {
|
|
|
196
201
|
catch (error) {
|
|
197
202
|
console.warn(`Attempt ${attempt} to click tenant '${tenantName}' failed. Retrying...`, error);
|
|
198
203
|
if (attempt === maxRetries) {
|
|
199
|
-
throw new Error(`Failed to click tenant '${tenantName}' after ${maxRetries} attempts
|
|
204
|
+
throw new Error(`Failed to click tenant '${tenantName}' after ${maxRetries} attempts. Last error: ${error}`);
|
|
200
205
|
}
|
|
201
206
|
}
|
|
202
207
|
}
|