fix: refs #8484 ensure document is fully loaded before visiting pages in tests
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2025-02-18 12:33:34 +01:00
parent 61a305ad80
commit a4baa6812a
1 changed files with 1 additions and 0 deletions

View File

@ -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'));
});