UI Test Added for Membership Type

This commit is contained in:
Vishal 2017-09-22 15:38:11 +05:30
parent 1c5bf8e3ca
commit 1ebdeacee3
3 changed files with 13 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

View File

@ -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}

View File

@ -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()
]);