Implement client-side registration form validation.
Input forms that need validation will have AJAX requests performed to get validation decisions live. All but a few important and common form fields perform generic validation; these will need a back-end handler in the future in order to have them validated through AJAX requests. Information is conveyed on focus and blur for both errors and successes.
This commit is contained in:
@@ -344,10 +344,7 @@ class RegisterFromCombinedPageTest(UniqueCourseTest):
|
||||
# Verify that the expected errors are displayed.
|
||||
errors = self.register_page.wait_for_errors()
|
||||
self.assertIn(u'Please enter your Public Username.', errors)
|
||||
self.assertIn(
|
||||
u'You must agree to the édX Terms of Service and Honor Code',
|
||||
errors
|
||||
)
|
||||
self.assertIn(u'You must agree to the édX Terms of Service and Honor Code', errors)
|
||||
self.assertIn(u'Please select your Country.', errors)
|
||||
self.assertIn(u'Please tell us your favorite movie.', errors)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user