diff --git a/erpnext/hr/doctype/payroll_entry/test_payroll_entry.js b/erpnext/hr/doctype/payroll_entry/test_payroll_entry.js index 05cd66f7df..d24f243fc4 100644 --- a/erpnext/hr/doctype/payroll_entry/test_payroll_entry.js +++ b/erpnext/hr/doctype/payroll_entry/test_payroll_entry.js @@ -30,7 +30,7 @@ QUnit.test("test: Payroll Entry", function (assert) { () => frappe.click_button('Submit'), () => frappe.timeout(1), () => frappe.click_button('Yes'), - () => frappe.timeout(2), + () => frappe.timeout(5), () => frappe.click_button('View Salary Slip'), () => frappe.timeout(2), @@ -38,8 +38,8 @@ QUnit.test("test: Payroll Entry", function (assert) { () => frappe.set_route('Form', 'Payroll Entry', docname), () => frappe.timeout(2), - () => frappe.click_button('Make'), - () => frappe.click_dropdown_item('Submit Salary Slip'), + () => frappe.click_button('Submit Salary Slip'), + () => frappe.click_button('Yes'), () => frappe.timeout(5), () => frappe.click_button('Close'),