Skip to content

Commit 0e5b924

Browse files
[CST-15592] add interceptor to prevent sudden timeout failure
1 parent f131ae2 commit 0e5b924

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cypress/e2e/health-page.cy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ beforeEach(() => {
1010

1111
describe('Health Page > Status Tab', () => {
1212
it('should pass accessibility tests', () => {
13+
cy.intercept('GET', '/server/actuator/health').as('status');
14+
cy.wait('@status');
15+
1316
cy.get('a[data-test="health-page.status-tab"]').click();
1417
// Page must first be visible
1518
cy.get('ds-health-page').should('be.visible');
@@ -33,6 +36,8 @@ describe('Health Page > Status Tab', () => {
3336

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

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

0 commit comments

Comments
 (0)