#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 10 additions and 0 deletions
Showing only changes of commit 3993e37f39 - Show all commits

View File

@ -494,3 +494,13 @@ Cypress.Commands.add('checkDate', (rawDate, expectedVal, operation) => {
expect(date.isAfter(compareDate)).to.be.true;
}
});
Cypress.Commands.add('selectDescriptorOption', (opt = 1) => {
cy.get(
`[data-cy="descriptor-more-opts_list"] > :not(template):nth-of-type(${opt})`,
).click();
});
Cypress.Commands.add('validateCheckbox', (selector, expectedVal = 'true') => {
cy.get(selector).should('have.attr', 'aria-checked', expectedVal.toString());
});