def test_to_do(self): sel.module("ToDo") sel.find('.appframe-iconbar .icon-plus')[0].click() sel.wait_for_page("Form/ToDo") sel.set_field_input("description", "test description") sel.primary_action() sel.wait_for_state("clean")
def test_material_request(self): sel.new_doc("Stock", "Material Request") sel.set_field("company", "_Test Company") sel.add_child("items") sel.set_field("item_code", "_Test Item") sel.set_field("qty", "1") sel.set_field("warehouse", "_Test Warehouse - _TC") sel.set_field("schedule_date", formatdate()) sel.done_add_child("items") sel.primary_action() sel.wait_for_state("clean")
def test_to_do(self): sel.module("ToDo") sel.find('.appframe-iconbar .icon-plus')[0].click() sel.wait_for_page("Form/ToDo") sel.set_field("description", "test description") sel.primary_action() self.assertTrue(sel.wait_for_state("clean"))
def test_to_do(self): sel.go_to_module("ToDo") sel.primary_action() sel.wait_for_page("Form/ToDo") sel.set_field("description", "test description", "textarea") sel.primary_action() self.assertTrue(sel.wait_for_state("clean"))