示例#1
0
def test_positive_reg(web_browser):
    page = AuthPage(web_browser)
    page.input_first_name_xpath = config.positive_first_name
    page.input_last_name_xpath = config.positive_last_name
    page.input_email_xpath = config.positive_email
    page.input_phone_xpath = config.positive_phone
    page.input_password_xpath = config.positive_password
    page.input_password_confirmation_xpath = config.positive_password_confirmation
    page.checkbox_xpath.click()
    page.button_registration_xpath.click()
    assert page.get_relative_link() == config.url_reg, 'ERROR positive_reg'
示例#2
0
def test_warning_password_small(web_browser):
    page = AuthPage(web_browser)
    page.input_password_xpath = config.negative_password_small
    page.input_password_confirmation_xpath = config.negative_password_small

    page.input_first_name_xpath = config.positive_first_name
    page.input_last_name_xpath = config.positive_last_name
    page.input_email_xpath = config.positive_email
    page.input_phone_xpath = config.positive_phone
    page.checkbox_xpath.click()
    page.button_registration_xpath.click()

    assert page.warning_whoops_xpath.is_visible(
    ) and page.warning_password_small_xpath.is_visible(
    ), 'Not found warning_password_small'