From 134def6d65ae408fce6b79d1c8ecf31c17802fa3 Mon Sep 17 00:00:00 2001 From: Gerard Date: Wed, 21 Nov 2018 11:53:18 +0100 Subject: [PATCH] #821 Back da errores de forma incorrecta en Pay Method --- e2e/helpers/selectors.js | 2 ++ e2e/paths/client-module/04_edit_pay_method.spec.js | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index 2f41941fe..0ab6481a0 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -86,6 +86,8 @@ export default { receivedCoreVNLCheckbox: `vn-check[label='Received core VNL'] > label > input`, receivedB2BVNLCheckbox: `vn-check[label='Received B2B VNL'] > label > input`, swiftBicInput: 'vn-client-billing-data vn-autocomplete[field="$ctrl.client.bankEntityFk"] input', + firstSwiftBicOption: `vn-client-billing-data vn-autocomplete[field="$ctrl.client.bankEntityFk"] vn-drop-down ul > li:nth-child(1)`, + clearswiftBicButton: `vn-client-billing-data vn-autocomplete[field="$ctrl.client.bankEntityFk"] > div > div > div > vn-icon > i`, newBankEntityButton: 'vn-client-billing-data vn-icon-button[vn-tooltip="New bank entity"] > button', newBankEntityName: 'vn-client-billing-data > vn-dialog vn-textfield[label="Name"] input', newBankEntityBIC: 'vn-client-billing-data > vn-dialog vn-textfield[label="Swift / BIC"] input', 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 f276f70bd..5e6b0b67b 100644 --- a/e2e/paths/client-module/04_edit_pay_method.spec.js +++ b/e2e/paths/client-module/04_edit_pay_method.spec.js @@ -47,6 +47,9 @@ describe('Client Edit pay method path', () => { .waitToClick(selectors.clientPayMethod.payMethodInput) .waitToClick(selectors.clientPayMethod.payMethodIBANOption) .waitForTextInInput(selectors.clientPayMethod.payMethodInput, 'PayMethod with IBAN') + .waitToClick(selectors.clientPayMethod.swiftBicInput) + .waitToClick(selectors.clientPayMethod.firstSwiftBicOption) + .waitForTextInInput(selectors.clientPayMethod.swiftBicInput, 'BBKKESMMMMM') .clearInput(selectors.clientPayMethod.dueDayInput) .type(selectors.clientPayMethod.dueDayInput, '60') .waitForTextInInput(selectors.clientPayMethod.dueDayInput, '60') @@ -64,6 +67,7 @@ describe('Client Edit pay method path', () => { .clearInput(selectors.clientPayMethod.IBANInput) .type(selectors.clientPayMethod.IBANInput, 'ES91 2100 0418 4502 0005 1332') .waitForTextInInput(selectors.clientPayMethod.IBANInput, 'ES91 2100 0418 4502 0005 1332') + .waitToClick(selectors.clientPayMethod.clearswiftBicButton) .waitToClick(selectors.clientPayMethod.saveButton) .waitForLastSnackbar();