From cc605e61fb1d48d41e94307a4d5ea7df64535deb Mon Sep 17 00:00:00 2001 From: Ritvi Bhatt Date: Tue, 14 Jan 2025 09:21:36 -0800 Subject: [PATCH] add back reporting tests Signed-off-by: Ritvi Bhatt --- .../6_notebooks.spec.js | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js b/cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js index 13948f00a..99efd8245 100644 --- a/cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js +++ b/cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js @@ -130,35 +130,35 @@ describe('Test reporting integration if plugin installed', () => { cy.get('body').contains('Please continue report generation in the new tab'); }); - // it('Create in-context PNG report from notebook', () => { - // cy.get('#reportingActionsButton').click(); - // cy.get('button.euiContextMenuItem:nth-child(2)') - // .contains('Download PNG') - // .click(); - // cy.get('body').contains('Please continue report generation in the new tab'); - // }); - - // it('Create on-demand report definition from context menu', () => { - // cy.get('#reportingActionsButton').click(); - // cy.get('button.euiContextMenuItem:nth-child(3)') - // .contains('Create report definition') - // .click(); - // cy.location('pathname', { timeout: delayTime * 3 }).should( - // 'include', - // '/reports-dashboards' - // ); - // cy.get('#reportSettingsName').type('Create notebook on-demand report'); - // cy.get('#createNewReportDefinition').click({ force: true }); - // }); - - // it('View reports homepage from context menu', () => { - // cy.get('#reportingActionsButton').click(); - // cy.get('button.euiContextMenuItem:nth-child(4)') - // .contains('View reports') - // .click(); - // cy.location('pathname', { timeout: delayTime * 3 }).should( - // 'include', - // '/reports-dashboards' - // ); - // }); + it('Create in-context PNG report from notebook', () => { + cy.get('#reportingActionsButton').click(); + cy.get('button.euiContextMenuItem:nth-child(2)') + .contains('Download PNG') + .click(); + cy.get('body').contains('Please continue report generation in the new tab'); + }); + + it('Create on-demand report definition from context menu', () => { + cy.get('#reportingActionsButton').click(); + cy.get('button.euiContextMenuItem:nth-child(3)') + .contains('Create report definition') + .click(); + cy.location('pathname', { timeout: delayTime * 3 }).should( + 'include', + '/reports-dashboards' + ); + cy.get('#reportSettingsName').type('Create notebook on-demand report'); + cy.get('#createNewReportDefinition').click({ force: true }); + }); + + it('View reports homepage from context menu', () => { + cy.get('#reportingActionsButton').click(); + cy.get('button.euiContextMenuItem:nth-child(4)') + .contains('View reports') + .click(); + cy.location('pathname', { timeout: delayTime * 3 }).should( + 'include', + '/reports-dashboards' + ); + }); });