[UI Tests] School Academic Year test (#10049)
diff --git a/erpnext/schools/doctype/academic_year/test_academic_year.js b/erpnext/schools/doctype/academic_year/test_academic_year.js
new file mode 100644
index 0000000..5123b6e
--- /dev/null
+++ b/erpnext/schools/doctype/academic_year/test_academic_year.js
@@ -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()
+ ]);
+});
\ No newline at end of file