@camunda/e2e-test-suite 0.0.656 → 0.0.658

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.
@@ -28,6 +28,7 @@ declare class ModelerCreatePage {
28
28
  readonly deploySubButton: Locator;
29
29
  readonly cancelButton: Locator;
30
30
  readonly restConnectorOption: Locator;
31
+ readonly changeElementSearchInput: Locator;
31
32
  readonly marketPlaceButton: Locator;
32
33
  readonly clientIdTextbox: Locator;
33
34
  readonly clientSecretTextbox: Locator;
@@ -33,6 +33,7 @@ class ModelerCreatePage {
33
33
  deploySubButton;
34
34
  cancelButton;
35
35
  restConnectorOption;
36
+ changeElementSearchInput;
36
37
  marketPlaceButton;
37
38
  clientIdTextbox;
38
39
  clientSecretTextbox;
@@ -151,6 +152,7 @@ class ModelerCreatePage {
151
152
  this.restConnectorOption = page.getByRole('listitem', {
152
153
  name: 'REST Outbound Connector',
153
154
  });
155
+ this.changeElementSearchInput = page.locator('.djs-popup-search input');
154
156
  this.marketPlaceButton = page.getByTitle('Browse Marketplace for more Connectors');
155
157
  this.clientIdTextbox = page.getByLabel('Client ID');
156
158
  this.clientSecretTextbox = page.getByLabel('Client secret');
@@ -448,6 +448,19 @@ async function modelAndRunConnectorsDocHandlingDiagram(modelerCreatePage, modele
448
448
  // from the change-type panel. The marketplace search for the bundled
449
449
  // connector no longer returns a match, so only fall back to it when the
450
450
  // bundled option is genuinely absent. Mirrors modelRestConnector above.
451
+ //
452
+ // The change-element popup virtualizes its list: connector templates
453
+ // render below the built-in BPMN tasks and are not in the queryable DOM
454
+ // slice until the list is filtered. Type into the popup search box (the
455
+ // same `.djs-popup-search input` selector the bpmn-js/hub e2e tests use)
456
+ // so the REST Outbound Connector entry is rendered before asserting on it.
457
+ // Wait for the search input to render before filling: a bare isVisible()
458
+ // check races the popup re-render and silently skips the fill, leaving the
459
+ // list unfiltered so the off-screen connector entry never appears.
460
+ await (0, test_1.expect)(modelerCreatePage.changeElementSearchInput).toBeVisible({
461
+ timeout: 30000,
462
+ });
463
+ await modelerCreatePage.changeElementSearchInput.fill('REST Outbound');
451
464
  await (0, test_1.expect)(modelerCreatePage.restConnectorOption).toBeVisible({
452
465
  timeout: 15000,
453
466
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.656",
3
+ "version": "0.0.658",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",