@camunda/e2e-test-suite 0.0.1462 → 0.0.1464
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 {
|
|
@@ -32,7 +32,8 @@ if (process.env.IS_DS === 'true') {
|
|
|
32
32
|
});
|
|
33
33
|
SM_8_8_1.test.describe('Unstructured Extraction', () => {
|
|
34
34
|
for (const params of unstructuredTestCases) {
|
|
35
|
-
|
|
35
|
+
// Skipped due to bug #30378: https://github.com/camunda/camunda-hub/issues/30378
|
|
36
|
+
SM_8_8_1.test.skip(`${params.provider} unstructured (${params.model}) - User creates an idp application with a document extraction template`, async ({ page, idpCreatePage, modelerHomePage, }) => {
|
|
36
37
|
SM_8_8_1.test.slow();
|
|
37
38
|
idpApplicationName = await (0, randomName_1.randomNameAgregator)(`${params.provider} unstructured` + ' - IDP_Application_Name');
|
|
38
39
|
idpDocumentExtractionTemplateName = await (0, randomName_1.randomNameAgregator)(`${params.provider} unstructured` +
|