@camunda/e2e-test-suite 0.0.1109 → 0.0.1111

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.
@@ -1567,9 +1567,8 @@ class ModelerCreatePage {
1567
1567
  // has nothing to deploy and renders no Deploy button at all.
1568
1568
  const alreadyDeployed = (await isDeployReported()) ||
1569
1569
  (await configureScenarioButton
1570
- .isVisible({ timeout: 3000 })
1571
- .catch(() => false)) ||
1572
- (await configureTestPanel.isVisible().catch(() => false));
1570
+ .isEnabled({ timeout: 3000 })
1571
+ .catch(() => false));
1573
1572
  if (!alreadyDeployed) {
1574
1573
  // Step 2: deploy — wait for enabled; button stays disabled until the cluster
1575
1574
  // connection is confirmed by the backend after the Save in step 1.
@@ -1149,18 +1149,21 @@ class ModelerCreatePage {
1149
1149
  if (!alreadyDeployed) {
1150
1150
  // Step 2: deploy
1151
1151
  await setupDeployButton.click({ timeout });
1152
- // Test Studio dropped the "Process has been successfully deployed"
1153
- // toast: DeployStepContent now swaps the Deploy button for an inline
1154
- // `deploy-success-badge` ("Successfully deployed"), and
1155
- // TestConfigurationPanel's isDeployStepComplete effect calls
1156
- // hideConfigurationOverlay() as soon as deploy lands -- which
1157
- // collapses the Deploy step and opens "Configure test case" on its
1158
- // own. Accept either signal; a failed deploy renders a "Deployment
1159
- // failed" badge instead and matches neither.
1160
- await (0, test_1.expect)(this.page
1161
- .getByTestId('deploy-success-badge')
1162
- .or(configureTestPanel)
1163
- .first()).toBeVisible({ timeout: 90000 });
1152
+ // Deploy is done when the "Configure test case" button unlocks. There
1153
+ // is no `deploy-success-badge` in the Test Studio DOM -- the overlay
1154
+ // stays open with the deploy step showing a green check and that button
1155
+ // enabled (this is how hub's own `Definition.setupEnvironment` e2e page
1156
+ // object drives it: click Deploy, then click Configure, with no badge
1157
+ // in between). On a build that auto-collapses the overlay the
1158
+ // configure-test panel renders instead, so accept either. A failed
1159
+ // deploy leaves the button disabled and the panel absent, so this still
1160
+ // times out on a real deploy failure rather than masking it.
1161
+ await (0, test_1.expect)(async () => {
1162
+ const deployComplete = (await configureScenarioButton
1163
+ .isEnabled({ timeout: 3000 })
1164
+ .catch(() => false)) || (await configureTestPanel.isVisible());
1165
+ (0, test_1.expect)(deployComplete).toBe(true);
1166
+ }).toPass({ timeout: 90000 });
1164
1167
  }
1165
1168
  // Step 3: leave the overlay, and confirm we actually left it. The
1166
1169
  // button only calls hideConfigurationOverlay(); the overlay's own
@@ -32,7 +32,15 @@ _8_10_1.test.describe('Deploy and run a process in Play', () => {
32
32
  });
33
33
  });
34
34
  await _8_10_1.test.step('Open Cross Component Test Project', async () => {
35
- await modelerHomePage.clickCrossComponentProjectFolder();
35
+ // Self-healing variant: it clicks into the folder when the per-user
36
+ // setup project created it, and creates it first when that setup step
37
+ // did not take for this user. Clicking straight into the folder made a
38
+ // missing project an unrecoverable "Failed to click locator
39
+ // getByTitle('Cross Component Test Project')" five attempts later, even
40
+ // though the spec only needs *a* project to model in. Several sibling
41
+ // 8.10 specs (smoke-tests, rba-enabled-v2, access-user-role-management)
42
+ // already use this variant for the same reason.
43
+ await modelerHomePage.createCrossComponentProjectFolder();
36
44
  });
37
45
  await _8_10_1.test.step('Add A BPMN Template To The Project', async () => {
38
46
  await modelerHomePage.clickDiagramTypeDropdown();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1109",
3
+ "version": "0.0.1111",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",