ci: refs #8581 update Cypress tests to use dynamic date generation for InvoiceIn
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
595f975b4f
commit
f2c4e2c0c1
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
find 'test/cypress/integration/invoiceIn' \
|
find 'test/cypress/integration' \
|
||||||
-mindepth 1 \
|
-mindepth 1 \
|
||||||
-maxdepth 1 \
|
-maxdepth 1 \
|
||||||
-type d | \
|
-type d | \
|
||||||
|
|
|
@ -43,10 +43,10 @@ describe('InvoiceInBasicData', () => {
|
||||||
supplierRef: '1234',
|
supplierRef: '1234',
|
||||||
serial: 'R',
|
serial: 'R',
|
||||||
supplierFk: 1,
|
supplierFk: 1,
|
||||||
issued: new Date(Date.UTC(2001, 0, 1, 11)),
|
issued: getVnNew(),
|
||||||
companyFk: 442,
|
companyFk: 442,
|
||||||
docFk: 1,
|
docFk: 1,
|
||||||
bookEntried: new Date(Date.UTC(2001, 0, 1, 11)),
|
bookEntried: getVnNew(),
|
||||||
currencyFk: 1,
|
currencyFk: 1,
|
||||||
operated: null,
|
operated: null,
|
||||||
booked: null,
|
booked: null,
|
||||||
|
@ -86,3 +86,7 @@ describe('InvoiceInBasicData', () => {
|
||||||
cy.checkNotification('Data saved');
|
cy.checkNotification('Data saved');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function getVnNew() {
|
||||||
|
return new Date(Date.UTC(2001, 0, 1, 11));
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue