mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 08:02:51 +00:00
Fixes ui tests
This commit is contained in:
@@ -6,21 +6,21 @@ QUnit.test("test Stock Reconciliation", function(assert) {
|
||||
frappe.run_serially([
|
||||
() => frappe.set_route('List', 'Stock Reconciliation'),
|
||||
() => frappe.click_button('New'),
|
||||
() => cur_frm.set_value('company','Razer Blade'),
|
||||
() => cur_frm.set_value('company','For Testing'),
|
||||
() => frappe.click_button('Items'),
|
||||
() => {cur_dialog.set_value('warehouse','Stores - RB'); },
|
||||
() => {cur_dialog.set_value('warehouse','Stores - FT'); },
|
||||
() => frappe.timeout(0.5),
|
||||
() => frappe.click_button('Update'),
|
||||
() => {
|
||||
cur_frm.doc.items[0].qty = 150;
|
||||
cur_frm.refresh_fields('items');},
|
||||
() => frappe.timeout(0.5),
|
||||
() => cur_frm.set_value('expense_account','Stock Adjustment - RB'),
|
||||
() => cur_frm.set_value('cost_center','Main - RB'),
|
||||
() => cur_frm.set_value('expense_account','Stock Adjustment - FT'),
|
||||
() => cur_frm.set_value('cost_center','Main - FT'),
|
||||
() => cur_frm.save(),
|
||||
() => {
|
||||
// get_item_details
|
||||
assert.ok(cur_frm.doc.expense_account=='Stock Adjustment - RB', "expense_account correct");
|
||||
assert.ok(cur_frm.doc.expense_account=='Stock Adjustment - FT', "expense_account correct");
|
||||
},
|
||||
() => frappe.tests.click_button('Submit'),
|
||||
() => frappe.tests.click_button('Yes'),
|
||||
|
||||
@@ -10,7 +10,7 @@ QUnit.test("test: warehouse", function (assert) {
|
||||
() => frappe.tests.make(
|
||||
"Warehouse", [
|
||||
{warehouse_name: "Laptop Scrap Warehouse"},
|
||||
{company: "Razer Blade"}
|
||||
{company: "For Testing"}
|
||||
]
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user