@camunda/e2e-test-suite 0.0.669 → 0.0.671

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.
@@ -1045,10 +1045,27 @@ class ModelerCreatePage {
1045
1045
  const configureEnvDialog = this.page
1046
1046
  .getByRole('dialog')
1047
1047
  .filter({ hasText: 'Configure environment' });
1048
- await configureEnvDialog.getByRole('combobox').click({ timeout });
1049
- await this.page
1050
- .getByRole('option', { name: new RegExp(clusterName, 'i') })
1051
- .click({ timeout });
1048
+ await (0, test_1.expect)(configureEnvDialog).toBeVisible({ timeout });
1049
+ // The "Configure environment" modal lists each available cluster as a
1050
+ // labelled toggle switch (cds--toggle), not as a combobox+option list.
1051
+ // Mirror the legacy `selectCluster` deploy-dialog logic: scope by the
1052
+ // cluster's label, toggle it on, and confirm the switch is checked
1053
+ // before saving. This handles environments with multiple clusters.
1054
+ const clusterLabel = configureEnvDialog
1055
+ .locator('label')
1056
+ .filter({ hasText: clusterName });
1057
+ const clusterSwitch = clusterLabel.getByRole('switch');
1058
+ await (0, test_1.expect)(clusterLabel).toBeVisible({ timeout });
1059
+ const alreadyChecked = (await clusterSwitch.getAttribute('aria-checked')) === 'true';
1060
+ if (!alreadyChecked) {
1061
+ await clusterLabel.click({ timeout });
1062
+ }
1063
+ await (0, test_1.expect)(clusterSwitch).toBeChecked({ timeout });
1064
+ // Wait for "Healthy" status before saving so the deploy step
1065
+ // doesn't race the backend's health check.
1066
+ await (0, test_1.expect)(configureEnvDialog).toContainText('Healthy', {
1067
+ timeout: 30000,
1068
+ });
1052
1069
  await configureEnvDialog
1053
1070
  .getByRole('button', { name: 'Save' })
1054
1071
  .click({ timeout });
@@ -1060,10 +1060,27 @@ class ModelerCreatePage {
1060
1060
  const configureEnvDialog = this.page
1061
1061
  .getByRole('dialog')
1062
1062
  .filter({ hasText: 'Configure environment' });
1063
- await configureEnvDialog.getByRole('combobox').click({ timeout });
1064
- await this.page
1065
- .getByRole('option', { name: new RegExp(clusterName, 'i') })
1066
- .click({ timeout });
1063
+ await (0, test_1.expect)(configureEnvDialog).toBeVisible({ timeout });
1064
+ // The "Configure environment" modal lists each available cluster as a
1065
+ // labelled toggle switch (cds--toggle), not as a combobox+option list.
1066
+ // Mirror the legacy `selectCluster` deploy-dialog logic: scope by the
1067
+ // cluster's label, toggle it on, and confirm the switch is checked
1068
+ // before saving. This handles environments with multiple clusters.
1069
+ const clusterLabel = configureEnvDialog
1070
+ .locator('label')
1071
+ .filter({ hasText: clusterName });
1072
+ const clusterSwitch = clusterLabel.getByRole('switch');
1073
+ await (0, test_1.expect)(clusterLabel).toBeVisible({ timeout });
1074
+ const alreadyChecked = (await clusterSwitch.getAttribute('aria-checked')) === 'true';
1075
+ if (!alreadyChecked) {
1076
+ await clusterLabel.click({ timeout });
1077
+ }
1078
+ await (0, test_1.expect)(clusterSwitch).toBeChecked({ timeout });
1079
+ // Wait for "Healthy" status before saving so the deploy step
1080
+ // doesn't race the backend's health check.
1081
+ await (0, test_1.expect)(configureEnvDialog).toContainText('Healthy', {
1082
+ timeout: 30000,
1083
+ });
1067
1084
  await configureEnvDialog
1068
1085
  .getByRole('button', { name: 'Save' })
1069
1086
  .click({ timeout });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.669",
3
+ "version": "0.0.671",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",