def get_expired_verification_message(_): assert browser.find_by_text("Your link has expired") assert browser.find_by_text("request another verification email")
def get_no_messages_text(): return browser.find_by_text('No new conversations')
def get_no_my_conversations_text(): return browser.find_by_text('There are currently no messages')
def click_verification_link(): return browser.find_by_text('request another email')
def account_status_changed(context): assert browser.find_by_text('Account status changed') reporting_unit.click_data_panel(context.short_name) assert browser.find_by_id('account-status')[0].value == 'Active'
def get_password_requirements_message(): return browser.find_by_text("Your password doesn't meet the requirements")
def get_verification_message(): return browser.find_by_text('Check your email')
def survey_set_to_longer_required(context, status): signed_in_respondent(context) go_to_history_tab() assert browser.find_by_text(status)
def wait_for_text_on_screen(browser): browser.reload() elem = browser.find_by_text('Downloaded') if elem[0].text == 'Downloaded': return elem
def confirm_success_message(_): assert 'Respondents | Survey Data Collection' in browser.title assert browser.find_by_text('Enrolment status changed')
def account_status_changed_msg(_): assert browser.find_by_text('Account status changed')
def verified_user_page(_): assert '/sign-in/?account_activated=True' in browser.url assert browser.find_by_text("You've activated your account")
def resend_verification_page(_): assert browser.find_by_text('Check your email')
def click_resend_verification_link(_): browser.find_by_text("request another verification email").click()
def get_passwords_do_not_match_message(): return browser.find_by_text('Your passwords do not match')
def no_changes_have_been_made_to_collex(_): assert browser.find_by_text('Not started')
def get_password_changed_message(): return browser.find_by_text('Your password has been changed')
def status_set_to_completed(_): surveys_todo.go_to() go_to_history_tab() assert browser.find_by_text('Complete')
def respondent_successfully_logged_in(): return browser.find_by_text('ONS Business Surveys')
def password_reset_sent(): return browser.find_by_text('Check your email')
def get_unverified_message(): return browser.find_by_text('Verify your email')
def check_email_error_message(): return browser.find_by_text('Invalid email address')
def get_verification_resend_message(): return browser.find_by_text( 'Please follow the link in the email we\'ve sent you to verify your email address ' 'and sign in to your account.')
def get_expired_message(): return browser.find_by_text('Your link has expired')
def external_conversation_closed_message(_): assert browser.find_by_text('This conversation has now been closed. ') assert browser.driver.find_element_by_link_text('to do list') assert browser.driver.find_element_by_link_text('history')
def get_request_new_password(): return browser.find_by_text('Check your email')
def get_no_closed_conversations_text(): return browser.find_by_text('No closed conversations')
def get_reset_password_message(): return browser.find_by_text('Reset your password')
def get_filter_page_title(): return browser.find_by_text('Filter messages by survey')
def confirm_email_resend(_): assert browser.find_by_text('Verification email re-sent')