@camunda/e2e-test-suite 0.0.1222 → 0.0.1223
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.
|
@@ -67,9 +67,16 @@ class NavigationPage {
|
|
|
67
67
|
.and(page.locator(`[href$="${NORMALIZED_ORCHESTRATION_CONTEXT_PATH}/tasklist"]`)))
|
|
68
68
|
.or(page.getByRole('link', { name: 'Camunda logo Tasklist' }))
|
|
69
69
|
.first();
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
// Optimize renders the Design System header (HeaderV2) whenever the nav
|
|
71
|
+
// V2 client config is on -- its home link is aria-label="Camunda
|
|
72
|
+
// Optimize" wrapping an aria-hidden logo svg, so the legacy shell's
|
|
73
|
+
// "Camunda logo Optimize" text no longer exists. Match either so the
|
|
74
|
+
// banner resolves with the flag on or off (mirrors operatePageBanner and
|
|
75
|
+
// pages/8.10/OptimizeHomePage.optimizeBanner).
|
|
76
|
+
this.optimizePageBanner = page
|
|
77
|
+
.getByRole('link', { name: 'Camunda logo Optimize' })
|
|
78
|
+
.or(page.getByRole('link', { name: 'Camunda Optimize', exact: true }))
|
|
79
|
+
.first();
|
|
73
80
|
// TODO: Drop support for Identity once we fully rename it to Admin
|
|
74
81
|
this.identityPageBanner = page
|
|
75
82
|
.getByRole('link', { name: 'Camunda Admin', exact: true })
|
|
@@ -7,7 +7,13 @@ class OptimizeDashboardPage {
|
|
|
7
7
|
filterTable;
|
|
8
8
|
constructor(page) {
|
|
9
9
|
this.page = page;
|
|
10
|
-
|
|
10
|
+
// Optimize's nav V2 shell renames the process-overview search input's
|
|
11
|
+
// placeholder from "Filter table" to "Search for name...", so the legacy
|
|
12
|
+
// placeholder resolves nothing there. Match either.
|
|
13
|
+
this.filterTable = page
|
|
14
|
+
.getByPlaceholder('Filter table')
|
|
15
|
+
.or(page.getByPlaceholder('Search for name'))
|
|
16
|
+
.first();
|
|
11
17
|
}
|
|
12
18
|
async clickFilterTable() {
|
|
13
19
|
await this.filterTable.click({ timeout: 180000 });
|
|
@@ -14,14 +14,25 @@ class OptimizeHomePage {
|
|
|
14
14
|
licenseKeyTagProduction;
|
|
15
15
|
constructor(page) {
|
|
16
16
|
this.page = page;
|
|
17
|
+
// Nav V2 also moved the app links out of the header and into a sidebar
|
|
18
|
+
// (`<nav aria-label="Main navigation">`), so scoping to role=banner
|
|
19
|
+
// resolves nothing there. Match the sidebar and keep the legacy
|
|
20
|
+
// header-scoped lookup as a fallback so both shells resolve.
|
|
17
21
|
this.collectionsLink = page
|
|
18
|
-
.getByRole('
|
|
19
|
-
.getByRole('link', { name: 'Collections' })
|
|
22
|
+
.getByRole('navigation', { name: 'Main navigation' })
|
|
23
|
+
.getByRole('link', { name: 'Collections' })
|
|
24
|
+
.or(page.getByRole('banner').getByRole('link', { name: 'Collections' }))
|
|
25
|
+
.first();
|
|
20
26
|
this.dashboardLink = page.getByRole('link', { name: 'Dashboard' });
|
|
21
27
|
this.modalCloseButton = page.getByText('Close', { exact: true });
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
// Same nav V2 header drift as NavigationPage.optimizePageBanner: the
|
|
29
|
+
// Design System logo link is aria-label="Camunda Optimize", so the legacy
|
|
30
|
+
// shell's combined "Camunda logo Optimize" name no longer exists. Match
|
|
31
|
+
// either shell.
|
|
32
|
+
this.optimizeBanner = page
|
|
33
|
+
.getByRole('link', { name: 'Camunda logo Optimize' })
|
|
34
|
+
.or(page.getByRole('link', { name: 'Camunda Optimize', exact: true }))
|
|
35
|
+
.first();
|
|
25
36
|
this.openUserSettingsButton = page.getByLabel('Open User');
|
|
26
37
|
this.logoutButton = page.getByRole('button', { name: 'Logout' });
|
|
27
38
|
this.licenseKeyTagNonProduction = page
|