mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
UI Test Added for Membership Type
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 110 KiB |
@@ -0,0 +1,7 @@
|
|||||||
|
#Grant Application
|
||||||
|
|
||||||
|
The Grant Application doctype allows you to record the Grant Applicants details.
|
||||||
|
|
||||||
|
<img class="screenshot" alt="Grant Application" src="/docs/assets/img/non_profit/grant_application/grant_application.png">
|
||||||
|
|
||||||
|
{next}
|
||||||
@@ -6,16 +6,18 @@ QUnit.test("test: Membership Type", function (assert) {
|
|||||||
let done = assert.async();
|
let done = assert.async();
|
||||||
|
|
||||||
// number of asserts
|
// number of asserts
|
||||||
assert.expect(1);
|
assert.expect(2);
|
||||||
|
|
||||||
frappe.run_serially([
|
frappe.run_serially([
|
||||||
// insert a new Membership Type
|
// insert a new Member
|
||||||
() => frappe.tests.make('Membership Type', [
|
() => frappe.tests.make('Membership Type', [
|
||||||
// values to be set
|
// values to be set
|
||||||
{key: 'value'}
|
{membership_type: 'Gold'},
|
||||||
|
{amount:50000}
|
||||||
]),
|
]),
|
||||||
() => {
|
() => {
|
||||||
assert.equal(cur_frm.doc.key, 'value');
|
assert.equal(cur_frm.doc.membership_type, 'Gold');
|
||||||
|
assert.equal(cur_frm.doc.amount, '50000');
|
||||||
},
|
},
|
||||||
() => done()
|
() => done()
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user