@camunda/e2e-test-suite 0.0.1768 → 0.0.1770

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.
@@ -74,6 +74,7 @@ declare class ModelerHomePage {
74
74
  private clickCreateProcessApplication;
75
75
  private ensureInResourceContainer;
76
76
  returnToResourceContainer(): Promise<void>;
77
+ private gotoAcrossHubRefresh;
77
78
  private isOnHubLoginRoute;
78
79
  startBlankBpmnDiagram(): Promise<void>;
79
80
  private becameVisible;
@@ -624,9 +624,7 @@ class ModelerHomePage {
624
624
  // /login-callback. Its code is single-use, so recover with a fresh goto,
625
625
  // never a reload; any other failure still throws.
626
626
  for (let attempt = 1;; attempt++) {
627
- await this.page.goto(this.processApplicationUrl, {
628
- waitUntil: 'domcontentloaded',
629
- });
627
+ await this.gotoAcrossHubRefresh(this.processApplicationUrl);
630
628
  try {
631
629
  await this.processApplicationPage.waitForProcessApplication(attempt === 1 ? 90000 : 150000);
632
630
  break;
@@ -643,6 +641,25 @@ class ModelerHomePage {
643
641
  }
644
642
  await this.dismissOverlays();
645
643
  }
644
+ // After a Hub redeploy the server answers the stale client with status 230
645
+ // and the client reloads itself 5s later (camunda-hub handleAppRefresh);
646
+ // that reload, or the login redirect it triggers, aborts an in-flight goto
647
+ // with net::ERR_ABORTED. Let it land, then navigate again.
648
+ async gotoAcrossHubRefresh(url) {
649
+ for (let attempt = 1;; attempt++) {
650
+ try {
651
+ await this.page.goto(url, { waitUntil: 'domcontentloaded' });
652
+ return;
653
+ }
654
+ catch (error) {
655
+ if (attempt === 3 || !String(error).includes('ERR_ABORTED')) {
656
+ throw error;
657
+ }
658
+ console.warn(`goto ${url} aborted by an in-page navigation (attempt ${attempt}); retrying.`);
659
+ await this.page.waitForLoadState('load');
660
+ }
661
+ }
662
+ }
646
663
  // Hub's own /login and /login-callback routes render only a spinner
647
664
  // (camunda-hub App.tsx); the identity provider's pages are not these.
648
665
  isOnHubLoginRoute() {
@@ -43,7 +43,8 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
43
43
  }
44
44
  });
45
45
  // Also tracked in https://github.com/camunda/product-hub/issues/3655
46
- (0, _8_7_1.test)('Form.js Integration with User Task and AI Generated Form @ai-external', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, formJsPage, }) => {
46
+ // Skipped due to bug #4770: https://github.com/camunda/c8-cross-component-e2e-tests/issues/4770
47
+ _8_7_1.test.skip('Form.js Integration with User Task and AI Generated Form @ai-external', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, formJsPage, }) => {
47
48
  _8_7_1.test.slow();
48
49
  const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
49
50
  const processName = 'User_Task_Process_With_AI_Form' + randomString;
@@ -315,7 +316,8 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
315
316
  });
316
317
  });
317
318
  // Also tracked in https://github.com/camunda/product-hub/issues/3655
318
- (0, _8_7_1.test)('Form.js Integration with AI generated Start form @ai-external', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, formJsPage, }) => {
319
+ // Skipped due to bug #4770: https://github.com/camunda/c8-cross-component-e2e-tests/issues/4770
320
+ _8_7_1.test.skip('Form.js Integration with AI generated Start form @ai-external', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, formJsPage, }) => {
319
321
  _8_7_1.test.slow();
320
322
  const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
321
323
  const processName = 'AI-generated-Start-form' + randomString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1768",
3
+ "version": "0.0.1770",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",