refs #7004 fix: test
This commit is contained in:
parent
680a8a7123
commit
6c4268d5fc
|
@ -1,6 +1,6 @@
|
|||
import getBrowser from '../../helpers/puppeteer';
|
||||
|
||||
describe('Supplier fiscal data path', () => {
|
||||
fdescribe('Supplier fiscal data path', () => {
|
||||
let browser;
|
||||
let page;
|
||||
|
||||
|
@ -32,6 +32,7 @@ describe('Supplier fiscal data path', () => {
|
|||
};
|
||||
|
||||
const errorMessage = await page.sendForm(form, {
|
||||
city: 'Valencia',
|
||||
taxNumber: 'Wrong tax number'
|
||||
});
|
||||
const message = await page.sendForm(form, values);
|
||||
|
|
|
@ -25,9 +25,7 @@ describe('Supplier newSupplier()', () => {
|
|||
try {
|
||||
const options = {transaction: tx};
|
||||
ctx.args = {
|
||||
name: 'NEWSUPPLIER',
|
||||
nif: '12345678Z',
|
||||
city: 'Gotham'
|
||||
name: 'NEWSUPPLIER'
|
||||
};
|
||||
|
||||
const result = await models.Supplier.newSupplier(ctx, options);
|
||||
|
|
|
@ -61,7 +61,7 @@ describe('Supplier updateFiscalData()', () => {
|
|||
sageTransactionTypeFk,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
city,
|
||||
provinceFk,
|
||||
countryFk,
|
||||
supplierActivityFk,
|
||||
|
@ -78,7 +78,7 @@ describe('Supplier updateFiscalData()', () => {
|
|||
const supplier = await models.Supplier.updateFiscalData(ctx,
|
||||
supplierId,
|
||||
undefined,
|
||||
undefined,
|
||||
nif,
|
||||
account,
|
||||
phone,
|
||||
undefined,
|
||||
|
@ -96,9 +96,9 @@ describe('Supplier updateFiscalData()', () => {
|
|||
options);
|
||||
|
||||
expect(supplier.account).toEqual(account);
|
||||
expect(supplier.nif).toEqual(nif);
|
||||
expect(supplier.phone).toEqual(phone);
|
||||
expect(supplier.postCode).toEqual(postCode);
|
||||
expect(supplier.account).toEqual(account);
|
||||
expect(supplier.city).toEqual(city);
|
||||
expect(supplier.provinceFk).toEqual(provinceFk);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue