Skip to content

Commit

Permalink
[CST-15592] add interceptor to prevent sudden timeout failure
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoMolinaro committed Oct 9, 2024
1 parent f131ae2 commit 0e5b924
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cypress/e2e/health-page.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ beforeEach(() => {

describe('Health Page > Status Tab', () => {
it('should pass accessibility tests', () => {
cy.intercept('GET', '/server/actuator/health').as('status');
cy.wait('@status');

cy.get('a[data-test="health-page.status-tab"]').click();
// Page must first be visible
cy.get('ds-health-page').should('be.visible');
Expand All @@ -33,6 +36,8 @@ describe('Health Page > Status Tab', () => {

describe('Health Page > Info Tab', () => {
it('should pass accessibility tests', () => {
cy.intercept('GET', '/server/actuator/info').as('info');
cy.wait('@info');

cy.get('a[data-test="health-page.info-tab"]').click();
// Page must first be visible
Expand Down

0 comments on commit 0e5b924

Please sign in to comment.