@camunda/e2e-test-suite 0.0.366 → 0.0.367

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.
@@ -51,6 +51,7 @@ declare class ClusterPage {
51
51
  clickClustersBreadcrumb(clusterName: string): Promise<void>;
52
52
  clickClusterLink(name: string): Promise<void>;
53
53
  clickConnectorSecretsTab(clusterName: string): Promise<void>;
54
+ clickLatestStableForMinorVersion(): Promise<void>;
54
55
  clickClusterOption(): Promise<void>;
55
56
  createClusterIfNotExists(clusterName: string, region?: string): Promise<void>;
56
57
  assertClusterHealthyStatusWithRetry(name: string, visibilityTimeout?: number, totalTimeout?: number): Promise<void>;
@@ -268,7 +268,25 @@ class ClusterPage {
268
268
  },
269
269
  });
270
270
  }
271
+ async clickLatestStableForMinorVersion() {
272
+ const minorVersion = process.env.MINOR_VERSION;
273
+ if (!minorVersion) {
274
+ throw new Error('MINOR_VERSION env var is required for auto-detecting the latest stable generation');
275
+ }
276
+ const escapedVersion = minorVersion.replace('.', '\\.');
277
+ const stableOption = this.page
278
+ .getByText(new RegExp(`^Camunda ${escapedVersion}\\+`))
279
+ .first();
280
+ await this.clickStableTab();
281
+ await (0, test_1.expect)(stableOption).toBeVisible({ timeout: 60000 });
282
+ console.log(`Auto-selecting latest stable generation for Camunda ${minorVersion}`);
283
+ await stableOption.click({ timeout: 60000 });
284
+ }
271
285
  async clickClusterOption() {
286
+ if (!process.env.CLUSTER_VERSION) {
287
+ await this.clickLatestStableForMinorVersion();
288
+ return;
289
+ }
272
290
  const tabs = [
273
291
  this.clickDevTab,
274
292
  this.clickQAGenerationsTab,
@@ -47,6 +47,7 @@ declare class ClusterPage {
47
47
  clickClustersBreadcrumb(clusterName: string): Promise<void>;
48
48
  clickClusterLink(name: string): Promise<void>;
49
49
  clickConnectorSecretesTab(clusterName: string): Promise<void>;
50
+ clickLatestStableForMinorVersion(): Promise<void>;
50
51
  clickClusterOption(version: string): Promise<void>;
51
52
  createClusterIfNotExists(clusterName: string, region?: string): Promise<void>;
52
53
  assertClusterHealthyStatusWithRetry(name: string, visibilityTimeout?: number, totalTimeout?: number): Promise<void>;
@@ -266,7 +266,25 @@ class ClusterPage {
266
266
  },
267
267
  });
268
268
  }
269
+ async clickLatestStableForMinorVersion() {
270
+ const minorVersion = process.env.MINOR_VERSION;
271
+ if (!minorVersion) {
272
+ throw new Error('MINOR_VERSION env var is required for auto-detecting the latest stable generation');
273
+ }
274
+ const escapedVersion = minorVersion.replace('.', '\\.');
275
+ const stableOption = this.page
276
+ .getByText(new RegExp(`^Camunda ${escapedVersion}\\+`))
277
+ .first();
278
+ await this.clickStableTab();
279
+ await (0, test_1.expect)(stableOption).toBeVisible({ timeout: 60000 });
280
+ console.log(`Auto-selecting latest stable generation for Camunda ${minorVersion}`);
281
+ await stableOption.click({ timeout: 60000 });
282
+ }
269
283
  async clickClusterOption(version) {
284
+ if (!version) {
285
+ await this.clickLatestStableForMinorVersion();
286
+ return;
287
+ }
270
288
  const tabs = [
271
289
  this.clickDevTab,
272
290
  this.clickQAGenerationsTab,
@@ -52,6 +52,7 @@ declare class ClusterPage {
52
52
  clickClustersBreadcrumb(clusterName: string): Promise<void>;
53
53
  clickClusterLink(name: string): Promise<void>;
54
54
  clickConnectorSecretsTab(clusterName: string): Promise<void>;
55
+ clickLatestStableForMinorVersion(): Promise<void>;
55
56
  clickClusterOption(version: string): Promise<void>;
56
57
  createClusterIfNotExists(clusterName: string, region?: string): Promise<void>;
57
58
  assertClusterHealthyStatusWithRetry(name: string, visibilityTimeout?: number, totalTimeout?: number, isUpgradeScenario?: boolean): Promise<void>;
@@ -286,7 +286,25 @@ class ClusterPage {
286
286
  },
287
287
  });
288
288
  }
289
+ async clickLatestStableForMinorVersion() {
290
+ const minorVersion = process.env.MINOR_VERSION;
291
+ if (!minorVersion) {
292
+ throw new Error('MINOR_VERSION env var is required for auto-detecting the latest stable generation');
293
+ }
294
+ const escapedVersion = minorVersion.replace('.', '\\.');
295
+ const stableOption = this.page
296
+ .getByText(new RegExp(`^Camunda ${escapedVersion}\\+`))
297
+ .first();
298
+ await this.clickStableTab();
299
+ await (0, test_1.expect)(stableOption).toBeVisible({ timeout: 60000 });
300
+ console.log(`Auto-selecting latest stable generation for Camunda ${minorVersion}`);
301
+ await stableOption.click({ timeout: 60000 });
302
+ }
289
303
  async clickClusterOption(version) {
304
+ if (!version) {
305
+ await this.clickLatestStableForMinorVersion();
306
+ return;
307
+ }
290
308
  const tabs = [
291
309
  this.clickDevTab,
292
310
  this.clickQAGenerationsTab,
@@ -51,6 +51,7 @@ declare class ClusterPage {
51
51
  clickClustersBreadcrumb(clusterName: string): Promise<void>;
52
52
  clickClusterLink(name: string): Promise<void>;
53
53
  clickConnectorSecretsTab(clusterName: string): Promise<void>;
54
+ clickLatestStableForMinorVersion(): Promise<void>;
54
55
  clickClusterOption(): Promise<void>;
55
56
  createClusterIfNotExists(clusterName: string, region?: string): Promise<void>;
56
57
  assertClusterHealthyStatusWithRetry(name: string, visibilityTimeout?: number, totalTimeout?: number, maxRetries?: number): Promise<void>;
@@ -268,7 +268,25 @@ class ClusterPage {
268
268
  },
269
269
  });
270
270
  }
271
+ async clickLatestStableForMinorVersion() {
272
+ const minorVersion = process.env.MINOR_VERSION;
273
+ if (!minorVersion) {
274
+ throw new Error('MINOR_VERSION env var is required for auto-detecting the latest stable generation');
275
+ }
276
+ const escapedVersion = minorVersion.replace('.', '\\.');
277
+ const stableOption = this.page
278
+ .getByText(new RegExp(`^Camunda ${escapedVersion}\\+`))
279
+ .first();
280
+ await this.clickStableTab();
281
+ await (0, test_1.expect)(stableOption).toBeVisible({ timeout: 60000 });
282
+ console.log(`Auto-selecting latest stable generation for Camunda ${minorVersion}`);
283
+ await stableOption.click({ timeout: 60000 });
284
+ }
271
285
  async clickClusterOption() {
286
+ if (!process.env.CLUSTER_VERSION) {
287
+ await this.clickLatestStableForMinorVersion();
288
+ return;
289
+ }
272
290
  const tabs = [
273
291
  this.clickDevTab,
274
292
  this.clickQAGenerationsTab,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.366",
3
+ "version": "0.0.367",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",