Exemplo n.º 1
0
 def test_3_delete_hiretype(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_hiregoods()
     htp = HireTypePage(init_env)
     htp.delete_hiretype()
     htp.is_element_dispear(hire_type_element.delete_type_button)
Exemplo n.º 2
0
 def test_2_edit_hiretype(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_hiregoods()
     htp = HireTypePage(init_env)
     htp.edit_hiretype(hire_goods_datas.edit_type_name)
     htp.is_element_dispear(hire_type_element.add_type_name)
Exemplo n.º 3
0
 def test_6_delete_hiregoods(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_hiregoods()
     htp = HireTypePage(init_env)
     htp.click_hiregoods_menu()
     hgp = HireGoodsPage(init_env)
     hgp.delete_hiregoods()
     hgp.is_element_disappear(hire_goods_element.delete_hiregoods_button)
Exemplo n.º 4
0
 def test_5_edit_hiregoods(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_hiregoods()
     htp = HireTypePage(init_env)
     htp.click_hiregoods_menu()
     hgp = HireGoodsPage(init_env)
     hgp.edit_hiregoods(hire_goods_datas.edit_goods_name,
                        hire_goods_datas.edit_goods_price,
                        hire_goods_datas.edit_goods_beizhu)
     hgp.is_element_exist(hire_goods_element.delete_hiregoods_button)