@camunda/e2e-test-suite 0.0.1144 → 0.0.1145
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.
|
@@ -1191,14 +1191,17 @@ class ModelerCreatePage {
|
|
|
1191
1191
|
(0, test_1.expect)(deployComplete).toBe(true);
|
|
1192
1192
|
}).toPass({ timeout: 90000 });
|
|
1193
1193
|
}
|
|
1194
|
-
// Step 3:
|
|
1195
|
-
//
|
|
1196
|
-
//
|
|
1197
|
-
//
|
|
1198
|
-
//
|
|
1199
|
-
//
|
|
1194
|
+
// Step 3: reveal the "Configure test case" section. In the current Test
|
|
1195
|
+
// Studio the "Setup environment" panel is an inline accordion, not a
|
|
1196
|
+
// blocking overlay -- its heading is always present and step 3 auto-opens
|
|
1197
|
+
// once deploy completes, rendering ConfigureTestPanel with the Start
|
|
1198
|
+
// button. Clicking the "Configure test case" accordion heading while it
|
|
1199
|
+
// is already open calls showConfigurationOverlay() and collapses the
|
|
1200
|
+
// panel again, so only click it to OPEN the section when the panel is not
|
|
1201
|
+
// yet visible; keying on the always-present overlay heading here would
|
|
1202
|
+
// re-collapse the panel on every pass.
|
|
1200
1203
|
await (0, test_1.expect)(async () => {
|
|
1201
|
-
if (await
|
|
1204
|
+
if (!(await configureTestPanel.isVisible())) {
|
|
1202
1205
|
await configureScenarioButton.click({ timeout });
|
|
1203
1206
|
}
|
|
1204
1207
|
await (0, test_1.expect)(configureTestPanel).toBeVisible({ timeout: 15000 });
|
|
@@ -156,19 +156,15 @@ class PlayPage {
|
|
|
156
156
|
.or(this.startInstanceButton)
|
|
157
157
|
.or(this.startInstanceWithCachedButton)
|
|
158
158
|
.first();
|
|
159
|
-
// Test Studio's "Setup environment"
|
|
160
|
-
//
|
|
161
|
-
//
|
|
162
|
-
//
|
|
163
|
-
//
|
|
164
|
-
//
|
|
165
|
-
//
|
|
166
|
-
//
|
|
167
|
-
|
|
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();
|
|
159
|
+
// Test Studio's "Setup environment" is an inline accordion whose step 3
|
|
160
|
+
// ("Configure test case") holds ConfigureTestPanel and its Start button.
|
|
161
|
+
// The section can collapse again after completePlayConfiguration() returns
|
|
162
|
+
// (a cluster-change effect re-shows the overlay), in which case the Start
|
|
163
|
+
// trigger disappears. Re-open the "Configure test case" accordion heading
|
|
164
|
+
// before an attempt, but only when the panel is not already visible --
|
|
165
|
+
// clicking the heading while it is open re-shows the overlay and collapses
|
|
166
|
+
// the panel, so gating on the always-present "Setup environment" heading
|
|
167
|
+
// would defeat every retry.
|
|
172
168
|
const configureTestCaseButton = this.page
|
|
173
169
|
.getByTestId('configure-test-case-button')
|
|
174
170
|
.or(this.page.getByTestId('play-configuration-configure-scenario-button'))
|
|
@@ -181,7 +177,10 @@ class PlayPage {
|
|
|
181
177
|
visibilityTimeout: 30000,
|
|
182
178
|
maxRetries: 5,
|
|
183
179
|
preAction: async () => {
|
|
184
|
-
|
|
180
|
+
const panelVisible = await this.configureTestPanel
|
|
181
|
+
.isVisible()
|
|
182
|
+
.catch(() => false);
|
|
183
|
+
if (!panelVisible) {
|
|
185
184
|
await configureTestCaseButton.click({ timeout: 30000 });
|
|
186
185
|
}
|
|
187
186
|
},
|