@camunda/e2e-test-suite 0.0.486 → 0.0.488
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.
|
@@ -21,3 +21,4 @@ export declare function modelWebhookConnector(modelerCreatePage: ModelerCreatePa
|
|
|
21
21
|
export declare function assertLocatorVisibleWithRetry(page: Page, locator: Locator, text: string, maxRetries?: number): Promise<void>;
|
|
22
22
|
export declare function assertPageTextWithRetry(page: Page, text: string, notVisible?: boolean, timeout?: number, maxRetries?: number): Promise<void>;
|
|
23
23
|
export declare function modelAndRunConnectorsTimerEventDiagram(modelerCreatePage: ModelerCreatePage, modelerHomePage: ModelerHomePage, processName: string, page: Page, connectorMarketplacePage: ConnectorMarketplacePage, connectorTemplatePage: ConnectorTemplatePage): Promise<void>;
|
|
24
|
+
export declare function modelDiagramFromFile(page: Page, modelerHomePage: ModelerHomePage, modelerCreatePage: ModelerCreatePage, processName: string, fileName: string): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.modelAndRunConnectorsTimerEventDiagram = exports.assertPageTextWithRetry = exports.assertLocatorVisibleWithRetry = exports.modelWebhookConnector = exports.modelIntermediateWebhookConnector = exports.modelRestConnector = exports.completeTaskWithRetry = exports.createAndRunProcess = exports.runMultipleProcesses = exports.deleteAllUserGroups = void 0;
|
|
3
|
+
exports.modelDiagramFromFile = exports.modelAndRunConnectorsTimerEventDiagram = exports.assertPageTextWithRetry = exports.assertLocatorVisibleWithRetry = exports.modelWebhookConnector = exports.modelIntermediateWebhookConnector = exports.modelRestConnector = exports.completeTaskWithRetry = exports.createAndRunProcess = exports.runMultipleProcesses = exports.deleteAllUserGroups = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const fileUpload_1 = require("../../utils/fileUpload");
|
|
6
6
|
const sleep_1 = require("../../utils/sleep");
|
|
@@ -305,3 +305,18 @@ async function modelAndRunConnectorsTimerEventDiagram(modelerCreatePage, modeler
|
|
|
305
305
|
await modelerCreatePage.runProcessInstance();
|
|
306
306
|
}
|
|
307
307
|
exports.modelAndRunConnectorsTimerEventDiagram = modelAndRunConnectorsTimerEventDiagram;
|
|
308
|
+
async function modelDiagramFromFile(page, modelerHomePage, modelerCreatePage, processName, fileName) {
|
|
309
|
+
await modelerHomePage.clickDiagramTypeDropdown();
|
|
310
|
+
await modelerHomePage.clickUploadFilesButton();
|
|
311
|
+
await (0, fileUpload_1.uploadFile)(page, fileName + '.bpmn');
|
|
312
|
+
await modelerHomePage.clickProcessDiagram(fileName);
|
|
313
|
+
await modelerCreatePage.clickDiagramBreadcrumb();
|
|
314
|
+
await modelerCreatePage.clickEditDiagramNameButton();
|
|
315
|
+
await modelerCreatePage.enterDiagramName(processName);
|
|
316
|
+
await (0, sleep_1.sleep)(1000);
|
|
317
|
+
await modelerCreatePage.clickGeneralPropertiesPanel();
|
|
318
|
+
await modelerCreatePage.clickIdInput();
|
|
319
|
+
await modelerCreatePage.fillIdInput(processName);
|
|
320
|
+
await (0, sleep_1.sleep)(10000);
|
|
321
|
+
}
|
|
322
|
+
exports.modelDiagramFromFile = modelDiagramFromFile;
|
|
@@ -6,6 +6,7 @@ const _setup_1 = require("../../test-setup.js");
|
|
|
6
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
7
|
const KeycloakUtils_1 = require("../../pages/SM-8.7/KeycloakUtils");
|
|
8
8
|
const loggingUtils_1 = require("../../utils/loggingUtils");
|
|
9
|
+
const UtlitiesPage_1 = require("../../pages/SM-8.7/UtlitiesPage");
|
|
9
10
|
SM_8_7_1.test.describe.configure({ mode: 'parallel' });
|
|
10
11
|
SM_8_7_1.test.describe('Deploy and run a process in Play', () => {
|
|
11
12
|
SM_8_7_1.test.beforeEach(async ({ navigationPage, identityPage, identityTenantPage, keycloakLoginPage, keycloakAdminPage, }, testInfo) => {
|
|
@@ -17,7 +18,7 @@ SM_8_7_1.test.describe('Deploy and run a process in Play', () => {
|
|
|
17
18
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
18
19
|
(0, loggingUtils_1.cleanupTestLogging)();
|
|
19
20
|
});
|
|
20
|
-
(0, SM_8_7_1.test)('User Tasks and Service Task', async ({ modelerHomePage, modelerCreatePage, playPage, context, navigationPage, }) => {
|
|
21
|
+
(0, SM_8_7_1.test)('User Tasks and Service Task', async ({ page, modelerHomePage, modelerCreatePage, playPage, context, navigationPage, }) => {
|
|
21
22
|
SM_8_7_1.test.slow();
|
|
22
23
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
23
24
|
const processName = 'Play_Test_Process' + randomString;
|
|
@@ -27,39 +28,8 @@ SM_8_7_1.test.describe('Deploy and run a process in Play', () => {
|
|
|
27
28
|
await modelerHomePage.clickCreateNewProjectButton();
|
|
28
29
|
await modelerHomePage.createCrossComponentProjectFolder();
|
|
29
30
|
});
|
|
30
|
-
await SM_8_7_1.test.step('Add A BPMN Template To The Project', async () => {
|
|
31
|
-
await modelerHomePage.clickDiagramTypeDropdown();
|
|
32
|
-
await modelerHomePage.clickBpmnTemplateOption();
|
|
33
|
-
});
|
|
34
31
|
await SM_8_7_1.test.step('Create a BPMN Diagram with user tasks and service task', async () => {
|
|
35
|
-
await (0,
|
|
36
|
-
timeout: 120000,
|
|
37
|
-
});
|
|
38
|
-
await modelerCreatePage.enterDiagramName(processName);
|
|
39
|
-
await (0, sleep_1.sleep)(2000);
|
|
40
|
-
await modelerCreatePage.clickAppendElementButton();
|
|
41
|
-
await modelerCreatePage.clickAppendTaskButton();
|
|
42
|
-
await modelerCreatePage.clickChangeTypeButton();
|
|
43
|
-
await modelerCreatePage.clickUserTaskOption();
|
|
44
|
-
await modelerCreatePage.chooseImplementationOption('zeebeUserTask');
|
|
45
|
-
await modelerCreatePage.clickGeneralPropertiesPanel();
|
|
46
|
-
await modelerCreatePage.clickElemendIdInput();
|
|
47
|
-
await modelerCreatePage.fillElementIdInput('zeebe-user-task' + randomString);
|
|
48
|
-
await (0, sleep_1.sleep)(1000);
|
|
49
|
-
await modelerCreatePage.clickAppendElementButton();
|
|
50
|
-
await modelerCreatePage.clickAppendTaskButton();
|
|
51
|
-
await modelerCreatePage.clickChangeTypeButton();
|
|
52
|
-
await modelerCreatePage.clickServiceTaskOption();
|
|
53
|
-
await modelerCreatePage.clickGeneralPropertiesPanel();
|
|
54
|
-
await modelerCreatePage.clickElemendIdInput();
|
|
55
|
-
await modelerCreatePage.fillElementIdInput('service-task' + randomString);
|
|
56
|
-
await modelerCreatePage.clickTaskDefinitionPropertiesPanel();
|
|
57
|
-
await modelerCreatePage.clickJobTypeInput();
|
|
58
|
-
await modelerCreatePage.fillJobTypeInput('someJob' + randomString);
|
|
59
|
-
await (0, sleep_1.sleep)(1000);
|
|
60
|
-
await modelerCreatePage.clickAppendElementButton();
|
|
61
|
-
await modelerCreatePage.clickAppendEndEventButton();
|
|
62
|
-
await (0, sleep_1.sleep)(2000);
|
|
32
|
+
await (0, UtlitiesPage_1.modelDiagramFromFile)(page, modelerHomePage, modelerCreatePage, processName, 'Play_Test_User_Service_Task');
|
|
63
33
|
});
|
|
64
34
|
await SM_8_7_1.test.step('Open Play', async () => {
|
|
65
35
|
await modelerCreatePage.switchToPlay();
|
|
@@ -69,10 +39,10 @@ SM_8_7_1.test.describe('Deploy and run a process in Play', () => {
|
|
|
69
39
|
await playPage.dismissStartModal();
|
|
70
40
|
await playPage.clickStartInstanceButton();
|
|
71
41
|
await playPage.waitForInstanceDetailsToBeLoaded();
|
|
72
|
-
await playPage.waitForNextElementToBeActive('
|
|
42
|
+
await playPage.waitForNextElementToBeActive('play-user-task');
|
|
73
43
|
await playPage.waitForCompleteJobButtonToBeAvailable();
|
|
74
44
|
await playPage.clickCompleteJobButton();
|
|
75
|
-
await playPage.waitForNextElementToBeActive('service-task'
|
|
45
|
+
await playPage.waitForNextElementToBeActive('play-service-task');
|
|
76
46
|
await playPage.waitForCompleteJobButtonToBeAvailable();
|
|
77
47
|
await playPage.clickCompleteJobButton();
|
|
78
48
|
await playPage.waitForProcessToBeCompleted();
|
|
@@ -103,7 +73,11 @@ SM_8_7_1.test.describe('Deploy and run a process in Play', () => {
|
|
|
103
73
|
await modelerCreatePage.clickSecondPlacedGateway();
|
|
104
74
|
await modelerCreatePage.clickAppendElementButton();
|
|
105
75
|
await modelerCreatePage.clickAppendEndEventButton('parallelGateway');
|
|
106
|
-
await (0,
|
|
76
|
+
await (0, test_1.expect)(modelerCreatePage.generalPanel).toBeVisible({
|
|
77
|
+
timeout: 30000,
|
|
78
|
+
});
|
|
79
|
+
// Wait for modeler background auto-save to complete
|
|
80
|
+
await (0, sleep_1.sleep)(2000);
|
|
107
81
|
});
|
|
108
82
|
await SM_8_7_1.test.step('Open Play', async () => {
|
|
109
83
|
await modelerCreatePage.switchToPlay();
|
|
@@ -120,17 +94,23 @@ SM_8_7_1.test.describe('Deploy and run a process in Play', () => {
|
|
|
120
94
|
await playPage.clickSaveScenarioButton();
|
|
121
95
|
await playPage.enterScenarioName(scenarioName);
|
|
122
96
|
await playPage.confirmSaveScenario();
|
|
123
|
-
await (0,
|
|
97
|
+
await (0, test_1.expect)(playPage.saveScenarioModal).toBeHidden({ timeout: 10000 });
|
|
124
98
|
});
|
|
125
99
|
await SM_8_7_1.test.step('Update the saved scenario', async () => {
|
|
126
100
|
await modelerCreatePage.switchToImplementTab();
|
|
127
|
-
await (0,
|
|
101
|
+
await (0, test_1.expect)(modelerCreatePage.generalPanel).toBeVisible({
|
|
102
|
+
timeout: 30000,
|
|
103
|
+
});
|
|
128
104
|
await modelerCreatePage.clickFirstPlacedGateway();
|
|
129
105
|
await modelerCreatePage.clickAppendElementButton();
|
|
130
106
|
await modelerCreatePage.clickAppendTaskButton();
|
|
131
107
|
await modelerCreatePage.clickConnectToOtherElementButton();
|
|
132
108
|
await modelerCreatePage.clickSecondPlacedGateway();
|
|
133
|
-
await (0,
|
|
109
|
+
await (0, test_1.expect)(modelerCreatePage.generalPanel).toBeVisible({
|
|
110
|
+
timeout: 30000,
|
|
111
|
+
});
|
|
112
|
+
// Wait for modeler background auto-save to complete
|
|
113
|
+
await (0, sleep_1.sleep)(2000);
|
|
134
114
|
await modelerCreatePage.switchToPlay();
|
|
135
115
|
await modelerCreatePage.completePlayConfiguration();
|
|
136
116
|
await playPage.clickStartInstanceButton();
|
|
@@ -4,7 +4,7 @@ const test_1 = require("@playwright/test");
|
|
|
4
4
|
const SM_8_9_1 = require("../../fixtures/SM-8.9");
|
|
5
5
|
const _setup_1 = require("../../test-setup.js");
|
|
6
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
|
-
const
|
|
7
|
+
const UtilitiesPage_1 = require("../../pages/SM-8.9/UtilitiesPage");
|
|
8
8
|
SM_8_9_1.test.describe.configure({ mode: 'parallel' });
|
|
9
9
|
SM_8_9_1.test.describe('Deploy and run a process in Play', () => {
|
|
10
10
|
SM_8_9_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
|
|
@@ -14,49 +14,15 @@ SM_8_9_1.test.describe('Deploy and run a process in Play', () => {
|
|
|
14
14
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
15
15
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
16
16
|
});
|
|
17
|
-
(0, SM_8_9_1.test)('User Tasks and Service Task', async ({ modelerHomePage, modelerCreatePage, playPage, }) => {
|
|
17
|
+
(0, SM_8_9_1.test)('User Tasks and Service Task', async ({ page, modelerHomePage, modelerCreatePage, playPage, }) => {
|
|
18
18
|
SM_8_9_1.test.slow();
|
|
19
19
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
20
20
|
const processName = 'Play_Test_Process' + randomString;
|
|
21
21
|
await SM_8_9_1.test.step('Open Cross Component Test Project', async () => {
|
|
22
22
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
23
23
|
});
|
|
24
|
-
await SM_8_9_1.test.step('Add A BPMN Template To The Project', async () => {
|
|
25
|
-
await modelerHomePage.clickDiagramTypeDropdown();
|
|
26
|
-
await modelerHomePage.clickBpmnTemplateOption();
|
|
27
|
-
});
|
|
28
24
|
await SM_8_9_1.test.step('Create a BPMN Diagram with user tasks and service task', async () => {
|
|
29
|
-
await (0,
|
|
30
|
-
timeout: 120000,
|
|
31
|
-
});
|
|
32
|
-
await modelerCreatePage.enterDiagramName(processName);
|
|
33
|
-
await (0, sleep_1.sleep)(2000);
|
|
34
|
-
// Add a user task with Zeebe user task implementation
|
|
35
|
-
await modelerCreatePage.clickAppendElementButton();
|
|
36
|
-
await modelerCreatePage.clickAppendTaskButton();
|
|
37
|
-
await modelerCreatePage.clickChangeTypeButton();
|
|
38
|
-
await modelerCreatePage.clickUserTaskOption();
|
|
39
|
-
await modelerCreatePage.chooseImplementationOption('zeebeUserTask');
|
|
40
|
-
await modelerCreatePage.clickGeneralPropertiesPanel();
|
|
41
|
-
await modelerCreatePage.clickElemendIdInput();
|
|
42
|
-
await modelerCreatePage.fillElementIdInput('zeebe-user-task' + randomString);
|
|
43
|
-
await (0, sleep_1.sleep)(1000);
|
|
44
|
-
// Add a service task
|
|
45
|
-
await modelerCreatePage.clickAppendElementButton();
|
|
46
|
-
await modelerCreatePage.clickAppendTaskButton();
|
|
47
|
-
await modelerCreatePage.clickChangeTypeButton();
|
|
48
|
-
await modelerCreatePage.clickServiceTaskOption();
|
|
49
|
-
await modelerCreatePage.clickGeneralPropertiesPanel();
|
|
50
|
-
await modelerCreatePage.clickElemendIdInput();
|
|
51
|
-
await modelerCreatePage.fillElementIdInput('service-task' + randomString);
|
|
52
|
-
await modelerCreatePage.clickTaskDefinitionPropertiesPanel();
|
|
53
|
-
await modelerCreatePage.clickJobTypeInput();
|
|
54
|
-
await modelerCreatePage.fillJobTypeInput('someJob' + randomString);
|
|
55
|
-
await (0, sleep_1.sleep)(1000);
|
|
56
|
-
// Add end event
|
|
57
|
-
await modelerCreatePage.clickAppendElementButton();
|
|
58
|
-
await modelerCreatePage.clickAppendEndEventButton();
|
|
59
|
-
await (0, sleep_1.sleep)(2000);
|
|
25
|
+
await (0, UtilitiesPage_1.modelDiagramFromFile)(page, modelerHomePage, modelerCreatePage, processName, 'Play_Test_User_Service_Task');
|
|
60
26
|
});
|
|
61
27
|
await SM_8_9_1.test.step('Open Play', async () => {
|
|
62
28
|
await modelerCreatePage.switchToPlay();
|
|
@@ -66,10 +32,10 @@ SM_8_9_1.test.describe('Deploy and run a process in Play', () => {
|
|
|
66
32
|
await playPage.dismissStartModal();
|
|
67
33
|
await playPage.clickStartInstanceButton();
|
|
68
34
|
await playPage.waitForInstanceDetailsToBeLoaded();
|
|
69
|
-
await playPage.waitForNextElementToBeActive('
|
|
35
|
+
await playPage.waitForNextElementToBeActive('play-user-task');
|
|
70
36
|
await playPage.waitForCompleteJobButtonToBeAvailable();
|
|
71
37
|
await playPage.clickCompleteJobButton();
|
|
72
|
-
await playPage.waitForNextElementToBeActive('service-task'
|
|
38
|
+
await playPage.waitForNextElementToBeActive('play-service-task');
|
|
73
39
|
await playPage.waitForCompleteJobButtonToBeAvailable();
|
|
74
40
|
await playPage.clickCompleteJobButton();
|
|
75
41
|
await playPage.waitForProcessToBeCompleted();
|
|
@@ -97,7 +63,11 @@ SM_8_9_1.test.describe('Deploy and run a process in Play', () => {
|
|
|
97
63
|
await modelerCreatePage.clickSecondPlacedGateway();
|
|
98
64
|
await modelerCreatePage.clickAppendElementButton();
|
|
99
65
|
await modelerCreatePage.clickAppendEndEventButton('parallelGateway');
|
|
100
|
-
await (0,
|
|
66
|
+
await (0, test_1.expect)(modelerCreatePage.generalPanel).toBeVisible({
|
|
67
|
+
timeout: 30000,
|
|
68
|
+
});
|
|
69
|
+
// Wait for modeler background auto-save to complete
|
|
70
|
+
await (0, sleep_1.sleep)(2000);
|
|
101
71
|
});
|
|
102
72
|
await SM_8_9_1.test.step('Open Play', async () => {
|
|
103
73
|
await modelerCreatePage.switchToPlay();
|
|
@@ -114,17 +84,23 @@ SM_8_9_1.test.describe('Deploy and run a process in Play', () => {
|
|
|
114
84
|
await playPage.clickSaveScenarioButton();
|
|
115
85
|
await playPage.enterScenarioName(scenarioName);
|
|
116
86
|
await playPage.confirmSaveScenario();
|
|
117
|
-
await (0,
|
|
87
|
+
await (0, test_1.expect)(playPage.saveScenarioModal).toBeHidden({ timeout: 10000 });
|
|
118
88
|
});
|
|
119
89
|
await SM_8_9_1.test.step('Update the saved scenario', async () => {
|
|
120
90
|
await modelerCreatePage.switchToImplementTab();
|
|
121
|
-
await (0,
|
|
91
|
+
await (0, test_1.expect)(modelerCreatePage.generalPanel).toBeVisible({
|
|
92
|
+
timeout: 30000,
|
|
93
|
+
});
|
|
122
94
|
await modelerCreatePage.clickFirstPlacedGateway();
|
|
123
95
|
await modelerCreatePage.clickAppendElementButton();
|
|
124
96
|
await modelerCreatePage.clickAppendTaskButton();
|
|
125
97
|
await modelerCreatePage.clickConnectToOtherElementButton();
|
|
126
98
|
await modelerCreatePage.clickSecondPlacedGateway();
|
|
127
|
-
await (0,
|
|
99
|
+
await (0, test_1.expect)(modelerCreatePage.generalPanel).toBeVisible({
|
|
100
|
+
timeout: 30000,
|
|
101
|
+
});
|
|
102
|
+
// Wait for modeler background auto-save to complete
|
|
103
|
+
await (0, sleep_1.sleep)(2000);
|
|
128
104
|
await modelerCreatePage.switchToPlay();
|
|
129
105
|
// After diagram modification, Play may show a "Continue" button
|
|
130
106
|
// to redeploy, or it may show the diagram directly. Try clicking
|