@camunda/e2e-test-suite 0.0.133 → 0.0.134
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.
- package/dist/pages/8.6/ClusterPage.d.ts +1 -0
- package/dist/pages/8.6/ClusterPage.js +18 -8
- package/dist/pages/8.7/ClusterPage.d.ts +1 -0
- package/dist/pages/8.7/ClusterPage.js +18 -8
- package/dist/pages/8.8/ClusterPage.d.ts +1 -0
- package/dist/pages/8.8/ClusterPage.js +18 -8
- package/dist/pages/8.9/ClusterPage.d.ts +1 -0
- package/dist/pages/8.9/ClusterPage.js +18 -8
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ declare class ClusterPage {
|
|
|
23
23
|
readonly gcpRegion: Locator;
|
|
24
24
|
readonly belgiumRegion: Locator;
|
|
25
25
|
readonly finlandRegion: Locator;
|
|
26
|
+
readonly londonRegion: Locator;
|
|
26
27
|
readonly g3DevClusterType: Locator;
|
|
27
28
|
readonly clustersList: Locator;
|
|
28
29
|
readonly cluster: (clusterName: string) => Locator;
|
|
@@ -29,6 +29,7 @@ class ClusterPage {
|
|
|
29
29
|
gcpRegion;
|
|
30
30
|
belgiumRegion;
|
|
31
31
|
finlandRegion;
|
|
32
|
+
londonRegion;
|
|
32
33
|
g3DevClusterType;
|
|
33
34
|
clustersList;
|
|
34
35
|
cluster;
|
|
@@ -74,6 +75,9 @@ class ClusterPage {
|
|
|
74
75
|
this.gcpRegion = page.getByRole('tab', {
|
|
75
76
|
name: 'GCP',
|
|
76
77
|
});
|
|
78
|
+
this.londonRegion = page.locator('label').filter({
|
|
79
|
+
hasText: 'London, Europe (europe-west2)',
|
|
80
|
+
});
|
|
77
81
|
this.g3DevClusterType = page.locator('label').filter({
|
|
78
82
|
hasText: this.defaultClusterType,
|
|
79
83
|
});
|
|
@@ -233,14 +237,20 @@ class ClusterPage {
|
|
|
233
237
|
}
|
|
234
238
|
async selectSubRegion(region) {
|
|
235
239
|
if (region === 'GCP') {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
240
|
+
if (process.env.IS_PROD == 'true') {
|
|
241
|
+
await (0, test_1.expect)(this.londonRegion).toBeVisible({ timeout: 15000 });
|
|
242
|
+
await this.londonRegion.click();
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
const regions = [
|
|
246
|
+
{ name: 'Belgium', locator: this.belgiumRegion },
|
|
247
|
+
{ name: 'Finland', locator: this.finlandRegion },
|
|
248
|
+
];
|
|
249
|
+
const chosen = regions[Math.floor(Math.random() * regions.length)];
|
|
250
|
+
console.log(`Selected region: ${chosen.name}`);
|
|
251
|
+
await (0, test_1.expect)(chosen.locator).toBeVisible({ timeout: 20000 });
|
|
252
|
+
await chosen.locator.click();
|
|
253
|
+
}
|
|
244
254
|
}
|
|
245
255
|
}
|
|
246
256
|
async logClusterCreationInfo(clusterName) {
|
|
@@ -4,6 +4,7 @@ declare class ClusterPage {
|
|
|
4
4
|
private defaultClusterType;
|
|
5
5
|
readonly belgiumRegion: Locator;
|
|
6
6
|
readonly finlandRegion: Locator;
|
|
7
|
+
readonly londonRegion: Locator;
|
|
7
8
|
readonly createNewClusterButton: Locator;
|
|
8
9
|
readonly clusterNameInput: Locator;
|
|
9
10
|
readonly createClusterButton: Locator;
|
|
@@ -10,6 +10,7 @@ class ClusterPage {
|
|
|
10
10
|
defaultClusterType = 'G3-Dev';
|
|
11
11
|
belgiumRegion;
|
|
12
12
|
finlandRegion;
|
|
13
|
+
londonRegion;
|
|
13
14
|
createNewClusterButton;
|
|
14
15
|
clusterNameInput;
|
|
15
16
|
createClusterButton;
|
|
@@ -82,6 +83,9 @@ class ClusterPage {
|
|
|
82
83
|
this.finlandRegion = page.locator('label').filter({
|
|
83
84
|
hasText: 'Finland, Europe (europe-north1)',
|
|
84
85
|
});
|
|
86
|
+
this.londonRegion = page.locator('label').filter({
|
|
87
|
+
hasText: 'London, Europe (europe-west2)',
|
|
88
|
+
});
|
|
85
89
|
this.clustersList = page
|
|
86
90
|
.getByRole('row')
|
|
87
91
|
.filter({ hasNotText: 'Generation' }); //Filter out header row
|
|
@@ -178,14 +182,20 @@ class ClusterPage {
|
|
|
178
182
|
}
|
|
179
183
|
async selectSubRegion(region) {
|
|
180
184
|
if (region === 'GCP') {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
185
|
+
if (process.env.IS_PROD == 'true') {
|
|
186
|
+
await (0, test_1.expect)(this.londonRegion).toBeVisible({ timeout: 20000 });
|
|
187
|
+
await this.londonRegion.click();
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
const regions = [
|
|
191
|
+
{ name: 'Belgium', locator: this.belgiumRegion },
|
|
192
|
+
{ name: 'Finland', locator: this.finlandRegion },
|
|
193
|
+
];
|
|
194
|
+
const chosen = regions[Math.floor(Math.random() * regions.length)];
|
|
195
|
+
console.log(`Selected region: ${chosen.name}`);
|
|
196
|
+
await (0, test_1.expect)(chosen.locator).toBeVisible({ timeout: 20000 });
|
|
197
|
+
await chosen.locator.click();
|
|
198
|
+
}
|
|
189
199
|
}
|
|
190
200
|
}
|
|
191
201
|
extractClusterIdFromUrl(url) {
|
|
@@ -20,6 +20,7 @@ declare class ClusterPage {
|
|
|
20
20
|
readonly clusterVersionOption: Locator;
|
|
21
21
|
readonly g3DevClusterType: Locator;
|
|
22
22
|
readonly belgiumRegion: Locator;
|
|
23
|
+
readonly londonRegion: Locator;
|
|
23
24
|
readonly finlandRegion: Locator;
|
|
24
25
|
readonly alphaTab: Locator;
|
|
25
26
|
readonly devTab: Locator;
|
|
@@ -26,6 +26,7 @@ class ClusterPage {
|
|
|
26
26
|
clusterVersionOption;
|
|
27
27
|
g3DevClusterType;
|
|
28
28
|
belgiumRegion;
|
|
29
|
+
londonRegion;
|
|
29
30
|
finlandRegion;
|
|
30
31
|
alphaTab;
|
|
31
32
|
devTab;
|
|
@@ -71,6 +72,9 @@ class ClusterPage {
|
|
|
71
72
|
this.g3DevClusterType = page.locator('label').filter({
|
|
72
73
|
hasText: this.defaultClusterType,
|
|
73
74
|
});
|
|
75
|
+
this.londonRegion = page.locator('label').filter({
|
|
76
|
+
hasText: 'London, Europe (europe-west2)',
|
|
77
|
+
});
|
|
74
78
|
this.belgiumRegion = page.locator('label').filter({
|
|
75
79
|
hasText: 'Chaos, Belgium, Europe (europe-west1)',
|
|
76
80
|
});
|
|
@@ -199,14 +203,20 @@ class ClusterPage {
|
|
|
199
203
|
}
|
|
200
204
|
async selectSubRegion(region) {
|
|
201
205
|
if (region === 'GCP') {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
if (process.env.IS_PROD == 'true') {
|
|
207
|
+
await (0, test_1.expect)(this.londonRegion).toBeVisible({ timeout: 20000 });
|
|
208
|
+
await this.londonRegion.click();
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
const regions = [
|
|
212
|
+
{ name: 'Belgium', locator: this.belgiumRegion },
|
|
213
|
+
{ name: 'Finland', locator: this.finlandRegion },
|
|
214
|
+
];
|
|
215
|
+
const chosen = regions[Math.floor(Math.random() * regions.length)];
|
|
216
|
+
console.log(`Selected region: ${chosen.name}`);
|
|
217
|
+
await (0, test_1.expect)(chosen.locator).toBeVisible({ timeout: 20000 });
|
|
218
|
+
await chosen.locator.click();
|
|
219
|
+
}
|
|
210
220
|
}
|
|
211
221
|
}
|
|
212
222
|
async determineTasklistAPI(tasklistV1Api) {
|
|
@@ -9,6 +9,7 @@ class ClusterPage {
|
|
|
9
9
|
page;
|
|
10
10
|
defaultClusterType = 'G3-Dev';
|
|
11
11
|
belgiumRegion;
|
|
12
|
+
londonRegion;
|
|
12
13
|
finlandRegion;
|
|
13
14
|
testInfo;
|
|
14
15
|
createNewClusterButton;
|
|
@@ -67,6 +68,9 @@ class ClusterPage {
|
|
|
67
68
|
this.belgiumRegion = page.locator('label').filter({
|
|
68
69
|
hasText: 'Chaos, Belgium, Europe (europe-west1)',
|
|
69
70
|
});
|
|
71
|
+
this.londonRegion = page.locator('label').filter({
|
|
72
|
+
hasText: 'London, Europe (europe-west2)',
|
|
73
|
+
});
|
|
70
74
|
this.finlandRegion = page.locator('label').filter({
|
|
71
75
|
hasText: 'Finland, Europe (europe-north1)',
|
|
72
76
|
});
|
|
@@ -309,14 +313,20 @@ class ClusterPage {
|
|
|
309
313
|
}
|
|
310
314
|
async selectSubRegion(region) {
|
|
311
315
|
if (region === 'GCP') {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
316
|
+
if (process.env.IS_PROD == 'true') {
|
|
317
|
+
await (0, test_1.expect)(this.londonRegion).toBeVisible({ timeout: 20000 });
|
|
318
|
+
await this.londonRegion.click();
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
const regions = [
|
|
322
|
+
{ name: 'Belgium', locator: this.belgiumRegion },
|
|
323
|
+
{ name: 'Finland', locator: this.finlandRegion },
|
|
324
|
+
];
|
|
325
|
+
const chosen = regions[Math.floor(Math.random() * regions.length)];
|
|
326
|
+
console.log(`Selected region: ${chosen.name}`);
|
|
327
|
+
await (0, test_1.expect)(chosen.locator).toBeVisible({ timeout: 20000 });
|
|
328
|
+
await chosen.locator.click();
|
|
329
|
+
}
|
|
320
330
|
}
|
|
321
331
|
}
|
|
322
332
|
async clickGCPRegion() {
|