@camunda/e2e-test-suite 0.0.1121 → 0.0.1122
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.
|
@@ -156,10 +156,35 @@ class PlayPage {
|
|
|
156
156
|
.or(this.startInstanceButton)
|
|
157
157
|
.or(this.startInstanceWithCachedButton)
|
|
158
158
|
.first();
|
|
159
|
+
// Test Studio's "Setup environment" overlay can bounce back AFTER
|
|
160
|
+
// completePlayConfiguration() has already returned: leaving it only calls
|
|
161
|
+
// hideConfigurationOverlay(), and the overlay's cluster-change effect can
|
|
162
|
+
// then fire resetDeployment and re-open it at the "Configure test case"
|
|
163
|
+
// step. ConfigureTestPanel (and its Start button) render null for as long
|
|
164
|
+
// as the overlay is up, so the Start trigger never appears. Re-drive the
|
|
165
|
+
// "Configure test case" click before each attempt -- the same recovery
|
|
166
|
+
// completePlayConfiguration() uses -- so the panel is present when we click.
|
|
167
|
+
const configurationOverlay = this.page
|
|
168
|
+
.locator('[data-test="test-studio-configuration-overlay"]')
|
|
169
|
+
.or(this.page.locator('[data-test="play-configuration-overlay"]'))
|
|
170
|
+
.or(this.page.getByText('Setup environment'))
|
|
171
|
+
.first();
|
|
172
|
+
const configureTestCaseButton = this.page
|
|
173
|
+
.getByTestId('configure-test-case-button')
|
|
174
|
+
.or(this.page.getByTestId('play-configuration-configure-scenario-button'))
|
|
175
|
+
.or(this.page.getByRole('button', {
|
|
176
|
+
name: /^Configure (test case|scenario)$/,
|
|
177
|
+
}))
|
|
178
|
+
.first();
|
|
159
179
|
await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, startTrigger, {
|
|
160
180
|
totalTimeout: maxWaitTimeSeconds,
|
|
161
181
|
visibilityTimeout: 30000,
|
|
162
182
|
maxRetries: 5,
|
|
183
|
+
preAction: async () => {
|
|
184
|
+
if (await configurationOverlay.isVisible().catch(() => false)) {
|
|
185
|
+
await configureTestCaseButton.click({ timeout: 30000 });
|
|
186
|
+
}
|
|
187
|
+
},
|
|
163
188
|
});
|
|
164
189
|
}
|
|
165
190
|
async dismissStartModal() {
|