Skip to content

Commit

Permalink
fix(tests): cypress wait by defining content with move to volto-17
Browse files Browse the repository at this point in the history
  • Loading branch information
ichim-david committed Mar 27, 2024
1 parent 5a2aa04 commit 5a9f0a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import './commands';
import '@cypress/code-coverage/support';

export const slateBeforeEach = (contentType = 'Document') => {
cy.intercept('GET', `/**/*?expand*`).as('content');
cy.autologin();
cy.createContent({
contentType: 'Document',
Expand All @@ -35,10 +36,7 @@ export const slateBeforeEach = (contentType = 'Document') => {
path: 'cypress',
});
cy.visit('/cypress/my-page');
cy.waitForResourceToLoad('@navigation');
cy.waitForResourceToLoad('@breadcrumbs');
cy.waitForResourceToLoad('@actions');
cy.waitForResourceToLoad('@types');
cy.waitForResourceToLoad('@content');
cy.waitForResourceToLoad('my-page');
cy.navigate('/cypress/my-page/edit');
};
Expand Down

0 comments on commit 5a9f0a3

Please sign in to comment.