- Timestamp:
- 24 Sep 2013, 12:38:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.