@camunda/e2e-test-suite 0.0.1280 → 0.0.1282
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.
|
@@ -16,26 +16,20 @@ class ClusterDetailsPage {
|
|
|
16
16
|
const matchesLink = (url) => typeof link === 'string'
|
|
17
17
|
? url.href.startsWith(link)
|
|
18
18
|
: link.test(url.href);
|
|
19
|
-
//
|
|
20
|
-
//
|
|
19
|
+
// Always serve a stub document: the popup only has to commit the URL
|
|
20
|
+
// Console navigated to, and Playwright withholds the "popup" event until
|
|
21
|
+
// this handler resolves, so fetching the real site would tie the popup
|
|
22
|
+
// wait to the external site's latency.
|
|
21
23
|
const handler = async (route) => {
|
|
22
24
|
if (route.request().resourceType() !== 'document') {
|
|
23
25
|
await route.continue();
|
|
24
26
|
return;
|
|
25
27
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const url = route.request().url();
|
|
32
|
-
console.warn(`External link ${url} unreachable, stubbing: ${error}`);
|
|
33
|
-
await route.fulfill({
|
|
34
|
-
status: 200,
|
|
35
|
-
contentType: 'text/html',
|
|
36
|
-
body: '<html><body></body></html>',
|
|
37
|
-
});
|
|
38
|
-
}
|
|
28
|
+
await route.fulfill({
|
|
29
|
+
status: 200,
|
|
30
|
+
contentType: 'text/html',
|
|
31
|
+
body: '<html><body></body></html>',
|
|
32
|
+
});
|
|
39
33
|
};
|
|
40
34
|
await context.route(matchesLink, handler);
|
|
41
35
|
try {
|
|
@@ -4,6 +4,7 @@ const _setup_1 = require("../../test-setup.js");
|
|
|
4
4
|
const SM_8_10_1 = require("../../fixtures/SM-8.10");
|
|
5
5
|
const test_1 = require("@playwright/test");
|
|
6
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
|
+
const env_1 = require("../../utils/env");
|
|
7
8
|
const UtilitiesPage_1 = require("../../pages/SM-8.10/UtilitiesPage");
|
|
8
9
|
if (process.env.IS_MIGRATION === 'true') {
|
|
9
10
|
SM_8_10_1.test.describe.configure({ mode: 'parallel' });
|
|
@@ -32,8 +33,7 @@ if (process.env.IS_MIGRATION === 'true') {
|
|
|
32
33
|
await navigationPage.goToOCAdmin();
|
|
33
34
|
});
|
|
34
35
|
});
|
|
35
|
-
|
|
36
|
-
SM_8_10_1.test.skip('Assert Most Common Flow User Flow With All Apps Process Migration', async ({ page, navigationPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, taskPanelPage, }) => {
|
|
36
|
+
(0, SM_8_10_1.test)('Assert Most Common Flow User Flow With All Apps Process Migration', async ({ page, navigationPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, taskPanelPage, }) => {
|
|
37
37
|
SM_8_10_1.test.slow();
|
|
38
38
|
const processName = 'Zeebe_User_Task_Process';
|
|
39
39
|
await SM_8_10_1.test.step('View Process Instance in Operate', async () => {
|
|
@@ -57,6 +57,18 @@ if (process.env.IS_MIGRATION === 'true') {
|
|
|
57
57
|
timeout: 60000,
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
|
+
});
|
|
61
|
+
// The Optimize assertion is the only part of the migration flow the bug
|
|
62
|
+
// breaks: Operate and Tasklist keep the pre-upgrade instance, while the
|
|
63
|
+
// report the 8.9 smoke test saved is gone after the upgrade. The loss is
|
|
64
|
+
// scoped to the OpenSearch and the Elasticsearch + multi-tenancy upgrade
|
|
65
|
+
// paths; standard Elasticsearch keeps the report, so it still asserts it.
|
|
66
|
+
// Skipped due to bug #56406: https://github.com/camunda/camunda/issues/56406
|
|
67
|
+
(0, SM_8_10_1.test)('Assert Most Common Flow User Flow Report Migration In Optimize', async ({ page, navigationPage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
68
|
+
if (env_1.isOpenSearch || process.env.IS_MT === 'true') {
|
|
69
|
+
SM_8_10_1.test.skip(true, 'Skipped due to bug #56406: https://github.com/camunda/camunda/issues/56406');
|
|
70
|
+
}
|
|
71
|
+
SM_8_10_1.test.slow();
|
|
60
72
|
await SM_8_10_1.test.step('View Report in Optimize', async () => {
|
|
61
73
|
await navigationPage.goToOptimize();
|
|
62
74
|
// Re-open the Collections list on every attempt: the migrated report
|