def test_member_0071(self):
     """
         当月已解绑过一名成员后再次解绑第二名成员	"1、非四川移动用户已登录APP;
         2、网络正常;
         3、当前在不限时长成员管理;"	长按要解绑的不限时长成员	"解绑达上限,则toast提示“本月解绑人数已达上限”
     """
     contact_page = ContactsPage()
     # 确保在通讯录界面
     self.assertEqual(
         contact_page.is_element_already_exist_c('通讯录_标题',
                                                 default_timeout=20), True)
     # 密友圈没有成员
     if not contact_page.if_meet_net_expand():
         raise RuntimeError('密友圈没有成员')
     # 点击管理
     contact_page.get_elements_list_c('密友圈_管理')[0].click()
     time.sleep(1)
     contact_page.press(contact_page.get_elements_list_c('密友圈_管理_成员')[0])
     time.sleep(0.5)
     contact_page.click_text('解绑')
     time.sleep(0.5)
     contact_page.click_locator_key_c('密友圈_解绑_确定')
     time.sleep(1)
     if not contact_page.if_meet_net_expand():
         raise RuntimeError('密友圈没有成员')
     # 点击管理
     contact_page.press(contact_page.get_elements_list_c('密友圈_管理_成员')[0])
     time.sleep(0.5)
     contact_page.click_text('解绑')
     time.sleep(0.5)
     contact_page.click_locator_key_c('密友圈_解绑_确定')
     time.sleep(1)
     self.assertEqual(contact_page.is_toast_exist('解绑人数已达本月上限'), True)
 def test_member_0065(self):
     """
         "1、非广东、四川移动用户已登录APP;
         2、网络正常;
         3、当前在不限时长成员管理;"	"1、长按要解绑的不限时长成员
         2、点击“解绑”按钮;
         3、点击“取消”键;
         "	弹框消失,取消本次解绑操作;
     """
     contact_page = ContactsPage()
     # 确保在通讯录界面
     self.assertEqual(
         contact_page.is_element_already_exist_c('通讯录_标题',
                                                 default_timeout=20), True)
     # 展开家庭网
     if not contact_page.if_meet_net_expand():
         raise RuntimeError('密友圈没有成员')
     # 点击管理
     contact_page.get_elements_list_c('密友圈_管理')[0].click()
     time.sleep(1)
     contact_page.press_element_c('密友圈_管理_成员')
     time.sleep(0.5)
     contact_page.click_text('解绑')
     time.sleep(0.5)
     contact_page.click_locator_key_c('密友圈_解绑_取消')
     time.sleep(1)
     self.assertEqual(contact_page.is_text_present_c('不限时长成员管理'), True)
 def test_member_00107_02(self):
     """
         1、查看密友圈(不限时长)
         2、点击成员电话icon
         3、点击“管理”
         1、列表为横向可滑动显示查看:成员半透明底头像+电话icon,底部为不限时长联系人名称(名称显示优先级:备注名(存在服务端)>个人中心昵称>本地通讯录>家庭网名>短号);
         2、点击icon发起电话流程(回拨或者CS电话),打电话逻辑不变;
         3、进入不限时长成员管理页面,成员管理页面、添加成员页面以及功能逻辑与现网标准版一致;"
     """
     contact_page = ContactsPage()
     # 确保在通讯录界面
     self.assertEqual(
         contact_page.is_element_already_exist_c('通讯录_标题',
                                                 default_timeout=20), True)
     # 密友圈没有成员
     if not contact_page.if_meet_net_expand():
         raise RuntimeError('密友圈没有成员')
     # 点击管理
     contact_page.get_elements_list_c('密友圈_管理')[0].click()
     time.sleep(1)
     contact_page.click_locator_key_c('密友圈_添加成员')
     time.sleep(1)
     contact_page.is_text_present_c('添加不限时长成员', default_timeout=20)