Skip to content

Commit

Permalink
Updated flakey test from reporting homepage
Browse files Browse the repository at this point in the history
Signed-off-by: sumukhswamy <[email protected]>
  • Loading branch information
sumukhswamy committed Feb 21, 2025
1 parent 57c0761 commit 85229cc
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ describe('Cypress', () => {
cy.visit(`${BASE_PATH}/app/reports-dashboards#/`, {
waitForGetTenant: true,
});
cy.intercept('GET', '/_dashboards/api/reporting/generateReport/*').as('generateReport');

cy.location('pathname', { timeout: TIMEOUT }).should(
'include',
'/reports-dashboards'
Expand All @@ -40,9 +42,8 @@ describe('Cypress', () => {
cy.get('[id="landingPageOnDemandDownload"]')
.contains('PDF')
.click({ force: true });
cy.get('.euiToastHeader__title')
.contains('Successfully generated report')
.should('exist');
cy.wait('@generateReport').its('response.statusCode').should('eq', 200);

});

it('Download pdf from in-context menu', () => {
Expand Down

0 comments on commit 85229cc

Please sign in to comment.