made test less dependent on python test data (#10424)

This commit is contained in:
Zarrar 2017-08-17 11:04:16 +05:30 committed by Nabin Hait
parent b5ed6823d6
commit abd3419632

View File

@ -19,9 +19,10 @@ QUnit.test('Test: Student Group Creation Tool', function(assert){
cur_frm.set_value("program", "Standard Test");
frappe.tests.click_button('Get Courses');
},
() => frappe.timeout(0.5),
() => frappe.timeout(1),
() => {
assert.equal(cur_frm.doc.courses.length, 4, 'Successfully created groups using the tool');
let no_of_courses = $('input.grid-row-check.pull-left').size() - 1;
assert.equal(cur_frm.doc.courses.length, no_of_courses, 'Successfully created groups using the tool');
},
() => {