diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index 77ecc3867..030b80f8d 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -484,7 +484,8 @@ export default { orderByAutocomplete: `vn-autocomplete[label="Order by"]`, }, orderBasicData: { - clientAutocomplete: `vn-autocomplete[label=Client]`, + clientAutocomplete: `vn-autocomplete[label="Client"]`, + addressAutocomplete: `vn-autocomplete[label="Address"]`, observationInput: `vn-textarea[label="Observation"] textarea`, saveButton: `${components.vnSubmit}` }, diff --git a/e2e/paths/order-module/01_edit_basic_data.spec.js b/e2e/paths/order-module/01_edit_basic_data.spec.js index 2f24cf94a..014941c09 100644 --- a/e2e/paths/order-module/01_edit_basic_data.spec.js +++ b/e2e/paths/order-module/01_edit_basic_data.spec.js @@ -2,7 +2,7 @@ import selectors from '../../helpers/selectors.js'; import createNightmare from '../../helpers/nightmare'; // Bug #808 order.basic-data -xdescribe('Order edit basic data path', () => { +fdescribe('Order edit basic data path', () => { const nightmare = createNightmare(); describe('when confirmed order', () => { beforeAll(() => { @@ -15,11 +15,13 @@ xdescribe('Order edit basic data path', () => { it('should not be able to change the client', async() => { const result = await nightmare .autocompleteSearch(selectors.orderBasicData.clientAutocomplete, 'Tony Stark') + .autocompleteSearch(selectors.orderBasicData.addressAutocomplete, 'Tony Stark') + .wait(1999) .waitToClick(selectors.orderBasicData.saveButton) .waitForLastSnackbar(); expect(result).toEqual(`You can't make changes on the basic data of an confirmed order or with rows`); - }); + }, 15000); }); describe('when order with rows', () => { diff --git a/loopback/locale/en.json b/loopback/locale/en.json index b56b03a38..ac9e6b132 100644 --- a/loopback/locale/en.json +++ b/loopback/locale/en.json @@ -36,5 +36,6 @@ "The warehouse can't be repeated": "The warehouse can't be repeated", "Barcode must be unique": "Barcode must be unique", "You don't have enough privileges to do that": "You don't have enough privileges to do that", - "You can't create a ticket for a frozen client": "You can't create a ticket for a frozen client" + "You can't create a ticket for a frozen client": "You can't create a ticket for a frozen client", + "can't be blank": "can't be blank" } \ No newline at end of file diff --git a/modules/item/front/descriptor/index.js b/modules/item/front/descriptor/index.js index edf6d6444..922ca4814 100644 --- a/modules/item/front/descriptor/index.js +++ b/modules/item/front/descriptor/index.js @@ -1,6 +1,5 @@ import ngModule from '../module'; import './style.scss'; -import {runInThisContext} from 'vm'; class Controller { constructor($state, $scope, $http, vnApp, $translate) { diff --git a/modules/order/front/basic-data/index.html b/modules/order/front/basic-data/index.html index 50e8c9901..672ae92fa 100644 --- a/modules/order/front/basic-data/index.html +++ b/modules/order/front/basic-data/index.html @@ -29,9 +29,10 @@