예제 #1
0
 def test_param_create_user_validation(self, email, password, error):
     home_page = HomePage(self.driver)
     account_page = MyAccountPage(self.driver)
     home_page.go_to_my_account_page()
     account_page.register_user(email, password)
     error_msg = account_page.validation_msg()
     assert_that(error_msg).is_equal_to(error)
예제 #2
0
 def test_create_user_with_existing_data(self):
     home_page = HomePage(self.driver)
     account_page = MyAccountPage(self.driver)
     home_page.go_to_my_account_page()
     account_page.register_user(config.USER_EMAIL, config.USER_PASSWORD)
     error_msg = account_page.validation_msg()
     assert_that(error_msg).is_equal_to(data.ERROR_ALREADY_REGISTERED_ACC)
예제 #3
0
 def test_create_user_with_invalid_email(self):
     home_page = HomePage(self.driver)
     account_page = MyAccountPage(self.driver)
     home_page.go_to_my_account_page()
     account_page.register_user("[email protected]", config.USER_PASSWORD)
     error_msg = account_page.validation_msg()
     assert_that(error_msg).is_equal_to(data.ERROR_INVALID_EMAIL_REG)
예제 #4
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)