@camunda/e2e-test-suite 0.0.667 → 0.0.668

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.
@@ -1077,10 +1077,27 @@ class ModelerCreatePage {
1077
1077
  const configureEnvDialog = this.page
1078
1078
  .getByRole('dialog')
1079
1079
  .filter({ hasText: 'Configure environment' });
1080
- await configureEnvDialog.getByRole('combobox').click({ timeout });
1081
- await this.page
1082
- .getByRole('option', { name: new RegExp(clusterName, 'i') })
1083
- .click({ timeout });
1080
+ await (0, test_1.expect)(configureEnvDialog).toBeVisible({ timeout });
1081
+ // The "Configure environment" modal lists each available cluster as a
1082
+ // labelled toggle switch (cds--toggle), not as a combobox+option list.
1083
+ // Mirror the legacy `selectCluster` deploy-dialog logic: scope by the
1084
+ // cluster's label, toggle it on, and confirm the switch is checked
1085
+ // before saving. This handles environments with multiple clusters.
1086
+ const clusterLabel = configureEnvDialog
1087
+ .locator('label')
1088
+ .filter({ hasText: clusterName });
1089
+ const clusterSwitch = clusterLabel.getByRole('switch');
1090
+ await (0, test_1.expect)(clusterLabel).toBeVisible({ timeout });
1091
+ const alreadyChecked = (await clusterSwitch.getAttribute('aria-checked')) === 'true';
1092
+ if (!alreadyChecked) {
1093
+ await clusterLabel.click({ timeout });
1094
+ }
1095
+ await (0, test_1.expect)(clusterSwitch).toBeChecked({ timeout });
1096
+ // Wait for "Healthy" status before saving so the deploy step
1097
+ // doesn't race the backend's health check.
1098
+ await (0, test_1.expect)(configureEnvDialog).toContainText('Healthy', {
1099
+ timeout: 30000,
1100
+ });
1084
1101
  await configureEnvDialog
1085
1102
  .getByRole('button', { name: 'Save' })
1086
1103
  .click({ timeout });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.667",
3
+ "version": "0.0.668",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",