@camunda/e2e-test-suite 0.0.1329 → 0.0.1331
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/.github/c8_versions.json +1 -0
- package/README.md +1 -0
- package/dist/fixtures/8.11.d.ts +83 -0
- package/dist/fixtures/8.11.js +203 -0
- package/dist/pages/8.11/AppsPage.d.ts +60 -0
- package/dist/pages/8.11/AppsPage.js +1060 -0
- package/dist/pages/8.11/AuditLogPage.d.ts +14 -0
- package/dist/pages/8.11/AuditLogPage.js +69 -0
- package/dist/pages/8.11/Authorization.d.ts +44 -0
- package/dist/pages/8.11/Authorization.js +409 -0
- package/dist/pages/8.11/ClientCredentialsDetailsPage.d.ts +12 -0
- package/dist/pages/8.11/ClientCredentialsDetailsPage.js +36 -0
- package/dist/pages/8.11/ClusterDetailsPage.d.ts +107 -0
- package/dist/pages/8.11/ClusterDetailsPage.js +892 -0
- package/dist/pages/8.11/ClusterPage.d.ts +96 -0
- package/dist/pages/8.11/ClusterPage.js +657 -0
- package/dist/pages/8.11/ClusterSecretsPage.d.ts +48 -0
- package/dist/pages/8.11/ClusterSecretsPage.js +406 -0
- package/dist/pages/8.11/ConnectorMarketplacePage.d.ts +29 -0
- package/dist/pages/8.11/ConnectorMarketplacePage.js +156 -0
- package/dist/pages/8.11/ConnectorSettingsPage.d.ts +39 -0
- package/dist/pages/8.11/ConnectorSettingsPage.js +150 -0
- package/dist/pages/8.11/ConnectorTemplatePage.d.ts +11 -0
- package/dist/pages/8.11/ConnectorTemplatePage.js +34 -0
- package/dist/pages/8.11/ConsoleOrganizationPage.d.ts +77 -0
- package/dist/pages/8.11/ConsoleOrganizationPage.js +457 -0
- package/dist/pages/8.11/DataFiltersPage.d.ts +30 -0
- package/dist/pages/8.11/DataFiltersPage.js +135 -0
- package/dist/pages/8.11/FormJsPage.d.ts +38 -0
- package/dist/pages/8.11/FormJsPage.js +283 -0
- package/dist/pages/8.11/HomePage.d.ts +29 -0
- package/dist/pages/8.11/HomePage.js +176 -0
- package/dist/pages/8.11/IdpCreatePage.d.ts +118 -0
- package/dist/pages/8.11/IdpCreatePage.js +514 -0
- package/dist/pages/8.11/LoginPage.d.ts +45 -0
- package/dist/pages/8.11/LoginPage.js +214 -0
- package/dist/pages/8.11/ModelerCreatePage.d.ts +256 -0
- package/dist/pages/8.11/ModelerCreatePage.js +2272 -0
- package/dist/pages/8.11/ModelerHomePage.d.ts +100 -0
- package/dist/pages/8.11/ModelerHomePage.js +1168 -0
- package/dist/pages/8.11/ModelerUserInvitePage.d.ts +29 -0
- package/dist/pages/8.11/ModelerUserInvitePage.js +136 -0
- package/dist/pages/8.11/OCIdentityAuthorizationsPage.d.ts +11 -0
- package/dist/pages/8.11/OCIdentityAuthorizationsPage.js +25 -0
- package/dist/pages/8.11/OCIdentityClusterVariablesPage.d.ts +21 -0
- package/dist/pages/8.11/OCIdentityClusterVariablesPage.js +128 -0
- package/dist/pages/8.11/OCIdentityGroupsPage.d.ts +38 -0
- package/dist/pages/8.11/OCIdentityGroupsPage.js +176 -0
- package/dist/pages/8.11/OCIdentityHomePage.d.ts +21 -0
- package/dist/pages/8.11/OCIdentityHomePage.js +111 -0
- package/dist/pages/8.11/OCIdentityMappingRulesPage.d.ts +23 -0
- package/dist/pages/8.11/OCIdentityMappingRulesPage.js +124 -0
- package/dist/pages/8.11/OCIdentityRolesPage.d.ts +43 -0
- package/dist/pages/8.11/OCIdentityRolesPage.js +236 -0
- package/dist/pages/8.11/OperateHomePage.d.ts +28 -0
- package/dist/pages/8.11/OperateHomePage.js +150 -0
- package/dist/pages/8.11/OperateProcessInstancePage.d.ts +43 -0
- package/dist/pages/8.11/OperateProcessInstancePage.js +893 -0
- package/dist/pages/8.11/OperateProcessesPage.d.ts +28 -0
- package/dist/pages/8.11/OperateProcessesPage.js +153 -0
- package/dist/pages/8.11/OptimizeCollectionsPage.d.ts +30 -0
- package/dist/pages/8.11/OptimizeCollectionsPage.js +175 -0
- package/dist/pages/8.11/OptimizeDashboardPage.d.ts +11 -0
- package/dist/pages/8.11/OptimizeDashboardPage.js +71 -0
- package/dist/pages/8.11/OptimizeHomePage.d.ts +17 -0
- package/dist/pages/8.11/OptimizeHomePage.js +171 -0
- package/dist/pages/8.11/OptimizeReportPage.d.ts +49 -0
- package/dist/pages/8.11/OptimizeReportPage.js +184 -0
- package/dist/pages/8.11/OptimizeSharePage.d.ts +16 -0
- package/dist/pages/8.11/OptimizeSharePage.js +100 -0
- package/dist/pages/8.11/PlayPage.d.ts +17 -0
- package/dist/pages/8.11/PlayPage.js +157 -0
- package/dist/pages/8.11/ProcessApplicationPage.d.ts +32 -0
- package/dist/pages/8.11/ProcessApplicationPage.js +496 -0
- package/dist/pages/8.11/SettingsPage.d.ts +10 -0
- package/dist/pages/8.11/SettingsPage.js +53 -0
- package/dist/pages/8.11/SignUpPage.d.ts +42 -0
- package/dist/pages/8.11/SignUpPage.js +134 -0
- package/dist/pages/8.11/TaskDetailsPage.d.ts +77 -0
- package/dist/pages/8.11/TaskDetailsPage.js +324 -0
- package/dist/pages/8.11/TaskPanelPage.d.ts +26 -0
- package/dist/pages/8.11/TaskPanelPage.js +245 -0
- package/dist/pages/8.11/TaskProcessesPage.d.ts +18 -0
- package/dist/pages/8.11/TaskProcessesPage.js +134 -0
- package/dist/pages/8.11/UtilitiesPage.d.ts +56 -0
- package/dist/pages/8.11/UtilitiesPage.js +1024 -0
- package/dist/pages/8.11/WorkspaceMembersPage.d.ts +21 -0
- package/dist/pages/8.11/WorkspaceMembersPage.js +268 -0
- package/dist/pages/SM-8.10/FormJsPage.js +8 -26
- package/dist/pages/SM-8.10/ModelerCreatePage.js +4 -3
- package/dist/tests/8.11/access-user-role-management.spec.d.ts +1 -0
- package/dist/tests/8.11/access-user-role-management.spec.js +487 -0
- package/dist/tests/8.11/agentic-ai-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/agentic-ai-user-flows.spec.js +209 -0
- package/dist/tests/8.11/aws-cluster-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/aws-cluster-user-flows.spec.js +188 -0
- package/dist/tests/8.11/aws-connectors-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/aws-connectors-user-flows.spec.js +167 -0
- package/dist/tests/8.11/cluster-variables.spec.d.ts +1 -0
- package/dist/tests/8.11/cluster-variables.spec.js +202 -0
- package/dist/tests/8.11/connectors-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/connectors-user-flows.spec.js +537 -0
- package/dist/tests/8.11/console-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/console-user-flows.spec.js +199 -0
- package/dist/tests/8.11/hto-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/hto-user-flows.spec.js +358 -0
- package/dist/tests/8.11/idp-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/idp-user-flows.spec.js +316 -0
- package/dist/tests/8.11/login-negative-tests.spec.d.ts +1 -0
- package/dist/tests/8.11/login-negative-tests.spec.js +29 -0
- package/dist/tests/8.11/login.spec.d.ts +1 -0
- package/dist/tests/8.11/login.spec.js +29 -0
- package/dist/tests/8.11/navigation.spec.d.ts +1 -0
- package/dist/tests/8.11/navigation.spec.js +59 -0
- package/dist/tests/8.11/operate-access-flow.spec.d.ts +1 -0
- package/dist/tests/8.11/operate-access-flow.spec.js +136 -0
- package/dist/tests/8.11/optimize-agentic-control-panel-api.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-agentic-control-panel-api.spec.js +96 -0
- package/dist/tests/8.11/optimize-agentic-control-panel-ui.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-agentic-control-panel-ui.spec.js +69 -0
- package/dist/tests/8.11/optimize-api-tests.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-api-tests.spec.js +1194 -0
- package/dist/tests/8.11/optimize-collections-api.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-collections-api.spec.js +184 -0
- package/dist/tests/8.11/optimize-collections-ui.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-collections-ui.spec.js +46 -0
- package/dist/tests/8.11/optimize-data-filters-api.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-data-filters-api.spec.js +195 -0
- package/dist/tests/8.11/optimize-data-filters-ui.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-data-filters-ui.spec.js +306 -0
- package/dist/tests/8.11/optimize-exporter-filters-importer-e2e.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-exporter-filters-importer-e2e.spec.js +316 -0
- package/dist/tests/8.11/optimize-sharing-alerts-export-api.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-sharing-alerts-export-api.spec.js +337 -0
- package/dist/tests/8.11/optimize-sharing-alerts-export-ui.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-sharing-alerts-export-ui.spec.js +198 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-audit-log.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-audit-log.spec.js +146 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-call-tools.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-call-tools.spec.js +208 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-e2e-flow.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-e2e-flow.spec.js +151 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-list-tools.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-list-tools.spec.js +242 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-cluster-tools.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-cluster-tools.spec.js +75 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-incident-tools.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-incident-tools.spec.js +123 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-user-task-tools.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-user-task-tools.spec.js +151 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-variable-tools.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-variable-tools.spec.js +123 -0
- package/dist/tests/8.11/play.spec.d.ts +1 -0
- package/dist/tests/8.11/play.spec.js +93 -0
- package/dist/tests/8.11/rba-enabled-v2-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/rba-enabled-v2-user-flows.spec.js +495 -0
- package/dist/tests/8.11/saas-migration-path-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/saas-migration-path-user-flows.spec.js +133 -0
- package/dist/tests/8.11/smoke-tests.spec.d.ts +1 -0
- package/dist/tests/8.11/smoke-tests.spec.js +339 -0
- package/dist/tests/8.11/test-setup.spec.d.ts +1 -0
- package/dist/tests/8.11/test-setup.spec.js +256 -0
- package/dist/tests/8.11/web-modeler-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/web-modeler-user-flows.spec.js +523 -0
- package/dist/utils/clusterVersions.d.ts +2 -1
- package/dist/utils/clusterVersions.js +1 -0
- package/dist/utils/consoleApiHelpers.js +1 -0
- package/package.json +1 -1
- package/playwright.config.ts +10 -0
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const test_1 = require("@playwright/test");
|
|
4
|
+
const _8_11_1 = require("../../fixtures/8.11");
|
|
5
|
+
const _setup_1 = require("../../test-setup.js");
|
|
6
|
+
const UtilitiesPage_1 = require("../../pages/8.11/UtilitiesPage");
|
|
7
|
+
const sleep_1 = require("../../utils/sleep");
|
|
8
|
+
const roleAuthorizations_1 = require("../../utils/roleAuthorizations");
|
|
9
|
+
const expectTextWithRetry_1 = require("../../utils/assertionHelpers/expectTextWithRetry");
|
|
10
|
+
const expectTextWithPagination_1 = require("../../utils/assertionHelpers/expectTextWithPagination");
|
|
11
|
+
const users_1 = require("../../utils/users");
|
|
12
|
+
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
13
|
+
const consoleApiHelpers_1 = require("../../utils/consoleApiHelpers");
|
|
14
|
+
const mainUser = (0, users_1.getTestUser)('twentySixthUser');
|
|
15
|
+
_8_11_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () => {
|
|
16
|
+
const clusterNames = {
|
|
17
|
+
'RBA On User Flow - No User Permission': 'First RBA V2 Cluster',
|
|
18
|
+
'RBA On User Flow - Permission for One Process': 'Second RBA V2 Cluster',
|
|
19
|
+
'RBA On User Flow - Permission for All Processes with Full Permissions': 'Third RBA V2 Cluster',
|
|
20
|
+
'RBA On User Flow - Permission for Selected Processes Only': 'Fourth RBA V2 Cluster',
|
|
21
|
+
};
|
|
22
|
+
_8_11_1.test.beforeEach(async ({ page, homePage, clusterPage, loginPage, clusterDetailsPage, appsPage }, testInfo) => {
|
|
23
|
+
// Claimed here, not in each body: creating the cluster and waiting for
|
|
24
|
+
// it to come back Healthy after the authorizations toggle can outlast
|
|
25
|
+
// the default per-test timeout before the body starts.
|
|
26
|
+
_8_11_1.test.slow();
|
|
27
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, mainUser, (testInfo.workerIndex + 1) * 1000);
|
|
28
|
+
await (0, test_1.expect)(homePage.clusterTab).toBeVisible({ timeout: 120000 });
|
|
29
|
+
await homePage.clickClusters();
|
|
30
|
+
const clusterName = clusterNames[testInfo.title];
|
|
31
|
+
(0, test_1.expect)(clusterName, `No cluster mapping for test title: "${testInfo.title}")`).toBeTruthy();
|
|
32
|
+
await clusterPage.createClusterIfNotExists(clusterName);
|
|
33
|
+
await (0, UtilitiesPage_1.disableRBA)(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage);
|
|
34
|
+
// The flows below hand off to test users with no elevated or DevOps org
|
|
35
|
+
// role, and Hub only lets those roles assign an environment to a
|
|
36
|
+
// workspace (camunda-hub#28955). Without this, the test user's deploy
|
|
37
|
+
// dialog never offers this cluster and every runProcessInstance retry
|
|
38
|
+
// fails until the test times out. Assign it now, while the elevated
|
|
39
|
+
// main user's session is active. test-setup creates the test users'
|
|
40
|
+
// workspaces up front so that they exist at this point.
|
|
41
|
+
await (0, consoleApiHelpers_1.linkClusterToWorkspacesNamedViaApi)(page, clusterName);
|
|
42
|
+
});
|
|
43
|
+
_8_11_1.test.afterEach(async ({ page }, testInfo) => {
|
|
44
|
+
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
45
|
+
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
46
|
+
});
|
|
47
|
+
(0, _8_11_1.test)('RBA On User Flow - No User Permission', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, taskPanelPage, taskProcessesPage, operateHomePage, ocIdentityHomePage, ocIdentityAuthorizationsPage, ocIdentityRolesPage, loginPage, settingsPage, }, testInfo) => {
|
|
48
|
+
const clusterName = clusterNames[testInfo.title];
|
|
49
|
+
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
50
|
+
const processName = 'RBA_NO_PERM' + randomString;
|
|
51
|
+
const process1 = processName + '1';
|
|
52
|
+
const process2 = processName + '2';
|
|
53
|
+
const role = `rbaNoPermission${randomString}`;
|
|
54
|
+
const testUser = (0, users_1.requireTestUser)('C8_USERNAME_TEST_4');
|
|
55
|
+
await _8_11_1.test.step('Navigate to OC Identity and Assign User To A Role', async () => {
|
|
56
|
+
await appsPage.clickCamundaApps();
|
|
57
|
+
await appsPage.clickAdmin(clusterName);
|
|
58
|
+
await ocIdentityHomePage.clickRolesTab();
|
|
59
|
+
await ocIdentityRolesPage.assignUserToRole(role, testUser.username);
|
|
60
|
+
});
|
|
61
|
+
await _8_11_1.test.step('Create Resource Authorization', async () => {
|
|
62
|
+
await ocIdentityHomePage.clickAuthorizationsTab();
|
|
63
|
+
await ocIdentityAuthorizationsPage.clickResourceTab();
|
|
64
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.resourceCreateAuthorization)(role));
|
|
65
|
+
});
|
|
66
|
+
await _8_11_1.test.step('Create Component Authorization', async () => {
|
|
67
|
+
await ocIdentityAuthorizationsPage.clickComponentTab();
|
|
68
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.componentAccessAuthorization)(role));
|
|
69
|
+
});
|
|
70
|
+
await _8_11_1.test.step('Create Process Definition Authorizations For Both Processes', async () => {
|
|
71
|
+
await ocIdentityAuthorizationsPage.clickProcessDefinitionTab();
|
|
72
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.processInstanceCreateAuthorization)(role, process1));
|
|
73
|
+
await ocIdentityAuthorizationsPage.clickProcessDefinitionTab();
|
|
74
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.processInstanceCreateAuthorization)(role, process2));
|
|
75
|
+
});
|
|
76
|
+
await _8_11_1.test.step('Create Component Authorization', async () => {
|
|
77
|
+
await ocIdentityAuthorizationsPage.clickAuthorizationTab();
|
|
78
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.authorizationAllPermissions)(role));
|
|
79
|
+
});
|
|
80
|
+
await _8_11_1.test.step('Log out and log in as Test User', async () => {
|
|
81
|
+
await appsPage.clickCamundaApps();
|
|
82
|
+
await appsPage.clickConsoleLink();
|
|
83
|
+
await settingsPage.clickOpenSettingsButton();
|
|
84
|
+
await settingsPage.clickLogoutButton();
|
|
85
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 1000);
|
|
86
|
+
});
|
|
87
|
+
await _8_11_1.test.step('Navigate to Web Modeler', async () => {
|
|
88
|
+
await appsPage.clickCamundaApps();
|
|
89
|
+
await appsPage.clickModeler();
|
|
90
|
+
await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
|
|
91
|
+
timeout: 30000,
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
await _8_11_1.test.step('Navigate to Cross Component Test Project', async () => {
|
|
95
|
+
await homePage.clickSkipCustomization();
|
|
96
|
+
// createCrossComponentProjectFolder() hunts for a project tile that
|
|
97
|
+
// Modeler's own login page will never render. A dropped session (a 5xx
|
|
98
|
+
// from `/api/internal/login`) surfaces here as "element(s) not found"
|
|
99
|
+
// rather than as the sign-out it actually was (run 35562939552) --
|
|
100
|
+
// withSessionRecovery detects that case and signs back in as the test
|
|
101
|
+
// user this test just switched to, before retrying once.
|
|
102
|
+
await (0, UtilitiesPage_1.withSessionRecovery)(page, loginPage, appsPage, modelerHomePage.modelerPageBanner, testUser, (testInfo.workerIndex + 1) * 1000, () => modelerHomePage.createCrossComponentProjectFolder());
|
|
103
|
+
});
|
|
104
|
+
await _8_11_1.test.step('Create Two BPMN Diagrams with User Task and Start Process Instance', async () => {
|
|
105
|
+
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage, {
|
|
106
|
+
processName: processName,
|
|
107
|
+
uploadFromFile: 'Camunda_Simple_User_Task_1',
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
await _8_11_1.test.step('Navigate to Console and Login as Admin User', async () => {
|
|
111
|
+
//only admin users enable and disable RBA
|
|
112
|
+
await appsPage.clickCamundaApps();
|
|
113
|
+
await appsPage.clickConsoleLink();
|
|
114
|
+
await settingsPage.clickOpenSettingsButton();
|
|
115
|
+
await settingsPage.clickLogoutButton();
|
|
116
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, mainUser, 1000);
|
|
117
|
+
});
|
|
118
|
+
await _8_11_1.test.step('Admin Enables RBA', async () => {
|
|
119
|
+
await (0, UtilitiesPage_1.enableAuthorizations)(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage);
|
|
120
|
+
await (0, sleep_1.sleep)(20000);
|
|
121
|
+
});
|
|
122
|
+
await _8_11_1.test.step('Login as Test User', async () => {
|
|
123
|
+
await settingsPage.clickOpenSettingsButton();
|
|
124
|
+
await settingsPage.clickLogoutButton();
|
|
125
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 1000);
|
|
126
|
+
});
|
|
127
|
+
await _8_11_1.test.step('Navigate to Tasklist and Make Sure that the Two Deployed Processes Are Not Accessible', async () => {
|
|
128
|
+
await appsPage.clickCamundaApps();
|
|
129
|
+
await appsPage.clickTasklist(clusterName);
|
|
130
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(page, taskPanelPage.taskListPageBanner, {
|
|
131
|
+
visibilityTimeout: 20000,
|
|
132
|
+
postAction: async () => {
|
|
133
|
+
await page.reload();
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
await taskPanelPage.clickProcessesTab();
|
|
137
|
+
await taskProcessesPage.clickpopupContinueButton();
|
|
138
|
+
await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process1, { shouldBeVisible: false });
|
|
139
|
+
await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process2, { shouldBeVisible: false });
|
|
140
|
+
});
|
|
141
|
+
await _8_11_1.test.step('Navigate to Operate and Make Sure that the Two Deployed Processes Are Not Accessible', async () => {
|
|
142
|
+
await appsPage.clickCamundaApps();
|
|
143
|
+
await appsPage.clickOperate(clusterName);
|
|
144
|
+
await (0, test_1.expect)(operateHomePage.operateBanner).toBeVisible({
|
|
145
|
+
timeout: 30000,
|
|
146
|
+
});
|
|
147
|
+
await operateHomePage.clickProcessesTab();
|
|
148
|
+
await (0, expectTextWithRetry_1.expectTextWithRetry)(page, process1, { shouldBeVisible: false });
|
|
149
|
+
await (0, expectTextWithRetry_1.expectTextWithRetry)(page, process2, { shouldBeVisible: false });
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
(0, _8_11_1.test)('RBA On User Flow - Permission for One Process', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, taskPanelPage, taskProcessesPage, operateHomePage, loginPage, ocIdentityHomePage, ocIdentityAuthorizationsPage, ocIdentityRolesPage, settingsPage, }, testInfo) => {
|
|
153
|
+
const clusterName = clusterNames[testInfo.title];
|
|
154
|
+
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
155
|
+
const processName = 'RBA_ONE_PERM' + randomString;
|
|
156
|
+
const process1 = processName + '1';
|
|
157
|
+
const process2 = processName + '2';
|
|
158
|
+
const role1 = `rbaOnePerm${randomString}1`;
|
|
159
|
+
const role2 = `rbaOnePerm${randomString}2`;
|
|
160
|
+
const testUser = (0, users_1.requireTestUser)('C8_USERNAME_TEST_6');
|
|
161
|
+
await _8_11_1.test.step('Navigate to OC Identity and Assign User To Two Roles', async () => {
|
|
162
|
+
await appsPage.clickCamundaApps();
|
|
163
|
+
await appsPage.clickAdmin(clusterName);
|
|
164
|
+
await ocIdentityHomePage.clickRolesTab();
|
|
165
|
+
await ocIdentityRolesPage.assignUserToRole(role1, testUser.username);
|
|
166
|
+
await ocIdentityHomePage.clickRolesTab();
|
|
167
|
+
await ocIdentityRolesPage.assignUserToRole(role2, testUser.username);
|
|
168
|
+
});
|
|
169
|
+
await _8_11_1.test.step('Create Resource Authorization', async () => {
|
|
170
|
+
await ocIdentityHomePage.clickAuthorizationsTab();
|
|
171
|
+
await ocIdentityAuthorizationsPage.clickResourceTab();
|
|
172
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.resourceCreateAuthorization)(role1));
|
|
173
|
+
});
|
|
174
|
+
await _8_11_1.test.step('Create Component Authorization For Both Roles', async () => {
|
|
175
|
+
await ocIdentityAuthorizationsPage.clickComponentTab();
|
|
176
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.componentAccessAuthorization)(role1));
|
|
177
|
+
await ocIdentityAuthorizationsPage.clickComponentTab();
|
|
178
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.componentAccessAuthorization)(role2));
|
|
179
|
+
});
|
|
180
|
+
await _8_11_1.test.step('Grant Process Definition Authorization for First Process', async () => {
|
|
181
|
+
await ocIdentityAuthorizationsPage.clickProcessDefinitionTab();
|
|
182
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.processInstanceAllAuthorization)(role1, process1));
|
|
183
|
+
});
|
|
184
|
+
await _8_11_1.test.step('Grant Only Create Process Definition Authorization for Second Process', async () => {
|
|
185
|
+
await ocIdentityAuthorizationsPage.clickProcessDefinitionTab();
|
|
186
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.processInstanceCreateAuthorization)(role1, process2));
|
|
187
|
+
});
|
|
188
|
+
await _8_11_1.test.step('Grant Role Authorization To Delete Role', async () => {
|
|
189
|
+
await ocIdentityAuthorizationsPage.clickRoleTab();
|
|
190
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.roleAllAuthorization)(role1));
|
|
191
|
+
});
|
|
192
|
+
await _8_11_1.test.step('Clear cookies and reset session', async () => {
|
|
193
|
+
await appsPage.clickCamundaApps();
|
|
194
|
+
await appsPage.clickConsoleLink();
|
|
195
|
+
await settingsPage.clickOpenSettingsButton();
|
|
196
|
+
await settingsPage.clickLogoutButton();
|
|
197
|
+
});
|
|
198
|
+
await _8_11_1.test.step('Login as Test User', async () => {
|
|
199
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 1000);
|
|
200
|
+
});
|
|
201
|
+
await _8_11_1.test.step('Navigate to Web Modeler', async () => {
|
|
202
|
+
await appsPage.clickCamundaApps();
|
|
203
|
+
await appsPage.clickModeler();
|
|
204
|
+
await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
|
|
205
|
+
timeout: 30000,
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
await _8_11_1.test.step('Navigate to Cross Component Test Project', async () => {
|
|
209
|
+
await homePage.clickSkipCustomization();
|
|
210
|
+
// createCrossComponentProjectFolder() hunts for a project tile that
|
|
211
|
+
// Modeler's own login page will never render. A dropped session (a 5xx
|
|
212
|
+
// from `/api/internal/login`) surfaces here as "element(s) not found"
|
|
213
|
+
// rather than as the sign-out it actually was (run 35562939552) --
|
|
214
|
+
// withSessionRecovery detects that case and signs back in as the test
|
|
215
|
+
// user this test just switched to, before retrying once.
|
|
216
|
+
await (0, UtilitiesPage_1.withSessionRecovery)(page, loginPage, appsPage, modelerHomePage.modelerPageBanner, testUser, (testInfo.workerIndex + 1) * 1000, () => modelerHomePage.createCrossComponentProjectFolder());
|
|
217
|
+
});
|
|
218
|
+
await _8_11_1.test.step('Create Two BPMN Diagrams with User Task and Start Process Instance', async () => {
|
|
219
|
+
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage, {
|
|
220
|
+
processName: processName,
|
|
221
|
+
uploadFromFile: 'Camunda_Simple_User_Task_2',
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
await _8_11_1.test.step('Navigate to Console and Login as Admin User', async () => {
|
|
225
|
+
//only admin users enable and disable RBA
|
|
226
|
+
await appsPage.clickCamundaApps();
|
|
227
|
+
await appsPage.clickConsoleLink();
|
|
228
|
+
await settingsPage.clickOpenSettingsButton();
|
|
229
|
+
await settingsPage.clickLogoutButton();
|
|
230
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, mainUser, 1000);
|
|
231
|
+
});
|
|
232
|
+
await _8_11_1.test.step('Admin Enables RBA', async () => {
|
|
233
|
+
await (0, UtilitiesPage_1.enableAuthorizations)(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage);
|
|
234
|
+
await (0, sleep_1.sleep)(20000);
|
|
235
|
+
});
|
|
236
|
+
await _8_11_1.test.step('Login as Test User', async () => {
|
|
237
|
+
await settingsPage.clickOpenSettingsButton();
|
|
238
|
+
await settingsPage.clickLogoutButton();
|
|
239
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 1000);
|
|
240
|
+
});
|
|
241
|
+
await _8_11_1.test.step('Navigate to Tasklist and Only First Process Is Accessible', async () => {
|
|
242
|
+
await appsPage.clickCamundaApps();
|
|
243
|
+
await appsPage.clickTasklist(clusterName);
|
|
244
|
+
await (0, test_1.expect)(taskPanelPage.taskListPageBanner).toBeVisible({
|
|
245
|
+
timeout: 30000,
|
|
246
|
+
});
|
|
247
|
+
await taskPanelPage.clickProcessesTab();
|
|
248
|
+
await taskProcessesPage.clickpopupContinueButton();
|
|
249
|
+
await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process1);
|
|
250
|
+
await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process2, {
|
|
251
|
+
shouldBeVisible: false,
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
await _8_11_1.test.step('Navigate to Operate and Only First Process Is Accessible', async () => {
|
|
255
|
+
await appsPage.clickCamundaApps();
|
|
256
|
+
await appsPage.clickOperate(clusterName);
|
|
257
|
+
await (0, test_1.expect)(operateHomePage.operateBanner).toBeVisible({
|
|
258
|
+
timeout: 30000,
|
|
259
|
+
});
|
|
260
|
+
await operateHomePage.clickProcessesTab();
|
|
261
|
+
await (0, expectTextWithRetry_1.expectTextWithRetry)(page, process1);
|
|
262
|
+
await (0, expectTextWithRetry_1.expectTextWithRetry)(page, process2, {
|
|
263
|
+
shouldBeVisible: false,
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
await _8_11_1.test.step('Navigate to OC Identity and Delete First Role', async () => {
|
|
267
|
+
await appsPage.clickCamundaApps();
|
|
268
|
+
await appsPage.clickAdmin(clusterName);
|
|
269
|
+
await ocIdentityHomePage.clickRolesTab();
|
|
270
|
+
await ocIdentityRolesPage.deleteRole(role1);
|
|
271
|
+
await (0, sleep_1.sleep)(5000);
|
|
272
|
+
});
|
|
273
|
+
await _8_11_1.test.step('Navigate to Operate and Check Processes Are Not Accessible', async () => {
|
|
274
|
+
await appsPage.clickCamundaApps();
|
|
275
|
+
await appsPage.clickOperate(clusterName);
|
|
276
|
+
await (0, test_1.expect)(operateHomePage.operateBanner).toBeVisible({
|
|
277
|
+
timeout: 30000,
|
|
278
|
+
});
|
|
279
|
+
await operateHomePage.clickProcessesTab();
|
|
280
|
+
await (0, expectTextWithRetry_1.expectTextWithRetry)(page, process1, {
|
|
281
|
+
shouldBeVisible: false,
|
|
282
|
+
});
|
|
283
|
+
await (0, expectTextWithRetry_1.expectTextWithRetry)(page, process2, {
|
|
284
|
+
shouldBeVisible: false,
|
|
285
|
+
});
|
|
286
|
+
});
|
|
287
|
+
await _8_11_1.test.step('Navigate to Tasklist and Check Processes Are Not Accessible', async () => {
|
|
288
|
+
await appsPage.clickCamundaApps();
|
|
289
|
+
await appsPage.clickTasklist(clusterName);
|
|
290
|
+
await (0, test_1.expect)(taskPanelPage.taskListPageBanner).toBeVisible({
|
|
291
|
+
timeout: 30000,
|
|
292
|
+
});
|
|
293
|
+
await taskPanelPage.clickProcessesTab();
|
|
294
|
+
await taskProcessesPage.clickpopupContinueButton();
|
|
295
|
+
await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process1, {
|
|
296
|
+
shouldBeVisible: false,
|
|
297
|
+
});
|
|
298
|
+
await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process2, {
|
|
299
|
+
shouldBeVisible: false,
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
(0, _8_11_1.test)('RBA On User Flow - Permission for All Processes with Full Permissions', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, taskPanelPage, taskProcessesPage, operateHomePage, ocIdentityHomePage, ocIdentityAuthorizationsPage, }, testInfo) => {
|
|
304
|
+
const clusterName = clusterNames[testInfo.title];
|
|
305
|
+
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
306
|
+
const processName = 'AFTER_RBA' + randomString;
|
|
307
|
+
const process1 = processName + '1';
|
|
308
|
+
const process2 = processName + '2';
|
|
309
|
+
await _8_11_1.test.step('Navigate to Console and Enable RBA', async () => {
|
|
310
|
+
await (0, UtilitiesPage_1.enableAuthorizations)(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage);
|
|
311
|
+
await (0, sleep_1.sleep)(20000);
|
|
312
|
+
});
|
|
313
|
+
await _8_11_1.test.step('Navigate to OC Identity and Assert Admin Has All Process Permission', async () => {
|
|
314
|
+
await appsPage.clickCamundaApps();
|
|
315
|
+
await appsPage.clickAdmin(clusterName);
|
|
316
|
+
await ocIdentityHomePage.clickAuthorizationsTab();
|
|
317
|
+
await ocIdentityAuthorizationsPage.clickProcessDefinitionTab();
|
|
318
|
+
await (0, sleep_1.sleep)(1000);
|
|
319
|
+
await ocIdentityAuthorizationsPage.assertAuthorization('ROLEadmin*');
|
|
320
|
+
});
|
|
321
|
+
await _8_11_1.test.step('Navigate to Web Modeler', async () => {
|
|
322
|
+
// The hand-off into Modeler goes through `modeler.<host>/login`, which
|
|
323
|
+
// runs an invisible reCAPTCHA before it even reaches the IdP, so the tab
|
|
324
|
+
// regularly sits on a loading shell well past 30s -- and it can stall
|
|
325
|
+
// there for good, which a plain wait cannot recover from. Use the shared
|
|
326
|
+
// helper the other 8.10 specs already use for this exact stall: it waits
|
|
327
|
+
// a full window, grants a hand-off that is still in transit a second
|
|
328
|
+
// one, and otherwise re-enters through the apps menu for a fresh
|
|
329
|
+
// handshake.
|
|
330
|
+
await appsPage.openModelerWithRetry(modelerHomePage.modelerPageBanner);
|
|
331
|
+
});
|
|
332
|
+
await _8_11_1.test.step('Navigate to Cross Component Test Project', async () => {
|
|
333
|
+
// The project folder is per Modeler user, and this is the only test in
|
|
334
|
+
// the block that assumed it was already there: the other three call the
|
|
335
|
+
// create-if-missing helper. When the setup project did not manage to
|
|
336
|
+
// create it for this user, clickCrossComponentProjectFolder() burns its
|
|
337
|
+
// full 240s retry budget on a tile that will never render. Use the same
|
|
338
|
+
// helper as the sibling tests — it clicks straight into the folder when
|
|
339
|
+
// it exists (and guards against creating a duplicate), so nothing changes
|
|
340
|
+
// on the happy path.
|
|
341
|
+
await modelerHomePage.createCrossComponentProjectFolder();
|
|
342
|
+
});
|
|
343
|
+
await _8_11_1.test.step('Create Two BPMN Diagrams with User Task and Start Process Instance', async () => {
|
|
344
|
+
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage, {
|
|
345
|
+
processName: processName,
|
|
346
|
+
uploadFromFile: 'Camunda_Simple_User_Task_3',
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
await _8_11_1.test.step('Navigate to Tasklist and Assert Both Processes Are Accessible', async () => {
|
|
350
|
+
await appsPage.clickCamundaApps();
|
|
351
|
+
await appsPage.clickTasklist(clusterName);
|
|
352
|
+
await (0, test_1.expect)(taskPanelPage.taskListPageBanner).toBeVisible({
|
|
353
|
+
timeout: 30000,
|
|
354
|
+
});
|
|
355
|
+
await taskPanelPage.clickProcessesTab();
|
|
356
|
+
await taskProcessesPage.clickpopupContinueButton();
|
|
357
|
+
// Tasklist only fetches 12 process definitions per request and hides the
|
|
358
|
+
// rest behind "Load more", so on these long-lived RBA clusters a process
|
|
359
|
+
// deployed seconds ago is many pages down. Narrow the list to the
|
|
360
|
+
// process under test before asserting it is there -- the assertion
|
|
361
|
+
// itself is unchanged.
|
|
362
|
+
await taskProcessesPage.searchForProcess(process1);
|
|
363
|
+
await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process1);
|
|
364
|
+
await taskProcessesPage.searchForProcess(process2);
|
|
365
|
+
await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process2);
|
|
366
|
+
});
|
|
367
|
+
await _8_11_1.test.step('Assert First Process Can Be Started From Tasklist', async () => {
|
|
368
|
+
await taskPanelPage.clickTasksTab();
|
|
369
|
+
const firstProcessTaskCount = await taskPanelPage.taskCount(process1);
|
|
370
|
+
await taskPanelPage.clickProcessesTab();
|
|
371
|
+
await taskProcessesPage.startProcess(process1);
|
|
372
|
+
const updatedFirstProcessTaskCount = await taskPanelPage.taskCount(process1, firstProcessTaskCount + 1);
|
|
373
|
+
(0, test_1.expect)(updatedFirstProcessTaskCount).toBe(firstProcessTaskCount + 1);
|
|
374
|
+
});
|
|
375
|
+
await _8_11_1.test.step('Assert Second Process Can Be Started From Tasklist', async () => {
|
|
376
|
+
await taskPanelPage.clickTasksTab();
|
|
377
|
+
const secondProcessTaskCount = await taskPanelPage.taskCount(process2);
|
|
378
|
+
await taskPanelPage.clickProcessesTab();
|
|
379
|
+
await taskProcessesPage.startProcess(process2);
|
|
380
|
+
const updatedSecondProcessTaskCount = await taskPanelPage.taskCount(process2, secondProcessTaskCount + 1);
|
|
381
|
+
(0, test_1.expect)(updatedSecondProcessTaskCount).toBe(secondProcessTaskCount + 1);
|
|
382
|
+
});
|
|
383
|
+
await _8_11_1.test.step('Navigate to Operate and Assert Both Processes Are Accessible', async () => {
|
|
384
|
+
await appsPage.clickCamundaApps();
|
|
385
|
+
await appsPage.clickOperate(clusterName);
|
|
386
|
+
await (0, test_1.expect)(operateHomePage.operateBanner).toBeVisible({
|
|
387
|
+
timeout: 30000,
|
|
388
|
+
});
|
|
389
|
+
await operateHomePage.clickProcessesTab();
|
|
390
|
+
await (0, expectTextWithRetry_1.expectTextWithRetry)(page, process1);
|
|
391
|
+
await (0, expectTextWithRetry_1.expectTextWithRetry)(page, process2);
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
(0, _8_11_1.test)('RBA On User Flow - Permission for Selected Processes Only', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, taskPanelPage, taskProcessesPage, operateHomePage, ocIdentityHomePage, ocIdentityAuthorizationsPage, ocIdentityRolesPage, loginPage, settingsPage, }, testInfo) => {
|
|
395
|
+
const clusterName = clusterNames[testInfo.title];
|
|
396
|
+
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
397
|
+
const processName = 'RBA_SELECTED_PERM' + randomString;
|
|
398
|
+
const role = `rbaSelectedProcessesPermission${randomString}`;
|
|
399
|
+
const process1 = processName + '1';
|
|
400
|
+
const process2 = processName + '2';
|
|
401
|
+
const testUser = (0, users_1.requireTestUser)('C8_USERNAME_TEST_5');
|
|
402
|
+
await _8_11_1.test.step('Navigate to OC Identity and Assign User To A Role', async () => {
|
|
403
|
+
await appsPage.clickCamundaApps();
|
|
404
|
+
await appsPage.clickAdmin(clusterName);
|
|
405
|
+
await ocIdentityHomePage.clickRolesTab();
|
|
406
|
+
await ocIdentityRolesPage.assignUserToRole(role, testUser.username);
|
|
407
|
+
});
|
|
408
|
+
await _8_11_1.test.step('Create Resource Authorization', async () => {
|
|
409
|
+
await ocIdentityHomePage.clickAuthorizationsTab();
|
|
410
|
+
await ocIdentityAuthorizationsPage.clickResourceTab();
|
|
411
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.resourceCreateAuthorization)(role));
|
|
412
|
+
});
|
|
413
|
+
await _8_11_1.test.step('Create Component Authorization', async () => {
|
|
414
|
+
await ocIdentityAuthorizationsPage.clickComponentTab();
|
|
415
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.componentAccessAuthorization)(role));
|
|
416
|
+
});
|
|
417
|
+
await _8_11_1.test.step('Grant Process Definition Authorization for First Process', async () => {
|
|
418
|
+
await ocIdentityAuthorizationsPage.clickProcessDefinitionTab();
|
|
419
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.processInstanceAllAuthorization)(role, process1));
|
|
420
|
+
});
|
|
421
|
+
await _8_11_1.test.step('Grant Process Definition Authorization for Second Process', async () => {
|
|
422
|
+
await ocIdentityAuthorizationsPage.clickProcessDefinitionTab();
|
|
423
|
+
await ocIdentityAuthorizationsPage.createAuthorization((0, roleAuthorizations_1.processInstanceAllAuthorization)(role, process2));
|
|
424
|
+
});
|
|
425
|
+
await _8_11_1.test.step('Navigate to Console and Enable RBA', async () => {
|
|
426
|
+
await (0, UtilitiesPage_1.enableAuthorizations)(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage);
|
|
427
|
+
await (0, sleep_1.sleep)(20000);
|
|
428
|
+
});
|
|
429
|
+
await _8_11_1.test.step('Clear cookies and reset session', async () => {
|
|
430
|
+
await settingsPage.clickOpenSettingsButton();
|
|
431
|
+
await settingsPage.clickLogoutButton();
|
|
432
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 1000);
|
|
433
|
+
});
|
|
434
|
+
await _8_11_1.test.step('Navigate to Web Modeler', async () => {
|
|
435
|
+
await appsPage.clickCamundaApps();
|
|
436
|
+
await appsPage.clickModeler();
|
|
437
|
+
await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
|
|
438
|
+
timeout: 30000,
|
|
439
|
+
});
|
|
440
|
+
});
|
|
441
|
+
await _8_11_1.test.step('Navigate to Cross Component Test Project', async () => {
|
|
442
|
+
await homePage.clickSkipCustomization();
|
|
443
|
+
// createCrossComponentProjectFolder() hunts for a project tile that
|
|
444
|
+
// Modeler's own login page will never render. A dropped session (a 5xx
|
|
445
|
+
// from `/api/internal/login`) surfaces here as "element(s) not found"
|
|
446
|
+
// rather than as the sign-out it actually was (run 35562939552) --
|
|
447
|
+
// withSessionRecovery detects that case and signs back in as the test
|
|
448
|
+
// user this test just switched to, before retrying once.
|
|
449
|
+
await (0, UtilitiesPage_1.withSessionRecovery)(page, loginPage, appsPage, modelerHomePage.modelerPageBanner, testUser, (testInfo.workerIndex + 1) * 1000, () => modelerHomePage.createCrossComponentProjectFolder());
|
|
450
|
+
});
|
|
451
|
+
await _8_11_1.test.step('Create Two BPMN Diagrams with User Task and Start Process Instance', async () => {
|
|
452
|
+
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage, {
|
|
453
|
+
processName: processName,
|
|
454
|
+
uploadFromFile: 'Camunda_Simple_User_Task_4',
|
|
455
|
+
});
|
|
456
|
+
});
|
|
457
|
+
await _8_11_1.test.step('Navigate to Tasklist and Assert Both Processes Are Accessible', async () => {
|
|
458
|
+
await appsPage.clickCamundaApps();
|
|
459
|
+
await appsPage.clickTasklist(clusterName);
|
|
460
|
+
await (0, test_1.expect)(taskPanelPage.taskListPageBanner).toBeVisible({
|
|
461
|
+
timeout: 30000,
|
|
462
|
+
});
|
|
463
|
+
await taskPanelPage.clickProcessesTab();
|
|
464
|
+
await taskProcessesPage.clickpopupContinueButton();
|
|
465
|
+
await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process1);
|
|
466
|
+
await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process2);
|
|
467
|
+
});
|
|
468
|
+
await _8_11_1.test.step('Assert First Process Can Be Started From Tasklist', async () => {
|
|
469
|
+
await taskPanelPage.clickTasksTab();
|
|
470
|
+
const firstProcessTaskCount = await taskPanelPage.taskCount(process1);
|
|
471
|
+
await taskPanelPage.clickProcessesTab();
|
|
472
|
+
await taskProcessesPage.startProcess(process1);
|
|
473
|
+
const updatedFirstProcessTaskCount = await taskPanelPage.taskCount(process1, firstProcessTaskCount + 1);
|
|
474
|
+
(0, test_1.expect)(updatedFirstProcessTaskCount).toBe(firstProcessTaskCount + 1);
|
|
475
|
+
});
|
|
476
|
+
await _8_11_1.test.step('Assert Second Process Can Be Started From Tasklist', async () => {
|
|
477
|
+
await taskPanelPage.clickTasksTab();
|
|
478
|
+
const secondProcessTaskCount = await taskPanelPage.taskCount(process2);
|
|
479
|
+
await taskPanelPage.clickProcessesTab();
|
|
480
|
+
await taskProcessesPage.startProcess(process2);
|
|
481
|
+
const updatedSecondProcessTaskCount = await taskPanelPage.taskCount(process2, secondProcessTaskCount + 1);
|
|
482
|
+
(0, test_1.expect)(updatedSecondProcessTaskCount).toBe(secondProcessTaskCount + 1);
|
|
483
|
+
});
|
|
484
|
+
await _8_11_1.test.step('Navigate to Operate and Assert Both Processes Are Accessible', async () => {
|
|
485
|
+
await appsPage.clickCamundaApps();
|
|
486
|
+
await appsPage.clickOperate(clusterName);
|
|
487
|
+
await (0, test_1.expect)(operateHomePage.operateBanner).toBeVisible({
|
|
488
|
+
timeout: 30000,
|
|
489
|
+
});
|
|
490
|
+
await operateHomePage.clickProcessesTab();
|
|
491
|
+
await (0, expectTextWithRetry_1.expectTextWithRetry)(page, process1);
|
|
492
|
+
await (0, expectTextWithRetry_1.expectTextWithRetry)(page, process2);
|
|
493
|
+
});
|
|
494
|
+
});
|
|
495
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* SaaS Migration Path User Flows (8.10 → 8.11)
|
|
5
|
+
*
|
|
6
|
+
* This test suite focuses on UI upgrade automation and basic validation.
|
|
7
|
+
* Comprehensive functionality validation is handled by smoke test comparison
|
|
8
|
+
* rather than custom data validation to avoid code duplication.
|
|
9
|
+
*
|
|
10
|
+
* The complete upgrade testing flow:
|
|
11
|
+
* 1. Pre-upgrade: Infrastructure setup + smoke test baseline capture
|
|
12
|
+
* 2. Upgrade UI: This file's @saasUpgrade test (UI automation)
|
|
13
|
+
* 3. Post-upgrade: Smoke test comparison for comprehensive validation
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
const _setup_1 = require("../../test-setup.js");
|
|
17
|
+
const _8_11_1 = require("../../fixtures/8.11");
|
|
18
|
+
const test_1 = require("@playwright/test");
|
|
19
|
+
const UtilitiesPage_1 = require("../../pages/8.11/UtilitiesPage");
|
|
20
|
+
const users_1 = require("../../utils/users");
|
|
21
|
+
// For SaaS upgrade testing, use dynamically created organization owner credentials
|
|
22
|
+
// For regular testing, fall back to predefined test user
|
|
23
|
+
const testUser = process.env.IS_MIGRATION === 'true'
|
|
24
|
+
? {
|
|
25
|
+
username: process.env.C8_USERNAME,
|
|
26
|
+
password: process.env.C8_PASSWORD,
|
|
27
|
+
}
|
|
28
|
+
: (0, users_1.getTestUser)('twentyFirstUser');
|
|
29
|
+
_8_11_1.test.describe('SaaS Migration Path Tests', () => {
|
|
30
|
+
_8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
31
|
+
// Skip if not in migration mode
|
|
32
|
+
if (process.env.IS_MIGRATION !== 'true') {
|
|
33
|
+
_8_11_1.test.skip(true, 'Skipping migration tests outside of migration mode');
|
|
34
|
+
}
|
|
35
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
36
|
+
});
|
|
37
|
+
_8_11_1.test.afterEach(async ({ page }, testInfo) => {
|
|
38
|
+
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
39
|
+
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
40
|
+
});
|
|
41
|
+
(0, _8_11_1.test)('SaaS UI Upgrade Flow Automation @saasUpgrade', async ({ homePage, clusterPage, clusterDetailsPage, }) => {
|
|
42
|
+
_8_11_1.test.slow();
|
|
43
|
+
await _8_11_1.test.step('Navigate to SaaS Upgrade Section', async () => {
|
|
44
|
+
await homePage.clickClusters();
|
|
45
|
+
await clusterPage.clickClusterLink('Test Cluster');
|
|
46
|
+
await clusterDetailsPage.performClusterUpdate();
|
|
47
|
+
await homePage.clickClusters();
|
|
48
|
+
await clusterPage.assertClusterHealthyStatusWithRetry('Test Cluster');
|
|
49
|
+
await (0, test_1.expect)(clusterPage.clusterVersion('Test Cluster', '8.11')).toBeVisible({ timeout: 30000 });
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
(0, _8_11_1.test)('Basic Navigation After SaaS Upgrade', async ({ homePage, appsPage, modelerHomePage, operateHomePage, optimizeHomePage, taskPanelPage, ocIdentityHomePage, }) => {
|
|
53
|
+
const clusterName = 'Test Cluster';
|
|
54
|
+
await _8_11_1.test.step('Assert Web Modeler Navigation', async () => {
|
|
55
|
+
await appsPage.clickCamundaApps();
|
|
56
|
+
await appsPage.clickModeler();
|
|
57
|
+
await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
|
|
58
|
+
timeout: 120000,
|
|
59
|
+
});
|
|
60
|
+
await modelerHomePage.clickMessageBanner();
|
|
61
|
+
});
|
|
62
|
+
await _8_11_1.test.step('Assert Console Navigation', async () => {
|
|
63
|
+
await appsPage.clickCamundaApps();
|
|
64
|
+
await appsPage.clickConsoleLink();
|
|
65
|
+
await (0, test_1.expect)(homePage.consoleBanner).toBeVisible({
|
|
66
|
+
timeout: 120000,
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
await _8_11_1.test.step('Assert Operate Navigation', async () => {
|
|
70
|
+
await appsPage.clickCamundaApps();
|
|
71
|
+
await appsPage.clickOperate(clusterName);
|
|
72
|
+
await (0, test_1.expect)(operateHomePage.operateBanner).toBeVisible({
|
|
73
|
+
timeout: 120000,
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
await _8_11_1.test.step('Assert Optimize Navigation', async () => {
|
|
77
|
+
await appsPage.clickCamundaApps();
|
|
78
|
+
await appsPage.clickOptimize(clusterName);
|
|
79
|
+
await (0, test_1.expect)(optimizeHomePage.optimizeBanner).toBeVisible({
|
|
80
|
+
timeout: 120000,
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
await _8_11_1.test.step('Assert Tasklist Navigation', async () => {
|
|
84
|
+
await appsPage.clickCamundaApps();
|
|
85
|
+
await appsPage.clickTasklist(clusterName);
|
|
86
|
+
await (0, test_1.expect)(taskPanelPage.taskListPageBanner).toBeVisible({
|
|
87
|
+
timeout: 120000,
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
await _8_11_1.test.step('Assert Admin Navigation', async () => {
|
|
91
|
+
await appsPage.clickCamundaApps();
|
|
92
|
+
await appsPage.clickAdmin(clusterName);
|
|
93
|
+
await (0, test_1.expect)(ocIdentityHomePage.adminBanner).toBeVisible({
|
|
94
|
+
timeout: 120000,
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
(0, _8_11_1.test)('Assert SaaS Organization Data Persists After Upgrade', async ({ page, appsPage, homePage, consoleOrganizationsPage, }) => {
|
|
99
|
+
await _8_11_1.test.step('Verify Organization Settings Persist', async () => {
|
|
100
|
+
await appsPage.clickCamundaApps();
|
|
101
|
+
await appsPage.clickConsoleLink();
|
|
102
|
+
await homePage.organizationTab.click();
|
|
103
|
+
});
|
|
104
|
+
await _8_11_1.test.step('Verify User Roles and Permissions Persist', async () => {
|
|
105
|
+
await consoleOrganizationsPage.clickUsersTab();
|
|
106
|
+
// Verify existing users still have correct roles
|
|
107
|
+
await (0, test_1.expect)(page.getByRole('cell', { name: 'Owner' })).toBeVisible();
|
|
108
|
+
await (0, test_1.expect)(page.getByRole('cell', { name: 'Developer' })).toBeVisible();
|
|
109
|
+
// Console renamed the Modeler role to "Member".
|
|
110
|
+
await (0, test_1.expect)(page.getByRole('cell', { name: /^(Modeler|Member)$/ })).toBeVisible();
|
|
111
|
+
await (0, test_1.expect)(page.getByRole('cell', { name: 'Admin' })).toBeVisible();
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
(0, _8_11_1.test)('Assert Connectors Still Function After SaaS Upgrade @tasklistV2', async ({ operateHomePage, appsPage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
115
|
+
_8_11_1.test.slow();
|
|
116
|
+
// Use the same fixed name that was created in the pre-upgrade smoke tests
|
|
117
|
+
const processName = 'REST_Connector_Basic_Auth_ProcessUpgradeTest';
|
|
118
|
+
const clusterName = 'Test Cluster';
|
|
119
|
+
await _8_11_1.test.step('View Connector Process Instance in Operate', async () => {
|
|
120
|
+
await appsPage.clickCamundaApps();
|
|
121
|
+
await appsPage.clickOperate(clusterName);
|
|
122
|
+
await operateHomePage.clickProcessesTab();
|
|
123
|
+
await operateProcessesPage.clickProcessCompletedCheckbox();
|
|
124
|
+
await operateProcessesPage.clickProcessInstanceLink(processName);
|
|
125
|
+
await operateProcessInstancePage.assertProcessCompleteStatusWithRetry();
|
|
126
|
+
await (0, test_1.expect)(operateProcessInstancePage.variablesList).toBeVisible({
|
|
127
|
+
timeout: 60000,
|
|
128
|
+
});
|
|
129
|
+
await (0, test_1.expect)(operateProcessInstancePage.connectorResultVariableName('message')).toBeVisible({ timeout: 60000 });
|
|
130
|
+
await (0, test_1.expect)(operateProcessInstancePage.messageVariable.getByText('"Message from Mock!"')).toBeVisible({ timeout: 60000 });
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|