feat: refs #8484 overwrite Cypress visit command to ensure main element exists
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2025-02-14 18:04:03 +01:00
parent 12615e2ce0
commit 0db322474b
1 changed files with 6 additions and 0 deletions

View File

@ -399,3 +399,9 @@ Cypress.Commands.add('clickButtonWithIcon', (iconClass) => {
Cypress.Commands.add('clickButtonWithText', (buttonText) => {
cy.get('.q-btn').contains(buttonText).click();
});
Cypress.Commands.overwrite('visit', (originalFn, url, options) => {
originalFn(url, options);
cy.get('main', { timeout: 10000 }).should('exist');
});