From 6c54b2d9e208a0c4a8984ec710cd1529c1b7ecbb Mon Sep 17 00:00:00 2001 From: Joan Date: Tue, 10 Jul 2018 14:56:50 +0200 Subject: [PATCH] Updated billing-data e2e. Remplaced core VNH by LCR --- client/client/src/billing-data/locale/en.yml | 1 - client/client/src/summary/index.html | 4 ++-- e2e/helpers/selectors.js | 2 +- e2e/paths/client-module/04_edit_pay_method.spec.js | 6 +++--- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/client/client/src/billing-data/locale/en.yml b/client/client/src/billing-data/locale/en.yml index 20f5272b6..20177159b 100644 --- a/client/client/src/billing-data/locale/en.yml +++ b/client/client/src/billing-data/locale/en.yml @@ -9,7 +9,6 @@ Equivalent tax spreaded: Equivalent tax spreaded Invoice by address: Invoice by address Equalization tax: Equalization tax Due day: Due day -Received core VNH: VNH core received Received core VNL: VNL core received Received B2B VNL: VNL B2B received Save: Save \ No newline at end of file diff --git a/client/client/src/summary/index.html b/client/client/src/summary/index.html index fda4ebe04..de34ae66b 100644 --- a/client/client/src/summary/index.html +++ b/client/client/src/summary/index.html @@ -118,8 +118,8 @@

diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index adc615809..f2891d785 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -76,7 +76,7 @@ export default { payMethodOptionOne: `vn-autocomplete[field="$ctrl.client.payMethodFk"] vn-drop-down ul > li:nth-child(2)`, IBANInput: `${components.vnTextfield}[name="iban"]`, dueDayInput: `${components.vnTextfield}[name="dueDay"]`, - receivedCoreVNHCheckbox: `vn-check[label='Received core VNH'] > label > input`, + receivedCoreLCRCheckbox: `vn-check[label='Received LCR'] > label > input`, receivedCoreVNLCheckbox: `vn-check[label='Received core VNL'] > label > input`, receivedB2BVNLCheckbox: `vn-check[label='Received B2B VNL'] > label > input`, saveButton: `${components.vnSubmit}` diff --git a/e2e/paths/client-module/04_edit_pay_method.spec.js b/e2e/paths/client-module/04_edit_pay_method.spec.js index bc8581017..7d830d201 100644 --- a/e2e/paths/client-module/04_edit_pay_method.spec.js +++ b/e2e/paths/client-module/04_edit_pay_method.spec.js @@ -52,7 +52,7 @@ describe('Client', () => { .waitToClick(selectors.clientPayMethod.payMethodIBANOption) .clearInput(selectors.clientPayMethod.dueDayInput) .type(selectors.clientPayMethod.dueDayInput, '60') - .waitToClick(selectors.clientPayMethod.receivedCoreVNHCheckbox) + .waitToClick(selectors.clientPayMethod.receivedCoreLCRCheckbox) .waitToClick(selectors.clientPayMethod.receivedCoreVNLCheckbox) .waitToClick(selectors.clientPayMethod.receivedB2BVNLCheckbox) .waitToClick(selectors.clientPayMethod.saveButton) @@ -89,11 +89,11 @@ describe('Client', () => { }); }); - it('should confirm Received core VNH checkbox is unchecked', () => { + it('should confirm Received LCR checkbox is unchecked', () => { return nightmare .evaluate(selector => { return document.querySelector(selector).checked; - }, selectors.clientPayMethod.receivedCoreVNHCheckbox) + }, selectors.clientPayMethod.receivedCoreLCRCheckbox) .then(value => { expect(value).toBeFalsy(); });