diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 71956f945..3b782d8ba 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -59,6 +59,7 @@ Cypress.Commands.add('login', (user = 'developer') => { Cypress.Commands.overwrite('visit', (originalFn, url, options) => { originalFn(url, options); + cy.waitUntil(() => cy.document().then((doc) => doc.readyState === 'complete')); cy.waitUntil(() => cy.get('main', { timeout: 10000 }).should('exist')); });