@camunda/e2e-test-suite 0.0.748 → 0.0.749

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.
@@ -451,22 +451,38 @@ class ModelerCreatePage {
451
451
  await this.appendGatewayButton.click({ timeout: 90000 });
452
452
  }
453
453
  async setEngineVersion(version) {
454
- await this.page
455
- .locator('[data-test="version-selector"]')
456
- .click({ timeout: 10000 });
454
+ const escapedVersion = version.replace(/\./g, '\\.');
455
+ const versionSelector = this.page.locator('[data-test="version-selector"]');
457
456
  // The dropdown renders each version as an outer <label> (Styled.Label)
458
457
  // wrapping a radio input and a separate text span ("Camunda X.Y").
459
458
  // The radio's accessible name is empty (no label prop passed), so
460
459
  // getByRole('radio') won't resolve to the right item by text.
461
460
  // Clicking the outer <label> containing the version string triggers
462
461
  // the enclosed radio input's onChange via event propagation.
463
- const escapedVersion = version.replace(/\./g, '\\.');
464
- await this.page
462
+ const versionOption = this.page
465
463
  .getByRole('radiogroup', { name: 'Camunda versions' })
466
464
  .locator('label')
467
465
  .filter({ hasText: new RegExp(`Camunda\\s+${escapedVersion}`) })
468
- .first()
469
- .click({ timeout: 5000 });
466
+ .first();
467
+ // Retry the open-select cycle and confirm via the selector label ("Check
468
+ // problems against: Camunda X.Y"). A label click dropped while the dropdown
469
+ // is still animating silently leaves the diagram on the default (older)
470
+ // version, which greys out the version-gated REST connector downstream.
471
+ for (let attempt = 0; attempt < 3; attempt++) {
472
+ if (await versionSelector.filter({ hasText: version }).isVisible()) {
473
+ return;
474
+ }
475
+ await versionSelector.click({ timeout: 10000 });
476
+ await versionOption.click({ timeout: 5000 });
477
+ const committed = await versionSelector
478
+ .filter({ hasText: version })
479
+ .waitFor({ state: 'visible', timeout: 10000 })
480
+ .then(() => true)
481
+ .catch(() => false);
482
+ if (committed) {
483
+ return;
484
+ }
485
+ }
470
486
  }
471
487
  async clickChangeTypeButton() {
472
488
  try {
@@ -256,7 +256,8 @@ if (process.env.IS_MT === 'true') {
256
256
  });
257
257
  }
258
258
  });
259
- (0, SM_8_9_1.test)('Second User Can Access Tenant Created By Main User - Connectors Flow @tasklistV2', async ({ page, modelerHomePage, modelerCreatePage, operateProcessInstancePage, operateProcessesPage, operateHomePage, navigationPage, managementIdentityTenantPage, connectorSettingsPage, connectorMarketplacePage, optimizeHomePage, optimizeDashboardPage, ocIdentityHomePage, ocTenantPage, managementIdentityPage, keycloakAdminPage, keycloakLoginPage, ocIdentityRolesPage, ocIdentityMappingRulesPage, browser, }) => {
259
+ // Skipped due to bug #320: https://github.com/camunda/marketplace-api/issues/320
260
+ SM_8_9_1.test.skip('Second User Can Access Tenant Created By Main User - Connectors Flow @tasklistV2', async ({ page, modelerHomePage, modelerCreatePage, operateProcessInstancePage, operateProcessesPage, operateHomePage, navigationPage, managementIdentityTenantPage, connectorSettingsPage, connectorMarketplacePage, optimizeHomePage, optimizeDashboardPage, ocIdentityHomePage, ocTenantPage, managementIdentityPage, keycloakAdminPage, keycloakLoginPage, ocIdentityRolesPage, ocIdentityMappingRulesPage, browser, }) => {
260
261
  SM_8_9_1.test.slow();
261
262
  const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
262
263
  const processName = 'Second_User_Connectors_Flow_' + randomString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.748",
3
+ "version": "0.0.749",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",