@camunda/e2e-test-suite 0.0.1294 → 0.0.1295

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.
Files changed (34) hide show
  1. package/dist/pages/8.10/AppsPage.d.ts +7 -3
  2. package/dist/pages/8.10/AppsPage.js +166 -49
  3. package/dist/pages/8.10/ClusterDetailsPage.d.ts +2 -0
  4. package/dist/pages/8.10/ClusterDetailsPage.js +49 -2
  5. package/dist/pages/8.10/ClusterSecretsPage.js +5 -1
  6. package/dist/pages/8.10/ConnectorMarketplacePage.d.ts +6 -0
  7. package/dist/pages/8.10/ConnectorMarketplacePage.js +107 -1
  8. package/dist/pages/8.10/ConsoleOrganizationPage.d.ts +3 -2
  9. package/dist/pages/8.10/ConsoleOrganizationPage.js +64 -27
  10. package/dist/pages/8.10/FormJsPage.js +36 -18
  11. package/dist/pages/8.10/IdpCreatePage.js +6 -2
  12. package/dist/pages/8.10/ModelerCreatePage.d.ts +8 -0
  13. package/dist/pages/8.10/ModelerCreatePage.js +316 -40
  14. package/dist/pages/8.10/ModelerHomePage.d.ts +10 -0
  15. package/dist/pages/8.10/ModelerHomePage.js +165 -55
  16. package/dist/pages/8.10/OCIdentityClusterVariablesPage.js +3 -1
  17. package/dist/pages/8.10/OCIdentityHomePage.js +7 -3
  18. package/dist/pages/8.10/OptimizeHomePage.d.ts +0 -1
  19. package/dist/pages/8.10/OptimizeHomePage.js +10 -46
  20. package/dist/pages/8.10/PlayPage.js +9 -3
  21. package/dist/pages/8.10/ProcessApplicationPage.d.ts +1 -0
  22. package/dist/pages/8.10/ProcessApplicationPage.js +128 -6
  23. package/dist/pages/8.10/UtilitiesPage.js +44 -17
  24. package/dist/pages/8.10/WorkspaceMembersPage.d.ts +21 -0
  25. package/dist/pages/8.10/WorkspaceMembersPage.js +264 -0
  26. package/dist/resources/agentic_ai/ai-agent-chat-with-tools_gemini_vertex.bpmn +1 -1
  27. package/dist/tests/8.10/access-user-role-management.spec.js +142 -26
  28. package/dist/tests/8.10/idp-user-flows.spec.js +2 -1
  29. package/dist/tests/8.10/rba-enabled-v2-user-flows.spec.js +13 -4
  30. package/dist/tests/8.10/smoke-tests.spec.js +9 -25
  31. package/dist/tests/8.10/test-setup.spec.js +57 -4
  32. package/dist/tests/8.10/web-modeler-user-flows.spec.js +2 -1
  33. package/package.json +1 -1
  34. package/resources/agentic_ai/ai-agent-chat-with-tools_gemini_vertex.bpmn +1 -1
@@ -43,20 +43,30 @@ class ConsoleOrganizationPage {
43
43
  constructor(page) {
44
44
  this.page = page;
45
45
  this.usersTab = page.getByRole('tab', { name: 'Users' });
46
- this.optionsButton = page.getByRole('button', { name: 'Options' });
47
- this.editUserMenuItem = page.getByRole('menuitem', { name: 'Edit User' });
48
- this.modelerCheckbox = page
49
- .getByRole('group')
50
- .locator('label')
51
- .filter({ hasText: 'Modeler' });
52
- this.adminCheckbox = page
53
- .getByRole('group')
54
- .locator('label')
55
- .filter({ hasText: 'Admin' });
56
- this.analystCheckbox = page
57
- .getByRole('group')
58
- .locator('label')
59
- .filter({ hasText: 'Analyst' });
46
+ // Hub's org-management Users table renamed the per-row kebab from Carbon's
47
+ // "Options" to "Row actions". Scope the fallback to the visible tab panel
48
+ // so another tab's rows cannot match.
49
+ this.optionsButton = page
50
+ .getByRole('button', { name: 'Options' })
51
+ .or(page.getByRole('tabpanel').getByRole('button', { name: 'Row actions' }))
52
+ .first();
53
+ this.editUserMenuItem = page.getByRole('menuitem', { name: /^Edit user$/i });
54
+ // The redesigned "Edit user" dialog renders the role toggles as plain
55
+ // checkboxes with no role="group" wrapper, so scope to the open dialog. Hub
56
+ // also renamed the roles (phased rollout): "Modeler" became "Member" and
57
+ // "Admin" became "Organization Admin"; "Analyst" keeps its name but now
58
+ // already includes Member permissions. Match either name.
59
+ const openDialog = page.getByRole('dialog');
60
+ this.modelerCheckbox = openDialog.getByRole('checkbox', {
61
+ name: /^(Member|Modeler)$/,
62
+ });
63
+ this.adminCheckbox = openDialog.getByRole('checkbox', {
64
+ name: /^(Organization Admin|Admin)$/,
65
+ });
66
+ this.analystCheckbox = openDialog.getByRole('checkbox', {
67
+ name: 'Analyst',
68
+ exact: true,
69
+ });
60
70
  this.confirmButton = page.getByRole('button', { name: 'Confirm' });
61
71
  this.settingsTab = page.getByRole('tab', { name: 'Settings' });
62
72
  this.optInButton = page.getByRole('button', { name: 'Opt-in', exact: true });
@@ -158,10 +168,12 @@ class ConsoleOrganizationPage {
158
168
  }
159
169
  async selectAnalystRole(username) {
160
170
  await this.filterTable([username]);
161
- await this.clickOptionsButton();
162
- await this.clickEditUserMenuItem();
171
+ await this.clickOptionsButton(username);
172
+ await this.clickEditUserMenuItem(username);
173
+ // Analyst now includes Member, so Member stays selected -- only ensure the
174
+ // user is not also an Organization Admin. (Previously this unchecked the
175
+ // Modeler role, which the new role model folds into Member.)
163
176
  await this.checkAnalystCheckbox();
164
- await this.uncheckModelerCheckbox();
165
177
  await this.uncheckAdminCheckbox();
166
178
  await this.clickConfirmButton();
167
179
  await (0, test_1.expect)(this.page.getByText('Updating...')).not.toBeVisible({
@@ -170,8 +182,8 @@ class ConsoleOrganizationPage {
170
182
  }
171
183
  async selectModelerRole(username) {
172
184
  await this.filterTable([username]);
173
- await this.clickOptionsButton();
174
- await this.clickEditUserMenuItem();
185
+ await this.clickOptionsButton(username);
186
+ await this.clickEditUserMenuItem(username);
175
187
  await this.uncheckAnalystCheckbox();
176
188
  await this.uncheckAdminCheckbox();
177
189
  await this.checkModelerCheckbox();
@@ -182,21 +194,46 @@ class ConsoleOrganizationPage {
182
194
  }
183
195
  async selectAdminRole(username) {
184
196
  await this.filterTable([username]);
185
- await this.clickOptionsButton();
186
- await this.clickEditUserMenuItem();
197
+ await this.clickOptionsButton(username);
198
+ await this.clickEditUserMenuItem(username);
199
+ // Grant Organization Admin and drop Analyst; Member is left as-is (the new
200
+ // role model folds the former Modeler role into Member, and Organization
201
+ // Admin is a super-user regardless of it).
187
202
  await this.uncheckAnalystCheckbox();
188
- await this.uncheckModelerCheckbox();
189
203
  await this.checkAdminCheckbox();
190
204
  await this.clickConfirmButton();
191
205
  await (0, test_1.expect)(this.page.getByText('Updating...')).not.toBeVisible({
192
206
  timeout: 90000,
193
207
  });
194
208
  }
195
- async clickOptionsButton() {
196
- await this.optionsButton.click({ timeout: 60000 });
197
- }
198
- async clickEditUserMenuItem() {
199
- await this.editUserMenuItem.click({ timeout: 60000 });
209
+ // Scoped to the user's own row: the table can still list other users when
210
+ // the menu opens, and a page-wide `.first()` would edit their roles.
211
+ userOptionsButton(username) {
212
+ const row = this.page.getByRole('row').filter({ hasText: username });
213
+ return row
214
+ .getByRole('button', { name: 'Options' })
215
+ .or(row.getByRole('button', { name: 'Row actions' }))
216
+ .first();
217
+ }
218
+ async clickOptionsButton(username) {
219
+ await this.userOptionsButton(username).click({ timeout: 60000 });
220
+ }
221
+ async clickEditUserMenuItem(username) {
222
+ // Hub's row menu is a Radix dropdown that animates in and re-mounts its
223
+ // items while opening. A live run against the nightly org resolved this
224
+ // item correctly -- <div role="menuitem" data-slot="dropdown-menu-item">
225
+ // Edit user</div> -- and still failed the click: "element is not stable"
226
+ // twice, then "element was detached from the DOM, retrying" until the 60s
227
+ // budget ran out. A detached item means the menu itself went away, so
228
+ // clicking harder cannot help; re-open it and retry the pair as one unit,
229
+ // gated on the dialog actually opening.
230
+ await (0, test_1.expect)(async () => {
231
+ if (!(await this.editUserMenuItem.isVisible().catch(() => false))) {
232
+ await this.clickOptionsButton(username);
233
+ }
234
+ await this.editUserMenuItem.click({ timeout: 10000 });
235
+ await (0, test_1.expect)(this.dialog.first()).toBeVisible({ timeout: 10000 });
236
+ }).toPass({ timeout: 120000, intervals: [1000, 2000, 5000] });
200
237
  }
201
238
  async checkModelerCheckbox() {
202
239
  if (!(await this.modelerCheckbox.isChecked({ timeout: 60000 }))) {
@@ -4,6 +4,8 @@ exports.FormJsPage = void 0;
4
4
  const test_1 = require("@playwright/test");
5
5
  const sleep_1 = require("../../utils/sleep");
6
6
  const ProcessApplicationPage_1 = require("./ProcessApplicationPage");
7
+ const modelerCluster_1 = require("../../utils/modelerCluster");
8
+ const hubDeployDialog_1 = require("../../utils/hubDeployDialog");
7
9
  class FormJsPage {
8
10
  page;
9
11
  processApplicationPage;
@@ -50,16 +52,27 @@ class FormJsPage {
50
52
  // Inside a process application hub titles this modal for the application
51
53
  // rather than for the form, so 'Deploy form' never matches and the dialog
52
54
  // reads as absent. pages/SM-8.10 filters on 'Deploy' for the same reason.
55
+ // Hub renders the deploy dialog with the design system, not as a Carbon
56
+ // modal. Keep the Carbon locator for older builds.
53
57
  this.dialog = page
58
+ .getByRole('dialog')
59
+ .filter({ hasText: 'Deploy' })
60
+ .or(page
54
61
  .locator('.cds--modal-container[role="dialog"]')
55
- .filter({ hasText: 'Deploy' });
62
+ .filter({ hasText: 'Deploy' }))
63
+ .first();
56
64
  this.deploySubButton = this.dialog.getByRole('button', {
57
65
  name: 'Deploy',
58
66
  exact: true,
59
67
  });
68
+ // Hub's success toast is not a cds--toast node either (camunda-hub
69
+ // deploy/get-success-message.ts), so match its title anywhere.
60
70
  this.deploySuccessNotification = page
71
+ .getByText('Form deployed!')
72
+ .or(page
61
73
  .locator('.cds--toast-notification--success')
62
- .filter({ hasText: 'Form deployed!' });
74
+ .filter({ hasText: 'Form deployed!' }))
75
+ .first();
63
76
  }
64
77
  async generateAIForm(
65
78
  // "date only, no time": asked for a plain date the generator sometimes
@@ -159,6 +172,24 @@ class FormJsPage {
159
172
  throw new Error(`Process application has no cluster assigned to any stage, so "${clusterName}" cannot be deployed to. ` +
160
173
  'ProcessApplicationPage.ensureStageCluster() should have bound it before the deploy dialog was opened.');
161
174
  }
175
+ // Hub's environment-based dialog lists every environment assigned to the
176
+ // workspace and preselects the first, which need not be this one.
177
+ const hasEnvironmentRow = await this.dialog
178
+ .locator('[data-test^="environment-row-"]')
179
+ .first()
180
+ .waitFor({ state: 'visible', timeout: 10000 })
181
+ .then(() => true)
182
+ .catch(() => false);
183
+ if (hasEnvironmentRow) {
184
+ try {
185
+ await (0, modelerCluster_1.selectDeployEnvironment)(this.dialog, clusterName);
186
+ }
187
+ catch (error) {
188
+ this.processApplicationPage.forgetStageCluster();
189
+ throw error;
190
+ }
191
+ return;
192
+ }
162
193
  const legacyClusterToggle = this.dialog.locator('label').filter({
163
194
  hasText: new RegExp(`^${clusterName}`),
164
195
  });
@@ -211,22 +242,9 @@ class FormJsPage {
211
242
  // silently turning it into a process-application deploy. The combobox only
212
243
  // exists inside a container, hence the boolean probe.
213
244
  async selectOnlyThisResource() {
214
- const scopeSelect = this.dialog.getByRole('combobox', {
215
- name: 'Resources to deploy',
216
- });
217
- const hasScopeSelect = await scopeSelect
218
- .waitFor({ state: 'visible', timeout: 10000 })
219
- .then(() => true)
220
- .catch(() => false);
221
- if (!hasScopeSelect) {
222
- return;
223
- }
224
- await scopeSelect.click();
225
- await this.dialog
226
- .getByRole('option', { name: 'Only this resource' })
227
- .or(this.dialog.getByText('Only this resource', { exact: true }))
228
- .first()
229
- .click({ timeout: 30000 });
245
+ // Hub's scope select is named by its value ("All resources"), not by the
246
+ // "Resources to deploy" label; the shared helper addresses it by id.
247
+ await (0, hubDeployDialog_1.selectOnlyThisResourceInDialog)(this.page, this.dialog);
230
248
  }
231
249
  async deployForm(clusterName) {
232
250
  await this.processApplicationPage.ensureStageCluster(clusterName);
@@ -71,11 +71,15 @@ class IdpCreatePage {
71
71
  this.createClassificationTemplateOption = page.locator('[data-test="create-classification-template"]');
72
72
  this.idpExtractionTemplateName = page.locator('#idp-project-name');
73
73
  this.idpClassificationTemplateName = page.locator('#idp-classification-template-name');
74
+ // The "Create extraction/classification template" surface is a modal
75
+ // dialog, not an ARIA region -- the region-scoped locator matched nothing
76
+ // and the description fill timed out. Scope to the open dialog by its
77
+ // title instead.
74
78
  this.idpExtractionDescriptionField = page
75
- .getByRole('region', { name: 'Create extraction template' })
79
+ .getByRole('dialog', { name: 'Create extraction template' })
76
80
  .locator('#idp-project-description');
77
81
  this.idpClassificationDescriptionField = page
78
- .getByRole('region', { name: 'Create classification template' })
82
+ .getByRole('dialog', { name: 'Create classification template' })
79
83
  .locator('#idp-project-description');
80
84
  this.createIdpExtractationTemplateButton = page.getByRole('button', {
81
85
  name: 'Create template',
@@ -14,8 +14,11 @@ declare class ModelerCreatePage {
14
14
  readonly viewProcessInstanceLink: Locator;
15
15
  readonly nameInput: Locator;
16
16
  readonly diagramBreadcrumb: Locator;
17
+ readonly diagramActionsButton: Locator;
17
18
  readonly renameDiagramNameButton: Locator;
18
19
  readonly diagramNameInput: Locator;
20
+ readonly renameInput: Locator;
21
+ readonly renameSubmitButton: Locator;
19
22
  readonly variableInput: Locator;
20
23
  readonly businessIdInput: Locator;
21
24
  readonly embedFormButton: Locator;
@@ -104,6 +107,8 @@ declare class ModelerCreatePage {
104
107
  readonly eighthPlacedElement: Locator;
105
108
  readonly deployAndRunMainButton: Locator;
106
109
  readonly deployAndRunSubButton: Locator;
110
+ readonly deployRunActions: Locator;
111
+ readonly deployAndRunMenuItem: Locator;
107
112
  readonly dialog: Locator;
108
113
  readonly backupDeployButton: Locator;
109
114
  readonly globalConnectToolButton: Locator;
@@ -146,6 +151,7 @@ declare class ModelerCreatePage {
146
151
  clickAdditionalActionsButton(): Promise<void>;
147
152
  clickDeployMenuItem(): Promise<void>;
148
153
  deployDiagram(clusterName: string): Promise<void>;
154
+ assertDeployAndRunNotPermitted(): Promise<void>;
149
155
  clickStartInstanceMainButton(): Promise<void>;
150
156
  clickStartInstanceSubButton(): Promise<void>;
151
157
  runProcessInstance(clusterName: string, variables?: string, formVariables?: {
@@ -156,6 +162,7 @@ declare class ModelerCreatePage {
156
162
  clickNameInput(): Promise<void>;
157
163
  fillNamedInput(name: string): Promise<void>;
158
164
  clickDiagramBreadcrumb(): Promise<void>;
165
+ private clickDiagramMenuTrigger;
159
166
  clickEditDiagramNameButton(): Promise<void>;
160
167
  enterDiagramName(name: string): Promise<void>;
161
168
  private diagramNameEditorOpen;
@@ -221,6 +228,7 @@ declare class ModelerCreatePage {
221
228
  fillJobTypeInput(name: string): Promise<void>;
222
229
  private suppressTestModeAnnouncement;
223
230
  switchToPlay(afterNavigation?: boolean): Promise<void>;
231
+ private selectPlayDeploySingleResource;
224
232
  completePlayConfiguration(clusterName: string): Promise<void>;
225
233
  embedForm(formName: string): Promise<void>;
226
234
  openDetailsPanelIfCollapsed(): Promise<void>;