Skip to content

Commit 03f8324

Browse files
committed
renaming and adding yaml cr v1alpha1 and v1alpha2
1 parent 4b01216 commit 03f8324

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

web/cypress/views/perses-dashboards.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)