@camunda/e2e-test-suite 0.0.842 → 0.0.843

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.
@@ -251,15 +251,16 @@ class AppsPage {
251
251
  const maxRetries = 3;
252
252
  for (let retries = 0; retries < maxRetries; retries++) {
253
253
  try {
254
- if (retries === 0) {
255
- await (0, test_1.expect)(this.consoleLink).toBeVisible({ timeout: 30000 });
256
- await this.consoleLink.click();
257
- }
258
- else {
254
+ // Callers open the Camunda components panel right before calling us.
255
+ // The app-switcher button toggles the panel open<->closed, so clicking
256
+ // it again on a retry would close the panel the caller already opened
257
+ // and strand the Console link (the observed flake). Only reopen the
258
+ // panel on a retry when the Console link is not already visible.
259
+ if (retries > 0 && !(await this.consoleLink.isVisible())) {
259
260
  await this.clickCamundaApps();
260
- await (0, test_1.expect)(this.consoleLink).toBeVisible({ timeout: 30000 });
261
- await this.consoleLink.click();
262
261
  }
262
+ await (0, test_1.expect)(this.consoleLink).toBeVisible({ timeout: 30000 });
263
+ await this.consoleLink.click();
263
264
  // Console may land on the root URL first and then redirect to the
264
265
  // org-specific URL (/org/<uuid>/...) before the header banner renders.
265
266
  // Wait for that redirect so callers can immediately assert page elements.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.842",
3
+ "version": "0.0.843",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",