Travis fix for client side tests (#12224)

* salary slip test fix

* attendance tool test fix

* timeout after routing
This commit is contained in:
Shreya Shah 2017-12-29 14:04:46 +05:30 committed by Nabin Hait
parent ddd5bf736b
commit df0dd8be5f
3 changed files with 3 additions and 2 deletions

View File

@ -77,7 +77,7 @@ QUnit.test('Test: Student Attendace Tool', function(assert){
() => frappe.set_route('List', 'Student Attendance/List'), () => frappe.set_route('List', 'Student Attendance/List'),
() => frappe.timeout(1), () => frappe.timeout(1),
() => { () => {
assert.equal(($('div.list-item').size() - 1), count, "Attendance list created"); assert.equal(cur_list.data.length, count, "Attendance list created");
}, },
() => done() () => done()

View File

@ -46,7 +46,7 @@ QUnit.test("test salary slip", function(assert) {
() => frappe.timeout(5), () => frappe.timeout(5),
() => frappe.set_route('List', 'Salary Slip', 'List'), () => frappe.set_route('List', 'Salary Slip', 'List'),
() => frappe.timeout(2), () => frappe.timeout(2),
() => {$('.list-select-all').click();}, () => {$('.list-row-checkbox').click();},
() => frappe.timeout(2), () => frappe.timeout(2),
() => frappe.click_button('Delete'), () => frappe.click_button('Delete'),
() => frappe.click_button('Yes'), () => frappe.click_button('Yes'),

View File

@ -5,6 +5,7 @@ QUnit.test("test Stock Reconciliation", function(assert) {
let done = assert.async(); let done = assert.async();
frappe.run_serially([ frappe.run_serially([
() => frappe.set_route('List', 'Stock Reconciliation'), () => frappe.set_route('List', 'Stock Reconciliation'),
() => frappe.timeout(1),
() => frappe.click_button('New'), () => frappe.click_button('New'),
() => cur_frm.set_value('company','For Testing'), () => cur_frm.set_value('company','For Testing'),
() => frappe.click_button('Items'), () => frappe.click_button('Items'),