def test_no_cur_pword (self): # fills out form but omits name entry module_logger.info('Started FE Update Profile / No Current Password Test') up = UpdateProfile(self.driver) self.new_data_entry(up) up.update_profile_submit() module_logger.info('new data entered') self.assertTrue(check_is_displayed(locators["required"]), "It wasn't true :(") module_logger.info('error message detected. No Current Password Test Complete')
def test_no_cur_pword(self): # fills out form but omits name entry module_logger.info( 'Started FE Update Profile / No Current Password Test') up = UpdateProfile(self.driver) self.new_data_entry(up) up.update_profile_submit() module_logger.info('new data entered') self.assertTrue(check_is_displayed(locators["required"]), "It wasn't true :(") module_logger.info( 'error message detected. No Current Password Test Complete')
def test_no_name (self): # fills out form but omits name entry module_logger.info('Started FE Update Profile / No First Name Test') up = UpdateProfile(self.driver) up.first_name = "" up.last_name = test_info["new_last_name"] up.email = test_info["new_email"] up.phone = test_info["new_phone"] self.password_entry(up) up.update_profile_submit() module_logger.info('new data entered') self.assertTrue(check_is_displayed(locators["required"]), "It wasn't true :(") module_logger.info('error message detected. No First Name Test Complete')
def test_wrong_phone_format (self): # enters a bad phone format / asserts that error displays module_logger.info('Started FE Update Profile / Wrong Phone Format Test') up = UpdateProfile(self.driver) up.first_name = test_info["first_name"] up.last_name = test_info["last_name"] up.email = test_info["email"] up.phone = "8675309" self.password_entry(up) up.update_profile_submit() module_logger.info('new data entered') self.assertTrue(check_is_displayed(locators["required"]), "It wasn't true :(") module_logger.info('error message detected. Wrong Phone Format Test Complete')
def test_no_name(self): # fills out form but omits name entry module_logger.info('Started FE Update Profile / No First Name Test') up = UpdateProfile(self.driver) up.first_name = "" up.last_name = test_info["new_last_name"] up.email = test_info["new_email"] up.phone = test_info["new_phone"] self.password_entry(up) up.update_profile_submit() module_logger.info('new data entered') self.assertTrue(check_is_displayed(locators["required"]), "It wasn't true :(") module_logger.info( 'error message detected. No First Name Test Complete')
def test_wrong_phone_format(self): # enters a bad phone format / asserts that error displays module_logger.info( 'Started FE Update Profile / Wrong Phone Format Test') up = UpdateProfile(self.driver) up.first_name = test_info["first_name"] up.last_name = test_info["last_name"] up.email = test_info["email"] up.phone = "8675309" self.password_entry(up) up.update_profile_submit() module_logger.info('new data entered') self.assertTrue(check_is_displayed(locators["required"]), "It wasn't true :(") module_logger.info( 'error message detected. Wrong Phone Format Test Complete')