@camunda/e2e-test-suite 0.0.849 → 0.0.851
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.
|
@@ -42,6 +42,7 @@ declare class ClusterDetailsPage {
|
|
|
42
42
|
readonly clientRow: (name: string) => Locator;
|
|
43
43
|
readonly clientRowDeleteButton: (name: string) => Locator;
|
|
44
44
|
readonly mcpSupportToggle: Locator;
|
|
45
|
+
readonly mcpRestartConfirmButton: Locator;
|
|
45
46
|
readonly mcpTab: Locator;
|
|
46
47
|
readonly mcpTextarea: Locator;
|
|
47
48
|
readonly reviewUpdateButton: Locator;
|
|
@@ -47,6 +47,7 @@ class ClusterDetailsPage {
|
|
|
47
47
|
clientRow;
|
|
48
48
|
clientRowDeleteButton;
|
|
49
49
|
mcpSupportToggle;
|
|
50
|
+
mcpRestartConfirmButton;
|
|
50
51
|
mcpTab;
|
|
51
52
|
mcpTextarea;
|
|
52
53
|
reviewUpdateButton;
|
|
@@ -150,6 +151,9 @@ class ClusterDetailsPage {
|
|
|
150
151
|
this.mcpSupportToggle = page.getByRole('switch', {
|
|
151
152
|
name: /Enable MCP Support/i,
|
|
152
153
|
});
|
|
154
|
+
this.mcpRestartConfirmButton = this.dialog.getByRole('button', {
|
|
155
|
+
name: 'Continue',
|
|
156
|
+
});
|
|
153
157
|
this.mcpTab = page.getByRole('tab', { name: 'MCP' });
|
|
154
158
|
this.mcpTextarea = page.getByLabel('MCP', { exact: true }).locator('pre');
|
|
155
159
|
this.reviewUpdateButton = page.getByRole('button', { name: 'Review Update' });
|
|
@@ -652,8 +656,17 @@ class ClusterDetailsPage {
|
|
|
652
656
|
// Only click if not already enabled to avoid disabling on reruns
|
|
653
657
|
if (!(await this.mcpSupportToggle.isChecked())) {
|
|
654
658
|
await this.mcpSupportToggle.click({ force: true });
|
|
659
|
+
// Enabling MCP Support restarts the cluster, so the product now shows a
|
|
660
|
+
// "Restart required" confirmation dialog. The toggle stays disabled until
|
|
661
|
+
// the restart is confirmed via its "Continue" button.
|
|
662
|
+
if (await this.dialog.isVisible({ timeout: 15000 })) {
|
|
663
|
+
await (0, test_1.expect)(this.mcpRestartConfirmButton).toBeVisible({
|
|
664
|
+
timeout: 30000,
|
|
665
|
+
});
|
|
666
|
+
await this.mcpRestartConfirmButton.click({ timeout: 30000 });
|
|
667
|
+
}
|
|
655
668
|
}
|
|
656
|
-
await (0, test_1.expect)(this.mcpSupportToggle).toBeChecked();
|
|
669
|
+
await (0, test_1.expect)(this.mcpSupportToggle).toBeChecked({ timeout: 60000 });
|
|
657
670
|
}
|
|
658
671
|
async clickMCPTab() {
|
|
659
672
|
await (0, test_1.expect)(this.mcpTab).toBeVisible({ timeout: 60000 });
|
|
@@ -23,6 +23,7 @@ declare class OCIdentityRolesPage {
|
|
|
23
23
|
readonly assignUserButton: Locator;
|
|
24
24
|
readonly usernameTextBox: Locator;
|
|
25
25
|
readonly assignUserSubButton: Locator;
|
|
26
|
+
readonly assignUserModal: Locator;
|
|
26
27
|
readonly adminRole: Locator;
|
|
27
28
|
readonly clientsTab: Locator;
|
|
28
29
|
readonly assignClientsButton: Locator;
|
|
@@ -29,6 +29,7 @@ class OCIdentityRolesPage {
|
|
|
29
29
|
assignUserButton;
|
|
30
30
|
usernameTextBox;
|
|
31
31
|
assignUserSubButton;
|
|
32
|
+
assignUserModal;
|
|
32
33
|
adminRole;
|
|
33
34
|
clientsTab;
|
|
34
35
|
assignClientsButton;
|
|
@@ -86,6 +87,7 @@ class OCIdentityRolesPage {
|
|
|
86
87
|
this.assignUserSubButton = page
|
|
87
88
|
.getByLabel('Assign user')
|
|
88
89
|
.getByRole('button', { name: 'Assign user' });
|
|
90
|
+
this.assignUserModal = page.getByRole('dialog', { name: 'Assign user' });
|
|
89
91
|
this.adminRole = page.getByRole('cell', { name: 'admin', exact: true });
|
|
90
92
|
this.clientsTab = page.getByRole('tab', { name: 'Clients' });
|
|
91
93
|
this.assignClientsButton = page.getByRole('button', {
|
|
@@ -176,6 +178,7 @@ class OCIdentityRolesPage {
|
|
|
176
178
|
}
|
|
177
179
|
async clickAssignUserSubButton() {
|
|
178
180
|
await this.assignUserSubButton.click();
|
|
181
|
+
await (0, test_1.expect)(this.assignUserModal).not.toBeVisible({ timeout: 30000 });
|
|
179
182
|
}
|
|
180
183
|
async clickAdminRole() {
|
|
181
184
|
// The Roles list is occasionally empty on first render after the Roles
|
|
@@ -16,8 +16,7 @@ SM_8_10_1.test.describe('HTO User Flow Tests', () => {
|
|
|
16
16
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
17
17
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
18
18
|
});
|
|
19
|
-
|
|
20
|
-
SM_8_10_1.test.skip('Job Worker User Task Most Common Flow @tasklistV1', async ({ modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, taskDetailsPage, taskPanelPage, operateProcessInstancePage, page, }) => {
|
|
19
|
+
(0, SM_8_10_1.test)('Job Worker User Task Most Common Flow @tasklistV1', async ({ modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, taskDetailsPage, taskPanelPage, operateProcessInstancePage, page, }) => {
|
|
21
20
|
SM_8_10_1.test.slow();
|
|
22
21
|
const processName = 'User_Task_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
|
|
23
22
|
await SM_8_10_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
|
|
@@ -43,8 +42,7 @@ SM_8_10_1.test.describe('HTO User Flow Tests', () => {
|
|
|
43
42
|
});
|
|
44
43
|
await navigationPage.goToOperate();
|
|
45
44
|
await operateHomePage.clickProcessesTab();
|
|
46
|
-
await operateProcessesPage.
|
|
47
|
-
await operateProcessesPage.clickProcessInstanceLink(processName);
|
|
45
|
+
await operateProcessesPage.clickProcessInstanceLink(processName, 'completed');
|
|
48
46
|
await operateProcessInstancePage.completedIconAssertion();
|
|
49
47
|
});
|
|
50
48
|
});
|