This commit is contained in:
parent
12f20b2d58
commit
061f0cb39c
|
@ -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)'
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -22,12 +22,13 @@
|
|||
</vn-autocomplete>
|
||||
</vn-horizontal>
|
||||
<vn-horizontal>
|
||||
<vn-textfield
|
||||
vn-one
|
||||
margin-medium-right
|
||||
<vn-autocomplete vn-one
|
||||
url="/api/Banks"
|
||||
label="Bank"
|
||||
show-field="bank"
|
||||
value-field="id"
|
||||
field="$ctrl.receipt.bankFk">
|
||||
</vn-textfield>
|
||||
</vn-autocomplete>
|
||||
<vn-input-number vn-one vn-focus
|
||||
label="Amount"
|
||||
field="$ctrl.receipt.amountPaid" step="0.01">
|
||||
|
|
Loading…
Reference in New Issue