Skip to content

Commit

Permalink
Fix in-context reporting tests (opensearch-project#1088) (opensearch-…
Browse files Browse the repository at this point in the history
…project#1095)

* Fix in-context report tests

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

* Switch to checking for success toast

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

* Fix syntax

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

---------

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
(cherry picked from commit 651db8d)

Co-authored-by: Simeon Widdis <sawiddis@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and Swiddis authored Feb 16, 2024
1 parent 3a685de commit 7ad989f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ describe('Test reporting integration if plugin installed', () => {
cy.get('button.euiContextMenuItem:nth-child(1)')
.contains('Download PDF')
.click();
cy.get('#downloadInProgressLoadingModal').should('exist');
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('#downloadInProgressLoadingModal').should('exist');
cy.get('body').contains('Please continue report generation in the new tab');
});

it('Create on-demand report definition from context menu', () => {
Expand Down

0 comments on commit 7ad989f

Please sign in to comment.