#8581 invoiceIn e2e #1452

Merged
jorgep merged 153 commits from 8581-invoiceinE2e into dev 2025-03-20 08:58:01 +00:00
1 changed files with 12 additions and 0 deletions
Showing only changes of commit 9b0365aac4 - Show all commits

View File

@ -418,6 +418,7 @@ Cypress.Commands.add('clickButtonWith', (type, value) => {
break;
}
});
Cypress.Commands.add('clickButtonWithIcon', (iconClass) => {
cy.get(`.q-icon.${iconClass}`).parent().click();
});
@ -425,3 +426,14 @@ Cypress.Commands.add('clickButtonWithIcon', (iconClass) => {
Cypress.Commands.add('clickButtonWithText', (buttonText) => {
cy.get('.q-btn').contains(buttonText).click();
});
Cypress.Commands.add('validateDescriptor', (toCheck = {}) => {
const { title, listbox } = toCheck;
if (title) cy.dataCy('cardDescriptor_title').contains(title);
for (const index in listbox)
cy.get('[data-cy="cardDescriptor_listbox"] > *')
.eq(index)
.should('contain.text', listbox[index]);
});