@camunda/e2e-test-suite 0.0.1226 → 0.0.1227
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.
|
@@ -7,12 +7,13 @@ class OptimizeDashboardPage {
|
|
|
7
7
|
filterTable;
|
|
8
8
|
constructor(page) {
|
|
9
9
|
this.page = page;
|
|
10
|
-
// Optimize's
|
|
11
|
-
// placeholder
|
|
12
|
-
//
|
|
10
|
+
// Optimize's Design System EntityList replaced the Carbon table toolbar
|
|
11
|
+
// search (placeholder "Filter table") with a plain input whose placeholder
|
|
12
|
+
// is the `home.search.name` translation, "Search for name...". Match
|
|
13
|
+
// either so the filter resolves on both shells.
|
|
13
14
|
this.filterTable = page
|
|
14
|
-
.getByPlaceholder(
|
|
15
|
-
.or(page.getByPlaceholder('
|
|
15
|
+
.getByPlaceholder(/Search for name/i)
|
|
16
|
+
.or(page.getByPlaceholder('Filter table'))
|
|
16
17
|
.first();
|
|
17
18
|
}
|
|
18
19
|
async clickFilterTable() {
|
|
@@ -14,10 +14,9 @@ class OptimizeHomePage {
|
|
|
14
14
|
licenseKeyTagProduction;
|
|
15
15
|
constructor(page) {
|
|
16
16
|
this.page = page;
|
|
17
|
-
//
|
|
18
|
-
// (`<nav aria-label="Main navigation">`),
|
|
19
|
-
//
|
|
20
|
-
// header-scoped lookup as a fallback so both shells resolve.
|
|
17
|
+
// Optimize's Design System navigation moved Dashboards/Collections out of
|
|
18
|
+
// the top banner into a left sidebar (`<nav aria-label="Main navigation">`),
|
|
19
|
+
// so a banner-scoped link can no longer resolve. Match either shell.
|
|
21
20
|
this.collectionsLink = page
|
|
22
21
|
.getByRole('navigation', { name: 'Main navigation' })
|
|
23
22
|
.getByRole('link', { name: 'Collections' })
|
|
@@ -25,10 +24,9 @@ class OptimizeHomePage {
|
|
|
25
24
|
.first();
|
|
26
25
|
this.dashboardLink = page.getByRole('link', { name: 'Dashboard' });
|
|
27
26
|
this.modalCloseButton = page.getByText('Close', { exact: true });
|
|
28
|
-
//
|
|
29
|
-
//
|
|
30
|
-
//
|
|
31
|
-
// either shell.
|
|
27
|
+
// See NavigationPage.optimizePageBanner: the Design System header renders
|
|
28
|
+
// the logo as its own anchor labelled "Camunda Optimize", so the legacy
|
|
29
|
+
// combined "Camunda logo Optimize" name is gone. Match either shell.
|
|
32
30
|
this.optimizeBanner = page
|
|
33
31
|
.getByRole('link', { name: 'Camunda logo Optimize' })
|
|
34
32
|
.or(page.getByRole('link', { name: 'Camunda Optimize', exact: true }))
|