@camunda/e2e-test-suite 0.0.1561 → 0.0.1562

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.
@@ -21,7 +21,14 @@ class ConnectorTemplatePage {
21
21
  await this.publishButton.click({ timeout: 90000 });
22
22
  }
23
23
  async publishImportedTemplateToWorkspace(version) {
24
- await this.page.getByRole('button', { name: 'Publish', exact: true }).click();
24
+ // openImportedTemplate() only awaits the /element-templates/ URL, which flips
25
+ // before the editor's async load (fetch file + project, validate, mount the
26
+ // code editor) finishes. The Publish control is omitted from the DOM while the
27
+ // editor is loading and disabled until the template validates, so clicking it
28
+ // on the default 10s action timeout races that load. Wait for it to become
29
+ // interactive first; a genuinely broken editor still surfaces as a failure.
30
+ await (0, test_1.expect)(this.publishButton).toBeEnabled({ timeout: 90000 });
31
+ await this.publishButton.click();
25
32
  await this.page
26
33
  .getByRole('menuitem', { name: 'Publish to workspace', exact: true })
27
34
  .click();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1561",
3
+ "version": "0.0.1562",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",