@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: leave the overlay, and confirm we actually left it. The
1195
- // button only calls hideConfigurationOverlay(); the overlay's own
1196
- // cluster-change effect can then fire resetDeployment and bring it
1197
- // straight back, and ConfigureTestPanel stays null while it is up.
1198
- // Assert the panel really rendered, and re-drive the click if the
1199
- // overlay returned.
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 configurationOverlay.isVisible()) {
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" 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();
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
- if (await configurationOverlay.isVisible().catch(() => false)) {
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1144",
3
+ "version": "0.0.1145",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",