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_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_00155(self): """ 1、登录密友圈 2、跳转通讯录界面" "1、跳转通讯录tab 2、点击通讯录成员列表中的去添加快捷方式按钮 3、点击去开启" "1、在通讯录界面显示成员列表并显示添加快捷方式按钮 2、弹窗已尝试添加到桌面弹窗,对于主流手机(华为、OPPO、vivo、小米),弹窗右侧按钮改成“去开启”。点击“去开启”跳转到系统设置页面 3、若用户未悬浮窗权限,则以长toast的形式,根据机型不同,提示不同的提示文案 ②若用户已开启悬浮窗权限,则以悬浮窗形式(悬浮窗停留5S),根据机型不同,提示不同文案 """ contact_page = ContactsPage() # 确保在通讯录界面 self.assertEqual( contact_page.is_element_already_exist_c('通讯录_标题', default_timeout=20), True) contact_page.click_locator_key_c('添加桌面图标') time.sleep(0.5) if contact_page.is_text_present_c('已尝试添加到桌面'): contact_page.click_text('去开启')