#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 0 additions and 15 deletions
Showing only changes of commit 1c4421aaa2 - Show all commits

View File

@ -505,21 +505,6 @@ Cypress.Commands.add('validateVnTableRows', (opts = {}) => {
});
});
Cypress.Commands.add('checkNumber', (text, expectedVal, operation) => {
const num = parseFloat(text.trim().replace(/[^\d.-]/g, '')); // Remove the currency symbol
switch (operation) {
case 'equal':
expect(num).to.equal(expectedVal);
break;
case 'greater':
expect(num).to.be.greaterThan(expectedVal);
break;
case 'less':
expect(num).to.be.lessThan(expectedVal);
break;
}
});
Cypress.Commands.add('checkDate', (rawDate, expectedVal, operation) => {
const date = moment(rawDate.trim(), 'MM/DD/YYYY');
const compareDate = moment(expectedVal, 'DD/MM/YYYY');