@camunda/e2e-test-suite 0.0.1787 → 0.0.1789

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.
@@ -73,6 +73,10 @@ class ConnectorSettingsPage {
73
73
  force: true,
74
74
  });
75
75
  (0, test_1.expect)(await this.resultExpressionInput.textContent()).toEqual(resultExpression);
76
+ // Blur commits the FEEL editor to the model while the task is still
77
+ // selected; the later append-element click changes selection and drops an
78
+ // edit the debounced commit has not yet written.
79
+ await this.resultExpressionInput.blur();
76
80
  await this.page.waitForTimeout(1000);
77
81
  }
78
82
  async selectAuthenticationType(authentication) {
@@ -395,6 +395,26 @@ class ClusterDetailsPage {
395
395
  break;
396
396
  }
397
397
  }
398
+ // Hub's Console view can crash into its app-level error boundary (React
399
+ // error #300) right after the PATCH succeeds, which removes the switch.
400
+ // The boundary itself asks for a reload; do that so the switch re-renders
401
+ // from the server state the assertion below checks.
402
+ const crashed = this.page.getByRole('heading', {
403
+ name: 'Something went wrong',
404
+ });
405
+ await this.authorizationsSwitch
406
+ .or(crashed)
407
+ .first()
408
+ .waitFor({ state: 'visible', timeout: 60000 })
409
+ .catch(() => { });
410
+ if (await crashed.isVisible().catch(() => false)) {
411
+ console.warn('Hub crashed into its error boundary after the authorizations ' +
412
+ 'change; reloading settings.');
413
+ await this.page.reload({ waitUntil: 'domcontentloaded' });
414
+ await this.settingsTab.waitFor({ state: 'visible', timeout: 60000 });
415
+ await this.clickSettingsTab();
416
+ await this.waitForAuthorizationsSection();
417
+ }
398
418
  await (0, test_1.expect)(this.authorizationsSwitch).toHaveAttribute('aria-checked', String(enabled), { timeout: 120000 });
399
419
  return 'changed';
400
420
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1787",
3
+ "version": "0.0.1789",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",