@camunda/e2e-test-suite 0.0.855 → 0.0.857
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.
|
@@ -46,9 +46,26 @@ class OperateProcessInstancePage {
|
|
|
46
46
|
return await this.page.getByTestId(variableName).locator('td').last();
|
|
47
47
|
}
|
|
48
48
|
async closePopOverIfVisible() {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
// The instance-detail page is opened via a deep link right after the
|
|
50
|
+
// instance is started, so on freshly-provisioned SaaS clusters the
|
|
51
|
+
// instance is sometimes not yet imported when the popup lands and the
|
|
52
|
+
// page renders empty. A single fixed wait never recovers from that;
|
|
53
|
+
// reload between attempts so the "Instance History" panel appears once
|
|
54
|
+
// the import catches up.
|
|
55
|
+
const maxRetries = 5;
|
|
56
|
+
for (let attempt = 0; attempt < maxRetries; attempt++) {
|
|
57
|
+
try {
|
|
58
|
+
await (0, test_1.expect)(this.page.getByText('Instance History').first()).toBeVisible({ timeout: 60000 });
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
if (attempt === maxRetries - 1) {
|
|
63
|
+
throw error;
|
|
64
|
+
}
|
|
65
|
+
await this.page.reload();
|
|
66
|
+
await (0, sleep_1.sleep)(5000);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
52
69
|
if (await this.whatsNewPopUp.isVisible()) {
|
|
53
70
|
await this.gotItButton.click();
|
|
54
71
|
}
|
|
@@ -94,9 +94,10 @@ _8_10_1.test.describe('Smoke Tests', () => {
|
|
|
94
94
|
await modelerCreatePage.clickViewProcessInstanceLink();
|
|
95
95
|
appTab = await page.waitForEvent('popup', { timeout: constants_1.TIMEOUT.navigation });
|
|
96
96
|
const appTabProcessInstancePage = new OperateProcessInstancePage_1.OperateProcessInstancePage(appTab);
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
// Reload between attempts so a lagging Operate import is picked up —
|
|
98
|
+
// a single fixed wait never recovers if the instance page renders
|
|
99
|
+
// before the instance is imported on a fresh SaaS cluster.
|
|
100
|
+
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(appTabProcessInstancePage, appTabProcessInstancePage.activeIcon, 'active icon in Operate', constants_1.TIMEOUT.navigation);
|
|
100
101
|
await appTabProcessInstancePage.closePopOverIfVisible();
|
|
101
102
|
});
|
|
102
103
|
await _8_10_1.test.step('Navigate to Tasklist and complete both user tasks', async () => {
|