[UI Tests] School Academic Term test (#10050)
This commit is contained in:
parent
1c6828e5d6
commit
b5ec8381a6
25
erpnext/schools/doctype/academic_term/test_academic_term.js
Normal file
25
erpnext/schools/doctype/academic_term/test_academic_term.js
Normal file
@ -0,0 +1,25 @@
|
||||
// Testing Setup Module in Schools
|
||||
QUnit.module('setup');
|
||||
|
||||
// Testing Academic Term option
|
||||
QUnit.test('test academic term', function(assert){
|
||||
assert.expect(4);
|
||||
let done = assert.async();
|
||||
frappe.run_serially([
|
||||
() => {
|
||||
return frappe.tests.make('Academic Term', [
|
||||
{academic_year: '2016-17'},
|
||||
{term_name: "Semester 1"},
|
||||
{term_start_date: '2016-07-20'},
|
||||
{term_end_date:'2017-06-20'},
|
||||
]);
|
||||
},
|
||||
() => {
|
||||
assert.ok(cur_frm.doc.academic_year=='2016-17');
|
||||
assert.ok(cur_frm.doc.term_name=='Semester 1');
|
||||
assert.ok(cur_frm.doc.term_start_date=='2016-07-20');
|
||||
assert.ok(cur_frm.doc.term_end_date=='2017-06-20');
|
||||
},
|
||||
() => done()
|
||||
]);
|
||||
});
|
Loading…
Reference in New Issue
Block a user