Changeset 10647 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 24 Sep 2013, 12:51:11 (11 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r10637 r10647 259 259 grok.template('containerpage') 260 260 label = _('Student Section') 261 search_button = _(' Search')261 search_button = _('Find student(s)') 262 262 pnav = 4 263 263 … … 303 303 pnav = 4 304 304 label = _('Manage student section') 305 search_button = _(' Search')305 search_button = _('Find student(s)') 306 306 remove_button = _('Remove selected') 307 307 -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/containermanagepage.pt
r9795 r10647 3 3 <input class="btn primary" type="submit" name="search" 4 4 tal:attributes="value view/search_button" /> 5 <span i18n:translate="">for students</span>6 5 7 6 <select name="searchtype"> -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/containerpage.pt
r10465 r10647 3 3 <input class="btn primary" type="submit" name="search" 4 4 tal:attributes="value view/search_button" /> 5 <span i18n:translate="">for students</span>6 5 7 6 <select name="searchtype"> -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r10646 r10647 290 290 # We can find a student with a certain student_id 291 291 self.browser.open(self.container_path) 292 self.browser.getControl(" Search").click()292 self.browser.getControl("Find student(s)").click() 293 293 self.assertTrue('Empty search string' in self.browser.contents) 294 294 self.browser.getControl(name="searchtype").value = ['student_id'] 295 295 self.browser.getControl(name="searchterm").value = self.student_id 296 self.browser.getControl(" Search").click()296 self.browser.getControl("Find student(s)").click() 297 297 self.assertTrue('Anna Tester' in self.browser.contents) 298 298 … … 301 301 self.browser.getControl(name="searchtype").value = ['current_session'] 302 302 self.browser.getControl(name="searchterm").value = '2004' 303 self.browser.getControl(" Search").click()303 self.browser.getControl("Find student(s)").click() 304 304 self.assertTrue('Anna Tester' in self.browser.contents) 305 305 # Session fileds require integer values … … 307 307 self.browser.getControl(name="searchtype").value = ['current_session'] 308 308 self.browser.getControl(name="searchterm").value = '2004/2005' 309 self.browser.getControl(" Search").click()309 self.browser.getControl("Find student(s)").click() 310 310 self.assertTrue('Only year dates allowed' in self.browser.contents) 311 311 self.browser.open(self.manage_container_path) 312 312 self.browser.getControl(name="searchtype").value = ['current_session'] 313 313 self.browser.getControl(name="searchterm").value = '2004/2005' 314 self.browser.getControl(" Search").click()314 self.browser.getControl("Find student(s)").click() 315 315 self.assertTrue('Only year dates allowed' in self.browser.contents) 316 316 … … 319 319 self.browser.getControl(name="searchtype").value = ['current_mode'] 320 320 self.browser.getControl(name="searchterm").value = 'ug_ft' 321 self.browser.getControl(" Search").click()321 self.browser.getControl("Find student(s)").click() 322 322 self.assertTrue('Anna Tester' in self.browser.contents) 323 323 … … 326 326 self.browser.getControl(name="searchtype").value = ['depcode'] 327 327 self.browser.getControl(name="searchterm").value = 'dep1' 328 self.browser.getControl(" Search").click()328 self.browser.getControl("Find student(s)").click() 329 329 self.assertTrue('Anna Tester' in self.browser.contents) 330 330 331 331 # We can find a student by searching for all kind of name parts 332 332 self.browser.open(self.manage_container_path) 333 self.browser.getControl(" Search").click()333 self.browser.getControl("Find student(s)").click() 334 334 self.assertTrue('Empty search string' in self.browser.contents) 335 335 self.browser.getControl(name="searchtype").value = ['fullname'] 336 336 self.browser.getControl(name="searchterm").value = 'Anna Tester' 337 self.browser.getControl(" Search").click()337 self.browser.getControl("Find student(s)").click() 338 338 self.assertTrue('Anna Tester' in self.browser.contents) 339 339 self.browser.open(self.manage_container_path) 340 340 self.browser.getControl(name="searchtype").value = ['fullname'] 341 341 self.browser.getControl(name="searchterm").value = 'Anna' 342 self.browser.getControl(" Search").click()342 self.browser.getControl("Find student(s)").click() 343 343 self.assertTrue('Anna Tester' in self.browser.contents) 344 344 self.browser.open(self.manage_container_path) 345 345 self.browser.getControl(name="searchtype").value = ['fullname'] 346 346 self.browser.getControl(name="searchterm").value = 'Tester' 347 self.browser.getControl(" Search").click()347 self.browser.getControl("Find student(s)").click() 348 348 self.assertTrue('Anna Tester' in self.browser.contents) 349 349 self.browser.open(self.manage_container_path) 350 350 self.browser.getControl(name="searchtype").value = ['fullname'] 351 351 self.browser.getControl(name="searchterm").value = 'An' 352 self.browser.getControl(" Search").click()352 self.browser.getControl("Find student(s)").click() 353 353 self.assertFalse('Anna Tester' in self.browser.contents) 354 354 self.browser.open(self.manage_container_path) 355 355 self.browser.getControl(name="searchtype").value = ['fullname'] 356 356 self.browser.getControl(name="searchterm").value = 'An*' 357 self.browser.getControl(" Search").click()357 self.browser.getControl("Find student(s)").click() 358 358 self.assertTrue('Anna Tester' in self.browser.contents) 359 359 self.browser.open(self.manage_container_path) 360 360 self.browser.getControl(name="searchtype").value = ['fullname'] 361 361 self.browser.getControl(name="searchterm").value = 'tester' 362 self.browser.getControl(" Search").click()362 self.browser.getControl("Find student(s)").click() 363 363 self.assertTrue('Anna Tester' in self.browser.contents) 364 364 self.browser.open(self.manage_container_path) 365 365 self.browser.getControl(name="searchtype").value = ['fullname'] 366 366 self.browser.getControl(name="searchterm").value = 'Tester Ana' 367 self.browser.getControl(" Search").click()367 self.browser.getControl("Find student(s)").click() 368 368 self.assertFalse('Anna Tester' in self.browser.contents) 369 369 self.browser.open(self.manage_container_path) 370 370 self.browser.getControl(name="searchtype").value = ['fullname'] 371 371 self.browser.getControl(name="searchterm").value = 'Tester Anna' 372 self.browser.getControl(" Search").click()372 self.browser.getControl("Find student(s)").click() 373 373 self.assertTrue('Anna Tester' in self.browser.contents) 374 374 # The old searchterm will be used again 375 self.browser.getControl(" Search").click()375 self.browser.getControl("Find student(s)").click() 376 376 self.assertTrue('Anna Tester' in self.browser.contents) 377 377 … … 381 381 self.browser.open(self.manage_container_path) 382 382 self.browser.getControl(name="searchtype").value = ['suspended'] 383 self.browser.getControl(" Search").click()383 self.browser.getControl("Find student(s)").click() 384 384 self.assertTrue('Anna Tester' in self.browser.contents) 385 385 self.browser.open(self.container_path) 386 386 self.browser.getControl(name="searchtype").value = ['suspended'] 387 self.browser.getControl(" Search").click()387 self.browser.getControl("Find student(s)").click() 388 388 self.assertTrue('Anna Tester' in self.browser.contents) 389 389 … … 400 400 self.browser.getControl(name="searchtype").value = ['current_session'] 401 401 self.browser.getControl(name="searchterm").value = '2010' 402 self.browser.getControl(" Search").click()402 self.browser.getControl("Find student(s)").click() 403 403 self.assertTrue('Anna Tester' in self.browser.contents) 404 404 … … 409 409 self.browser.getControl(name="searchtype").value = ['student_id'] 410 410 self.browser.getControl(name="searchterm").value = self.student_id 411 self.browser.getControl(" Search").click()411 self.browser.getControl("Find student(s)").click() 412 412 self.assertTrue('No student found' in self.browser.contents) 413 413 … … 415 415 self.browser.getControl(name="searchtype").value = ['student_id'] 416 416 self.browser.getControl(name="searchterm").value = self.student_id 417 self.browser.getControl(" Search").click()417 self.browser.getControl("Find student(s)").click() 418 418 self.assertTrue('No student found' in self.browser.contents) 419 419 return … … 1335 1335 self.browser.getControl(name="searchtype").value = ['depcode'] 1336 1336 self.browser.getControl(name="searchterm").value = 'dep1' 1337 self.browser.getControl(" Search").click()1337 self.browser.getControl("Find student(s)").click() 1338 1338 self.assertTrue('Aaren Pieri' in self.browser.contents) 1339 1339 # We can search for a new student by name ... 1340 1340 self.browser.getControl(name="searchtype").value = ['fullname'] 1341 1341 self.browser.getControl(name="searchterm").value = 'Claus' 1342 self.browser.getControl(" Search").click()1342 self.browser.getControl("Find student(s)").click() 1343 1343 self.assertTrue('Claus Finau' in self.browser.contents) 1344 1344 # ... and check if the imported password has been properly set … … 2058 2058 self.browser.open(self.container_path) 2059 2059 self.browser.getControl(name="searchtype").value = ['transcript'] 2060 self.browser.getControl(" Search").click()2060 self.browser.getControl("Find student(s)").click() 2061 2061 self.assertTrue('Anna Tester' in self.browser.contents) 2062 2062 self.browser.getLink("K1000000").click()
Note: See TracChangeset for help on using the changeset viewer.