You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
884 B

  1. # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
  2. # MIT License. See license.txt
  3. import unittest, frappe
  4. from frappe.utils import sel
  5. # class TestLogin(unittest.TestCase):
  6. # def setUp(self):
  7. # sel.login()
  8. #
  9. # def test_login(self):
  10. # self.assertEquals(sel._driver.current_url, sel.get_localhost() + "/desk")
  11. #
  12. # def test_to_do(self):
  13. # sel.go_to_module("ToDo")
  14. # sel.find('.appframe-iconbar .icon-plus')[0].click()
  15. # sel.wait_for_page("Form/ToDo")
  16. # sel.set_field("description", "test description", "textarea")
  17. # sel.primary_action()
  18. # self.assertTrue(sel.wait_for_state("clean"))
  19. # def test_material_request(self):
  20. # sel.new_doc("Stock", "Material Request")
  21. # sel.add_child("items")
  22. # sel.set_field("item_code", "_Test Item")
  23. # sel.set_field("schedule_date", "10-10-2014")
  24. # sel.primary_action()
  25. # sel.wait_for_state("clean")