@camunda/e2e-test-suite 0.0.1073 → 0.0.1074
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.
|
@@ -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
|
}
|