Skip to content

Commit

Permalink
Change to toast message in Reports (#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 <mohakavi@amazon.com>

* Update test

Signed-off-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>

* Fix lint

Signed-off-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>

---------

Signed-off-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>
  • Loading branch information
kavithacm committed Aug 30, 2023
1 parent 2e0c1b3 commit 46c9a48
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 46c9a48

Please sign in to comment.