Changeset 10645 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 24 Sep 2013, 12:38:26 (11 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r10644 r10645 83 83 form_fields['description'].custom_widget = HTMLDisplayWidget 84 84 label = _('Application Section') 85 search_button = _('Search')86 85 pnav = 3 87 86 … … 111 110 grok.require('waeup.viewApplication') 112 111 label = _('Find applicants') 113 search_button = _(' Search')112 search_button = _('Find applicant') 114 113 pnav = 3 115 114 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantssearchpage.pt
r8404 r10645 3 3 <input class="btn primary" type="submit" name="search" 4 4 tal:attributes="value view/search_button" /> 5 <span i18n:translate="">for applicant</span>6 5 7 6 <select name="searchtype"> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r10644 r10645 254 254 self.browser.getControl(name="searchtype").value = ['fullname'] 255 255 self.browser.getControl(name="searchterm").value = 'John' 256 self.browser.getControl(" Search").click()256 self.browser.getControl("Find applicant").click() 257 257 self.assertTrue('John Anthony Tester' in self.browser.contents) 258 258 self.browser.getControl(name="searchtype").value = ['fullname'] 259 259 self.browser.getControl(name="searchterm").value = 'Tester' 260 self.browser.getControl(" Search").click()260 self.browser.getControl("Find applicant").click() 261 261 self.assertTrue('John Anthony Tester' in self.browser.contents) 262 262 self.browser.open(self.search_path) … … 264 264 self.browser.getControl(name="searchtype").value = ['reg_number'] 265 265 self.browser.getControl(name="searchterm").value = '2345' 266 self.browser.getControl(" Search").click()266 self.browser.getControl("Find applicant").click() 267 267 self.assertFalse('John Anthony Tester' in self.browser.contents) 268 268 self.browser.getControl(name="searchtype").value = ['reg_number'] 269 269 self.browser.getControl(name="searchterm").value = '1234' 270 self.browser.getControl(" Search").click()270 self.browser.getControl("Find applicant").click() 271 271 self.assertTrue('John Anthony Tester' in self.browser.contents) 272 272 # ... and not via his application_number ... … … 274 274 self.browser.getControl( 275 275 name="searchterm").value = self.applicant.application_number 276 self.browser.getControl(" Search").click()276 self.browser.getControl("Find applicant").click() 277 277 self.assertFalse('John Anthony Tester' in self.browser.contents) 278 278 # ... but ia his applicant_id ... … … 280 280 self.browser.getControl( 281 281 name="searchterm").value = self.applicant.applicant_id 282 self.browser.getControl(" Search").click()282 self.browser.getControl("Find applicant").click() 283 283 self.assertTrue('John Anthony Tester' in self.browser.contents) 284 284 # ... and via his email 285 285 self.browser.getControl(name="searchtype").value = ['email'] 286 286 self.browser.getControl(name="searchterm").value = 'xx@yy.zz' 287 self.browser.getControl(" Search").click()287 self.browser.getControl("Find applicant").click() 288 288 self.assertTrue('John Anthony Tester' in self.browser.contents) 289 289 return
Note: See TracChangeset for help on using the changeset viewer.