@camunda/e2e-test-suite 0.0.267 → 0.0.269
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.10/ClusterPage.d.ts +0 -1
- package/dist/pages/8.10/ClusterPage.js +3 -12
- package/dist/pages/8.10/ConsoleOrganizationPage.js +27 -11
- package/dist/pages/8.6/ClusterPage.d.ts +0 -1
- package/dist/pages/8.6/ClusterPage.js +3 -9
- package/dist/pages/8.6/ConsoleOrganizationPage.js +27 -11
- package/dist/pages/8.7/ClusterPage.d.ts +0 -1
- package/dist/pages/8.7/ClusterPage.js +3 -12
- package/dist/pages/8.7/ConsoleOrganizationPage.js +27 -11
- package/dist/pages/8.8/ClusterPage.d.ts +0 -1
- package/dist/pages/8.8/ClusterPage.js +3 -12
- package/dist/pages/8.8/ConsoleOrganizationPage.js +27 -11
- package/dist/pages/8.9/ClusterPage.d.ts +0 -1
- package/dist/pages/8.9/ClusterPage.js +3 -12
- package/dist/pages/8.9/ConsoleOrganizationPage.js +27 -11
- package/package.json +1 -1
|
@@ -33,7 +33,6 @@ declare class ClusterPage {
|
|
|
33
33
|
readonly cluster: (clusterName: string) => Locator;
|
|
34
34
|
readonly clusterHealthiness: (clusterName: string) => Locator;
|
|
35
35
|
readonly clusterLink: (clusterName: string) => Locator;
|
|
36
|
-
readonly dialog: Locator;
|
|
37
36
|
constructor(page: Page, testInfo?: TestInfo);
|
|
38
37
|
clickClusterBanner(): Promise<void>;
|
|
39
38
|
deleteCluster(name: string): Promise<void>;
|
|
@@ -39,17 +39,12 @@ class ClusterPage {
|
|
|
39
39
|
cluster;
|
|
40
40
|
clusterHealthiness;
|
|
41
41
|
clusterLink;
|
|
42
|
-
dialog;
|
|
43
42
|
constructor(page, testInfo) {
|
|
44
43
|
this.page = page;
|
|
45
44
|
this.testInfo = testInfo;
|
|
46
|
-
this.createNewClusterButton =
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
})
|
|
50
|
-
.or(this.page.getByRole('button', {
|
|
51
|
-
name: 'Create cluster',
|
|
52
|
-
}));
|
|
45
|
+
this.createNewClusterButton = page.getByRole('button', {
|
|
46
|
+
name: 'Create new Cluster',
|
|
47
|
+
});
|
|
53
48
|
this.clusterNameInput = page.getByPlaceholder('Enter a name for the cluster');
|
|
54
49
|
this.createClusterButton = page.getByRole('button', {
|
|
55
50
|
name: 'Create cluster',
|
|
@@ -105,7 +100,6 @@ class ClusterPage {
|
|
|
105
100
|
this.clusterLink = (clusterName) => this.cluster(clusterName).getByRole('link', {
|
|
106
101
|
name: clusterName,
|
|
107
102
|
});
|
|
108
|
-
this.dialog = page.getByRole('dialog');
|
|
109
103
|
}
|
|
110
104
|
async clickClusterBanner() {
|
|
111
105
|
await this.page
|
|
@@ -135,8 +129,6 @@ class ClusterPage {
|
|
|
135
129
|
await (0, test_1.expect)(deleteButton).toBeVisible({ timeout: 60000 });
|
|
136
130
|
await deleteButton.click({ force: true, timeout: 60000 });
|
|
137
131
|
}
|
|
138
|
-
await (0, test_1.expect)(this.dialog).toBeVisible({ timeout: 60000 });
|
|
139
|
-
await (0, test_1.expect)(this.confirmDeleteInput).toBeVisible({ timeout: 60000 });
|
|
140
132
|
await this.confirmDeleteInput.click({ force: true, timeout: 60000 });
|
|
141
133
|
await this.confirmDeleteInput.fill('DELETE', { timeout: 60000 });
|
|
142
134
|
const dangerDeleteButtons = await this.dangerDeleteButton.all();
|
|
@@ -145,7 +137,6 @@ class ClusterPage {
|
|
|
145
137
|
await (0, test_1.expect)(this.page.getByText('Deleting...')).not.toBeVisible({
|
|
146
138
|
timeout: 60000,
|
|
147
139
|
});
|
|
148
|
-
await (0, test_1.expect)(this.dialog).not.toBeVisible({ timeout: 60000 });
|
|
149
140
|
// Refresh the list of delete buttons
|
|
150
141
|
deleteButtons = this.cluster(name).getByRole('button', {
|
|
151
142
|
name: 'Delete',
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ConsoleOrganizationPage = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const sleep_1 = require("../../utils/sleep");
|
|
6
|
-
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
7
6
|
class ConsoleOrganizationPage {
|
|
8
7
|
page;
|
|
9
8
|
usersTab;
|
|
@@ -60,7 +59,7 @@ class ConsoleOrganizationPage {
|
|
|
60
59
|
this.confirmButton = page.getByRole('button', { name: 'Confirm' });
|
|
61
60
|
this.settingsTab = page.getByRole('tab', { name: 'Settings' });
|
|
62
61
|
this.optInButton = page.getByRole('button', { name: 'Opt-in', exact: true });
|
|
63
|
-
this.optInCheckbox = page.getByLabel('I understand and agree to');
|
|
62
|
+
this.optInCheckbox = page.getByLabel('I understand and agree to the');
|
|
64
63
|
this.newContextPadButton = page.getByRole('switch').last();
|
|
65
64
|
this.newContextPadButtonText = page
|
|
66
65
|
.locator('[class= "cds--toggle__text"]')
|
|
@@ -247,7 +246,7 @@ class ConsoleOrganizationPage {
|
|
|
247
246
|
}
|
|
248
247
|
//Opt-in The Alpha Feature
|
|
249
248
|
const alphaFeatureOptInButton = alphaFeature.getByRole('button', {
|
|
250
|
-
name: 'Opt
|
|
249
|
+
name: 'Opt-in to enable',
|
|
251
250
|
});
|
|
252
251
|
if (await alphaFeatureOptInButton.isVisible({ timeout: 10000 })) {
|
|
253
252
|
await alphaFeatureOptInButton.click({ timeout: 90000 });
|
|
@@ -275,7 +274,31 @@ class ConsoleOrganizationPage {
|
|
|
275
274
|
}
|
|
276
275
|
async scrollToOptInCheckbox() {
|
|
277
276
|
await this.page
|
|
278
|
-
.
|
|
277
|
+
.getByText('Access and Use of the Camunda')
|
|
278
|
+
.scrollIntoViewIfNeeded();
|
|
279
|
+
await this.page
|
|
280
|
+
.getByText('Pre-release. The Customer')
|
|
281
|
+
.scrollIntoViewIfNeeded();
|
|
282
|
+
await this.page
|
|
283
|
+
.getByText('Confidential Information. The')
|
|
284
|
+
.scrollIntoViewIfNeeded();
|
|
285
|
+
await this.page
|
|
286
|
+
.getByText('THESE TERMS DO NOT ENTITLE')
|
|
287
|
+
.scrollIntoViewIfNeeded();
|
|
288
|
+
await this.page
|
|
289
|
+
.getByText('Rights and Obligations Upon')
|
|
290
|
+
.scrollIntoViewIfNeeded();
|
|
291
|
+
await this.page
|
|
292
|
+
.getByText('NOTWITHSTANDING ANYTHING TO')
|
|
293
|
+
.scrollIntoViewIfNeeded();
|
|
294
|
+
await this.page
|
|
295
|
+
.getByRole('heading', { name: 'General' })
|
|
296
|
+
.scrollIntoViewIfNeeded();
|
|
297
|
+
await this.page
|
|
298
|
+
.getByText('Liability. Camunda is liable')
|
|
299
|
+
.scrollIntoViewIfNeeded();
|
|
300
|
+
await this.page
|
|
301
|
+
.getByLabel('I understand and agree to the')
|
|
279
302
|
.scrollIntoViewIfNeeded();
|
|
280
303
|
}
|
|
281
304
|
async checkOptInCheckbox() {
|
|
@@ -300,13 +323,6 @@ class ConsoleOrganizationPage {
|
|
|
300
323
|
}
|
|
301
324
|
}
|
|
302
325
|
async optInToAlphaFeatures() {
|
|
303
|
-
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.rows.first(), {
|
|
304
|
-
visibilityTimeout: 60000,
|
|
305
|
-
totalTimeout: 140000,
|
|
306
|
-
postAction: async () => {
|
|
307
|
-
await this.page.reload();
|
|
308
|
-
},
|
|
309
|
-
});
|
|
310
326
|
try {
|
|
311
327
|
await (0, test_1.expect)(this.optInButton).toBeVisible({ timeout: 30000 });
|
|
312
328
|
await this.clickOptInButton();
|
|
@@ -30,7 +30,6 @@ declare class ClusterPage {
|
|
|
30
30
|
readonly clusterHealthiness: (clusterName: string) => Locator;
|
|
31
31
|
readonly clusterLink: (clusterName: string) => Locator;
|
|
32
32
|
readonly clusterDeleteButton: (clusterName: string) => Locator;
|
|
33
|
-
readonly dialog: Locator;
|
|
34
33
|
constructor(page: Page);
|
|
35
34
|
clickClusterBanner(): Promise<void>;
|
|
36
35
|
deleteCluster(name: string): Promise<void>;
|
|
@@ -36,17 +36,11 @@ class ClusterPage {
|
|
|
36
36
|
clusterHealthiness;
|
|
37
37
|
clusterLink;
|
|
38
38
|
clusterDeleteButton;
|
|
39
|
-
dialog;
|
|
40
39
|
constructor(page) {
|
|
41
40
|
this.page = page;
|
|
42
|
-
this.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
name: 'Create new cluster',
|
|
46
|
-
})
|
|
47
|
-
.or(this.page.getByRole('button', {
|
|
48
|
-
name: 'Create cluster',
|
|
49
|
-
}));
|
|
41
|
+
this.createNewClusterButton = page.getByRole('button', {
|
|
42
|
+
name: 'Create new Cluster',
|
|
43
|
+
});
|
|
50
44
|
this.clusterNameInput = page.getByPlaceholder('Enter a name for the cluster');
|
|
51
45
|
this.createClusterButton = page.getByRole('button', {
|
|
52
46
|
name: 'Create cluster',
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ConsoleOrganizationPage = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const sleep_1 = require("../../utils/sleep");
|
|
6
|
-
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
7
6
|
class ConsoleOrganizationPage {
|
|
8
7
|
page;
|
|
9
8
|
usersTab;
|
|
@@ -68,7 +67,7 @@ class ConsoleOrganizationPage {
|
|
|
68
67
|
this.confirmButton = page.getByRole('button', { name: 'Confirm' });
|
|
69
68
|
this.settingsTab = page.getByRole('tab', { name: 'Settings' });
|
|
70
69
|
this.optInButton = page.getByRole('button', { name: 'Opt-in', exact: true });
|
|
71
|
-
this.optInCheckbox = page.getByLabel('I understand and agree to');
|
|
70
|
+
this.optInCheckbox = page.getByLabel('I understand and agree to the');
|
|
72
71
|
this.optInAICheckbox = page.getByLabel('I understand and agree to Terms for AI Usage');
|
|
73
72
|
this.newContextPadButton = page.getByRole('switch').last();
|
|
74
73
|
this.newContextPadButtonText = page
|
|
@@ -283,7 +282,31 @@ class ConsoleOrganizationPage {
|
|
|
283
282
|
}
|
|
284
283
|
async scrollToOptInCheckbox() {
|
|
285
284
|
await this.page
|
|
286
|
-
.
|
|
285
|
+
.getByText('Access and Use of the Camunda')
|
|
286
|
+
.scrollIntoViewIfNeeded();
|
|
287
|
+
await this.page
|
|
288
|
+
.getByText('Pre-release. The Customer')
|
|
289
|
+
.scrollIntoViewIfNeeded();
|
|
290
|
+
await this.page
|
|
291
|
+
.getByText('Confidential Information. The')
|
|
292
|
+
.scrollIntoViewIfNeeded();
|
|
293
|
+
await this.page
|
|
294
|
+
.getByText('THESE TERMS DO NOT ENTITLE')
|
|
295
|
+
.scrollIntoViewIfNeeded();
|
|
296
|
+
await this.page
|
|
297
|
+
.getByText('Rights and Obligations Upon')
|
|
298
|
+
.scrollIntoViewIfNeeded();
|
|
299
|
+
await this.page
|
|
300
|
+
.getByText('NOTWITHSTANDING ANYTHING TO')
|
|
301
|
+
.scrollIntoViewIfNeeded();
|
|
302
|
+
await this.page
|
|
303
|
+
.getByRole('heading', { name: 'General' })
|
|
304
|
+
.scrollIntoViewIfNeeded();
|
|
305
|
+
await this.page
|
|
306
|
+
.getByText('Liability. Camunda is liable')
|
|
307
|
+
.scrollIntoViewIfNeeded();
|
|
308
|
+
await this.page
|
|
309
|
+
.getByLabel('I understand and agree to the')
|
|
287
310
|
.scrollIntoViewIfNeeded();
|
|
288
311
|
}
|
|
289
312
|
async checkOptInCheckbox() {
|
|
@@ -312,7 +335,7 @@ class ConsoleOrganizationPage {
|
|
|
312
335
|
}
|
|
313
336
|
//Opt-in The Alpha Feature
|
|
314
337
|
const alphaFeatureOptInButton = alphaFeature.getByRole('button', {
|
|
315
|
-
name: 'Opt
|
|
338
|
+
name: 'Opt-in to enable',
|
|
316
339
|
});
|
|
317
340
|
if (await alphaFeatureOptInButton.isVisible({ timeout: 10000 })) {
|
|
318
341
|
await alphaFeatureOptInButton.click({ timeout: 60000 });
|
|
@@ -372,13 +395,6 @@ class ConsoleOrganizationPage {
|
|
|
372
395
|
}
|
|
373
396
|
}
|
|
374
397
|
async optInToAlphaFeatures() {
|
|
375
|
-
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.rows.first(), {
|
|
376
|
-
visibilityTimeout: 60000,
|
|
377
|
-
totalTimeout: 140000,
|
|
378
|
-
postAction: async () => {
|
|
379
|
-
await this.page.reload();
|
|
380
|
-
},
|
|
381
|
-
});
|
|
382
398
|
try {
|
|
383
399
|
await (0, test_1.expect)(this.optInButton).toBeVisible({ timeout: 30000 });
|
|
384
400
|
await this.clickOptInButton();
|
|
@@ -30,7 +30,6 @@ declare class ClusterPage {
|
|
|
30
30
|
readonly cluster: (clusterName: string) => Locator;
|
|
31
31
|
readonly clusterHealthiness: (clusterName: string) => Locator;
|
|
32
32
|
readonly clusterLink: (clusterName: string) => Locator;
|
|
33
|
-
readonly dialog: Locator;
|
|
34
33
|
constructor(page: Page);
|
|
35
34
|
clickClusterBanner(): Promise<void>;
|
|
36
35
|
deleteCluster(name: string): Promise<void>;
|
|
@@ -37,17 +37,11 @@ class ClusterPage {
|
|
|
37
37
|
cluster;
|
|
38
38
|
clusterHealthiness;
|
|
39
39
|
clusterLink;
|
|
40
|
-
dialog;
|
|
41
40
|
constructor(page) {
|
|
42
41
|
this.page = page;
|
|
43
|
-
this.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
name: 'Create new cluster',
|
|
47
|
-
})
|
|
48
|
-
.or(this.page.getByRole('button', {
|
|
49
|
-
name: 'Create cluster',
|
|
50
|
-
}));
|
|
42
|
+
this.createNewClusterButton = page.getByRole('button', {
|
|
43
|
+
name: 'Create new Cluster',
|
|
44
|
+
});
|
|
51
45
|
this.clusterNameInput = page.getByPlaceholder('Enter a name for the cluster');
|
|
52
46
|
this.createClusterButton = page.getByRole('button', {
|
|
53
47
|
name: 'Create cluster',
|
|
@@ -131,8 +125,6 @@ class ClusterPage {
|
|
|
131
125
|
await (0, test_1.expect)(deleteButton).toBeVisible({ timeout: 60000 });
|
|
132
126
|
await deleteButton.click({ force: true, timeout: 60000 });
|
|
133
127
|
}
|
|
134
|
-
await (0, test_1.expect)(this.dialog).toBeVisible({ timeout: 60000 });
|
|
135
|
-
await (0, test_1.expect)(this.confirmDeleteInput).toBeVisible({ timeout: 60000 });
|
|
136
128
|
await this.confirmDeleteInput.click({ force: true, timeout: 60000 });
|
|
137
129
|
await this.confirmDeleteInput.fill('DELETE', { timeout: 60000 });
|
|
138
130
|
const dangerDeleteButtons = await this.dangerDeleteButton.all();
|
|
@@ -141,7 +133,6 @@ class ClusterPage {
|
|
|
141
133
|
await (0, test_1.expect)(this.page.getByText('Deleting...')).not.toBeVisible({
|
|
142
134
|
timeout: 60000,
|
|
143
135
|
});
|
|
144
|
-
await (0, test_1.expect)(this.dialog).not.toBeVisible({ timeout: 60000 });
|
|
145
136
|
// Refresh the list of delete buttons
|
|
146
137
|
deleteButtons = this.cluster(name).getByRole('button', {
|
|
147
138
|
name: 'Delete',
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ConsoleOrganizationPage = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const sleep_1 = require("../../utils/sleep");
|
|
6
|
-
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
7
6
|
class ConsoleOrganizationPage {
|
|
8
7
|
page;
|
|
9
8
|
usersTab;
|
|
@@ -68,7 +67,7 @@ class ConsoleOrganizationPage {
|
|
|
68
67
|
this.confirmButton = page.getByRole('button', { name: 'Confirm' });
|
|
69
68
|
this.settingsTab = page.getByRole('tab', { name: 'Settings' });
|
|
70
69
|
this.optInButton = page.getByRole('button', { name: 'Opt-in', exact: true });
|
|
71
|
-
this.optInCheckbox = page.getByLabel('I understand and agree to');
|
|
70
|
+
this.optInCheckbox = page.getByLabel('I understand and agree to the');
|
|
72
71
|
this.newContextPadButton = page.getByRole('switch').last();
|
|
73
72
|
this.newContextPadButtonText = page
|
|
74
73
|
.locator('[class= "cds--toggle__text"]')
|
|
@@ -251,7 +250,7 @@ class ConsoleOrganizationPage {
|
|
|
251
250
|
}
|
|
252
251
|
//Opt-in The Alpha Feature
|
|
253
252
|
const alphaFeatureOptInButton = alphaFeature.getByRole('button', {
|
|
254
|
-
name: 'Opt
|
|
253
|
+
name: 'Opt-in to enable',
|
|
255
254
|
});
|
|
256
255
|
if (await alphaFeatureOptInButton.isVisible({ timeout: 10000 })) {
|
|
257
256
|
await alphaFeatureOptInButton.click();
|
|
@@ -279,7 +278,31 @@ class ConsoleOrganizationPage {
|
|
|
279
278
|
}
|
|
280
279
|
async scrollToOptInCheckbox() {
|
|
281
280
|
await this.page
|
|
282
|
-
.
|
|
281
|
+
.getByText('Access and Use of the Camunda')
|
|
282
|
+
.scrollIntoViewIfNeeded();
|
|
283
|
+
await this.page
|
|
284
|
+
.getByText('Pre-release. The Customer')
|
|
285
|
+
.scrollIntoViewIfNeeded();
|
|
286
|
+
await this.page
|
|
287
|
+
.getByText('Confidential Information. The')
|
|
288
|
+
.scrollIntoViewIfNeeded();
|
|
289
|
+
await this.page
|
|
290
|
+
.getByText('THESE TERMS DO NOT ENTITLE')
|
|
291
|
+
.scrollIntoViewIfNeeded();
|
|
292
|
+
await this.page
|
|
293
|
+
.getByText('Rights and Obligations Upon')
|
|
294
|
+
.scrollIntoViewIfNeeded();
|
|
295
|
+
await this.page
|
|
296
|
+
.getByText('NOTWITHSTANDING ANYTHING TO')
|
|
297
|
+
.scrollIntoViewIfNeeded();
|
|
298
|
+
await this.page
|
|
299
|
+
.getByRole('heading', { name: 'General' })
|
|
300
|
+
.scrollIntoViewIfNeeded();
|
|
301
|
+
await this.page
|
|
302
|
+
.getByText('Liability. Camunda is liable')
|
|
303
|
+
.scrollIntoViewIfNeeded();
|
|
304
|
+
await this.page
|
|
305
|
+
.getByLabel('I understand and agree to the')
|
|
283
306
|
.scrollIntoViewIfNeeded();
|
|
284
307
|
}
|
|
285
308
|
async checkOptInCheckbox() {
|
|
@@ -328,13 +351,6 @@ class ConsoleOrganizationPage {
|
|
|
328
351
|
}
|
|
329
352
|
}
|
|
330
353
|
async optInToAlphaFeatures() {
|
|
331
|
-
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.rows.first(), {
|
|
332
|
-
visibilityTimeout: 60000,
|
|
333
|
-
totalTimeout: 140000,
|
|
334
|
-
postAction: async () => {
|
|
335
|
-
await this.page.reload();
|
|
336
|
-
},
|
|
337
|
-
});
|
|
338
354
|
try {
|
|
339
355
|
await (0, test_1.expect)(this.optInButton).toBeVisible({ timeout: 30000 });
|
|
340
356
|
await this.clickOptInButton();
|
|
@@ -33,7 +33,6 @@ declare class ClusterPage {
|
|
|
33
33
|
readonly cluster: (clusterName: string) => Locator;
|
|
34
34
|
readonly clusterHealthiness: (clusterName: string) => Locator;
|
|
35
35
|
readonly clusterLink: (clusterName: string) => Locator;
|
|
36
|
-
readonly dialog: Locator;
|
|
37
36
|
constructor(page: Page, testInfo?: TestInfo);
|
|
38
37
|
clickClusterBanner(): Promise<void>;
|
|
39
38
|
deleteCluster(name: string): Promise<void>;
|
|
@@ -40,18 +40,12 @@ class ClusterPage {
|
|
|
40
40
|
cluster;
|
|
41
41
|
clusterHealthiness;
|
|
42
42
|
clusterLink;
|
|
43
|
-
dialog;
|
|
44
43
|
constructor(page, testInfo) {
|
|
45
44
|
this.page = page;
|
|
46
45
|
this.testInfo = testInfo;
|
|
47
|
-
this.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
name: 'Create new cluster',
|
|
51
|
-
})
|
|
52
|
-
.or(this.page.getByRole('button', {
|
|
53
|
-
name: 'Create cluster',
|
|
54
|
-
}));
|
|
46
|
+
this.createNewClusterButton = page.getByRole('button', {
|
|
47
|
+
name: 'Create new Cluster',
|
|
48
|
+
});
|
|
55
49
|
this.clusterNameInput = page.getByPlaceholder('Enter a name for the cluster');
|
|
56
50
|
this.createClusterButton = page.getByRole('button', {
|
|
57
51
|
name: 'Create cluster',
|
|
@@ -136,8 +130,6 @@ class ClusterPage {
|
|
|
136
130
|
await (0, test_1.expect)(deleteButton).toBeVisible({ timeout: 60000 });
|
|
137
131
|
await deleteButton.click({ force: true, timeout: 60000 });
|
|
138
132
|
}
|
|
139
|
-
await (0, test_1.expect)(this.dialog).toBeVisible({ timeout: 60000 });
|
|
140
|
-
await (0, test_1.expect)(this.confirmDeleteInput).toBeVisible({ timeout: 60000 });
|
|
141
133
|
await this.confirmDeleteInput.click({ force: true, timeout: 60000 });
|
|
142
134
|
await this.confirmDeleteInput.fill('DELETE', { timeout: 60000 });
|
|
143
135
|
const dangerDeleteButtons = await this.dangerDeleteButton.all();
|
|
@@ -146,7 +138,6 @@ class ClusterPage {
|
|
|
146
138
|
await (0, test_1.expect)(this.page.getByText('Deleting...')).not.toBeVisible({
|
|
147
139
|
timeout: 60000,
|
|
148
140
|
});
|
|
149
|
-
await (0, test_1.expect)(this.dialog).not.toBeVisible({ timeout: 60000 });
|
|
150
141
|
// Refresh the list of delete buttons
|
|
151
142
|
deleteButtons = this.cluster(name).getByRole('button', {
|
|
152
143
|
name: 'Delete',
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ConsoleOrganizationPage = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const sleep_1 = require("../../utils/sleep");
|
|
6
|
-
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
7
6
|
class ConsoleOrganizationPage {
|
|
8
7
|
page;
|
|
9
8
|
usersTab;
|
|
@@ -60,7 +59,7 @@ class ConsoleOrganizationPage {
|
|
|
60
59
|
this.confirmButton = page.getByRole('button', { name: 'Confirm' });
|
|
61
60
|
this.settingsTab = page.getByRole('tab', { name: 'Settings' });
|
|
62
61
|
this.optInButton = page.getByRole('button', { name: 'Opt-in', exact: true });
|
|
63
|
-
this.optInCheckbox = page.getByLabel('I understand and agree to');
|
|
62
|
+
this.optInCheckbox = page.getByLabel('I understand and agree to the');
|
|
64
63
|
this.newContextPadButton = page.getByRole('switch').last();
|
|
65
64
|
this.newContextPadButtonText = page
|
|
66
65
|
.locator('[class= "cds--toggle__text"]')
|
|
@@ -247,7 +246,7 @@ class ConsoleOrganizationPage {
|
|
|
247
246
|
}
|
|
248
247
|
//Opt-in The Alpha Feature
|
|
249
248
|
const alphaFeatureOptInButton = alphaFeature.getByRole('button', {
|
|
250
|
-
name: 'Opt
|
|
249
|
+
name: 'Opt-in to enable',
|
|
251
250
|
});
|
|
252
251
|
if (await alphaFeatureOptInButton.isVisible({ timeout: 10000 })) {
|
|
253
252
|
await alphaFeatureOptInButton.click({ timeout: 90000 });
|
|
@@ -275,7 +274,31 @@ class ConsoleOrganizationPage {
|
|
|
275
274
|
}
|
|
276
275
|
async scrollToOptInCheckbox() {
|
|
277
276
|
await this.page
|
|
278
|
-
.
|
|
277
|
+
.getByText('Access and Use of the Camunda')
|
|
278
|
+
.scrollIntoViewIfNeeded();
|
|
279
|
+
await this.page
|
|
280
|
+
.getByText('Pre-release. The Customer')
|
|
281
|
+
.scrollIntoViewIfNeeded();
|
|
282
|
+
await this.page
|
|
283
|
+
.getByText('Confidential Information. The')
|
|
284
|
+
.scrollIntoViewIfNeeded();
|
|
285
|
+
await this.page
|
|
286
|
+
.getByText('THESE TERMS DO NOT ENTITLE')
|
|
287
|
+
.scrollIntoViewIfNeeded();
|
|
288
|
+
await this.page
|
|
289
|
+
.getByText('Rights and Obligations Upon')
|
|
290
|
+
.scrollIntoViewIfNeeded();
|
|
291
|
+
await this.page
|
|
292
|
+
.getByText('NOTWITHSTANDING ANYTHING TO')
|
|
293
|
+
.scrollIntoViewIfNeeded();
|
|
294
|
+
await this.page
|
|
295
|
+
.getByRole('heading', { name: 'General' })
|
|
296
|
+
.scrollIntoViewIfNeeded();
|
|
297
|
+
await this.page
|
|
298
|
+
.getByText('Liability. Camunda is liable')
|
|
299
|
+
.scrollIntoViewIfNeeded();
|
|
300
|
+
await this.page
|
|
301
|
+
.getByLabel('I understand and agree to the')
|
|
279
302
|
.scrollIntoViewIfNeeded();
|
|
280
303
|
}
|
|
281
304
|
async checkOptInCheckbox() {
|
|
@@ -300,13 +323,6 @@ class ConsoleOrganizationPage {
|
|
|
300
323
|
}
|
|
301
324
|
}
|
|
302
325
|
async optInToAlphaFeatures() {
|
|
303
|
-
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.rows.first(), {
|
|
304
|
-
visibilityTimeout: 60000,
|
|
305
|
-
totalTimeout: 140000,
|
|
306
|
-
postAction: async () => {
|
|
307
|
-
await this.page.reload();
|
|
308
|
-
},
|
|
309
|
-
});
|
|
310
326
|
try {
|
|
311
327
|
await (0, test_1.expect)(this.optInButton).toBeVisible({ timeout: 30000 });
|
|
312
328
|
await this.clickOptInButton();
|
|
@@ -33,7 +33,6 @@ declare class ClusterPage {
|
|
|
33
33
|
readonly cluster: (clusterName: string) => Locator;
|
|
34
34
|
readonly clusterHealthiness: (clusterName: string) => Locator;
|
|
35
35
|
readonly clusterLink: (clusterName: string) => Locator;
|
|
36
|
-
readonly dialog: Locator;
|
|
37
36
|
constructor(page: Page, testInfo?: TestInfo);
|
|
38
37
|
clickClusterBanner(): Promise<void>;
|
|
39
38
|
deleteCluster(name: string): Promise<void>;
|
|
@@ -39,18 +39,12 @@ class ClusterPage {
|
|
|
39
39
|
cluster;
|
|
40
40
|
clusterHealthiness;
|
|
41
41
|
clusterLink;
|
|
42
|
-
dialog;
|
|
43
42
|
constructor(page, testInfo) {
|
|
44
43
|
this.page = page;
|
|
45
44
|
this.testInfo = testInfo;
|
|
46
|
-
this.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
name: 'Create new cluster',
|
|
50
|
-
})
|
|
51
|
-
.or(this.page.getByRole('button', {
|
|
52
|
-
name: 'Create cluster',
|
|
53
|
-
}));
|
|
45
|
+
this.createNewClusterButton = page.getByRole('button', {
|
|
46
|
+
name: 'Create new Cluster',
|
|
47
|
+
});
|
|
54
48
|
this.clusterNameInput = page.getByPlaceholder('Enter a name for the cluster');
|
|
55
49
|
this.createClusterButton = page.getByRole('button', {
|
|
56
50
|
name: 'Create cluster',
|
|
@@ -135,8 +129,6 @@ class ClusterPage {
|
|
|
135
129
|
await (0, test_1.expect)(deleteButton).toBeVisible({ timeout: 60000 });
|
|
136
130
|
await deleteButton.click({ force: true, timeout: 60000 });
|
|
137
131
|
}
|
|
138
|
-
await (0, test_1.expect)(this.dialog).toBeVisible({ timeout: 60000 });
|
|
139
|
-
await (0, test_1.expect)(this.confirmDeleteInput).toBeVisible({ timeout: 60000 });
|
|
140
132
|
await this.confirmDeleteInput.click({ force: true, timeout: 60000 });
|
|
141
133
|
await this.confirmDeleteInput.fill('DELETE', { timeout: 60000 });
|
|
142
134
|
const dangerDeleteButtons = await this.dangerDeleteButton.all();
|
|
@@ -145,7 +137,6 @@ class ClusterPage {
|
|
|
145
137
|
await (0, test_1.expect)(this.page.getByText('Deleting...')).not.toBeVisible({
|
|
146
138
|
timeout: 60000,
|
|
147
139
|
});
|
|
148
|
-
await (0, test_1.expect)(this.dialog).not.toBeVisible({ timeout: 60000 });
|
|
149
140
|
// Refresh the list of delete buttons
|
|
150
141
|
deleteButtons = this.cluster(name).getByRole('button', {
|
|
151
142
|
name: 'Delete',
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ConsoleOrganizationPage = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const sleep_1 = require("../../utils/sleep");
|
|
6
|
-
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
7
6
|
class ConsoleOrganizationPage {
|
|
8
7
|
page;
|
|
9
8
|
usersTab;
|
|
@@ -60,7 +59,7 @@ class ConsoleOrganizationPage {
|
|
|
60
59
|
this.confirmButton = page.getByRole('button', { name: 'Confirm' });
|
|
61
60
|
this.settingsTab = page.getByRole('tab', { name: 'Settings' });
|
|
62
61
|
this.optInButton = page.getByRole('button', { name: 'Opt-in', exact: true });
|
|
63
|
-
this.optInCheckbox = page.getByLabel('I understand and agree to');
|
|
62
|
+
this.optInCheckbox = page.getByLabel('I understand and agree to the');
|
|
64
63
|
this.newContextPadButton = page.getByRole('switch').last();
|
|
65
64
|
this.newContextPadButtonText = page
|
|
66
65
|
.locator('[class= "cds--toggle__text"]')
|
|
@@ -247,7 +246,7 @@ class ConsoleOrganizationPage {
|
|
|
247
246
|
}
|
|
248
247
|
//Opt-in The Alpha Feature
|
|
249
248
|
const alphaFeatureOptInButton = alphaFeature.getByRole('button', {
|
|
250
|
-
name: 'Opt
|
|
249
|
+
name: 'Opt-in to enable',
|
|
251
250
|
});
|
|
252
251
|
if (await alphaFeatureOptInButton.isVisible({ timeout: 10000 })) {
|
|
253
252
|
await alphaFeatureOptInButton.click({ timeout: 90000 });
|
|
@@ -275,7 +274,31 @@ class ConsoleOrganizationPage {
|
|
|
275
274
|
}
|
|
276
275
|
async scrollToOptInCheckbox() {
|
|
277
276
|
await this.page
|
|
278
|
-
.
|
|
277
|
+
.getByText('Access and Use of the Camunda')
|
|
278
|
+
.scrollIntoViewIfNeeded();
|
|
279
|
+
await this.page
|
|
280
|
+
.getByText('Pre-release. The Customer')
|
|
281
|
+
.scrollIntoViewIfNeeded();
|
|
282
|
+
await this.page
|
|
283
|
+
.getByText('Confidential Information. The')
|
|
284
|
+
.scrollIntoViewIfNeeded();
|
|
285
|
+
await this.page
|
|
286
|
+
.getByText('THESE TERMS DO NOT ENTITLE')
|
|
287
|
+
.scrollIntoViewIfNeeded();
|
|
288
|
+
await this.page
|
|
289
|
+
.getByText('Rights and Obligations Upon')
|
|
290
|
+
.scrollIntoViewIfNeeded();
|
|
291
|
+
await this.page
|
|
292
|
+
.getByText('NOTWITHSTANDING ANYTHING TO')
|
|
293
|
+
.scrollIntoViewIfNeeded();
|
|
294
|
+
await this.page
|
|
295
|
+
.getByRole('heading', { name: 'General' })
|
|
296
|
+
.scrollIntoViewIfNeeded();
|
|
297
|
+
await this.page
|
|
298
|
+
.getByText('Liability. Camunda is liable')
|
|
299
|
+
.scrollIntoViewIfNeeded();
|
|
300
|
+
await this.page
|
|
301
|
+
.getByLabel('I understand and agree to the')
|
|
279
302
|
.scrollIntoViewIfNeeded();
|
|
280
303
|
}
|
|
281
304
|
async checkOptInCheckbox() {
|
|
@@ -300,13 +323,6 @@ class ConsoleOrganizationPage {
|
|
|
300
323
|
}
|
|
301
324
|
}
|
|
302
325
|
async optInToAlphaFeatures() {
|
|
303
|
-
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.rows.first(), {
|
|
304
|
-
visibilityTimeout: 60000,
|
|
305
|
-
totalTimeout: 140000,
|
|
306
|
-
postAction: async () => {
|
|
307
|
-
await this.page.reload();
|
|
308
|
-
},
|
|
309
|
-
});
|
|
310
326
|
try {
|
|
311
327
|
await (0, test_1.expect)(this.optInButton).toBeVisible({ timeout: 30000 });
|
|
312
328
|
await this.clickOptInButton();
|