def test_ZZJG_0017(self): """当前页面无成员""" # 1、点击“更多” # 2、点击“批量删除成员” osp = OrganizationStructurePage() osp.wait_for_page_load() osp.click_element_("更多管理") time.sleep(1) osp.click_element_("批量删除成员") osp.wait_for_delete_contacts_page_load() els = osp.get_contacts_in_organization() if els: print("当前组织有成员") current_mobile().back() osp.wait_for_page_load()
def test_ZZJG_0010(self): """从部门进入扫码审核""" # 1、点击“更多” # 2、点击“扫码审核” # 3、查看页面 osp = OrganizationStructurePage() osp.wait_for_page_load() osp.click_element_("更多管理") time.sleep(1) osp.click_element_("审核与设置") time.sleep(3) if not osp.is_text_present("扫码加入企业"): raise AssertionError("无法正常跳转到待审核页面") current_mobile().back() osp.wait_for_page_load()
def test_ZZJG_0011(self): """成功批量删除部门中成员信息""" # 1、点击“更多” # 2、点击“批量删除成员” # 3、勾选需要删除的成员 # 4、点击“确定” osp = OrganizationStructurePage() osp.wait_for_page_load() osp.click_element_("更多管理") time.sleep(2) osp.click_element_("批量删除成员") osp.wait_for_delete_contacts_page_load() time.sleep(3) els = osp.get_contacts_in_organization() if els: for el in els: el.click() else: raise AssertionError("当前组织没有成员,请添加") time.sleep(1) osp.click_element_("确定删除成员") if not osp.is_toast_exist("成功"): raise AssertionError("没有删除成功") current_mobile().back() osp.wait_for_page_load()
def test_ZZJG_0014(self): """查看已审核列表""" # 1、点击“组织架构”应用 # 2、点击“更多” # 3、点击“扫码审核”,切换到已审核列表 osp = OrganizationStructurePage() osp.wait_for_page_load() osp.click_element_("更多管理") time.sleep(1) osp.click_element_("审核与设置") time.sleep(2) if not osp.is_text_present("扫码加入企业"): raise AssertionError("无法正常跳转到审核页面") osp.click_element_("已审核") time.sleep(2) current_mobile().back() osp.wait_for_page_load()