From b74de37c82a243f279ed4a0ad6d4f08b85e71736 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Thu, 26 Dec 2019 13:29:50 +0100 Subject: [PATCH] updated selectors --- e2e/helpers/selectors.js | 8 ++++---- modules/ticket/front/create/card.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index f9d69123f..347590a74 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -345,11 +345,11 @@ export default { acceptDeleteTurn: '.vn-confirm.shown button[response="accept"]' }, createTicketView: { - clientAutocomplete: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.clientFk"]', - addressAutocomplete: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.addressFk"]', + clientAutocomplete: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.clientId"]', + addressAutocomplete: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.addressId"]', deliveryDateInput: 'vn-ticket-create vn-date-picker[ng-model="$ctrl.landed"]', - warehouseAutocomplete: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.warehouseFk"]', - agencyAutocomplete: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.ticket.agencyModeFk"]', + warehouseAutocomplete: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.warehouseId"]', + agencyAutocomplete: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.agencyModeId"]', createButton: `button[type=submit]` }, ticketDescriptor: { diff --git a/modules/ticket/front/create/card.js b/modules/ticket/front/create/card.js index 20def7b72..2e775c18b 100644 --- a/modules/ticket/front/create/card.js +++ b/modules/ticket/front/create/card.js @@ -14,9 +14,9 @@ class Controller { $onInit() { if (this.$stateParams && this.$stateParams.clientFk) - this.clientFk = this.$stateParams.clientFk; + this.clientId = this.$stateParams.clientFk; - this.warehouseFk = this.vnConfig.warehouseFk; + this.warehouseId = this.vnConfig.warehouseFk; } get ticket() {