mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
[UI Tests] School Academic Year test (#10049)
This commit is contained in:
24
erpnext/schools/doctype/academic_year/test_academic_year.js
Normal file
24
erpnext/schools/doctype/academic_year/test_academic_year.js
Normal 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()
|
||||||
|
]);
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user