'Helper function that checks if the validation modal contains correct
error messages.'

def check_modal_shows_correct_contents(self, wrong_settings_list):

    self.assertTrue(self.advanced_settings.is_validation_modal_present())
    error_item_names = self.advanced_settings.get_error_item_names()
    self.assertEqual(set(wrong_settings_list), set(error_item_names))
    error_item_messages = self.advanced_settings.get_error_item_messages()
    self.assertEqual(len(error_item_names), len(error_item_messages))
