@camunda/e2e-test-suite 0.0.1043 → 0.0.1044

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.
@@ -23,6 +23,7 @@ declare class ModelerHomePage {
23
23
  readonly crossComponentProjectFolder: Locator;
24
24
  readonly homeBreadcrumb: Locator;
25
25
  readonly formNameInput: Locator;
26
+ readonly formEditorCanvas: Locator;
26
27
  readonly rows: Locator;
27
28
  readonly licenseKeyTagNonProduction: Locator;
28
29
  readonly licenseKeyTagNonCommercial: Locator;
@@ -39,6 +39,7 @@ class ModelerHomePage {
39
39
  crossComponentProjectFolder;
40
40
  homeBreadcrumb;
41
41
  formNameInput;
42
+ formEditorCanvas;
42
43
  rows;
43
44
  licenseKeyTagNonProduction;
44
45
  licenseKeyTagNonCommercial;
@@ -129,6 +130,11 @@ class ModelerHomePage {
129
130
  .or(page.getByRole('button', { name: 'My organisation' }))
130
131
  .first();
131
132
  this.formNameInput = page.locator('[data-test="editable-input"]');
133
+ // form-js labels its editor region "Form Definition" on both shells (see
134
+ // FormJsPage.formEditor). Unlike the app header, it mounts only once the
135
+ // editor itself has rendered, which makes it the ready signal enterFormName
136
+ // gates on.
137
+ this.formEditorCanvas = page.getByLabel('Form Definition').first();
132
138
  this.rows = page.getByRole('row');
133
139
  this.licenseKeyTagNonProduction = page
134
140
  .getByText('Non-production license')
@@ -343,9 +349,15 @@ class ModelerHomePage {
343
349
  // renamed the PROJECT to the form's name instead of the form. The Carbon
344
350
  // shell could not hit this: editable-input existed only inside the editor,
345
351
  // so the gate implicitly waited for navigation.
352
+ //
353
+ // waitForURL is not enough on its own: the URL flips to /forms/ before the
354
+ // editor mounts, and the app header -- kebab included -- is already painted
355
+ // by then, still showing the process application as the deepest crumb. The
356
+ // canvas mounts together with the entity crumb, so gate on it rather than
357
+ // on the header, which is present either way.
346
358
  await this.page.waitForURL(/\/forms\//, { timeout: 60000 });
347
359
  await this.formNameInput
348
- .or(this.moreActionsButton)
360
+ .or(this.formEditorCanvas)
349
361
  .first()
350
362
  .waitFor({ state: 'visible', timeout: 30000 });
351
363
  if (await this.formNameInput.isVisible()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1043",
3
+ "version": "0.0.1044",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",