@camunda/e2e-test-suite 0.0.1767 → 0.0.1768

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.
@@ -1024,10 +1024,25 @@ class ModelerHomePage {
1024
1024
  await this.clickWorkspaceBreadcrumb();
1025
1025
  return;
1026
1026
  }
1027
- await this.page.goto(this.processApplicationUrl, {
1028
- waitUntil: 'domcontentloaded',
1029
- });
1030
- await this.processApplicationPage.waitForProcessApplication();
1027
+ // The deep link routes through Keycloak; while it is briefly unavailable
1028
+ // the page is stranded on an error or a stalled login-callback. Only a
1029
+ // fresh goto restarts that flow (page.reload() would not), so retry it.
1030
+ const maxAttempts = 3;
1031
+ for (let attempt = 1;; attempt++) {
1032
+ try {
1033
+ await this.page.goto(this.processApplicationUrl, {
1034
+ waitUntil: 'domcontentloaded',
1035
+ });
1036
+ await this.processApplicationPage.waitForProcessApplication(60000);
1037
+ break;
1038
+ }
1039
+ catch (error) {
1040
+ if (attempt >= maxAttempts) {
1041
+ throw error;
1042
+ }
1043
+ console.log(`returnToResourceContainer: process application not rendered after attempt ${attempt}, re-navigating...`);
1044
+ }
1045
+ }
1031
1046
  await this.clickMessageBanner();
1032
1047
  }
1033
1048
  // Single seam for "give me an empty BPMN diagram in this test's container".
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1767",
3
+ "version": "0.0.1768",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",