diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index c8b830ae7c..89830c3727 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -164,7 +164,7 @@ export default { balanceButton: 'vn-left-menu a[ui-sref="client.card.balance.index"]', companyAutocomplete: 'vn-client-balance-index vn-autocomplete[field="$ctrl.companyFk"]', newPaymentButton: `${components.vnFloatButton}`, - newPaymentBankInut: 'vn-client-balance-create vn-textfield[field="$ctrl.receipt.bankFk"] input', + newPaymentBank: 'vn-client-balance-create vn-autocomplete[field="$ctrl.receipt.bankFk"]', newPaymentAmountInput: 'vn-client-balance-create vn-input-number[field="$ctrl.receipt.amountPaid"] input', saveButton: 'vn-client-balance-create vn-button[label="Save"]', firstBalanceLine: 'vn-client-balance-index vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(8)' diff --git a/e2e/paths/02-client-module/14_balance.spec.js b/e2e/paths/02-client-module/14_balance.spec.js index e01840fb4d..b661d998b7 100644 --- a/e2e/paths/02-client-module/14_balance.spec.js +++ b/e2e/paths/02-client-module/14_balance.spec.js @@ -48,8 +48,7 @@ describe('Client balance path', () => { it('should create a new payment that clears the debt', async() => { let result = await nightmare - .clearInput(selectors.clientBalance.newPaymentBankInut) - .write(selectors.clientBalance.newPaymentBankInut, '2') + .autocompleteSearch(selectors.clientBalance.newPaymentBank, 'Pay on receipt') .waitToClick(selectors.clientBalance.saveButton) .waitForLastSnackbar(); diff --git a/modules/client/front/balance/create/index.html b/modules/client/front/balance/create/index.html index 69a6380441..4cf769d4f7 100644 --- a/modules/client/front/balance/create/index.html +++ b/modules/client/front/balance/create/index.html @@ -22,12 +22,13 @@ - - +