From 918999485dc5eac3a7792ba3229a038db805960e Mon Sep 17 00:00:00 2001 From: SeriousHorncat Date: Wed, 30 Oct 2024 11:13:58 -0500 Subject: [PATCH] Fixed a system test to wait until the page loads to --- system-tests/e2e/rosalution_home.cy.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system-tests/e2e/rosalution_home.cy.js b/system-tests/e2e/rosalution_home.cy.js index 74ff4291..173c7876 100644 --- a/system-tests/e2e/rosalution_home.cy.js +++ b/system-tests/e2e/rosalution_home.cy.js @@ -1,6 +1,7 @@ describe('Rosalution home', () => { beforeEach(() => { cy.resetDatabase(); + cy.intercept('/rosalution/api/analysis/CPAM0002').as('analysisLoad'); cy.visit('/'); }); @@ -12,6 +13,7 @@ describe('Rosalution home', () => { cy.get('.analysis-card') .find(':contains(CPAM0002)') .find('.case-name').click(); + cy.wait('@analysisLoad'); cy.get('.grey-rounded-menu').invoke('attr', 'style', 'display: block; visibility: visible; opacity: 1;'); cy.get('[data-test="user-menu"] > .grey-rounded-menu > :nth-child(7)').contains('Attach Monday.com').click();