[UI Test] UI Test Added for Bank Reconciliation (#10563)
This commit is contained in:
parent
da2164373c
commit
554cf9be44
@ -0,0 +1,22 @@
|
|||||||
|
QUnit.module('Account');
|
||||||
|
|
||||||
|
QUnit.test("test Bank Reconciliation", function(assert) {
|
||||||
|
assert.expect(0);
|
||||||
|
let done = assert.async();
|
||||||
|
frappe.run_serially([
|
||||||
|
() => frappe.set_route('Form', 'Bank Reconciliation'),
|
||||||
|
() => cur_frm.set_value('bank_account','Cash - FT'),
|
||||||
|
() => frappe.click_button('Get Payment Entries'),
|
||||||
|
() => {
|
||||||
|
for(var i=0;i<=cur_frm.doc.payment_entries.length-1;i++){
|
||||||
|
cur_frm.doc.payment_entries[i].clearance_date = frappe.datetime.add_days(frappe.datetime.now_date(), 2);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
() => {cur_frm.refresh_fields('payment_entries');},
|
||||||
|
() => frappe.click_button('Update Clearance Date'),
|
||||||
|
() => frappe.timeout(0.5),
|
||||||
|
() => frappe.click_button('Close'),
|
||||||
|
() => done()
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|
@ -113,4 +113,5 @@ erpnext/accounts/doctype/journal_entry/test_journal_entry.js
|
|||||||
erpnext/stock/doctype/stock_reconciliation/test_stock_reconciliation.js
|
erpnext/stock/doctype/stock_reconciliation/test_stock_reconciliation.js
|
||||||
erpnext/accounts/doctype/payment_entry/tests/test_payment_entry.js
|
erpnext/accounts/doctype/payment_entry/tests/test_payment_entry.js
|
||||||
erpnext/selling/doctype/quotation/tests/test_quotation_submit_cancel_amend.js
|
erpnext/selling/doctype/quotation/tests/test_quotation_submit_cancel_amend.js
|
||||||
erpnext/stock/doctype/batch/test_batch.js
|
erpnext/stock/doctype/batch/test_batch.js
|
||||||
|
erpnext/accounts/doctype/bank_reconciliation/test_bank_reconciliation.js
|
Loading…
x
Reference in New Issue
Block a user