@camunda/e2e-test-suite 0.0.668 → 0.0.669

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.
@@ -1113,10 +1113,27 @@ class ModelerCreatePage {
1113
1113
  const configureEnvDialog = this.page
1114
1114
  .getByRole('dialog')
1115
1115
  .filter({ hasText: 'Configure environment' });
1116
- await configureEnvDialog.getByRole('combobox').click({ timeout });
1117
- await this.page
1118
- .getByRole('option', { name: new RegExp(clusterName, 'i') })
1119
- .click({ timeout });
1116
+ await (0, test_1.expect)(configureEnvDialog).toBeVisible({ timeout });
1117
+ // The "Configure environment" modal lists each available cluster as a
1118
+ // labelled toggle switch (cds--toggle), not as a combobox+option list.
1119
+ // Mirror the legacy `selectCluster` deploy-dialog logic: scope by the
1120
+ // cluster's label, toggle it on, and confirm the switch is checked
1121
+ // before saving. This handles environments with multiple clusters.
1122
+ const clusterLabel = configureEnvDialog
1123
+ .locator('label')
1124
+ .filter({ hasText: clusterName });
1125
+ const clusterSwitch = clusterLabel.getByRole('switch');
1126
+ await (0, test_1.expect)(clusterLabel).toBeVisible({ timeout });
1127
+ const alreadyChecked = (await clusterSwitch.getAttribute('aria-checked')) === 'true';
1128
+ if (!alreadyChecked) {
1129
+ await clusterLabel.click({ timeout });
1130
+ }
1131
+ await (0, test_1.expect)(clusterSwitch).toBeChecked({ timeout });
1132
+ // Wait for "Healthy" status before saving so the deploy step
1133
+ // doesn't race the backend's health check.
1134
+ await (0, test_1.expect)(configureEnvDialog).toContainText('Healthy', {
1135
+ timeout: 30000,
1136
+ });
1120
1137
  await configureEnvDialog
1121
1138
  .getByRole('button', { name: 'Save' })
1122
1139
  .click({ timeout });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.668",
3
+ "version": "0.0.669",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",