feat: refs #8602 add new Cypress command for clicking buttons with icons
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Pablo Natek 2025-03-11 08:51:30 +01:00
parent 3210034d65
commit 639a7bc072
1 changed files with 2 additions and 0 deletions

View File

@ -390,6 +390,7 @@ Cypress.Commands.add('clickButtonWith', (type, value) => {
break;
}
});
Cypress.Commands.add('clickButtonWithIcon', (iconClass) => {
cy.waitForElement('[data-cy="descriptor_actions"]');
cy.get('[data-cy="loading-spinner"]', { timeout: 10000 }).should('not.be.visible');
@ -399,6 +400,7 @@ Cypress.Commands.add('clickButtonWithIcon', (iconClass) => {
cy.wrap($btn).click();
});
});
Cypress.Commands.add('clickButtonWithText', (buttonText) => {
cy.get('.q-btn').contains(buttonText).click();
});