Пример #1
0
def login(driver, admin):
    """Вход в систему"""
    page = AuthPage(driver)
    page.username = admin.login
    page.password = admin.password
    page.click_login_button()
    yield
Пример #2
0
    def test_signin_not_existing_user(self, user_not_exists):
        user = user_not_exists

        page = AuthPage(self.driver)
        page.username = user.login
        page.password = user.password
        page.click_login_button()

        assert page.user_is_not_signin()