Changeset 11738 for main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
- Timestamp:
- 7 Jul 2014, 06:35:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r11729 r11738 1210 1210 self.applicantscontainer.mode = 'update' 1211 1211 self.browser.open(self.container_path + '/register') 1212 self.browser.getControl(name="form. firstname").value = 'John'1212 self.browser.getControl(name="form.lastname").value = 'Better' 1213 1213 self.browser.getControl(name="form.reg_number").value = 'anynumber' 1214 1214 self.browser.getControl(name="form.email").value = 'xx@yy.zz' … … 1217 1217 in self.browser.contents) 1218 1218 # Even with the correct reg_number we can't register 1219 # because firstname attribute is not set.1219 # because lastname attribute is not set. 1220 1220 self.applicantscontainer.mode = 'update' 1221 1221 self.browser.open(self.container_path + '/register') 1222 self.browser.getControl(name="form. firstname").value = 'John'1222 self.browser.getControl(name="form.lastname").value = 'Better' 1223 1223 self.browser.getControl(name="form.reg_number").value = '1234' 1224 1224 self.browser.getControl(name="form.email").value = 'xx@yy.zz' … … 1227 1227 # Let's set this attribute manually 1228 1228 # and try to register with a wrong name. 1229 self.applicant. firstname = u'John'1229 self.applicant.lastname = u'Better' 1230 1230 self.browser.open(self.container_path + '/register') 1231 self.browser.getControl(name="form. firstname").value = 'Johnny'1231 self.browser.getControl(name="form.lastname").value = 'Worse' 1232 1232 self.browser.getControl(name="form.reg_number").value = '1234' 1233 1233 self.browser.getControl(name="form.email").value = 'xx@yy.zz' 1234 1234 self.browser.getControl("Send login credentials").click() 1235 # Anonymous is not informed that firstname verification failed.1235 # Anonymous is not informed that lastname verification failed. 1236 1236 # It seems that the record doesn't exist. 1237 1237 self.assertTrue('No application record found.' 1238 1238 in self.browser.contents) 1239 # Even with the correct firstname we can't register if a1239 # Even with the correct lastname we can't register if a 1240 1240 # password has been set and used. 1241 1241 IWorkflowState(self.applicant).setState('started') 1242 self.browser.getControl(name="form. firstname").value = 'John'1242 self.browser.getControl(name="form.lastname").value = 'Better' 1243 1243 self.browser.getControl(name="form.reg_number").value = '1234' 1244 1244 self.browser.getControl("Send login credentials").click() … … 1252 1252 IWorkflowState(self.applicant).setState('initialized') 1253 1253 self.browser.open(self.container_path + '/register') 1254 # The firstname field, used for verification, is not case-sensitive.1255 self.browser.getControl(name="form. firstname").value = 'jOhn'1254 # The lastname field, used for verification, is not case-sensitive. 1255 self.browser.getControl(name="form.lastname").value = 'bEtter' 1256 1256 self.browser.getControl(name="form.reg_number").value = '1234' 1257 1257 self.browser.getControl(name="form.email").value = 'new@yy.zz'
Note: See TracChangeset for help on using the changeset viewer.