@camunda/e2e-test-suite 0.0.1263 → 0.0.1264
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.
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TopologyModelerHomePage = void 0;
|
|
4
|
+
const ModelerHomePage_1 = require("../SM-8.10/ModelerHomePage");
|
|
5
|
+
// The topology golden path runs against a mixed-version Hub: an 8.7 chart with
|
|
6
|
+
// the Web Modeler image built from the branch under test. That legacy Modeler
|
|
7
|
+
// has no Workspaces feature, and its Koa server serves an allowlist of client
|
|
8
|
+
// routes only, so a full-page load of the unrouted `/modeler/workspaces` falls
|
|
9
|
+
// through to a hard server 404 whose StaticPages/ErrorPage renders "Not Found".
|
|
10
|
+
// The shared SM-8.10 page object's flag-off detection matches only the Design
|
|
11
|
+
// System SPA's in-app router 404 ("no match for the current location"), so on
|
|
12
|
+
// 8.7 it never recognises the route as absent and its legacy fallback never
|
|
13
|
+
// engages. Widen the signal to also match the legacy hard 404 so
|
|
14
|
+
// ensureWorkspaceOpen falls through to the projects flow on this deployment.
|
|
15
|
+
// Scoped to SM-8.7: the shared object is left untouched for the passing 8.8/8.10
|
|
16
|
+
// consumers (see camunda/c8-cross-component-e2e-tests#3687 for the same fix in
|
|
17
|
+
// the shared object for the SM-8.8 topology spec).
|
|
18
|
+
class TopologyModelerHomePage extends ModelerHomePage_1.ModelerHomePage {
|
|
19
|
+
constructor(page) {
|
|
20
|
+
super(page);
|
|
21
|
+
this.noRouteMatchMessage = page
|
|
22
|
+
.getByText(/no match for the current location/i)
|
|
23
|
+
.or(page.getByText('Not Found', { exact: true }))
|
|
24
|
+
.first();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.TopologyModelerHomePage = TopologyModelerHomePage;
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const test_1 = require("@playwright/test");
|
|
4
4
|
const SM_8_7_1 = require("../../fixtures/SM-8.7");
|
|
5
5
|
const ModelerCreatePage_1 = require("../../pages/SM-8.10/ModelerCreatePage");
|
|
6
|
-
const ModelerHomePage_1 = require("../../pages/SM-8.10/ModelerHomePage");
|
|
7
6
|
const NavigationPage_1 = require("../../pages/SM-8.10/NavigationPage");
|
|
8
7
|
const KeycloakUtils_1 = require("../../pages/SM-8.7/KeycloakUtils");
|
|
8
|
+
const TopologyModelerHomePage_1 = require("../../pages/SM-8.7/TopologyModelerHomePage");
|
|
9
9
|
const UtlitiesPage_1 = require("../../pages/SM-8.7/UtlitiesPage");
|
|
10
10
|
const _setup_1 = require("../../test-setup.js");
|
|
11
11
|
const env_1 = require("../../utils/env");
|
|
@@ -17,7 +17,7 @@ SM_8_7_1.test.afterEach(async ({ page }, testInfo) => {
|
|
|
17
17
|
SM_8_7_1.test.slow();
|
|
18
18
|
const processName = `Topology_Orchestration_${await (0, _setup_1.generateRandomStringAsync)(5)}`;
|
|
19
19
|
const hubNavigationPage = new NavigationPage_1.NavigationPage(page);
|
|
20
|
-
const modelerHomePage = new
|
|
20
|
+
const modelerHomePage = new TopologyModelerHomePage_1.TopologyModelerHomePage(page);
|
|
21
21
|
const modelerCreatePage = new ModelerCreatePage_1.ModelerCreatePage(page);
|
|
22
22
|
(0, KeycloakUtils_1.setAdminUserCredentials)(navigationPage);
|
|
23
23
|
await SM_8_7_1.test.step('Create and start a process in Web Modeler', async () => {
|