Пример #1
0
def create_behave_user(context):
    username = behave_testuser()
    password = behave_password()
    context.browser.get(signup_url())
    signup_page = SignUpPage(context)
    signup_page.wait_until_element_is_visible_by_locator((By.CSS_SELECTOR, 'input#srp_username'))
    signup_page.enter_username(username)
    signup_page.enter_password(password)
    signup_page.enter_password_confirmation(password)
    signup_page.enter_invite_code(get_invite_code())
    signup_page.click_signup_button()
Пример #2
0
def create_behave_user(context):
    username = behave_testuser()
    password = behave_password()

    context.browser.get('https://staging.pixelated-project.org/signup')
    signup_page = SignUpPage(context)
    signup_page.wait_until_element_is_visible_by_locator((By.CSS_SELECTOR, 'input#srp_username'))
    signup_page.enter_username(username)
    signup_page.enter_password(password)
    signup_page.enter_password_confirmation(password)
    signup_page.click_signup_button()
Пример #3
0
def create_behave_user(context):
    username = behave_testuser()
    password = behave_password()

    context.browser.get('https://staging.pixelated-project.org/signup')
    signup_page = SignUpPage(context)
    signup_page.wait_until_element_is_visible_by_locator(
        (By.CSS_SELECTOR, 'input#srp_username'))
    signup_page.enter_username(username)
    signup_page.enter_password(password)
    signup_page.enter_password_confirmation(password)
    signup_page.click_signup_button()
Пример #4
0
def after_all(context):
    _delete_user(context, behave_testuser(), behave_password())
    if hasattr(context, 'browser'):
        context.browser.quit()
Пример #5
0
def step_impl(context):
    subject =  'unencrypted email %s' % random_subject()
    behave_user = behave_testuser()

    maillist = MailList(context)
    maillist.select_mail(behave_user, subject)
Пример #6
0
def step_impl(context):
    subject = 'email to myself %s' % random_subject()
    behave_user = behave_testuser()

    maillist = MailList(context)
    maillist.select_mail(behave_user, subject)
Пример #7
0
def step_impl(context):
    context.browser.get(login_url())
    login_page = LoginPage(context)
    login_page.enter_username(behave_testuser()).enter_password(behave_password()).login()
    login_page.wait_interstitial_page()
Пример #8
0
def step_impl(context):
    subject = 'unencrypted email %s' % random_subject()
    behave_user = behave_testuser()

    maillist = MailList(context)
    maillist.select_mail(behave_user, subject)
Пример #9
0
def step_impl(context):
    subject = 'email to myself %s' % random_subject()
    behave_user = behave_testuser()

    maillist = MailList(context)
    maillist.select_mail(behave_user, subject)
Пример #10
0
def step_impl(context):
    context.browser.get(login_url())
    login_page = LoginPage(context)
    login_page.enter_username(behave_testuser()).enter_password(
        behave_password()).login()
    login_page.wait_interstitial_page()