def test_login_0075(self): """ 先卸载后安装""" # 卸载和飞信 from settings.available_devices import TARGET_APP current_mobile().install_app(TARGET_APP.get('DOWNLOAD_URL'), replace=True) # Preconditions.make_already_in_message_page() Preconditions.select_mobile('Android-移动') current_mobile().hide_keyboard_if_display() Preconditions.app_start_for_the_first_time() sl = SmsLoginPage() sl.page_should_not_contain_text('一键登陆')
def test_login_0117(self): """ 老版用户更新后登录""" oklp = OneKeyLoginPage() sl = SmsLoginPage() oklp.wait_for_page_load() oklp.click_one_key_login() time.sleep(1) oklp.page_should_contain_text('查看详情') # 查看详情 sl.click_read_agreement_detail() # 同意协议 agreement = AgreementDetailPage() agreement.click_agree_button() time.sleep(1) from settings.available_devices import TARGET_APP current_mobile().install_app(TARGET_APP.get('DOWNLOAD_URL'), replace=True) time.sleep(5) current_mobile().activate_app() time.sleep(10) oklp.page_should_contain_text('消息')