@camunda/e2e-test-suite 0.0.1642 → 0.0.1644

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.
@@ -1447,6 +1447,27 @@ class ModelerCreatePage {
1447
1447
  await (0, test_1.expect)(this.templateNotFoundTag).toBeHidden();
1448
1448
  }
1449
1449
  async assertExportedTemplateBindings(bindings) {
1450
+ // A transient background fetch (the file's comments load was seen to fail
1451
+ // once with net::ERR_FAILED, then succeed on retry) raises a sonner error
1452
+ // toast in the top-right corner, where the "Browse more actions" kebab also
1453
+ // sits. Its subtree then intercepts every click on the kebab for the full
1454
+ // action timeout even though the button is visible and enabled (trace:
1455
+ // `<li data-sonner-toast data-type="error"> intercepts pointer events`).
1456
+ // Dismiss any lingering error toast via its close button first; the
1457
+ // exported-XML assertion below is unaffected, so this clears the incidental
1458
+ // overlay without masking a real failure.
1459
+ const toast = this.page.locator('[data-sonner-toast][data-type="error"]');
1460
+ const toastClose = toast.locator('[data-close-button="true"]');
1461
+ for (let i = 0; i < 5; i++) {
1462
+ if (!(await toastClose
1463
+ .first()
1464
+ .isVisible()
1465
+ .catch(() => false)))
1466
+ break;
1467
+ const before = await toast.count();
1468
+ await toastClose.first().click();
1469
+ await (0, test_1.expect)(toast).toHaveCount(before - 1, { timeout: 5000 });
1470
+ }
1450
1471
  await this.page
1451
1472
  .getByRole('button', { name: 'Browse more actions', exact: true })
1452
1473
  .click();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1642",
3
+ "version": "0.0.1644",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",