UI Test Added for Membership Type
This commit is contained in:
parent
1c5bf8e3ca
commit
1ebdeacee3
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();
|
||||
|
||||
// number of asserts
|
||||
assert.expect(1);
|
||||
assert.expect(2);
|
||||
|
||||
frappe.run_serially([
|
||||
// insert a new Membership Type
|
||||
// insert a new Member
|
||||
() => frappe.tests.make('Membership Type', [
|
||||
// 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()
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user