@camunda/e2e-test-suite 0.0.256 → 0.0.258
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/fixtures/SM-8.10.d.ts +81 -0
- package/dist/fixtures/SM-8.10.js +184 -0
- package/dist/pages/SM-8.10/Authorization.d.ts +31 -0
- package/dist/pages/SM-8.10/Authorization.js +146 -0
- package/dist/pages/SM-8.10/ClusterDetailsPage.d.ts +8 -0
- package/dist/pages/SM-8.10/ClusterDetailsPage.js +28 -0
- package/dist/pages/SM-8.10/ClusterPage.d.ts +11 -0
- package/dist/pages/SM-8.10/ClusterPage.js +32 -0
- package/dist/pages/SM-8.10/ConnectorMarketplacePage.d.ts +16 -0
- package/dist/pages/SM-8.10/ConnectorMarketplacePage.js +52 -0
- package/dist/pages/SM-8.10/ConnectorSettingsPage.d.ts +40 -0
- package/dist/pages/SM-8.10/ConnectorSettingsPage.js +133 -0
- package/dist/pages/SM-8.10/ConnectorTemplatePage.d.ts +11 -0
- package/dist/pages/SM-8.10/ConnectorTemplatePage.js +34 -0
- package/dist/pages/SM-8.10/ConsoleHomePage.d.ts +11 -0
- package/dist/pages/SM-8.10/ConsoleHomePage.js +31 -0
- package/dist/pages/SM-8.10/ConsoleOrganizationPage.d.ts +22 -0
- package/dist/pages/SM-8.10/ConsoleOrganizationPage.js +68 -0
- package/dist/pages/SM-8.10/FormJsPage.d.ts +31 -0
- package/dist/pages/SM-8.10/FormJsPage.js +87 -0
- package/dist/pages/SM-8.10/HomePage.d.ts +20 -0
- package/dist/pages/SM-8.10/HomePage.js +49 -0
- package/dist/pages/SM-8.10/IdentityTenantPage.d.ts +52 -0
- package/dist/pages/SM-8.10/IdentityTenantPage.js +218 -0
- package/dist/pages/SM-8.10/IdentityUsersPage.d.ts +92 -0
- package/dist/pages/SM-8.10/IdentityUsersPage.js +473 -0
- package/dist/pages/SM-8.10/KeycloakAdminPage.d.ts +15 -0
- package/dist/pages/SM-8.10/KeycloakAdminPage.js +68 -0
- package/dist/pages/SM-8.10/KeycloakLoginPage.d.ts +11 -0
- package/dist/pages/SM-8.10/KeycloakLoginPage.js +25 -0
- package/dist/pages/SM-8.10/KeycloakUtils.d.ts +16 -0
- package/dist/pages/SM-8.10/KeycloakUtils.js +63 -0
- package/dist/pages/SM-8.10/LoginPage.d.ts +21 -0
- package/dist/pages/SM-8.10/LoginPage.js +100 -0
- package/dist/pages/SM-8.10/ManagementIdentityPage.d.ts +46 -0
- package/dist/pages/SM-8.10/ManagementIdentityPage.js +153 -0
- package/dist/pages/SM-8.10/ModelerCreatePage.d.ts +199 -0
- package/dist/pages/SM-8.10/ModelerCreatePage.js +1052 -0
- package/dist/pages/SM-8.10/ModelerHomePage.d.ts +44 -0
- package/dist/pages/SM-8.10/ModelerHomePage.js +179 -0
- package/dist/pages/SM-8.10/NavigationPage.d.ts +47 -0
- package/dist/pages/SM-8.10/NavigationPage.js +134 -0
- package/dist/pages/SM-8.10/OCIdentityAuthorizationsPage.d.ts +10 -0
- package/dist/pages/SM-8.10/OCIdentityAuthorizationsPage.js +35 -0
- package/dist/pages/SM-8.10/OCIdentityClusterVariablesPage.d.ts +20 -0
- package/dist/pages/SM-8.10/OCIdentityClusterVariablesPage.js +69 -0
- package/dist/pages/SM-8.10/OCIdentityGroupsPage.d.ts +39 -0
- package/dist/pages/SM-8.10/OCIdentityGroupsPage.js +154 -0
- package/dist/pages/SM-8.10/OCIdentityHomePage.d.ts +23 -0
- package/dist/pages/SM-8.10/OCIdentityHomePage.js +81 -0
- package/dist/pages/SM-8.10/OCIdentityMappingRulesPage.d.ts +23 -0
- package/dist/pages/SM-8.10/OCIdentityMappingRulesPage.js +110 -0
- package/dist/pages/SM-8.10/OCIdentityRolesPage.d.ts +55 -0
- package/dist/pages/SM-8.10/OCIdentityRolesPage.js +197 -0
- package/dist/pages/SM-8.10/OCTenantPage.d.ts +67 -0
- package/dist/pages/SM-8.10/OCTenantPage.js +280 -0
- package/dist/pages/SM-8.10/OperateHomePage.d.ts +24 -0
- package/dist/pages/SM-8.10/OperateHomePage.js +81 -0
- package/dist/pages/SM-8.10/OperateProcessInstancePage.d.ts +24 -0
- package/dist/pages/SM-8.10/OperateProcessInstancePage.js +170 -0
- package/dist/pages/SM-8.10/OperateProcessesPage.d.ts +32 -0
- package/dist/pages/SM-8.10/OperateProcessesPage.js +205 -0
- package/dist/pages/SM-8.10/OptimizeCollectionsPage.d.ts +17 -0
- package/dist/pages/SM-8.10/OptimizeCollectionsPage.js +66 -0
- package/dist/pages/SM-8.10/OptimizeDashboardPage.d.ts +14 -0
- package/dist/pages/SM-8.10/OptimizeDashboardPage.js +56 -0
- package/dist/pages/SM-8.10/OptimizeHomePage.d.ts +19 -0
- package/dist/pages/SM-8.10/OptimizeHomePage.js +64 -0
- package/dist/pages/SM-8.10/OptimizeReportPage.d.ts +50 -0
- package/dist/pages/SM-8.10/OptimizeReportPage.js +179 -0
- package/dist/pages/SM-8.10/PlayPage.d.ts +44 -0
- package/dist/pages/SM-8.10/PlayPage.js +235 -0
- package/dist/pages/SM-8.10/SettingsPage.d.ts +12 -0
- package/dist/pages/SM-8.10/SettingsPage.js +25 -0
- package/dist/pages/SM-8.10/TaskDetailsPage.d.ts +70 -0
- package/dist/pages/SM-8.10/TaskDetailsPage.js +266 -0
- package/dist/pages/SM-8.10/TaskPanelPage.d.ts +24 -0
- package/dist/pages/SM-8.10/TaskPanelPage.js +93 -0
- package/dist/pages/SM-8.10/TaskProcessesPage.d.ts +14 -0
- package/dist/pages/SM-8.10/TaskProcessesPage.js +53 -0
- package/dist/pages/SM-8.10/UtilitiesPage.d.ts +34 -0
- package/dist/pages/SM-8.10/UtilitiesPage.js +435 -0
- package/dist/pages/SM-8.10/optimizeReportUtils.d.ts +6 -0
- package/dist/pages/SM-8.10/optimizeReportUtils.js +42 -0
- package/dist/pages/SM-8.6/ModelerCreatePage.js +3 -0
- package/dist/pages/SM-8.6/PlayPage.js +2 -0
- package/dist/pages/SM-8.7/ModelerCreatePage.js +3 -0
- package/dist/pages/SM-8.7/PlayPage.d.ts +1 -0
- package/dist/pages/SM-8.7/PlayPage.js +4 -2
- package/dist/tests/SM-8.10/cluster-variables.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/cluster-variables.spec.js +190 -0
- package/dist/tests/SM-8.10/connectors-user-flows.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/connectors-user-flows.spec.js +260 -0
- package/dist/tests/SM-8.10/console-user-flows.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/console-user-flows.spec.js +88 -0
- package/dist/tests/SM-8.10/document-handling-user-flows.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/document-handling-user-flows.spec.js +157 -0
- package/dist/tests/SM-8.10/hto-user-flows.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/hto-user-flows.spec.js +408 -0
- package/dist/tests/SM-8.10/identity-user-flows.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/identity-user-flows.spec.js +233 -0
- package/dist/tests/SM-8.10/license-key-user-flows.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/license-key-user-flows.spec.js +523 -0
- package/dist/tests/SM-8.10/login.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/login.spec.js +24 -0
- package/dist/tests/SM-8.10/migration-path-user-flows.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/migration-path-user-flows.spec.js +224 -0
- package/dist/tests/SM-8.10/mt-enabled-user-flows.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/mt-enabled-user-flows.spec.js +584 -0
- package/dist/tests/SM-8.10/optimize-user-flows.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/optimize-user-flows.spec.js +184 -0
- package/dist/tests/SM-8.10/play.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/play.spec.js +152 -0
- package/dist/tests/SM-8.10/rba-enabled-user-flows.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/rba-enabled-user-flows.spec.js +715 -0
- package/dist/tests/SM-8.10/smoke-tests.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/smoke-tests.spec.js +163 -0
- package/dist/tests/SM-8.10/test-setup.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/test-setup.spec.js +24 -0
- package/dist/tests/SM-8.10/web-modeler-user-flows.spec.d.ts +1 -0
- package/dist/tests/SM-8.10/web-modeler-user-flows.spec.js +178 -0
- package/package.json +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const SM_8_10_1 = require("../../fixtures/SM-8.10");
|
|
4
|
+
const _setup_1 = require("../../test-setup.js");
|
|
5
|
+
const test_1 = require("@playwright/test");
|
|
6
|
+
SM_8_10_1.test.describe.configure({ mode: 'parallel' });
|
|
7
|
+
SM_8_10_1.test.describe('Console User Flow Tests', () => {
|
|
8
|
+
const defaultTags = ['dev', 'custom', 'stage', 'prod', 'test'];
|
|
9
|
+
const customPropertyDescription = 'This is the main integration environment for the Camunda Platform.';
|
|
10
|
+
SM_8_10_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
|
|
11
|
+
await navigationPage.goToConsole((testInfo.workerIndex + 1) * 1000);
|
|
12
|
+
});
|
|
13
|
+
SM_8_10_1.test.afterEach(async ({ page }, testInfo) => {
|
|
14
|
+
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
15
|
+
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
16
|
+
});
|
|
17
|
+
(0, SM_8_10_1.test)('Custom Tags', async ({ consoleHomePage, clusterPage }) => {
|
|
18
|
+
await SM_8_10_1.test.step('Navigate to Clusters', async () => {
|
|
19
|
+
await consoleHomePage.clickClusters();
|
|
20
|
+
});
|
|
21
|
+
await SM_8_10_1.test.step('Ensure Custom Tags Appear in Clusters', async () => {
|
|
22
|
+
await clusterPage.assertCustomTagsAreVisible(defaultTags);
|
|
23
|
+
});
|
|
24
|
+
await SM_8_10_1.test.step('Ensure Custom Tags Appear in Cluster Details', async () => {
|
|
25
|
+
await clusterPage.clickClusterLink();
|
|
26
|
+
await clusterPage.assertCustomTagsAreVisible(defaultTags);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
(0, SM_8_10_1.test)('Custom Properties', async ({ consoleHomePage, clusterPage, clusterDetailsPage, page, }) => {
|
|
30
|
+
await SM_8_10_1.test.step('Navigate to Cluster Details', async () => {
|
|
31
|
+
await consoleHomePage.clickClusters();
|
|
32
|
+
await clusterPage.clickClusterLink();
|
|
33
|
+
});
|
|
34
|
+
await SM_8_10_1.test.step('Ensure Custom Properties Appear in Console and Navigates Links', async () => {
|
|
35
|
+
await (0, test_1.expect)(clusterDetailsPage.customPropertiesHeading).toBeVisible({
|
|
36
|
+
timeout: 60000,
|
|
37
|
+
});
|
|
38
|
+
await (0, test_1.expect)(page.getByText(customPropertyDescription)).toBeVisible({
|
|
39
|
+
timeout: 60000,
|
|
40
|
+
});
|
|
41
|
+
await clusterDetailsPage.assertCustomPropertyIsNavigated('Link 1', 'Camunda', 'https://camunda.com');
|
|
42
|
+
await clusterDetailsPage.assertCustomPropertyIsNavigated('Link 2', 'Camunda Docs', 'https://docs.camunda.io');
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
(0, SM_8_10_1.test)('Default License Key User Flow', async ({ navigationPage, managementIdentityPage, ocIdentityHomePage, modelerHomePage, taskPanelPage, operateHomePage, optimizeHomePage, consoleHomePage, }) => {
|
|
46
|
+
await SM_8_10_1.test.step('Assert Console License Key Tag', async () => {
|
|
47
|
+
await (0, test_1.expect)(consoleHomePage.licenseKeyTagNonProduction).toBeVisible({
|
|
48
|
+
timeout: 60000,
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
await SM_8_10_1.test.step('Assert Management Identity License Key Tag', async () => {
|
|
52
|
+
await navigationPage.goToManagementIdentity();
|
|
53
|
+
await (0, test_1.expect)(managementIdentityPage.licenseKeyTagNonProduction).toBeVisible({
|
|
54
|
+
timeout: 60000,
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
await SM_8_10_1.test.step('Assert OC Identity License Key Tag', async () => {
|
|
58
|
+
await navigationPage.goToOCIdentity();
|
|
59
|
+
await (0, test_1.expect)(ocIdentityHomePage.licenseKeyTagNonProduction).toBeVisible({
|
|
60
|
+
timeout: 60000,
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
await SM_8_10_1.test.step('Assert Web Modeler License Key Tag', async () => {
|
|
64
|
+
await navigationPage.goToModeler();
|
|
65
|
+
await (0, test_1.expect)(modelerHomePage.licenseKeyTagNonProduction).toBeVisible({
|
|
66
|
+
timeout: 60000,
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
await SM_8_10_1.test.step('Assert Tasklist License Key Tag', async () => {
|
|
70
|
+
await navigationPage.goToTasklist();
|
|
71
|
+
await (0, test_1.expect)(taskPanelPage.licenseKeyTagNonProduction).toBeVisible({
|
|
72
|
+
timeout: 60000,
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
await SM_8_10_1.test.step('Assert Operate License Key Tag', async () => {
|
|
76
|
+
await navigationPage.goToOperate();
|
|
77
|
+
await (0, test_1.expect)(operateHomePage.licenseKeyTagNonProduction).toBeVisible({
|
|
78
|
+
timeout: 60000,
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
await SM_8_10_1.test.step('Assert Optimize License Key Tag', async () => {
|
|
82
|
+
await navigationPage.goToOptimize();
|
|
83
|
+
await (0, test_1.expect)(optimizeHomePage.licenseKeyTagNonProduction).toBeVisible({
|
|
84
|
+
timeout: 60000,
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const test_1 = require("@playwright/test");
|
|
4
|
+
const SM_8_10_1 = require("../../fixtures/SM-8.10");
|
|
5
|
+
const _setup_1 = require("../../test-setup.js");
|
|
6
|
+
const sleep_1 = require("../../utils/sleep");
|
|
7
|
+
const fileUpload_1 = require("../../utils/fileUpload");
|
|
8
|
+
const UtilitiesPage_1 = require("../../pages/SM-8.10/UtilitiesPage");
|
|
9
|
+
if (process.env.IS_DS === 'true') {
|
|
10
|
+
SM_8_10_1.test.describe.configure({ mode: 'parallel' });
|
|
11
|
+
SM_8_10_1.test.describe('AWS Document Handling User Flows Test', () => {
|
|
12
|
+
SM_8_10_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
|
|
13
|
+
await navigationPage.goToModeler((testInfo.workerIndex + 1) * 1000);
|
|
14
|
+
});
|
|
15
|
+
SM_8_10_1.test.afterEach(async ({ page }, testInfo) => {
|
|
16
|
+
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
17
|
+
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
18
|
+
});
|
|
19
|
+
(0, SM_8_10_1.test)('Document Handling HTO User Flow - AWS', async ({ modelerHomePage, formJsPage, modelerCreatePage, taskPanelPage, taskDetailsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, navigationPage, page, }) => {
|
|
20
|
+
SM_8_10_1.test.slow();
|
|
21
|
+
const randomName = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
22
|
+
const processName = 'HTO_Document_Handling_Process' + randomName;
|
|
23
|
+
const formNameFilePicker = 'File Picker Form ' + randomName;
|
|
24
|
+
const formNameDocumentPreview = 'Document Preview Form ' + randomName;
|
|
25
|
+
await SM_8_10_1.test.step('Open Cross Component Test Project', async () => {
|
|
26
|
+
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
27
|
+
});
|
|
28
|
+
await SM_8_10_1.test.step('Create a Form with a File Picker Field', async () => {
|
|
29
|
+
await modelerHomePage.clickDiagramTypeDropdown();
|
|
30
|
+
await modelerHomePage.clickFormOption();
|
|
31
|
+
await modelerHomePage.enterFormName(formNameFilePicker);
|
|
32
|
+
await (0, sleep_1.sleep)(10000);
|
|
33
|
+
await formJsPage.dragAndDrop(formJsPage.filePicker, formJsPage.formEditor);
|
|
34
|
+
await formJsPage.clickGeneralPropertiesPanel();
|
|
35
|
+
await formJsPage.fillKeyInput('Upload_Files');
|
|
36
|
+
await formJsPage.enableUploadMultipleFiles();
|
|
37
|
+
await (0, sleep_1.sleep)(10000);
|
|
38
|
+
await formJsPage.deployForm();
|
|
39
|
+
});
|
|
40
|
+
await SM_8_10_1.test.step('Create a Form with a Document Preview Field', async () => {
|
|
41
|
+
await modelerHomePage.clickProjectBreadcrumb();
|
|
42
|
+
await modelerHomePage.clickDiagramTypeDropdown();
|
|
43
|
+
await modelerHomePage.clickFormOption();
|
|
44
|
+
await modelerHomePage.enterFormName(formNameDocumentPreview);
|
|
45
|
+
await (0, sleep_1.sleep)(10000);
|
|
46
|
+
await formJsPage.dragAndDrop(formJsPage.documentPreview, formJsPage.formEditor);
|
|
47
|
+
await formJsPage.clickGeneralPropertiesPanel();
|
|
48
|
+
await formJsPage.filldocumentReferenceInput('Upload_Files');
|
|
49
|
+
await (0, sleep_1.sleep)(10000);
|
|
50
|
+
await formJsPage.deployForm();
|
|
51
|
+
});
|
|
52
|
+
await SM_8_10_1.test.step('Add A BPMN Template To The Project', async () => {
|
|
53
|
+
await modelerHomePage.clickProjectBreadcrumb();
|
|
54
|
+
await modelerHomePage.clickDiagramTypeDropdown();
|
|
55
|
+
await modelerHomePage.clickBpmnTemplateOption();
|
|
56
|
+
});
|
|
57
|
+
await SM_8_10_1.test.step('Create a BPMN Diagram with Two User Tasks and Linked Forms', async () => {
|
|
58
|
+
await (0, test_1.expect)(modelerCreatePage.generalPanel).toBeVisible({
|
|
59
|
+
timeout: 120000,
|
|
60
|
+
});
|
|
61
|
+
await modelerCreatePage.enterDiagramName(processName);
|
|
62
|
+
await (0, sleep_1.sleep)(1000);
|
|
63
|
+
await modelerCreatePage.clickCanvas();
|
|
64
|
+
await modelerCreatePage.clickGeneralPropertiesPanel();
|
|
65
|
+
await modelerCreatePage.clickIdInput();
|
|
66
|
+
await modelerCreatePage.fillIdInput(processName);
|
|
67
|
+
await modelerCreatePage.assertNameInput(processName);
|
|
68
|
+
await (0, sleep_1.sleep)(1000);
|
|
69
|
+
await modelerCreatePage.clickStartEventElement();
|
|
70
|
+
await modelerCreatePage.clickAppendElementButton();
|
|
71
|
+
await modelerCreatePage.clickAppendTaskButton();
|
|
72
|
+
await modelerCreatePage.clickChangeTypeButton();
|
|
73
|
+
await modelerCreatePage.clickUserTaskOption();
|
|
74
|
+
await modelerCreatePage.assertImplementationOption('zeebeUserTask');
|
|
75
|
+
await modelerCreatePage.embedForm(formNameFilePicker);
|
|
76
|
+
await modelerCreatePage.clickAppendElementButton();
|
|
77
|
+
await modelerCreatePage.clickAppendTaskButton();
|
|
78
|
+
await modelerCreatePage.clickChangeTypeButton();
|
|
79
|
+
await modelerCreatePage.clickUserTaskOption();
|
|
80
|
+
await modelerCreatePage.assertImplementationOption('zeebeUserTask');
|
|
81
|
+
await modelerCreatePage.embedForm(formNameDocumentPreview);
|
|
82
|
+
await modelerCreatePage.clickAppendElementButton();
|
|
83
|
+
await modelerCreatePage.clickAppendEndEventButton();
|
|
84
|
+
await (0, sleep_1.sleep)(5000);
|
|
85
|
+
await modelerCreatePage.runProcessInstance();
|
|
86
|
+
});
|
|
87
|
+
await SM_8_10_1.test.step('Navigate to Tasklist and Assert Document Upload And Preview', async () => {
|
|
88
|
+
await navigationPage.goToTasklist();
|
|
89
|
+
await taskPanelPage.openTask(processName);
|
|
90
|
+
await taskDetailsPage.clickAssignToMeButton();
|
|
91
|
+
await (0, fileUpload_1.uploadFile)(page, [
|
|
92
|
+
'simple_text.txt',
|
|
93
|
+
'simple_pdf.pdf',
|
|
94
|
+
'camunda.png',
|
|
95
|
+
]);
|
|
96
|
+
await taskDetailsPage.clickCompleteTaskButton();
|
|
97
|
+
await (0, sleep_1.sleep)(10000);
|
|
98
|
+
await page.reload();
|
|
99
|
+
await taskPanelPage.openTask(processName);
|
|
100
|
+
await taskDetailsPage.clickAssignToMeButton();
|
|
101
|
+
await taskDetailsPage.assertLoadedImage('camunda.png');
|
|
102
|
+
await taskDetailsPage.assertDocumentDownloadButton('camunda.png');
|
|
103
|
+
await (0, test_1.expect)(taskDetailsPage.noPreviewContainer).toContainText('simple_text.txt', { timeout: 60000 });
|
|
104
|
+
await taskDetailsPage.assertDocumentDownloadButton('simple_text.txt');
|
|
105
|
+
await (0, test_1.expect)(taskDetailsPage.previewContainer).toHaveCount(2);
|
|
106
|
+
await taskDetailsPage.assertPdfPreviewViewerExists();
|
|
107
|
+
await taskDetailsPage.clickCompleteTaskButton();
|
|
108
|
+
});
|
|
109
|
+
await SM_8_10_1.test.step('Navigate to Operate and Assert Documents And StoreId', async () => {
|
|
110
|
+
await navigationPage.goToOperate();
|
|
111
|
+
await operateHomePage.clickProcessesTab();
|
|
112
|
+
await operateProcessesPage.clickProcessInstanceLink(processName, 'completed');
|
|
113
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('Upload_Files', 'camunda.png');
|
|
114
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('Upload_Files', 'simple_pdf.pdf');
|
|
115
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('Upload_Files', 'simple_text.txt');
|
|
116
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('Upload_Files', 'aws');
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
(0, SM_8_10_1.test)('Document Handling Connectors User Flow - AWS @tasklistV2', async ({ page, navigationPage, modelerHomePage, modelerCreatePage, operateHomePage, operateProcessesPage, connectorMarketplacePage, operateProcessInstancePage, ocIdentityHomePage, ocIdentityRolesPage, }) => {
|
|
120
|
+
const processName = 'Document_Handling_Connectors_User_Flow_AWS_Process' +
|
|
121
|
+
(await (0, _setup_1.generateRandomStringAsync)(3));
|
|
122
|
+
const baseURL = process.env.PLAYWRIGHT_BASE_URL ||
|
|
123
|
+
`https://eks-${process.env.BASE_URL}.qa.aws.camunda.cloud`;
|
|
124
|
+
const clientSecret = process.env.DISTRO_QA_E2E_TESTS_KEYCLOAK_CLIENTS_SECRET;
|
|
125
|
+
const endpoint = `${baseURL}/auth/realms/camunda-platform/protocol/openid-connect/token`;
|
|
126
|
+
await SM_8_10_1.test.step('Grant client admin access', async () => {
|
|
127
|
+
await navigationPage.goToOCIdentity();
|
|
128
|
+
await ocIdentityHomePage.clickRolesTab();
|
|
129
|
+
await ocIdentityRolesPage.clickRole('admin');
|
|
130
|
+
await ocIdentityRolesPage.addClientToRole('test');
|
|
131
|
+
});
|
|
132
|
+
await SM_8_10_1.test.step('Open Cross Component Test Project and Create a REST Connector Document Handling Flow', async () => {
|
|
133
|
+
await navigationPage.goToModeler();
|
|
134
|
+
await (0, UtilitiesPage_1.modelAndRunConnectorsDocHandlingDiagram)(modelerCreatePage, modelerHomePage, processName, page, connectorMarketplacePage, `"${baseURL}/orchestration"`, `"test"`, `"${clientSecret}"`, endpoint);
|
|
135
|
+
});
|
|
136
|
+
await SM_8_10_1.test.step('View Process Instance in Operate, assert it completes and assert variable values are correct', async () => {
|
|
137
|
+
await navigationPage.goToOperate();
|
|
138
|
+
await operateHomePage.clickProcessesTab();
|
|
139
|
+
await operateProcessesPage.clickProcessInstanceLink(processName, 'completed');
|
|
140
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('doc', 'aws');
|
|
141
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('doc', '14e564c347119f8bdde27c80ff5b3cb8d92709c5a6177b74cde568c5503c1f12');
|
|
142
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('doc', '72519');
|
|
143
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('doc', 'image/jpeg');
|
|
144
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('doc2', 'aws');
|
|
145
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('doc2', '14e564c347119f8bdde27c80ff5b3cb8d92709c5a6177b74cde568c5503c1f12');
|
|
146
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('doc2', '72519');
|
|
147
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('doc2', 'image/jpeg');
|
|
148
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('uploadBatch', 'aws');
|
|
149
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('uploadBatch', '201');
|
|
150
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('uploadDoc2', 'aws');
|
|
151
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('uploadDoc2', '201');
|
|
152
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('uploadDoc2', 'aws');
|
|
153
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('GetDocUpload', '200');
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|