Skip to content

Commit

Permalink
Change to toast message in Reports (opensearch-project#578)
Browse files Browse the repository at this point in the history
* Change to toast message in Reports download spec

Signed-off-by: Kavitha Conjeevaram Mohan <[email protected]>

* Update test

Signed-off-by: Kavitha Conjeevaram Mohan <[email protected]>

* Fix lint

Signed-off-by: Kavitha Conjeevaram Mohan <[email protected]>

---------

Signed-off-by: Kavitha Conjeevaram Mohan <[email protected]>
Signed-off-by: [email protected] <[email protected]>
  • Loading branch information
kavithacm authored and leanneeliatra committed Sep 29, 2023
1 parent e3379ff commit b37c0b1
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,9 @@ describe('Cypress', () => {
cy.get('[id="landingPageOnDemandDownload"]')
.contains('PDF')
.click({ force: true });
cy.get('body').then(($body) => {
if ($body.find('#downloadInProgressLoadingModal').length > 0) {
return;
} else {
assert(false);
}
});
cy.get('.euiToastHeader__title')
.contains('Successfully generated report')
.should('exist');
});

it('Download pdf from in-context menu', () => {
Expand Down Expand Up @@ -137,6 +133,8 @@ describe('Cypress', () => {

cy.get('#generateReportFromDetailsFileFormat').click({ force: true });

cy.get('#downloadInProgressLoadingModal');
cy.get('.euiToastHeader__title')
.contains('Successfully generated report')
.should('exist');
});
});

0 comments on commit b37c0b1

Please sign in to comment.