@camunda/e2e-test-suite 0.0.228 → 0.0.229

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.
@@ -314,7 +314,10 @@ class ClusterDetailsPage {
314
314
  await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.page.getByText(`${component}Healthy`, { exact: true }), {
315
315
  visibilityTimeout: 60000,
316
316
  totalTimeout: 400000,
317
- maxRetries: 6,
317
+ maxRetries: 7,
318
+ postAction: async () => {
319
+ await this.page.reload();
320
+ },
318
321
  });
319
322
  }
320
323
  }
@@ -50,7 +50,7 @@ declare class ClusterPage {
50
50
  clickClustersBreadcrumb(clusterName: string): Promise<void>;
51
51
  clickClusterLink(name: string): Promise<void>;
52
52
  clickConnectorSecretsTab(clusterName: string): Promise<void>;
53
- clickClusterOption(): Promise<void>;
53
+ clickClusterOption(version: string): Promise<void>;
54
54
  createClusterIfNotExists(clusterName: string, region?: string): Promise<void>;
55
55
  assertClusterHealthyStatusWithRetry(name: string, visibilityTimeout?: number, totalTimeout?: number): Promise<void>;
56
56
  clickAlphaTab(): Promise<void>;
@@ -5,6 +5,7 @@ const test_1 = require("@playwright/test");
5
5
  const sleep_1 = require("../../utils/sleep");
6
6
  const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
7
7
  const clickLocatorWithRetry_1 = require("../../utils/assertionHelpers/clickLocatorWithRetry");
8
+ const clusterVersions_1 = require("../../utils/clusterVersions");
8
9
  class ClusterPage {
9
10
  page;
10
11
  defaultClusterType = 'G3-Dev';
@@ -195,7 +196,7 @@ class ClusterPage {
195
196
  await this.clickClusterType();
196
197
  await this.page.getByRole('tab', { name: region }).click();
197
198
  await this.selectSubRegion(region);
198
- await this.clickClusterOption();
199
+ await this.clickClusterOption(process.env.CLUSTER_VERSION);
199
200
  await this.determineTasklistAPI(tasklistV1Api);
200
201
  await this.clickCreateClusterButton();
201
202
  await this.logClusterCreationInfo(name);
@@ -274,21 +275,37 @@ class ClusterPage {
274
275
  },
275
276
  });
276
277
  }
277
- async clickClusterOption() {
278
+ async clickClusterOption(version) {
278
279
  const tabs = [
279
280
  this.clickDevTab,
280
281
  this.clickQAGenerationsTab,
281
282
  this.clickStableTab,
282
283
  this.clickAlphaTab,
283
284
  ];
284
- for (const clickTab of tabs) {
285
+ const maxRetries = 3;
286
+ for (let attempt = 0; attempt < maxRetries; attempt++) {
285
287
  try {
286
- await clickTab.call(this);
287
- await this.clusterVersionOption.click({ timeout: 60000 });
288
- return;
288
+ if (version === clusterVersions_1.ClusterVersion.EIGHT_EIGHT_SNAPSHOT) {
289
+ await this.clickDevTab();
290
+ await this.clusterVersionOption.scrollIntoViewIfNeeded();
291
+ await (0, test_1.expect)(this.clusterVersionOption).toBeVisible({ timeout: 60000 });
292
+ await this.clusterVersionOption.click({ timeout: 60000 });
293
+ return;
294
+ }
295
+ for (const clickTab of tabs) {
296
+ try {
297
+ await clickTab.call(this);
298
+ await this.clusterVersionOption.click({ timeout: 30000 });
299
+ return;
300
+ }
301
+ catch (error) {
302
+ console.log('Version option not found in this tab, trying next tab if available...');
303
+ }
304
+ }
289
305
  }
290
306
  catch (error) {
291
- console.error('Error clicking tab or cluster version option:', error);
307
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
308
+ console.error('Error clicking tab or cluster version option: ' + errorMessage);
292
309
  }
293
310
  }
294
311
  throw new Error('Failed to find cluster generation');
@@ -320,6 +337,7 @@ class ClusterPage {
320
337
  await this.alphaTab.click();
321
338
  }
322
339
  async clickDevTab() {
340
+ await (0, test_1.expect)(this.devTab).toBeVisible({ timeout: 30000 });
323
341
  await this.devTab.click();
324
342
  }
325
343
  async clickStableTab() {
@@ -146,7 +146,7 @@ _8_8_1.test.describe('Smoke Tests', () => {
146
146
  await appsPage.clickCamundaApps();
147
147
  await appsPage.clickModeler();
148
148
  await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
149
- timeout: 10000,
149
+ timeout: 30000,
150
150
  });
151
151
  });
152
152
  await _8_8_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
@@ -0,0 +1,7 @@
1
+ export declare enum ClusterVersion {
2
+ EIGHT_SIX_SNAPSHOT = "8.6 Cross Component Test Suite",
3
+ EIGHT_SEVEN_SNAPSHOT = "8.7 Cross Component Test Suite",
4
+ EIGHT_EIGHT_SNAPSHOT = "8.8 Cross Component Test Suite",
5
+ EIGHT_NINE_SNAPSHOT = "8.9 Cross Component Test Suite",
6
+ EIGHT_TEN_SNAPSHOT = "8.10 Cross Component Test Suite"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClusterVersion = void 0;
4
+ var ClusterVersion;
5
+ (function (ClusterVersion) {
6
+ ClusterVersion["EIGHT_SIX_SNAPSHOT"] = "8.6 Cross Component Test Suite";
7
+ ClusterVersion["EIGHT_SEVEN_SNAPSHOT"] = "8.7 Cross Component Test Suite";
8
+ ClusterVersion["EIGHT_EIGHT_SNAPSHOT"] = "8.8 Cross Component Test Suite";
9
+ ClusterVersion["EIGHT_NINE_SNAPSHOT"] = "8.9 Cross Component Test Suite";
10
+ ClusterVersion["EIGHT_TEN_SNAPSHOT"] = "8.10 Cross Component Test Suite";
11
+ })(ClusterVersion || (exports.ClusterVersion = ClusterVersion = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.228",
3
+ "version": "0.0.229",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",