def test_user_login(self, browser): # Data email = "*****@*****.**" password = "******" # Act page = LoginPage(browser, link) page.open() # Assert page.should_be_login_form() page.should_be_authorized_user()
def test_user_login(self, browser): # Data test_user_email = "*****@*****.**" test_user_password = "******" # Act login_page = LoginPage(browser) login_page.open() # Assert login_page.should_be_login_form() login_page.user_login(test_user_email, test_user_password) login_page.should_be_authorized_user() login_page.user_should_see_message_login()