@camunda/e2e-test-suite 0.0.1127 → 0.0.1128

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.
@@ -18,6 +18,9 @@ declare class ModelerHomePage {
18
18
  readonly workspaceWizardSubmit: Locator;
19
19
  readonly workspaceMembersHeading: Locator;
20
20
  readonly projectNameInput: Locator;
21
+ readonly workspaceWizardNameInput: Locator;
22
+ readonly workspaceWizardSubmitButton: Locator;
23
+ readonly workspaceWizardMembersStep: Locator;
21
24
  readonly moreActionsButton: Locator;
22
25
  readonly renameMenuItem: Locator;
23
26
  readonly renameInput: Locator;
@@ -46,6 +49,7 @@ declare class ModelerHomePage {
46
49
  constructor(page: Page);
47
50
  clickCreateNewProjectButton(): Promise<void>;
48
51
  enterNewProjectName(name: string): Promise<void>;
52
+ private createWorkspaceViaWizard;
49
53
  waitForModelerReady(timeoutMs?: number): Promise<void>;
50
54
  createCrossComponentProjectFolder(): Promise<void>;
51
55
  clickCrossComponentProjectFolder(): Promise<void>;
@@ -45,6 +45,9 @@ class ModelerHomePage {
45
45
  workspaceWizardSubmit;
46
46
  workspaceMembersHeading;
47
47
  projectNameInput;
48
+ workspaceWizardNameInput;
49
+ workspaceWizardSubmitButton;
50
+ workspaceWizardMembersStep;
48
51
  moreActionsButton;
49
52
  renameMenuItem;
50
53
  renameInput;
@@ -96,6 +99,14 @@ class ModelerHomePage {
96
99
  exact: true,
97
100
  }));
98
101
  this.projectNameInput = page.locator('[data-test="editable-input"]');
102
+ // The Design System shell no longer creates an empty project and renames it
103
+ // inline; "Create workspace" opens a two-step wizard (General -> Members)
104
+ // that names the workspace up front. The name lives on the General step, and
105
+ // the submit button keeps this test id across both steps ("Next" on General,
106
+ // "Create workspace" on Members).
107
+ this.workspaceWizardNameInput = page.locator('#workspace-name');
108
+ this.workspaceWizardSubmitButton = page.locator('[data-test="workspace-wizard-submit"]');
109
+ this.workspaceWizardMembersStep = page.locator('[data-test="step-members"]');
99
110
  // The rename kebab sits beside the breadcrumb in the app header. The
100
111
  // editor's action bar is a <header> too, so it also carries the banner
101
112
  // role -- getByRole('banner') alone matches three headers in the editor
@@ -222,8 +233,16 @@ class ModelerHomePage {
222
233
  async enterNewProjectName(name) {
223
234
  await this.projectNameInput
224
235
  .or(this.moreActionsButton)
236
+ .or(this.workspaceWizardNameInput)
225
237
  .first()
226
238
  .waitFor({ state: 'visible', timeout: 30000 });
239
+ // Design System shell: "Create workspace" opens the creation wizard, which
240
+ // names the workspace on its first step, so there is no post-creation rename
241
+ // to perform. Check this before the inline branch — the wizard replaces it.
242
+ if (await this.workspaceWizardNameInput.isVisible()) {
243
+ await this.createWorkspaceViaWizard(name);
244
+ return;
245
+ }
227
246
  // Inline first: when the Carbon shell renders it, it is the whole flow.
228
247
  if (await this.projectNameInput.isVisible()) {
229
248
  await this.projectNameInput.click({ timeout: 60000 });
@@ -233,6 +252,17 @@ class ModelerHomePage {
233
252
  }
234
253
  await this.renameViaMoreActions(name);
235
254
  }
255
+ // Drives hub's two-step workspace-creation wizard. The name is entered on the
256
+ // General step, which enables "Next"; the Members step is optional and the
257
+ // second submit ("Create workspace") creates the workspace. Gate that second
258
+ // click on the Members step becoming active so the shared submit button is not
259
+ // clicked twice while still on General.
260
+ async createWorkspaceViaWizard(name) {
261
+ await this.workspaceWizardNameInput.fill(name);
262
+ await this.workspaceWizardSubmitButton.click({ timeout: 60000 });
263
+ await (0, test_1.expect)(this.workspaceWizardMembersStep).toHaveAttribute('data-state', 'active', { timeout: 30000 });
264
+ await this.workspaceWizardSubmitButton.click({ timeout: 60000 });
265
+ }
236
266
  // Wait for the Modeler project workspace to become interactive. The caller
237
267
  // arrives here via goToModeler(), which has already loaded and authenticated
238
268
  // the app shell (banner visible). The nav banner mounts before the project
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1127",
3
+ "version": "0.0.1128",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",