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 <[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]>
(cherry picked from commit 46c9a48)
  • Loading branch information
kavithacm authored and github-actions[bot] committed Aug 30, 2023
1 parent 81f70c3 commit fff6e38
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 fff6e38

Please sign in to comment.