@camunda/e2e-test-suite 0.0.651 → 0.0.653

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.
@@ -47,9 +47,9 @@ class PlayPage {
47
47
  .getByTestId('save-scenario-modal')
48
48
  .locator('input#scenario-name')
49
49
  .first();
50
- this.confirmDeleteScenarioButton = page.getByRole('button', {
51
- name: 'danger Delete',
52
- });
50
+ this.confirmDeleteScenarioButton = page
51
+ .getByRole('dialog', { name: 'Delete scenario' })
52
+ .getByRole('button', { name: 'Delete', exact: true });
53
53
  this.viewAllScenariosButton = page.getByText('(View all)').last();
54
54
  this.getScenarioRowByName = (scenarioName) => page.locator('tr', { hasText: scenarioName });
55
55
  this.getScenarioRow = (scenarioName) => page.locator('tr', { hasText: scenarioName });
@@ -443,10 +443,26 @@ async function modelAndRunConnectorsDocHandlingDiagram(modelerCreatePage, modele
443
443
  await (0, sleep_1.sleep)(10000);
444
444
  await modelerCreatePage.clickFirstPlaceRESTConnector();
445
445
  await modelerCreatePage.clickChangeTypeButton();
446
- await modelerCreatePage.clickMarketPlaceButton();
447
- await connectorMarketplacePage.clickSearchForConnectorTextbox();
448
- await connectorMarketplacePage.fillSearchForConnectorTextbox('REST Connector');
449
- await connectorMarketplacePage.downloadConnectorToProject();
446
+ try {
447
+ // REST Outbound Connector is bundled in the modeler; apply it directly
448
+ // from the change-type panel. The marketplace search for the bundled
449
+ // connector no longer returns a match, so only fall back to it when the
450
+ // bundled option is genuinely absent. Mirrors modelRestConnector above.
451
+ await (0, test_1.expect)(modelerCreatePage.restConnectorOption).toBeVisible({
452
+ timeout: 15000,
453
+ });
454
+ await modelerCreatePage.restConnectorOption.scrollIntoViewIfNeeded();
455
+ await modelerCreatePage.restConnectorOption.click({
456
+ timeout: 60000,
457
+ force: true,
458
+ });
459
+ }
460
+ catch {
461
+ await modelerCreatePage.clickMarketPlaceButton();
462
+ await connectorMarketplacePage.clickSearchForConnectorTextbox();
463
+ await connectorMarketplacePage.fillSearchForConnectorTextbox('REST Connector');
464
+ await connectorMarketplacePage.downloadConnectorToProject();
465
+ }
450
466
  await (0, sleep_1.sleep)(5000);
451
467
  await page.reload();
452
468
  await (0, sleep_1.sleep)(5000);
@@ -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;
@@ -147,6 +148,7 @@ class ModelerCreatePage {
147
148
  this.restConnectorOption = page.getByRole('listitem', {
148
149
  name: 'REST Outbound Connector',
149
150
  });
151
+ this.changeElementSearchInput = page.locator('.djs-popup-search input');
150
152
  this.marketPlaceButton = page.getByTitle('Browse Marketplace for more Connectors');
151
153
  this.clientIdTextbox = page.getByLabel('Client ID');
152
154
  this.clientSecretTextbox = page.getByLabel('Client secret');
@@ -601,6 +603,14 @@ class ModelerCreatePage {
601
603
  await this.cancelButton.click();
602
604
  }
603
605
  async searchAndClickRestConnector() {
606
+ // The change-element popup virtualizes its list: connector templates
607
+ // render below the built-in BPMN tasks and are not in the queryable DOM
608
+ // slice until the list is filtered. Type into the popup search box (the
609
+ // same `.djs-popup-search input` selector the bpmn-js/hub e2e tests use)
610
+ // so the REST Outbound Connector entry is rendered before asserting on it.
611
+ if (await this.changeElementSearchInput.isVisible()) {
612
+ await this.changeElementSearchInput.fill('REST Outbound');
613
+ }
604
614
  await (0, test_1.expect)(this.restConnectorOption).toBeVisible({ timeout: 90000 });
605
615
  await this.restConnectorOption.click({ timeout: 90000 });
606
616
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.651",
3
+ "version": "0.0.653",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",