Skip to content

Commit

Permalink
Wait for the chunk and app js required to run the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
caleeli committed Oct 22, 2024
1 parent 63fe279 commit 9f15b4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/e2e/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ Cypress.Commands.add('loadModeler', () => {
: '/';

cy.viewport(defaultViewportDimensions.width, defaultViewportDimensions.height);
cy.intercept('/js/chunk-vendors.js').as('chunkVendorsJs');
cy.intercept('/js/app.js').as('appJs');
cy.visit(url);
cy.wait('@chunkVendorsJs', { timeout: 30000 });
cy.wait('@appJs', { timeout: 30000 });
waitToRenderAllShapes();
});

Expand Down

0 comments on commit 9f15b4d

Please sign in to comment.