@camunda/e2e-test-suite 0.0.1070 → 0.0.1071

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.
@@ -29,8 +29,7 @@ _8_7_1.test.describe('Cluster Setup Tests', () => {
29
29
  await clusterPage.assertClusterHealthyStatusWithRetry(clusterName);
30
30
  }
31
31
  else {
32
- await (0, consoleApiHelpers_1.deleteClusterViaApi)(page, clusterName);
33
- const clusterUuid = await (0, consoleApiHelpers_1.createClusterViaApi)(page, clusterName);
32
+ const clusterUuid = await (0, consoleApiHelpers_1.ensureClusterViaApi)(page, clusterName);
34
33
  await (0, consoleApiHelpers_1.waitForClusterHealthyViaApi)(page, clusterUuid);
35
34
  await homePage.clickClusters();
36
35
  }
@@ -48,8 +47,7 @@ _8_7_1.test.describe('Cluster Setup Tests', () => {
48
47
  await clusterPage.assertClusterHealthyStatusWithRetry(clusterName, 300000, 1500000);
49
48
  }
50
49
  else {
51
- await (0, consoleApiHelpers_1.deleteClusterViaApi)(page, clusterName);
52
- const clusterUuid = await (0, consoleApiHelpers_1.createClusterViaApi)(page, clusterName, 'AWS');
50
+ const clusterUuid = await (0, consoleApiHelpers_1.ensureClusterViaApi)(page, clusterName, 'AWS');
53
51
  await (0, consoleApiHelpers_1.waitForClusterHealthyViaApi)(page, clusterUuid, 1500000);
54
52
  await homePage.clickClusters();
55
53
  }
@@ -450,12 +450,11 @@ async function ensureTasklistV2Enabled(page, clusterUuid) {
450
450
  // tests that specifically require a real v2-upgraded backend, never on a
451
451
  // cluster shared with anything that needs v1 (e.g. job-worker-based user
452
452
  // tasks, draft variables, public start forms).
453
- const token = await getUserToken(page);
454
453
  const orgId = getOrgId();
455
- const response = await page.request.patch(`${getConsoleBaseUrl()}/api/orgs/${orgId}/clusters/${clusterUuid}`, {
456
- headers: { Authorization: `Bearer ${token}` },
457
- data: { tasklistV2Enabled: true },
458
- });
454
+ // Same reason as the DELETE in deleteClusterViaApi: a bare page.request
455
+ // call inherits the 10s actionTimeout, which a cluster write on Console
456
+ // can exceed.
457
+ const response = await clusterApiRequest(page, 'PATCH', `${getConsoleBaseUrl()}/api/orgs/${orgId}/clusters/${clusterUuid}`, { tasklistV2Enabled: true });
459
458
  if (response.status() !== 200 && response.status() !== 204) {
460
459
  throw new Error(`Failed to upgrade cluster "${clusterUuid}" to Tasklist v2: ` +
461
460
  `HTTP ${response.status()} - ${await response.text()}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1070",
3
+ "version": "0.0.1071",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",