From 6dde90571dc5e932dc333c5a2ef3aa3be50b50c0 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 3 Aug 2017 17:01:01 +0530 Subject: [PATCH] [test] test_customize_form.js --- .../doctype/customize_form/test_customize_form.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frappe/custom/doctype/customize_form/test_customize_form.js b/frappe/custom/doctype/customize_form/test_customize_form.js index cac3cc15e6..5489dc7f60 100644 --- a/frappe/custom/doctype/customize_form/test_customize_form.js +++ b/frappe/custom/doctype/customize_form/test_customize_form.js @@ -7,11 +7,12 @@ QUnit.test("test customize form", function(assert) { let done = assert.async(); frappe.run_serially([ () => frappe.set_route('Form', 'Customize Form'), - () => frappe.timeout(2), + () => frappe.timeout(3), () => cur_frm.set_value('doc_type', 'ToDo'), - () => frappe.timeout(2), + () => frappe.timeout(3), - () => assert.equal(cur_frm.doc.fields[1].fieldname, 'status', "Status Field"), + () => assert.equal(cur_frm.doc.fields[1].fieldname, 'status', + 'check if second field is "status"'), // open "status" row () => cur_frm.fields_dict.fields.grid.grid_rows[1].toggle_view(), @@ -25,7 +26,8 @@ QUnit.test("test customize form", function(assert) { () => frappe.timeout(0.5), // status still exists - () => assert.equal(cur_frm.doc.fields[1].fieldname, 'status', "Status Field Still Exists"), + () => assert.equal(cur_frm.doc.fields[1].fieldname, 'status', + 'check if second field is still "status"'), () => done() ]); });