[UI Tests] School Academic Year test (#10049)

This commit is contained in:
Zarrar 2017-07-25 11:45:39 +05:30 committed by Rushabh Mehta
parent d65b4b4238
commit 1c6828e5d6

View File

@ -0,0 +1,24 @@
// Testing Setup Module in Schools
QUnit.module('setup');
// Testing Academic Year Testing option
QUnit.test('test academic year', function(assert){
assert.expect(3);
let done = assert.async();
frappe.run_serially([
() => {
return frappe.tests.make('Academic Year', [
{academic_year_name: '2015-16'},
{year_start_date: '2015-07-20'},
{year_end_date:'2016-06-20'},
]);
},
() => {
assert.ok(cur_frm.doc.academic_year_name=='2015-16');
assert.ok(cur_frm.doc.year_start_date=='2015-07-20');
assert.ok(cur_frm.doc.year_end_date=='2016-06-20');
},
() => done()
]);
});