@camunda/e2e-test-suite 0.0.1095 → 0.0.1096
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.
|
@@ -1138,13 +1138,29 @@ class ModelerCreatePage {
|
|
|
1138
1138
|
// processApplicationId is defined, which it now is, so re-entering
|
|
1139
1139
|
// Play on an already-deployed process application legitimately
|
|
1140
1140
|
// has nothing to deploy and renders no Deploy button at all.
|
|
1141
|
+
// The "Configure test case" accordion header is always rendered once
|
|
1142
|
+
// the overlay is up -- it's only enabled once deploy has completed --
|
|
1143
|
+
// so isVisible() alone is always true here and this check must gate on
|
|
1144
|
+
// isEnabled() instead, or Step 2 is skipped even when deploy is still
|
|
1145
|
+
// pending and Step 3 spins forever on a button that never unlocks.
|
|
1141
1146
|
const alreadyDeployed = await configureScenarioButton
|
|
1142
|
-
.
|
|
1147
|
+
.isEnabled({ timeout: 3000 })
|
|
1143
1148
|
.catch(() => false);
|
|
1144
1149
|
if (!alreadyDeployed) {
|
|
1145
1150
|
// Step 2: deploy
|
|
1146
1151
|
await setupDeployButton.click({ timeout });
|
|
1147
|
-
|
|
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 });
|
|
1148
1164
|
}
|
|
1149
1165
|
// Step 3: leave the overlay, and confirm we actually left it. The
|
|
1150
1166
|
// button only calls hideConfigurationOverlay(); the overlay's own
|