- Timestamp:
- 20 Sep 2012, 08:22:52 (12 years ago)
- Location:
- main/waeup.kofa/branches/uli-async-update
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-async-update
- Property svn:mergeinfo changed
/main/waeup.kofa/trunk merged: 9172,9178,9180,9182-9184,9186-9189,9191-9204
- Property svn:mergeinfo changed
-
main/waeup.kofa/branches/uli-async-update/src/waeup/kofa/applicants/browser.py
r9169 r9208 1042 1042 return 1043 1043 1044 @action(_(' Get login credentials'), style='primary')1044 @action(_('Send login credentials to email address'), style='primary') 1045 1045 def register(self, **data): 1046 1046 if not self.captcha_result.is_valid: -
main/waeup.kofa/branches/uli-async-update/src/waeup/kofa/applicants/tests/test_browser.py
r9169 r9208 935 935 self.browser.getControl(name="form.phone.area").value = '555' 936 936 self.browser.getControl(name="form.phone.ext").value = '6666666' 937 self.browser.getControl(" Getlogin credentials").click()937 self.browser.getControl("Send login credentials").click() 938 938 self.assertEqual(self.browser.url, 939 939 self.container_path + '/registration_complete?email=xx%40yy.zz') … … 962 962 self.browser.getControl(name="form.reg_number").value = 'anynumber' 963 963 self.browser.getControl(name="form.email").value = 'xx@yy.zz' 964 self.browser.getControl(" Getlogin credentials").click()964 self.browser.getControl("Send login credentials").click() 965 965 self.assertTrue('No application record found.' 966 966 in self.browser.contents) … … 972 972 self.browser.getControl(name="form.reg_number").value = '1234' 973 973 self.browser.getControl(name="form.email").value = 'xx@yy.zz' 974 self.browser.getControl(" Getlogin credentials").click()974 self.browser.getControl("Send login credentials").click() 975 975 self.assertTrue('An error occurred.' in self.browser.contents) 976 976 # Let's set this attribute manually … … 981 981 self.browser.getControl(name="form.reg_number").value = '1234' 982 982 self.browser.getControl(name="form.email").value = 'xx@yy.zz' 983 self.browser.getControl(" Getlogin credentials").click()983 self.browser.getControl("Send login credentials").click() 984 984 # Anonymous is not informed that firstname verification failed. 985 985 # It seems that the record doesn't exist. … … 991 991 self.browser.getControl(name="form.firstname").value = 'John' 992 992 self.browser.getControl(name="form.reg_number").value = '1234' 993 self.browser.getControl(" Getlogin credentials").click()993 self.browser.getControl("Send login credentials").click() 994 994 self.assertTrue('Your password has already been set and used.' 995 995 in self.browser.contents) … … 1005 1005 self.browser.getControl(name="form.reg_number").value = '1234' 1006 1006 self.browser.getControl(name="form.email").value = 'new@yy.zz' 1007 self.browser.getControl(" Getlogin credentials").click()1007 self.browser.getControl("Send login credentials").click() 1008 1008 # Yeah, we succeded ... 1009 1009 self.assertTrue('Your registration was successful.' … … 1021 1021 self.browser.getControl(name="form.identifier").value = '1234' 1022 1022 self.browser.getControl(name="form.email").value = 'aa@aa.ng' 1023 self.browser.getControl(" Getlogin credentials").click()1023 self.browser.getControl("Send login credentials").click() 1024 1024 self.assertTrue('No record found' in self.browser.contents) 1025 1025 self.applicant.email = 'aa@aa.ng' … … 1029 1029 self.browser.getControl(name="form.identifier").value = '1234' 1030 1030 self.browser.getControl(name="form.email").value = 'aa@aa.ng' 1031 self.browser.getControl(" Getlogin credentials").click()1031 self.browser.getControl("Send login credentials").click() 1032 1032 self.assertTrue( 1033 1033 'An email with your user name and password has been sent'
Note: See TracChangeset for help on using the changeset viewer.