From 3c77a5316d6e3e5a2172123f3cc0a842108578d5 Mon Sep 17 00:00:00 2001 From: jgallego Date: Tue, 20 Oct 2020 17:36:02 +0200 Subject: [PATCH] E2E arreglados --- e2e/helpers/selectors.js | 10 +++++----- e2e/paths/03-worker/05_calendar.spec.js | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index e586f38ed..249dc248e 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -109,19 +109,19 @@ export default { streetAddress: 'vn-textfield[ng-model="$ctrl.address.street"]', postcode: 'vn-datalist[ng-model="$ctrl.address.postalCode"]', city: 'vn-datalist[ng-model="$ctrl.address.city"]', - province: 'vn-autocomplete[ng-model="$ctrl.address.provinceId"]', - agency: 'vn-autocomplete[ng-model="$ctrl.address.agencyModeId"]', + province: 'vn-autocomplete[ng-model="$ctrl.address.provinceFk"]', + agency: 'vn-autocomplete[ng-model="$ctrl.address.agencyModeFk"]', phone: 'vn-textfield[ng-model="$ctrl.address.phone"]', mobileInput: 'vn-textfield[ng-model="$ctrl.address.mobile"]', defaultAddress: 'vn-client-address-index div:nth-child(1) div[name="street"]', - incoterms: 'vn-autocomplete[ng-model="$ctrl.address.incotermsId"]', - addNewCustomsAgent: 'vn-client-address-create vn-autocomplete[ng-model="$ctrl.address.customsAgentId"] vn-icon-button[icon="add_circle"]', + incoterms: 'vn-autocomplete[ng-model="$ctrl.address.incotermsFk"]', + addNewCustomsAgent: 'vn-client-address-create vn-autocomplete[ng-model="$ctrl.address.customsAgentFk"] vn-icon-button[icon="add_circle"]', newCustomsAgentFiscalID: 'vn-textfield[ng-model="$ctrl.newCustomsAgent.nif"]', newCustomsAgentFiscalName: 'vn-textfield[ng-model="$ctrl.newCustomsAgent.fiscalName"]', newCustomsAgentStreet: 'vn-textfield[ng-model="$ctrl.newCustomsAgent.street"]', newCustomsAgentPhone: 'vn-textfield[ng-model="$ctrl.newCustomsAgent.phone"]', saveNewCustomsAgentButton: 'button[response="accept"]', - customsAgent: 'vn-autocomplete[ng-model="$ctrl.address.customsAgentId"]', + customsAgent: 'vn-autocomplete[ng-model="$ctrl.address.customsAgentFk"]', secondMakeDefaultStar: 'vn-client-address-index vn-card div:nth-child(2) vn-icon-button[icon="star_border"]', firstEditAddress: 'vn-client-address-index div:nth-child(1) > a', secondEditAddress: 'vn-client-address-index div:nth-child(2) > a', diff --git a/e2e/paths/03-worker/05_calendar.spec.js b/e2e/paths/03-worker/05_calendar.spec.js index 801ff4151..351ed1ff4 100644 --- a/e2e/paths/03-worker/05_calendar.spec.js +++ b/e2e/paths/03-worker/05_calendar.spec.js @@ -50,6 +50,7 @@ describe('Worker calendar path', () => { await page.waitToClick(selectors.workerCalendar.halfFurlough); await page.waitFor(reasonableTimeBetweenClicks); await page.waitToClick(selectors.workerCalendar.mayEighth); + await page.waitFor(reasonableTimeBetweenClicks); }); it('should check the total holidays increased by 1.5', async() => {