fixed fiscal data postcode selection
gitea/salix/master There was a failure building this commit Details

This commit is contained in:
Joan Sanchez 2019-08-06 12:07:48 +02:00
parent e011c120db
commit 72a02112b5
2 changed files with 4 additions and 3 deletions

View File

@ -67,6 +67,7 @@ describe('Client Edit fiscalData path', () => {
.write(selectors.clientFiscalData.fiscalIdInput, 'INVALID!')
.clearInput(selectors.clientFiscalData.addressInput)
.write(selectors.clientFiscalData.addressInput, 'Somewhere edited')
.autocompleteSearch(selectors.clientFiscalData.cityAutocomplete, 'Valencia')
.autocompleteSearch(selectors.clientFiscalData.postcodeAutocomplete, '46000')
.waitToClick(selectors.clientFiscalData.activeCheckbox)
.waitToClick(selectors.clientFiscalData.frozenCheckbox)
@ -80,7 +81,7 @@ describe('Client Edit fiscalData path', () => {
.waitForLastSnackbar();
expect(result).toEqual('Invalid Tax number');
}, 15000);
});
it(`should edit the fiscal this time with a valid fiscal id`, async() => {
const result = await nightmare

View File

@ -70,8 +70,8 @@ export default class Controller {
const town = selection.town;
const province = town.province;
this.address.city = town.name;
this.address.provinceFk = province.id;
this.client.city = town.name;
this.client.provinceFk = province.id;
}
}
Controller.$inject = ['$scope', '$http', 'vnApp', '$translate'];