File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ export const persesDashboardsPage = {
397397 cy . byDataTestID ( persesMUIDataTestIDs . panelHeader ) . find ( 'h6' ) . contains ( name ) . should ( 'not.exist' ) ;
398398 } ,
399399
400- downloadDashboard : ( clearFolder : boolean , dashboardName : string , format : 'JSON' | 'YAML' | 'YAML (CR)' ) => {
400+ downloadDashboard : ( clearFolder : boolean , dashboardName : string , format : 'JSON' | 'YAML' | 'YAML (CR v1alpha1)' | 'YAML (CR v1alpha2 )') => {
401401 cy . log ( 'persesDashboardsPage.downloadDashboard' ) ;
402402
403403 if ( clearFolder ) {
@@ -408,8 +408,10 @@ export const persesDashboardsPage = {
408408 cy . byPFRole ( 'menuitem' ) . contains ( format ) . should ( 'be.visible' ) . click ( { force : true } ) ;
409409 cy . wait ( 1000 ) ;
410410 let filename : string ;
411- if ( format === 'YAML (CR)' ) {
412- filename = dashboardName + '-cr' + '.yaml' ;
411+ if ( format === 'YAML (CR v1alpha1)' ) {
412+ filename = dashboardName + '-cr-v1alpha1' + '.yaml' ;
413+ } else if ( format === 'YAML (CR v1alpha2)' ) {
414+ filename = dashboardName + '-cr-v1alpha2' + '.yaml' ;
413415 } else {
414416 filename = dashboardName + '.' + format . toLowerCase ( ) ;
415417 }
You can’t perform that action at this time.
0 commit comments