def login(driver, admin): """Вход в систему""" page = AuthPage(driver) page.username = admin.login page.password = admin.password page.click_login_button() yield
def test_signin_existing_user(self, admin): user = admin page = AuthPage(self.driver) page.username = user.login page.password = user.password page = page.click_login_button() assert page.user_is_signin()