@@ -2,6 +2,7 @@ import { persesDashboardsDashboardDropdownCOO, persesDashboardsDashboardDropdown
22import { commonPages } from '../../views/common' ;
33import { listPersesDashboardsPage } from "../../views/perses-dashboards-list-dashboards" ;
44import { persesDashboardsPage } from '../../views/perses-dashboards' ;
5+ import { nav } from '../../views/nav' ;
56
67export interface PerspectiveConfig {
78 name : string ;
@@ -69,10 +70,10 @@ export function testCOOListPersesNamespace(perspective: PerspectiveConfig) {
6970 listPersesDashboardsPage . emptyState ( ) ;
7071 listPersesDashboardsPage . countDashboards ( '0' ) ;
7172
72- cy . log ( `1.11. Clear all filters` ) ;
73- listPersesDashboardsPage . clearAllFilters ( ) ;
73+ nav . sidenav . clickNavLink ( [ 'Observe' , 'Alerting' ] ) ;
74+ nav . sidenav . clickNavLink ( [ 'Observe' , 'Dashboards (Perses)' ] ) ;
7475
75- cy . log ( `1.12 . Click on a dashboard` ) ;
76+ cy . log ( `1.11 . Click on a dashboard` ) ;
7677 listPersesDashboardsPage . clickDashboard ( persesDashboardsDashboardDropdownCOO . APM_DASHBOARD [ 0 ] ) ;
7778 //TODO: change back to shouldBeLoaded when customizable-dashboards gets merged
7879 persesDashboardsPage . shouldBeLoaded1 ( ) ;
@@ -121,8 +122,8 @@ export function testCOOListPersesNamespace(perspective: PerspectiveConfig) {
121122 listPersesDashboardsPage . countDashboards ( '0' ) ;
122123
123124 cy . log ( `2.7. Search for the renamed dashboard` ) ;
124- listPersesDashboardsPage . clearAllFilters ( ) ;
125- cy . changeNamespace ( 'All Projects' ) ;
125+ nav . sidenav . clickNavLink ( [ 'Observe' , 'Alerting' ] ) ;
126+ nav . sidenav . clickNavLink ( [ 'Observe' , 'Dashboards (Perses)' ] ) ;
126127 listPersesDashboardsPage . filter . byName ( persesDashboardsDashboardDropdownPersesDev . PERSES_DASHBOARD_SAMPLE [ 0 ] + ' - Renamed' ) ;
127128 listPersesDashboardsPage . countDashboards ( '0' ) ;
128129 listPersesDashboardsPage . clearAllFilters ( ) ;
0 commit comments