Skip to content

Commit

Permalink
original cherry pick
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Tackett <[email protected]>
  • Loading branch information
Adam Tackett committed Oct 28, 2024
1 parent 6632e46 commit 8ea7569
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('Testing notebook actions', () => {
});
});

describe('Test reporting integration if the plugin is installed', () => {
describe('Test reporting integration if plugin installed', () => {
beforeEach(() => {
let notebookName = makeTestNotebook();
cy.get('body').then(($body) => {
Expand All @@ -127,23 +127,26 @@ describe('Test reporting integration if the plugin is installed', () => {
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('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');
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.location('pathname', { timeout: delayTime * 3 }).should(
'include',
'/reports-dashboards'
);
cy.get('#reportSettingsName').type('Create notebook on-demand report');
cy.get('#createNewReportDefinition').click({ force: true });
});
Expand All @@ -153,6 +156,9 @@ describe('Test reporting integration if the plugin is installed', () => {
cy.get('button.euiContextMenuItem:nth-child(4)')
.contains('View reports')
.click();
cy.location('pathname', { timeout: delayTime * 3 }).should('include', '/reports-dashboards');
cy.location('pathname', { timeout: delayTime * 3 }).should(
'include',
'/reports-dashboards'
);
});
});

0 comments on commit 8ea7569

Please sign in to comment.