feat: refs #8484 overwrite Cypress visit command to ensure main element exists
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
12615e2ce0
commit
0db322474b
|
@ -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');
|
||||
});
|
Loading…
Reference in New Issue