Skip to content

Commit

Permalink
skip 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 9, 2025
1 parent cf2149c commit b9348a8
Showing 1 changed file with 35 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,41 +124,41 @@ describe('Test reporting integration if plugin installed', () => {

it('Create in-context PDF report from notebook', () => {
cy.get('#reportingActionsButton').click();
cy.get('button.euiContextMenuItem:nth-child(1)')
.contains('Download PDF')
.click();
cy.get('body').contains('Please continue report generation in the new tab');
// cy.get('button.euiContextMenuItem:nth-child(1)')
// .contains('Download PDF')
// .click();
// 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 b9348a8

Please sign in to comment.