@camunda/e2e-test-suite 0.0.1461 → 0.0.1463
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.
|
@@ -157,7 +157,7 @@ class OperateProcessInstancePage {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
async assertProcessVariableContainsText(variableName, text) {
|
|
160
|
-
const maxRetries =
|
|
160
|
+
const maxRetries = 5;
|
|
161
161
|
for (let attempt = 0; attempt < maxRetries; attempt++) {
|
|
162
162
|
try {
|
|
163
163
|
await (0, test_1.expect)(this.page.getByTestId(`variable-${variableName}`)).toContainText(text, { timeout: 8000 });
|
|
@@ -179,7 +179,7 @@ class OperateProcessInstancePage {
|
|
|
179
179
|
}
|
|
180
180
|
console.log(`assertProcessVariableContainsText attempt ${attempt + 1}/${maxRetries} failed: ${uiError}`);
|
|
181
181
|
if (attempt < maxRetries - 1) {
|
|
182
|
-
await this.page.reload({ timeout:
|
|
182
|
+
await this.page.reload({ timeout: 30000 }).catch(() => { });
|
|
183
183
|
await this.page.waitForLoadState('domcontentloaded').catch(() => { });
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -207,9 +207,9 @@ class OperateProcessInstancePage {
|
|
|
207
207
|
catch {
|
|
208
208
|
return false;
|
|
209
209
|
}
|
|
210
|
-
}, { timeout:
|
|
210
|
+
}, { timeout: 30000 })
|
|
211
211
|
.catch(() => null);
|
|
212
|
-
await this.page.reload({ timeout:
|
|
212
|
+
await this.page.reload({ timeout: 30000 }).catch(() => { });
|
|
213
213
|
await this.page.waitForLoadState('domcontentloaded').catch(() => { });
|
|
214
214
|
await responsePromise;
|
|
215
215
|
return capturedValue;
|
|
@@ -109,9 +109,11 @@ class TaskDetailsPage {
|
|
|
109
109
|
// on a loaded cluster outlasts the default 10s per attempt. Every failure
|
|
110
110
|
// here aborts the caller's whole task-completion attempt, so it retries
|
|
111
111
|
// the search, the click and the panel load as well — the run log shows
|
|
112
|
-
// that churn repeating up to attempt 7.
|
|
112
|
+
// that churn repeating up to attempt 7. After a reload the page can stay
|
|
113
|
+
// blank for ~30s on an upgraded cluster, so allow more than 2 attempts.
|
|
113
114
|
visibilityTimeout: 30000,
|
|
114
|
-
totalTimeout:
|
|
115
|
+
totalTimeout: 150000,
|
|
116
|
+
maxRetries: 5,
|
|
115
117
|
postAction: async () => {
|
|
116
118
|
await this.page.reload();
|
|
117
119
|
},
|
|
@@ -12,6 +12,11 @@ const constants_1 = require("../../utils/constants");
|
|
|
12
12
|
SM_8_10_1.test.describe.parallel('Smoke Tests', () => {
|
|
13
13
|
SM_8_10_1.test.beforeEach(async ({ navigationPage, managementIdentityPage, managementIdentityTenantPage, keycloakLoginPage, keycloakAdminPage, page, browser, ocIdentityHomePage, ocIdentityRolesPage, }, testInfo) => {
|
|
14
14
|
if (process.env.IS_MIGRATION === 'true') {
|
|
15
|
+
if (process.env.IS_MT === 'true') {
|
|
16
|
+
const demoUserEmail = process.env.DEMO_USER_EMAIL || 'demo@example.org';
|
|
17
|
+
await navigationPage.goToManagementIdentity();
|
|
18
|
+
await managementIdentityTenantPage.assignUserToTenant('Default', 'demo', `Demo User${demoUserEmail}`);
|
|
19
|
+
}
|
|
15
20
|
await navigationPage.goToOCAdmin((testInfo.workerIndex + 1) * 1000);
|
|
16
21
|
}
|
|
17
22
|
else {
|
|
@@ -6,6 +6,7 @@ const _setup_1 = require("../../test-setup.js");
|
|
|
6
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
7
|
const UtilitiesPage_1 = require("../../pages/SM-8.8/UtilitiesPage");
|
|
8
8
|
const resetSession_1 = require("../../utils/resetSession");
|
|
9
|
+
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
9
10
|
SM_8_8_1.test.describe.configure({ mode: 'parallel' });
|
|
10
11
|
SM_8_8_1.test.describe('HTO User Flow Tests', () => {
|
|
11
12
|
SM_8_8_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
|
|
@@ -140,11 +141,16 @@ SM_8_8_1.test.describe('HTO User Flow Tests', () => {
|
|
|
140
141
|
await (0, test_1.expect)(operateHomePage.editVariableSpinner).not.toBeVisible({
|
|
141
142
|
timeout: 120000,
|
|
142
143
|
});
|
|
143
|
-
await (0,
|
|
144
|
-
|
|
144
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(page, page.getByText('"updatedValue"'), {
|
|
145
|
+
totalTimeout: 180000,
|
|
146
|
+
visibilityTimeout: 30000,
|
|
147
|
+
maxRetries: 6,
|
|
148
|
+
postAction: async () => {
|
|
149
|
+
await page.reload();
|
|
150
|
+
},
|
|
145
151
|
});
|
|
146
|
-
await (0, test_1.expect)(page.getByText('"
|
|
147
|
-
timeout:
|
|
152
|
+
await (0, test_1.expect)(page.getByText('"testValue"')).not.toBeVisible({
|
|
153
|
+
timeout: 30000,
|
|
148
154
|
});
|
|
149
155
|
await (0, sleep_1.sleep)(10000);
|
|
150
156
|
await navigationPage.goToTasklist();
|