@camunda/e2e-test-suite 0.0.1138 → 0.0.1139

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.
@@ -511,9 +511,28 @@ class ModelerHomePage {
511
511
  async clickDiagramTypeDropdown() {
512
512
  await this.enterResourceContainer();
513
513
  const dropdown = this.processApplicationPage.createNewDropdown;
514
+ // Recovery must re-navigate to the container's absolute URL, not blindly
515
+ // page.reload(). Flag-on Modeler runs a silent Keycloak token refresh that
516
+ // routes through /modeler/login -> /modeler/login-callback and, once the
517
+ // deep link is lost, lands on the /modeler/workspaces overview -- which has
518
+ // no "Create new" menu. A page.reload() there just reloads /workspaces, so
519
+ // the dropdown never reappears and every "create a diagram" flow times out.
520
+ // Re-entering via processApplicationUrl (goto) puts us back on the Project
521
+ // detail where the menu renders, matching the goto-based recovery used by
522
+ // returnToResourceContainer() elsewhere in this page object.
514
523
  await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, dropdown, {
524
+ totalTimeout: 180000,
525
+ maxRetries: 6,
515
526
  postAction: async () => {
516
- await this.page.reload();
527
+ if (this.processApplicationUrl) {
528
+ await this.page.goto(this.processApplicationUrl, {
529
+ waitUntil: 'domcontentloaded',
530
+ });
531
+ await this.clickMessageBanner();
532
+ }
533
+ else {
534
+ await this.page.reload();
535
+ }
517
536
  },
518
537
  });
519
538
  await dropdown.click();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1138",
3
+ "version": "0.0.1139",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",