@camunda/e2e-test-suite 0.0.130 → 0.0.132

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.
@@ -21,6 +21,8 @@ declare class ClusterPage {
21
21
  readonly stableTab: Locator;
22
22
  readonly qaGenerationsTab: Locator;
23
23
  readonly gcpRegion: Locator;
24
+ readonly belgiumRegion: Locator;
25
+ readonly finlandRegion: Locator;
24
26
  readonly g3DevClusterType: Locator;
25
27
  readonly clustersList: Locator;
26
28
  readonly cluster: (clusterName: string) => Locator;
@@ -41,6 +43,7 @@ declare class ClusterPage {
41
43
  clickClusterLink(name: string): Promise<void>;
42
44
  clickClusterTab(): Promise<void>;
43
45
  createCluster(name: string, region?: string): Promise<void>;
46
+ selectSubRegion(region: string): Promise<void>;
44
47
  private logClusterCreationInfo;
45
48
  private extractClusterIdFromUrl;
46
49
  clickCloudProvider(region?: string): Promise<void>;
@@ -27,6 +27,8 @@ class ClusterPage {
27
27
  stableTab;
28
28
  qaGenerationsTab;
29
29
  gcpRegion;
30
+ belgiumRegion;
31
+ finlandRegion;
30
32
  g3DevClusterType;
31
33
  clustersList;
32
34
  cluster;
@@ -75,6 +77,12 @@ class ClusterPage {
75
77
  this.g3DevClusterType = page.locator('label').filter({
76
78
  hasText: this.defaultClusterType,
77
79
  });
80
+ this.belgiumRegion = page.locator('label').filter({
81
+ hasText: 'Chaos, Belgium, Europe (europe-west1)',
82
+ });
83
+ this.finlandRegion = page.locator('label').filter({
84
+ hasText: 'Finland, Europe (europe-north1)',
85
+ });
78
86
  this.clustersList = page
79
87
  .getByRole('row')
80
88
  .filter({ hasNotText: 'Generation' }); //Filter out header row
@@ -217,11 +225,24 @@ class ClusterPage {
217
225
  await this.fillClusterNameInput(name);
218
226
  await this.clickClusterType();
219
227
  await this.clickCloudProvider(region);
228
+ await this.selectSubRegion(region);
220
229
  await this.clickClusterOption();
221
230
  await this.clickCreateClusterButton();
222
231
  await this.logClusterCreationInfo(name);
223
232
  await this.clickClustersBreadcrumb(name);
224
233
  }
234
+ async selectSubRegion(region) {
235
+ if (region === 'GCP') {
236
+ const regions = [
237
+ { name: 'Belgium', locator: this.belgiumRegion },
238
+ { name: 'Finland', locator: this.finlandRegion },
239
+ ];
240
+ const chosen = regions[Math.floor(Math.random() * regions.length)];
241
+ console.log(`Selected region: ${chosen.name}`);
242
+ await (0, test_1.expect)(chosen.locator).toBeVisible({ timeout: 20000 });
243
+ await chosen.locator.click();
244
+ }
245
+ }
225
246
  async logClusterCreationInfo(clusterName) {
226
247
  try {
227
248
  await this.page.waitForURL(/\/cluster\/[a-f0-9-]+$/, { timeout: 60000 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.130",
3
+ "version": "0.0.132",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",