feat: refs #8602 add new Cypress command for clicking buttons with icons
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
3210034d65
commit
639a7bc072
|
@ -390,6 +390,7 @@ Cypress.Commands.add('clickButtonWith', (type, value) => {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Cypress.Commands.add('clickButtonWithIcon', (iconClass) => {
|
Cypress.Commands.add('clickButtonWithIcon', (iconClass) => {
|
||||||
cy.waitForElement('[data-cy="descriptor_actions"]');
|
cy.waitForElement('[data-cy="descriptor_actions"]');
|
||||||
cy.get('[data-cy="loading-spinner"]', { timeout: 10000 }).should('not.be.visible');
|
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();
|
cy.wrap($btn).click();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
Cypress.Commands.add('clickButtonWithText', (buttonText) => {
|
Cypress.Commands.add('clickButtonWithText', (buttonText) => {
|
||||||
cy.get('.q-btn').contains(buttonText).click();
|
cy.get('.q-btn').contains(buttonText).click();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue