@camunda/e2e-test-suite 0.0.738 → 0.0.739

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.
@@ -61,8 +61,26 @@ if (process.env.IS_MIGRATION === 'true') {
61
61
  });
62
62
  await SM_8_10_1.test.step('View Report in Optimize', async () => {
63
63
  await navigationPage.goToOptimize();
64
- await optimizeHomePage.clickCollectionsLink();
65
- await optimizeReportPage.waitUntilLocatorIsVisible(optimizeCollectionsPage.reportAuthor, page);
64
+ // Re-open the Collections list on every attempt: the migrated report
65
+ // only renders in the Collections entity list, while a bare page
66
+ // reload returns to the Optimize home dashboard. Polling that just
67
+ // reloads the page therefore never re-surfaces the report once the
68
+ // first check misses during post-upgrade import lag.
69
+ const maxRefreshes = 20;
70
+ for (let attempt = 0; attempt < maxRefreshes; attempt++) {
71
+ await optimizeHomePage.clickCollectionsLink();
72
+ try {
73
+ await optimizeCollectionsPage.reportAuthor.waitFor({
74
+ state: 'visible',
75
+ timeout: 15000,
76
+ });
77
+ break;
78
+ }
79
+ catch {
80
+ await page.reload();
81
+ await page.waitForLoadState('domcontentloaded');
82
+ }
83
+ }
66
84
  await (0, test_1.expect)(optimizeCollectionsPage.reportAuthor).toBeVisible({
67
85
  timeout: 60000,
68
86
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.738",
3
+ "version": "0.0.739",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",