@camunda/e2e-test-suite 0.0.1496 → 0.0.1498

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.
@@ -225,6 +225,9 @@ class OCIdentityRolesPage {
225
225
  });
226
226
  }
227
227
  await this.assignMappingModalAssignRuleButton.click({ timeout: 30000 });
228
+ // The modal closes only once the assign request succeeds; returning
229
+ // before that lets the caller's reload abort the in-flight PUT.
230
+ await (0, test_1.expect)(this.assignMappingModal).toBeHidden({ timeout: 30000 });
228
231
  return;
229
232
  }
230
233
  catch (error) {
@@ -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();
@@ -54,7 +54,10 @@ async function assignMappingToRole(page, ocIdentityHomePage, ocIdentityRolesPage
54
54
  }
55
55
  }
56
56
  await ocIdentityRolesPage.assignMappingRuleToRole(role, mappingRuleId);
57
- await assertLocatorVisibleWithPaginated(page, ocIdentityRolesPage.mappingRuleRow(mappingRuleId).first(), `${mappingRuleId} Mapping Rule`);
57
+ // The role's mapping rules table pages at 10 rows and the design-system
58
+ // DataTable labels its forward control "Next", which only the
59
+ // findLocatorWithPagination-based helper recognises.
60
+ await (0, expectLocatorWithPagination_1.expectLocatorWithPagination)(page, ocIdentityRolesPage.mappingRuleRow(mappingRuleId).first(), { maxRetries: 6 });
58
61
  }
59
62
  exports.assignMappingToRole = assignMappingToRole;
60
63
  async function createAndRunProcess(page, modelerHomePage, modelerCreatePage, processName, processId = '', tenant = '') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1496",
3
+ "version": "0.0.1498",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",