@camunda/e2e-test-suite 0.0.430 → 0.0.432
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,7 +11,10 @@ declare class OperateProcessInstancePage {
|
|
|
11
11
|
readonly connectorResultVariableName: (name: string) => Locator;
|
|
12
12
|
readonly variablesList: Locator;
|
|
13
13
|
readonly messageVariable: Locator;
|
|
14
|
+
readonly whatsNewPopUp: Locator;
|
|
15
|
+
readonly gotItButton: Locator;
|
|
14
16
|
constructor(page: Page);
|
|
17
|
+
closePopOverIfVisible(): Promise<void>;
|
|
15
18
|
connectorResultVariableValue(variableName: string): Promise<Locator>;
|
|
16
19
|
reload(): Promise<void>;
|
|
17
20
|
assertProcessCompleteStatusWithRetry(timeout?: number, maxRetries?: number): Promise<void>;
|
|
@@ -15,6 +15,8 @@ class OperateProcessInstancePage {
|
|
|
15
15
|
connectorResultVariableName;
|
|
16
16
|
variablesList;
|
|
17
17
|
messageVariable;
|
|
18
|
+
whatsNewPopUp;
|
|
19
|
+
gotItButton;
|
|
18
20
|
constructor(page) {
|
|
19
21
|
this.page = page;
|
|
20
22
|
this.diagram = page.getByTestId('diagram');
|
|
@@ -35,6 +37,18 @@ class OperateProcessInstancePage {
|
|
|
35
37
|
this.connectorResultVariableName = (name) => page.getByTestId('variable-' + name);
|
|
36
38
|
this.variablesList = page.getByTestId('variables-list');
|
|
37
39
|
this.messageVariable = page.getByTestId('variable-message');
|
|
40
|
+
this.whatsNewPopUp = page.getByRole('heading', {
|
|
41
|
+
name: "Here's what moved in Operate",
|
|
42
|
+
});
|
|
43
|
+
this.gotItButton = page.getByRole('button', { name: 'Got it' });
|
|
44
|
+
}
|
|
45
|
+
async closePopOverIfVisible() {
|
|
46
|
+
await (0, test_1.expect)(this.page.getByText('Instance History').first()).toBeVisible({
|
|
47
|
+
timeout: 60000,
|
|
48
|
+
});
|
|
49
|
+
if (await this.whatsNewPopUp.isVisible()) {
|
|
50
|
+
await this.gotItButton.click();
|
|
51
|
+
}
|
|
38
52
|
}
|
|
39
53
|
async connectorResultVariableValue(variableName) {
|
|
40
54
|
return await this.page.getByTestId(variableName).locator('td').last();
|
|
@@ -4,7 +4,6 @@ const test_1 = require("@playwright/test");
|
|
|
4
4
|
const _8_8_1 = require("../../fixtures/8.8");
|
|
5
5
|
const _setup_1 = require("../../test-setup.js");
|
|
6
6
|
const UtilitiesPage_1 = require("../../pages/8.8/UtilitiesPage");
|
|
7
|
-
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
8
7
|
const users_1 = require("../../utils/users");
|
|
9
8
|
const testUser = (0, users_1.getTestUser)('twentyFirstUser');
|
|
10
9
|
_8_8_1.test.describe.configure({ mode: 'parallel' });
|
|
@@ -17,58 +16,42 @@ _8_8_1.test.describe('Navigation Tests', () => {
|
|
|
17
16
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
18
17
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
19
18
|
});
|
|
20
|
-
(0, _8_8_1.test)('
|
|
21
|
-
await
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
timeout: 120000,
|
|
26
|
-
});
|
|
27
|
-
await modelerHomePage.clickMessageBanner();
|
|
19
|
+
(0, _8_8_1.test)('Navigate to Web Modeler', async ({ appsPage, modelerHomePage }) => {
|
|
20
|
+
await appsPage.clickCamundaApps();
|
|
21
|
+
await appsPage.clickModeler();
|
|
22
|
+
await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
|
|
23
|
+
timeout: 120000,
|
|
28
24
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
await
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
await
|
|
44
|
-
|
|
45
|
-
await appsPage.clickOptimize(clusterName);
|
|
46
|
-
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(page, optimizeHomePage.optimizeBanner, {
|
|
47
|
-
visibilityTimeout: 20000,
|
|
48
|
-
postAction: async () => {
|
|
49
|
-
await page.reload();
|
|
50
|
-
},
|
|
51
|
-
});
|
|
25
|
+
});
|
|
26
|
+
(0, _8_8_1.test)('Navigate to Console', async ({ appsPage, homePage }) => {
|
|
27
|
+
await appsPage.clickCamundaApps();
|
|
28
|
+
await appsPage.clickConsoleLink();
|
|
29
|
+
await (0, test_1.expect)(homePage.consoleBanner).toBeVisible({ timeout: 120000 });
|
|
30
|
+
});
|
|
31
|
+
(0, _8_8_1.test)('Navigate to Operate', async ({ appsPage, operateHomePage }) => {
|
|
32
|
+
await appsPage.clickCamundaApps();
|
|
33
|
+
await appsPage.clickOperate(clusterName);
|
|
34
|
+
await (0, test_1.expect)(operateHomePage.operateBanner).toBeVisible({ timeout: 120000 });
|
|
35
|
+
});
|
|
36
|
+
(0, _8_8_1.test)('Navigate to Optimize', async ({ appsPage, optimizeHomePage }) => {
|
|
37
|
+
await appsPage.clickCamundaApps();
|
|
38
|
+
await appsPage.clickOptimize(clusterName);
|
|
39
|
+
await (0, test_1.expect)(optimizeHomePage.optimizeBanner).toBeVisible({
|
|
40
|
+
timeout: 120000,
|
|
52
41
|
});
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
await page.reload();
|
|
60
|
-
},
|
|
61
|
-
});
|
|
42
|
+
});
|
|
43
|
+
(0, _8_8_1.test)('Navigate to Tasklist', async ({ appsPage, taskPanelPage }) => {
|
|
44
|
+
await appsPage.clickCamundaApps();
|
|
45
|
+
await appsPage.clickTasklist(clusterName);
|
|
46
|
+
await (0, test_1.expect)(taskPanelPage.taskListPageBanner).toBeVisible({
|
|
47
|
+
timeout: 120000,
|
|
62
48
|
});
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
await page.reload();
|
|
70
|
-
},
|
|
71
|
-
});
|
|
49
|
+
});
|
|
50
|
+
(0, _8_8_1.test)('Navigate to Identity', async ({ appsPage, ocIdentityHomePage }) => {
|
|
51
|
+
await appsPage.clickCamundaApps();
|
|
52
|
+
await appsPage.clickIdentity(clusterName);
|
|
53
|
+
await (0, test_1.expect)(ocIdentityHomePage.identityBanner).toBeVisible({
|
|
54
|
+
timeout: 120000,
|
|
72
55
|
});
|
|
73
56
|
});
|
|
74
57
|
});
|
|
@@ -92,6 +92,7 @@ _8_8_1.test.describe('Smoke Tests', () => {
|
|
|
92
92
|
await (0, test_1.expect)(operateTabProcessInstancePage.activeIcon).toBeVisible({
|
|
93
93
|
timeout: 300000,
|
|
94
94
|
});
|
|
95
|
+
await operateTabProcessInstancePage.closePopOverIfVisible();
|
|
95
96
|
await operateTabAppsPage.clickCamundaApps();
|
|
96
97
|
await operateTabAppsPage.clickTasklist(clusterName);
|
|
97
98
|
await (0, UtilitiesPage_1.completeTaskWithRetry)(operateTabTaskPanelPage, operateTabTaskDetailsPage, `${userTaskName}1`, 'Medium');
|
|
@@ -174,9 +175,14 @@ _8_8_1.test.describe('Smoke Tests', () => {
|
|
|
174
175
|
});
|
|
175
176
|
await modelerCreatePage.clickViewProcessInstanceLink();
|
|
176
177
|
const operateTab = await page.waitForEvent('popup', { timeout: 30000 });
|
|
178
|
+
const operateTabHomePage = new OperateHomePage_1.OperateHomePage(operateTab);
|
|
179
|
+
const operateTabProcessesPage = new OperateProcessesPage_1.OperateProcessesPage(operateTab);
|
|
177
180
|
const operateTabProcessInstancePage = new OperateProcessInstancePage_1.OperateProcessInstancePage(operateTab);
|
|
181
|
+
await operateTabHomePage.clickProcessesTab();
|
|
182
|
+
await operateTabProcessesPage.clickProcessCompletedCheckbox();
|
|
183
|
+
await operateTabProcessesPage.clickProcessInstanceLink(processName);
|
|
178
184
|
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(page, operateTabProcessInstancePage.completedIcon, { totalTimeout: 60000, maxRetries: 5 });
|
|
179
|
-
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(page, operateTabProcessInstancePage.variablesList, { totalTimeout: 60000, maxRetries:
|
|
185
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(page, operateTabProcessInstancePage.variablesList, { totalTimeout: 60000, maxRetries: 5 });
|
|
180
186
|
await (0, test_1.expect)(operateTabProcessInstancePage.connectorResultVariableName('message')).toBeVisible({
|
|
181
187
|
timeout: 15000,
|
|
182
188
|
});
|