@camunda/e2e-test-suite 0.0.1645 → 0.0.1646

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.
@@ -43,6 +43,7 @@ declare class ClusterPage {
43
43
  clickClusterTab(): Promise<void>;
44
44
  clickCreateNewClusterButton(): Promise<void>;
45
45
  clickClusterNameInput(): Promise<void>;
46
+ cloudProviderOption(region: string): Locator;
46
47
  fillClusterNameInput(name: string): Promise<void>;
47
48
  private extractClusterIdFromUrl;
48
49
  private logClusterCreationInfo;
@@ -114,7 +114,7 @@ class ClusterPage {
114
114
  this.devTab = choice(page.getByRole('tab', { name: 'Internal Dev' }), 'Internal Dev');
115
115
  this.stableTab = choice(page.getByRole('tab', { name: 'Stable' }), 'Stable');
116
116
  this.qaGenerationsTab = choice(page.getByRole('tab', { name: 'QA Generations' }), 'QA Generations');
117
- this.gcpRegion = choice(page.getByRole('tab', { name: 'GCP' }), 'GCP');
117
+ this.gcpRegion = this.cloudProviderOption('GCP');
118
118
  this.clustersList = page
119
119
  .getByRole('row')
120
120
  .filter({ hasNotText: 'Generation' }); //Filter out header row
@@ -256,6 +256,15 @@ class ClusterPage {
256
256
  },
257
257
  });
258
258
  }
259
+ // The Console's "Select cloud provider" radiogroup now names its options
260
+ // by the provider's full name with the short code in parentheses ("Google
261
+ // Cloud (GCP)", "Amazon Web Services (AWS)"); older builds named them
262
+ // "GCP"/"AWS" (or rendered Carbon tabs). Accept all three shapes.
263
+ cloudProviderOption(region) {
264
+ return this.page.getByRole('tab', { name: region }).or(this.page.getByRole('radio', {
265
+ name: new RegExp(`^(${region}|.+ \\(${region}\\))$`),
266
+ }));
267
+ }
259
268
  async fillClusterNameInput(name) {
260
269
  await this.clusterNameInput.fill(name);
261
270
  }
@@ -298,10 +307,7 @@ class ClusterPage {
298
307
  await this.clickClusterNameInput();
299
308
  await this.fillClusterNameInput(name);
300
309
  await this.clickClusterType();
301
- await this.page
302
- .getByRole('tab', { name: region })
303
- .or(this.page.getByRole('radio', { name: region, exact: true }))
304
- .click();
310
+ await this.cloudProviderOption(region).click();
305
311
  await this.selectSubRegion(region);
306
312
  await this.clickClusterOption();
307
313
  await this.determineTasklistAPI(tasklistV1Api);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1645",
3
+ "version": "0.0.1646",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",