@camunda/e2e-test-suite 0.0.1462 → 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 = 3;
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: 10000 }).catch(() => { });
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: 15000 })
210
+ }, { timeout: 30000 })
211
211
  .catch(() => null);
212
- await this.page.reload({ timeout: 10000 }).catch(() => { });
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: 60000,
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1462",
3
+ "version": "0.0.1463",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",