@camunda/e2e-test-suite 0.0.1050 → 0.0.1051

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.
@@ -5,7 +5,7 @@ declare class OCIdentityRolesPage {
5
5
  readonly assignMappingRuleButton: Locator;
6
6
  readonly mappingSearchBox: Locator;
7
7
  readonly assignMappingModal: Locator;
8
- readonly assignMappingModalSearchResult: Locator;
8
+ readonly assignMappingRuleOption: (name: string) => Locator;
9
9
  readonly assignMappingModalAssignRuleButton: Locator;
10
10
  readonly rolesList: Locator;
11
11
  readonly roleCell: (name: string) => Locator;
@@ -13,7 +13,7 @@ class OCIdentityRolesPage {
13
13
  assignMappingRuleButton;
14
14
  mappingSearchBox;
15
15
  assignMappingModal;
16
- assignMappingModalSearchResult;
16
+ assignMappingRuleOption;
17
17
  assignMappingModalAssignRuleButton;
18
18
  rolesList;
19
19
  roleCell;
@@ -55,8 +55,12 @@ class OCIdentityRolesPage {
55
55
  this.createRoleButton = page.getByRole('button', {
56
56
  name: /create role/i,
57
57
  });
58
- this.assignMappingModalSearchResult =
59
- this.assignMappingModal.getByRole('listbox');
58
+ // The design-system assign-mapping-rule modal renders its result list in a
59
+ // Radix popover that portals to <body> as a sibling of the dialog, so the
60
+ // options are not inside assignMappingModal's DOM subtree - query them from
61
+ // the page. Each option repeats the id as both title and subtitle, so match
62
+ // on contained text rather than the accessible name.
63
+ this.assignMappingRuleOption = (name) => page.getByRole('option').filter({ hasText: name }).first();
60
64
  this.assignMappingModalAssignRuleButton = this.assignMappingModal.getByRole('button', {
61
65
  name: 'Assign mapping rule',
62
66
  });
@@ -140,8 +144,12 @@ class OCIdentityRolesPage {
140
144
  });
141
145
  await this.assignMappingRuleButton.click({ timeout: 60000 });
142
146
  await (0, test_1.expect)(this.assignMappingModal).toBeVisible({ timeout: 60000 });
143
- await this.mappingSearchBox.fill(mappingId);
144
- await this.assignMappingModalSearchResult.getByText(mappingId).click();
147
+ // The design-system search input is a cmdk combobox that only issues
148
+ // its server-side query on real keystrokes, so type the id in rather
149
+ // than setting the value in one shot.
150
+ await this.mappingSearchBox.click();
151
+ await this.mappingSearchBox.pressSequentially(mappingId);
152
+ await this.assignMappingRuleOption(mappingId).click({ timeout: 30000 });
145
153
  await this.assignMappingModalAssignRuleButton.click();
146
154
  return;
147
155
  }
@@ -122,7 +122,8 @@ SM_8_10_1.test.describe('Identity User Flow Tests', () => {
122
122
  });
123
123
  });
124
124
  });
125
- (0, SM_8_10_1.test)('User Roles User Flow on Orchestration Cluster', async ({ page, navigationPage, ocIdentityMappingRulesPage, ocIdentityHomePage, ocIdentityRolesPage, taskPanelPage, operateHomePage, settingsPage, browser, keycloakLoginPage, keycloakAdminPage, managementIdentityPage, }) => {
125
+ // Skipped due to bug #61565: https://github.com/camunda/camunda/issues/61565
126
+ SM_8_10_1.test.skip('User Roles User Flow on Orchestration Cluster', async ({ page, navigationPage, ocIdentityMappingRulesPage, ocIdentityHomePage, ocIdentityRolesPage, taskPanelPage, operateHomePage, settingsPage, browser, keycloakLoginPage, keycloakAdminPage, managementIdentityPage, }) => {
126
127
  if (node_process_1.default.env.IS_RBA === 'true' ||
127
128
  node_process_1.default.env.IS_MT === 'true' ||
128
129
  node_process_1.default.env.IS_LICENSE_KEY === 'true') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1050",
3
+ "version": "0.0.1051",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",