@camunda/e2e-test-suite 0.0.666 → 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 });
@@ -165,7 +165,13 @@ SM_8_10_1.test.describe('Web Modeler User Flow Tests', () => {
165
165
  });
166
166
  await operateHomePage.clickProcessesTab();
167
167
  await operateProcessesPage.clickProcessInstanceLink(processName);
168
- await operateProcessInstancePage.assertBusinessIdVisible(businessId);
168
+ // NOTE: The Business ID field is set via the Web Modeler run configuration
169
+ // above, but the Operate build shipped by the SM-8.10 chart
170
+ // (camunda/camunda:8.10.0-alpha1) does not yet render a "Business ID" field
171
+ // in the instance header, so asserting it here fails. Re-enable
172
+ // assertBusinessIdVisible(businessId) once the deployed Operate image renders
173
+ // it. Tracked in https://github.com/camunda/c8-cross-component-e2e-tests/issues/2510
174
+ // (SaaS tests/8.10 keeps the assertion — that Operate build already has it.)
169
175
  await operateProcessInstancePage.assertProcessVariableContainsText('orderNumber', '"A12BH98"');
170
176
  await operateProcessInstancePage.assertProcessVariableContainsText('amount', '185.34');
171
177
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.666",
3
+ "version": "0.0.668",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",