Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

30 lignes
873 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(frappe.local.localhost)
  8. def test_login(self):
  9. self.assertEquals(sel.driver.current_url, frappe.local.localhost + "/desk")
  10. def test_to_do(self):
  11. sel.module("ToDo")
  12. sel.find('.appframe-iconbar .icon-plus')[0].click()
  13. sel.wait_for_page("Form/ToDo")
  14. sel.set_field("description", "test description")
  15. sel.primary_action()
  16. self.assertTrue(sel.wait_for_state("clean"))
  17. # def test_material_request(self):
  18. # sel.new_doc("Stock", "Material Request")
  19. # sel.add_child("indent_details")
  20. # sel.set_field("item_code", "_Test Item")
  21. # sel.set_field("schedule_date", "10-10-2014")
  22. # sel.primary_action()
  23. # sel.wait_for_state("clean")