Updated billing-data e2e. Remplaced core VNH by LCR

This commit is contained in:
Joan Sanchez 2018-07-10 14:56:50 +02:00
parent 0f795102cb
commit 6c54b2d9e2
4 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -118,8 +118,8 @@
</vn-label-value>
<p>
<vn-check
label="Received core VNH"
field="$ctrl.summary.hasCoreVnh"
label="Received LCR"
field="$ctrl.summary.hasLcr"
disabled="true">
</vn-check>
</p>

View File

@ -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}`

View File

@ -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();
});