diff --git a/test/cypress/cypressParallel.sh b/test/cypress/cypressParallel.sh index 105768b3dc..8ef26bcde8 100644 --- a/test/cypress/cypressParallel.sh +++ b/test/cypress/cypressParallel.sh @@ -1,6 +1,6 @@ #!/bin/bash -find 'test/cypress/integration/invoiceIn' \ +find 'test/cypress/integration' \ -mindepth 1 \ -maxdepth 1 \ -type d | \ diff --git a/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js b/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js index c47c255650..c798a69cb6 100644 --- a/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js @@ -43,10 +43,10 @@ describe('InvoiceInBasicData', () => { supplierRef: '1234', serial: 'R', supplierFk: 1, - issued: new Date(Date.UTC(2001, 0, 1, 11)), + issued: getVnNew(), companyFk: 442, docFk: 1, - bookEntried: new Date(Date.UTC(2001, 0, 1, 11)), + bookEntried: getVnNew(), currencyFk: 1, operated: null, booked: null, @@ -86,3 +86,7 @@ describe('InvoiceInBasicData', () => { cy.checkNotification('Data saved'); }); }); + +function getVnNew() { + return new Date(Date.UTC(2001, 0, 1, 11)); +}