Exemple #1
0
 def test_login_with_invalid_email(self):
     home_page = HomePage(self.driver)
     account_page = MyAccountPage(self.driver)
     home_page.go_to_my_account_page()
     account_page.log_in_user(config.USER_WRONG_EMAIL, config.USER_PASSWORD)
     email_validation_msg = account_page.validation_msg()
     assert_that(email_validation_msg).is_equal_to(
         data.ERROR_INVALID_EMAIL_LOG)
Exemple #2
0
 def test_login_with_valid_credits(self):
     home_page = HomePage(self.driver)
     account_page = MyAccountPage(self.driver)
     home_page.go_to_my_account_page()
     account_page.log_in_user(config.USER_EMAIL, config.USER_PASSWORD)
     account_page.is_logout_link_displayed()