@camunda/e2e-test-suite 0.0.1795 → 0.0.1797
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 OptimizeCollectionsPage {
|
|
|
11
11
|
constructor(page: Page);
|
|
12
12
|
clickCreateNewButton(): Promise<void>;
|
|
13
13
|
clickReportOption(): Promise<void>;
|
|
14
|
+
filterAndAssertReportListed(reportName: string): Promise<void>;
|
|
14
15
|
clickMostRecentProcessReport(reportName: string): Promise<void>;
|
|
15
16
|
clickFirstProcessReport(): Promise<void>;
|
|
16
17
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OptimizeCollectionsPage = void 0;
|
|
4
|
+
const test_1 = require("@playwright/test");
|
|
4
5
|
class OptimizeCollectionsPage {
|
|
5
6
|
page;
|
|
6
7
|
collectionsPageHeader;
|
|
@@ -35,6 +36,17 @@ class OptimizeCollectionsPage {
|
|
|
35
36
|
async clickReportOption() {
|
|
36
37
|
await this.reportOption.click();
|
|
37
38
|
}
|
|
39
|
+
async filterAndAssertReportListed(reportName) {
|
|
40
|
+
// The list is paginated and parallel specs keep adding entries, so a report
|
|
41
|
+
// can drop off page 1; filter by name before asserting it is listed.
|
|
42
|
+
const search = this.page.getByPlaceholder(/Search for name/i).first();
|
|
43
|
+
const reportEntry = this.page.getByText(reportName, { exact: true }).first();
|
|
44
|
+
await (0, test_1.expect)(async () => {
|
|
45
|
+
await this.page.reload();
|
|
46
|
+
await search.fill(reportName, { timeout: 30000 });
|
|
47
|
+
await (0, test_1.expect)(reportEntry).toBeVisible({ timeout: 15000 });
|
|
48
|
+
}).toPass({ timeout: 120000, intervals: [5000, 10000, 15000] });
|
|
49
|
+
}
|
|
38
50
|
async clickMostRecentProcessReport(reportName) {
|
|
39
51
|
await this.page.getByText(reportName).click({ timeout: 60000 });
|
|
40
52
|
}
|
|
@@ -294,10 +294,17 @@ class OperateProcessInstancePage {
|
|
|
294
294
|
});
|
|
295
295
|
await actionsMenuButton.or(directButton).first().waitFor({ timeout: 30000 });
|
|
296
296
|
if (await actionsMenuButton.isVisible()) {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
297
|
+
const menuItem = this.page.getByRole('menuitem', {
|
|
298
|
+
name: collapsedMenuItemName,
|
|
299
|
+
});
|
|
300
|
+
// Carbon's MenuButton intermittently drops the first open when the
|
|
301
|
+
// instance header re-renders under load, leaving the flyout unmounted.
|
|
302
|
+
await (0, test_1.expect)(async () => {
|
|
303
|
+
if (!(await menuItem.isVisible())) {
|
|
304
|
+
await actionsMenuButton.click();
|
|
305
|
+
}
|
|
306
|
+
await menuItem.click({ timeout: 5000 });
|
|
307
|
+
}).toPass({ timeout: 30000 });
|
|
301
308
|
return;
|
|
302
309
|
}
|
|
303
310
|
await directButton.click();
|
|
@@ -68,6 +68,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
68
68
|
await operateProcessInstancePage.activeIconAssertion();
|
|
69
69
|
await navigationPage.goToOptimize();
|
|
70
70
|
await page.reload();
|
|
71
|
+
await optimizeHomePage.assertProcessHasBeenImported(processName);
|
|
71
72
|
await optimizeHomePage.clickCollectionsLink();
|
|
72
73
|
await optimizeCollectionsPage.clickCreateNewButton();
|
|
73
74
|
await optimizeCollectionsPage.clickReportOption();
|
|
@@ -92,7 +93,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
92
93
|
await optimizeReportPage.fillReportName(reportName);
|
|
93
94
|
await optimizeReportPage.clickSaveButton();
|
|
94
95
|
await optimizeHomePage.clickCollectionsLink();
|
|
95
|
-
await
|
|
96
|
+
await optimizeCollectionsPage.filterAndAssertReportListed(reportName);
|
|
96
97
|
await optimizeCollectionsPage.clickMostRecentProcessReport(reportName);
|
|
97
98
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, optimizeReportPage.oneUserTaskInstance, 'One user task count', 90000);
|
|
98
99
|
await navigationPage.goToModeler();
|
|
@@ -109,7 +110,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
109
110
|
await navigationPage.goToOptimize();
|
|
110
111
|
await (0, sleep_1.sleep)(10000);
|
|
111
112
|
await optimizeHomePage.clickCollectionsLink();
|
|
112
|
-
await
|
|
113
|
+
await optimizeCollectionsPage.filterAndAssertReportListed(reportName);
|
|
113
114
|
await optimizeCollectionsPage.clickMostRecentProcessReport(reportName);
|
|
114
115
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, optimizeReportPage.twoUserTaskInstance, 'Two user tasks count', 90000);
|
|
115
116
|
await (0, test_1.expect)(optimizeReportPage.oneUserTaskInstance).not.toBeVisible();
|