@camunda/e2e-test-suite 0.0.1496 → 0.0.1497
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.
|
@@ -66,6 +66,7 @@ declare class OCTenantPage {
|
|
|
66
66
|
clickRoleIdSearchBox(): Promise<void>;
|
|
67
67
|
private ensureRoleIdSearchBoxOpen;
|
|
68
68
|
fillRoleIdSearchBox(roleId: string, roleIdentifier: string): Promise<void>;
|
|
69
|
+
private closeRoleIdPopover;
|
|
69
70
|
clickAssignRoleSubButton(): Promise<void>;
|
|
70
71
|
private isRoleAssigned;
|
|
71
72
|
assignRoleToTenant(roleId: string, roleIdentifier: string): Promise<void>;
|
|
@@ -356,6 +356,24 @@ class OCTenantPage {
|
|
|
356
356
|
` any of: ${searchTerms.join(', ')}`);
|
|
357
357
|
}).toPass({ timeout: 120000, intervals: [2000] });
|
|
358
358
|
await result.click();
|
|
359
|
+
await this.closeRoleIdPopover();
|
|
360
|
+
}
|
|
361
|
+
// The MultiSelect popover stays open after an option is picked, and its
|
|
362
|
+
// portalled listbox overlays the dialog footer, intercepting the click on
|
|
363
|
+
// the Assign role button. Escape is only sent while the popover is open: in
|
|
364
|
+
// the legacy shell there is none, and Escape would close the dialog itself.
|
|
365
|
+
async closeRoleIdPopover() {
|
|
366
|
+
const popover = this.page.locator('[data-slot="multi-select-content"]');
|
|
367
|
+
if (!(await popover.isVisible().catch(() => false))) {
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
await (0, test_1.expect)(async () => {
|
|
371
|
+
if (await popover.isVisible()) {
|
|
372
|
+
await this.page.keyboard.press('Escape');
|
|
373
|
+
}
|
|
374
|
+
await (0, test_1.expect)(popover).toBeHidden({ timeout: 5000 });
|
|
375
|
+
}).toPass({ timeout: 30000, intervals: [1000] });
|
|
376
|
+
await (0, test_1.expect)(this.assignRoleSubButton).toBeVisible();
|
|
359
377
|
}
|
|
360
378
|
async clickAssignRoleSubButton() {
|
|
361
379
|
await this.assignRoleSubButton.click();
|