def test_empty_password(self):
     home_page = HomePage(self.driver)
     home_page.signin()
     login = LoginPage(self.driver)
     login.set_credentials(
         'NotjustagreatvalleybutashrinetohumanforesightthestrengthofgranitethepowerofglaciersthepersistenceoflifeandthetranquilityoftheHighSierraFirst protectedin1864YosemiteNationalParkisbestknownforitswaterfallst@gmail.com',
         'test@1234')
     assert login.check_page_source("Authentication failed.")
 def test_max_length_password(self):
     home_page = HomePage(self.driver)
     home_page.signin()
     login = LoginPage(self.driver)
     login.set_credentials(
         '*****@*****.**',
         'tNotjustagreatvalleybutashrinetohumanforesightthestrengthofgranitethepowerofglaciersthepersistenceoflifeandthetranquilityoftheHighSierraFirst'
     )
     assert login.check_page_source("Authentication failed.")
 def test_space_email(self):
     home_page = HomePage(self.driver)
     home_page.signin()
     login = LoginPage(self.driver)
     login.set_credentials(' ', 'test@1234')
     assert login.check_page_source("An email address required.")
 def test_single_letter_password(self):
     home_page = HomePage(self.driver)
     home_page.signin()
     login = LoginPage(self.driver)
     login.set_credentials('*****@*****.**', 't')
     assert login.check_page_source("Invalid password.")
 def test_missing_symbol_password(self):
     home_page = HomePage(self.driver)
     home_page.signin()
     login = LoginPage(self.driver)
     login.set_credentials('*****@*****.**', 'test1234')
     assert login.check_page_source("Authentication failed.")
 def test_valid_credentials(self):
     home_page = HomePage(self.driver)
     home_page.signin()
     login = LoginPage(self.driver)
     login.set_credentials('*****@*****.**', 'test@1234')
     assert login.check_page_source("Welcome to your account.")
 def test_symbol_added_email(self):
     home_page = HomePage(self.driver)
     home_page.signin()
     login = LoginPage(self.driver)
     login.set_credentials('namu#@[email protected]', 'test@1234')
     assert login.check_page_source("Invalid email address.")
 def test_missing_dot_email(self):
     home_page = HomePage(self.driver)
     home_page.signin()
     login = LoginPage(self.driver)
     login.set_credentials('namutest46@gmailcom', 'test@1234')
     assert login.check_page_source("Invalid email address.")
 def test_single_letter_email(self):
     home_page = HomePage(self.driver)
     home_page.signin()
     login = LoginPage(self.driver)
     login.set_credentials('n', 'test@1234')
     assert login.check_page_source("Invalid email address.")
 def test_invalid_email(self):
     home_page = HomePage(self.driver)
     home_page.signin()
     login = LoginPage(self.driver)
     login.set_credentials('*****@*****.**', 'test@1234')
     assert login.check_page_source("Authentication failed.")
 def test_empty_password(self):
     home_page = HomePage(self.driver)
     home_page.signin()
     login = LoginPage(self.driver)
     login.set_credentials('*****@*****.**', '')
     assert login.check_page_source("Password is required.")