Wait for after_ajax after setting form values

This commit is contained in:
Nabin Hait 2017-09-12 15:37:35 +05:30
parent c5837f28fe
commit 116a123f50

View file

@ -36,7 +36,8 @@ frappe.tests = {
}
};
tasks.push(task);
tasks.push(() => frappe.timeout(0.2));
tasks.push(frappe.after_ajax);
tasks.push(() => frappe.timeout(0.4));
}
});
@ -68,7 +69,8 @@ frappe.tests = {
return frappe.model.set_value(grid_row.doc.doctype,
grid_row.doc.name, child_key, child_value[child_key]);
});
grid_value_tasks.push(() => frappe.timeout(0.2));
grid_value_tasks.push(frappe.after_ajax);
grid_value_tasks.push(() => frappe.timeout(0.4));
}
});