Changeset 16330 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 22 Nov 2020, 15:48:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r16171 r16330 237 237 self.browser.getControl(name="form.password").value = 'spwd' 238 238 self.browser.getControl("Login").click() 239 self.browser.open(self.student_path) 239 240 self.browser.getLink("Download examination schedule slip").click() 240 241 self.assertEqual(self.browser.headers['Status'], '200 Ok') … … 316 317 self.assertMatches('...ticket created...', 317 318 self.browser.contents) 318 ctrl = self.browser.getControl(name='val_id')319 value = ctrl.options[0]320 self.browser.getLink(value).click()321 319 self.assertMatches('...Amount Authorized...', 322 320 self.browser.contents) … … 348 346 self.browser.contents) 349 347 self.browser.open(self.payments_path + '/addop') 350 #self.browser.getControl(351 # name="form.p_category").value = ['tempmaint_1']352 #self.browser.getControl("Create ticket").click()353 #self.assertMatches('...You have not yet paid the hostel application fee...',354 # self.browser.contents)355 #self.browser.open(self.payments_path + '/addop')356 #self.browser.getControl(name="form.p_category").value = ['hostel_application']357 #self.browser.getControl("Create ticket").click()358 #self.assertMatches('...ticket created...',359 # self.browser.contents)360 #ha_ticket = self.student['payments'].values()[2]361 #ha_ticket.approve()362 #self.browser.open(self.payments_path + '/addop')363 #self.browser.getControl(364 # name="form.p_category").value = ['tempmaint_1']365 #self.browser.getControl("Create ticket").click()366 #self.assertMatches('...ticket created...',367 # self.browser.contents)368 #self.browser.open(self.payments_path + '/addop')369 #self.browser.getControl(370 # name="form.p_category").value = ['tempmaint_2']371 #self.browser.getControl("Create ticket").click()372 #self.assertMatches('...ticket created...',373 # self.browser.contents)374 #self.browser.open(self.payments_path + '/addop')375 #self.browser.getControl(376 # name="form.p_category").value = ['tempmaint_3']377 #self.browser.getControl("Create ticket").click()378 #self.assertMatches('...ticket created...',379 # self.browser.contents)380 #self.browser.open(self.payments_path + '/addop')381 382 348 self.browser.getControl(name="form.p_category").value = ['clearance'] 383 349 self.browser.getControl("Create ticket").click() 384 350 self.assertMatches('...ticket created...', 385 351 self.browser.contents) 386 self.assertTrue('< td>60000.0</td>' in self.browser.contents)352 self.assertTrue('<span>60000.0</span>' in self.browser.contents) 387 353 self.browser.open(self.payments_path + '/addop') 388 354 self.browser.getControl(name="form.p_category").value = ['schoolfee']
Note: See TracChangeset for help on using the changeset viewer.