@camunda/e2e-test-suite 0.0.1224 → 0.0.1225
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.
|
@@ -11,6 +11,7 @@ declare class OperateHomePage {
|
|
|
11
11
|
readonly licenseKeyTagNonProduction: Locator;
|
|
12
12
|
readonly licenseKeyTagProduction: Locator;
|
|
13
13
|
readonly processPageHeading: Locator;
|
|
14
|
+
readonly processVersionDropdown: Locator;
|
|
14
15
|
constructor(page: Page);
|
|
15
16
|
clickProcessesTab(): Promise<void>;
|
|
16
17
|
closeInformationDialog(): Promise<void>;
|
|
@@ -20,5 +21,6 @@ declare class OperateHomePage {
|
|
|
20
21
|
fillVariableValueInput(value: string): Promise<void>;
|
|
21
22
|
clickSaveVariableButton(): Promise<void>;
|
|
22
23
|
openProcess(processName: string): Promise<void>;
|
|
24
|
+
selectProcessVersion(version?: string): Promise<void>;
|
|
23
25
|
}
|
|
24
26
|
export { OperateHomePage };
|
|
@@ -17,6 +17,7 @@ class OperateHomePage {
|
|
|
17
17
|
licenseKeyTagNonProduction;
|
|
18
18
|
licenseKeyTagProduction;
|
|
19
19
|
processPageHeading;
|
|
20
|
+
processVersionDropdown;
|
|
20
21
|
constructor(page) {
|
|
21
22
|
this.page = page;
|
|
22
23
|
this.operateBanner = page.getByRole('link', { name: 'Camunda logo Operate' });
|
|
@@ -41,6 +42,9 @@ class OperateHomePage {
|
|
|
41
42
|
this.processPageHeading = page
|
|
42
43
|
.getByTestId('expanded-panel')
|
|
43
44
|
.getByRole('heading', { name: 'Process' });
|
|
45
|
+
this.processVersionDropdown = page.getByRole('combobox', {
|
|
46
|
+
name: 'Select a Process Version',
|
|
47
|
+
});
|
|
44
48
|
}
|
|
45
49
|
async clickProcessesTab() {
|
|
46
50
|
await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.processesTab, {
|
|
@@ -105,5 +109,25 @@ class OperateHomePage {
|
|
|
105
109
|
async openProcess(processName) {
|
|
106
110
|
await this.page.getByText(processName).click();
|
|
107
111
|
}
|
|
112
|
+
// The Processes page renders the diagram (and its element state overlays)
|
|
113
|
+
// only while a single version is selected; the Dashboard always links with
|
|
114
|
+
// processDefinitionVersion=all.
|
|
115
|
+
async selectProcessVersion(version = '1') {
|
|
116
|
+
await (0, test_1.expect)(this.processVersionDropdown).toBeEnabled({ timeout: 90000 });
|
|
117
|
+
await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.processVersionDropdown, {
|
|
118
|
+
totalTimeout: 60000,
|
|
119
|
+
visibilityTimeout: 15000,
|
|
120
|
+
});
|
|
121
|
+
await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.page.getByRole('option', { name: version, exact: true }), {
|
|
122
|
+
totalTimeout: 60000,
|
|
123
|
+
visibilityTimeout: 15000,
|
|
124
|
+
preAction: async () => {
|
|
125
|
+
if ((await this.processVersionDropdown.getAttribute('aria-expanded')) !== 'true') {
|
|
126
|
+
await this.processVersionDropdown.click({ timeout: 15000 });
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
});
|
|
130
|
+
await (0, test_1.expect)(this.processVersionDropdown).toHaveAttribute('title', version, { timeout: 60000 });
|
|
131
|
+
}
|
|
108
132
|
}
|
|
109
133
|
exports.OperateHomePage = OperateHomePage;
|
|
@@ -259,6 +259,7 @@ SM_8_9_1.test.describe('HTO User Flow Tests', () => {
|
|
|
259
259
|
await SM_8_9_1.test.step('Navigate to Operate and Assert Process Instance', async () => {
|
|
260
260
|
await navigationPage.goToOperate(undefined, credentials2);
|
|
261
261
|
await operateHomePage.openProcess(processName);
|
|
262
|
+
await operateHomePage.selectProcessVersion('1');
|
|
262
263
|
await operateProcessInstancePage.activeUserTaskIconVisibleAssertion(`state-overlay-${userTaskName}1-active`);
|
|
263
264
|
await operateProcessInstancePage.activeUserTaskIconNotVisibleAssertion(`state-overlay-${userTaskName}2-active`);
|
|
264
265
|
});
|
|
@@ -357,6 +358,7 @@ SM_8_9_1.test.describe('HTO User Flow Tests', () => {
|
|
|
357
358
|
await SM_8_9_1.test.step('Navigate to Operate and Assert Process Instance', async () => {
|
|
358
359
|
await navigationPage.goToOperate(undefined, credentials);
|
|
359
360
|
await operateHomePage.openProcess(processName);
|
|
361
|
+
await operateHomePage.selectProcessVersion('1');
|
|
360
362
|
await operateProcessInstancePage.activeUserTaskIconVisibleAssertion(`state-overlay-${userTaskName}1-active`);
|
|
361
363
|
await operateProcessInstancePage.activeUserTaskIconVisibleAssertion(`state-overlay-${userTaskName}2-active`);
|
|
362
364
|
await operateProcessInstancePage.activeUserTaskIconNotVisibleAssertion(`state-overlay-${userTaskName}3-active`);
|