Changeset 13344 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 23 Oct 2015, 06:41:21 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r13314 r13344 3231 3231 # Student with wrong number can't be found. 3232 3232 self.browser.open('http://localhost/app/requestpw') 3233 self.browser.getControl(name="form. firstname").value = 'Anna'3233 self.browser.getControl(name="form.lastname").value = 'Tester' 3234 3234 self.browser.getControl(name="form.number").value = 'anynumber' 3235 3235 self.browser.getControl(name="form.email").value = 'xx@yy.zz' … … 3237 3237 self.assertTrue('No student record found.' 3238 3238 in self.browser.contents) 3239 # Anonymous is not informed that firstname verification failed.3239 # Anonymous is not informed that lastname verification failed. 3240 3240 # It seems that the record doesn't exist. 3241 3241 self.browser.open('http://localhost/app/requestpw') 3242 self.browser.getControl(name="form. firstname").value = 'Johnny'3242 self.browser.getControl(name="form.lastname").value = 'Johnny' 3243 3243 self.browser.getControl(name="form.number").value = '123' 3244 3244 self.browser.getControl(name="form.email").value = 'xx@yy.zz' … … 3246 3246 self.assertTrue('No student record found.' 3247 3247 in self.browser.contents) 3248 # Even with the correct firstname we can't register if a3248 # Even with the correct lastname we can't register if a 3249 3249 # password has been set and used. 3250 self.browser.getControl(name="form. firstname").value = 'Anna'3250 self.browser.getControl(name="form.lastname").value = 'Tester' 3251 3251 self.browser.getControl(name="form.number").value = '123' 3252 3252 self.browser.getControl("Send login credentials").click() … … 3255 3255 self.browser.open('http://localhost/app/requestpw') 3256 3256 self.app['students'][self.student_id].password = None 3257 # The firstname field, used for verification, is not case-sensitive.3258 self.browser.getControl(name="form. firstname").value = 'aNNa'3257 # The lastname field, used for verification, is not case-sensitive. 3258 self.browser.getControl(name="form.lastname").value = 'tESTer' 3259 3259 self.browser.getControl(name="form.number").value = '123' 3260 3260 self.browser.getControl(name="form.email").value = 'new@yy.zz' … … 3265 3265 # We can also use the matric_number instead. 3266 3266 self.browser.open('http://localhost/app/requestpw') 3267 self.browser.getControl(name="form. firstname").value = 'aNNa'3267 self.browser.getControl(name="form.lastname").value = 'tESTer' 3268 3268 self.browser.getControl(name="form.number").value = '234' 3269 3269 self.browser.getControl(name="form.email").value = 'new@yy.zz'
Note: See TracChangeset for help on using the changeset viewer.