Skip to content

Commit

Permalink
Fixed a system test to wait until the page loads to
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriousHorncat committed Oct 30, 2024
1 parent 4dc9a89 commit 9189994
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system-tests/e2e/rosalution_home.cy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
describe('Rosalution home', () => {
beforeEach(() => {
cy.resetDatabase();
cy.intercept('/rosalution/api/analysis/CPAM0002').as('analysisLoad');
cy.visit('/');
});

Expand All @@ -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();
Expand Down

0 comments on commit 9189994

Please sign in to comment.