@camunda/e2e-test-suite 0.0.1245 → 0.0.1246
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.
|
@@ -78,10 +78,13 @@ class ModelerHomePage {
|
|
|
78
78
|
constructor(page) {
|
|
79
79
|
this.page = page;
|
|
80
80
|
this.processApplicationPage = new ProcessApplicationPage_1.ProcessApplicationPage(page);
|
|
81
|
-
// Matches
|
|
82
|
-
// why the Design System branch excludes the /login href
|
|
81
|
+
// Matches every Modeler shell -- see NavigationPage.modelerPageBanner for
|
|
82
|
+
// why the Design System branch excludes the /login href and why both the
|
|
83
|
+
// pre-rebrand "Camunda Modeler home" and post-rebrand "Camunda Hub home"
|
|
84
|
+
// aria-labels are matched.
|
|
83
85
|
this.modelerPageBanner = page
|
|
84
|
-
.getByRole('link', { name: 'Camunda
|
|
86
|
+
.getByRole('link', { name: 'Camunda Hub home' })
|
|
87
|
+
.or(page.getByRole('link', { name: 'Camunda Modeler home' }))
|
|
85
88
|
.and(page.locator(':not([href$="/login"])'))
|
|
86
89
|
.or(page.locator('a').filter({ hasText: 'Camunda logoModeler' }))
|
|
87
90
|
.first();
|
|
@@ -41,15 +41,17 @@ class NavigationPage {
|
|
|
41
41
|
.or(page.getByRole('link', { name: 'Camunda Operate', exact: true }))
|
|
42
42
|
.first();
|
|
43
43
|
// Web Modeler renders the Design System nav shell (NavShellDs) whenever
|
|
44
|
-
// `design-system-enabled` is on
|
|
45
|
-
// aria-label="Camunda Modeler home"
|
|
46
|
-
//
|
|
47
|
-
//
|
|
44
|
+
// `design-system-enabled` is on. Its home link was
|
|
45
|
+
// aria-label="Camunda Modeler home"; the Camunda Hub rebrand renamed it to
|
|
46
|
+
// aria-label="Camunda Hub home" (still an aria-hidden logo, href .../modeler/),
|
|
47
|
+
// so the legacy shell's "Camunda logoModeler" text no longer exists. The
|
|
48
|
+
// unauthenticated shell reuses the same aria-label pointing at /login, and
|
|
48
49
|
// waitForBanner() gates only on visibility, so exclude that href here:
|
|
49
50
|
// callers use this banner as the logged-in gate.
|
|
50
|
-
// Match
|
|
51
|
+
// Match every shell so the banner resolves flag on or off, pre- or post-rebrand.
|
|
51
52
|
this.modelerPageBanner = page
|
|
52
|
-
.getByRole('link', { name: 'Camunda
|
|
53
|
+
.getByRole('link', { name: 'Camunda Hub home' })
|
|
54
|
+
.or(page.getByRole('link', { name: 'Camunda Modeler home' }))
|
|
53
55
|
.and(page.locator(':not([href$="/login"])'))
|
|
54
56
|
.or(page.locator('a').filter({ hasText: 'Camunda logoModeler' }))
|
|
55
57
|
.first();
|