25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_module_view.js 1.3 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. QUnit.module('views');
  2. QUnit.test("Test modules view", function(assert) {
  3. assert.expect(4);
  4. let done = assert.async();
  5. frappe.run_serially([
  6. //click Document Share Report in Permissions section [Report]
  7. () => frappe.set_route("modules", "Setup"),
  8. () => frappe.timeout(0.5),
  9. () => frappe.click_link('Document Share Report'),
  10. () => assert.deepEqual(frappe.get_route(), ["Report", "DocShare", "Document Share Report"],
  11. 'document share report'),
  12. //click Print Setting in Printing section [Form]
  13. () => frappe.set_route("modules", "Setup"),
  14. () => frappe.timeout(0.5),
  15. () => frappe.click_link('Print Settings'),
  16. () => assert.deepEqual(frappe.get_route(), ["Form", "Print Settings"],
  17. 'print settings'),
  18. //click Workflow Action in Workflow section [List]
  19. () => frappe.set_route("modules", "Setup"),
  20. () => frappe.timeout(0.5),
  21. () => frappe.click_link('Workflow Action'),
  22. () => assert.deepEqual(frappe.get_route(), ["List", "Workflow Action", "List"],
  23. 'workflow action'),
  24. //click Workflow Action in Workflow section [List]
  25. () => frappe.set_route("modules"),
  26. () => frappe.timeout(0.5),
  27. () => frappe.click_link('Tools'),
  28. () => frappe.timeout(0.5),
  29. () => frappe.click_link('To Do'),
  30. () => assert.deepEqual(frappe.get_route(), ["List", "ToDo", "List"],
  31. 'todo list'),
  32. () => done()
  33. ]);
  34. });