Skip to content

Commit

Permalink
Merge branch '2.9' into flaky-panels-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ritvibhatt authored Feb 21, 2025
2 parents aba51be + c00e851 commit 44e071c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-e2e-workflow-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,19 @@ jobs:
command: ${{ inputs.test-command }}
wait-on: 'http://localhost:5601'
# Screenshots are only captured on failure, will change this once we do visual regression tests
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress-test/cypress/screenshots
# Test run video was always captured, so this action uses "always()" condition
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos
path: cypress-test/cypress/videos
# Test reports was always captured, so this action uses "always()" condition
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-results
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ describe('Cypress', () => {
cy.visit(`${BASE_PATH}/app/reports-dashboards#/`, {
waitForGetTenant: true,
});
cy.intercept('GET', `${BASE_PATH}/api/reporting/generateReport/*`).as(
'generateReport'
);

cy.location('pathname', { timeout: TIMEOUT }).should(
'include',
'/reports-dashboards'
Expand All @@ -40,9 +44,7 @@ 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 44e071c

Please sign in to comment.