Skip to content

Commit

Permalink
add back reporting tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ritvi Bhatt <[email protected]>
  • Loading branch information
Ritvi Bhatt committed Jan 14, 2025
1 parent 23ed5b3 commit cc605e6
Showing 1 changed file with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
});
});

0 comments on commit cc605e6

Please sign in to comment.