@camunda/e2e-test-suite 0.0.1070 → 0.0.1072

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.
@@ -1305,8 +1305,14 @@ class ModelerCreatePage {
1305
1305
  // It renders unless localStorage already carries the seen flag, which it
1306
1306
  // reads on mount; a fresh Playwright context always starts empty, so set the
1307
1307
  // flag before entering Test mode rather than clicking the modal away.
1308
+ // camunda-hub cfaea03b0d renamed the storage key `play-testAnnouncementSeen`
1309
+ // -> `test-studio-testAnnouncementSeen`; the hook still reads the old key as
1310
+ // a legacy fallback, so write both and stay correct either way.
1308
1311
  async suppressTestModeAnnouncement() {
1309
- await this.page.evaluate(() => localStorage.setItem('play-testAnnouncementSeen', 'true'));
1312
+ await this.page.evaluate(() => {
1313
+ localStorage.setItem('test-studio-testAnnouncementSeen', 'true');
1314
+ localStorage.setItem('play-testAnnouncementSeen', 'true');
1315
+ });
1310
1316
  }
1311
1317
  async switchToPlay() {
1312
1318
  await this.suppressTestModeAnnouncement();
@@ -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
  }
@@ -221,7 +221,8 @@ _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
221
221
  });
222
222
  });
223
223
  });
224
- (0, _8_9_1.test)('Connector Secrets User Flow - AWS', async ({ page, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
224
+ // Skipped due to bug #8500: https://github.com/camunda/connectors/issues/8500
225
+ _8_9_1.test.skip('Connector Secrets User Flow - AWS', async ({ page, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
225
226
  _8_9_1.test.slow();
226
227
  const processName = 'REST_Connector_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
227
228
  await _8_9_1.test.step('Navigate to Web Modeler', async () => {
@@ -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.1072",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",