Exemple #1
0
def test_sunny_login(browser):
    login_page = LoginPage(browser)

    login_page.go_to_site()
    login_page.enter_email(email=email)
    login_page.enter_password(password=password)
    login_page.click_sing_in()
    login_page.check_page_is_opened_successfully(link_part='app')
Exemple #2
0
def test_sing_up_error(browser, email, password, expected_message):
    login_page = LoginPage(browser)

    login_page.go_to_site()
    login_page.enter_email(email)
    login_page.enter_password(password)
    login_page.click_sing_in()
    login_page.check_login_page_is_downloaded()
    actual_messages = login_page.get_sing_up_error()
    assert actual_messages == expected_message