- Timestamp:
- 22 Nov 2020, 15:48:00 (4 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py
r16184 r16330 179 179 self.browser.getControl("Save").click() 180 180 IWorkflowState(self.applicant).setState('submitted') 181 self.browser.open(self. manage_path)181 self.browser.open(self.view_path) 182 182 self.browser.getLink("Download application slip").click() 183 183 self.assertEqual(self.browser.headers['Status'], '200 Ok') … … 219 219 self.browser.getControl("Save").click() 220 220 IWorkflowState(self.applicant).setState('submitted') 221 self.browser.open(self. manage_path)221 self.browser.open(self.view_path) 222 222 self.browser.getLink("Download application slip").click() 223 223 self.assertEqual(self.browser.headers['Status'], '200 Ok') … … 241 241 self.browser.getControl("Save").click() 242 242 IWorkflowState(self.applicant).setState('submitted') 243 self.browser.open(self. manage_path)243 self.browser.open(self.view_path) 244 244 self.browser.getLink("Download application slip").click() 245 245 self.assertEqual(self.browser.headers['Status'], '200 Ok') … … 277 277 configuration.application_fee = 0.0 278 278 self.app['configuration'].addSessionConfiguration(configuration) 279 self.browser.getControl(" Add online payment ticket").click()279 self.browser.getControl("Create and make online").click() 280 280 self.assertMatches('...Payment ticket created...', 281 281 self.browser.contents) … … 284 284 self.browser.open(self.view_path) 285 285 self.assertTrue('Group Registration @ ₦ 200000' in self.browser.contents) 286 self.browser.open(self. manage_path)286 self.browser.open(self.view_path) 287 287 self.browser.getLink("Download application slip").click() 288 288 self.assertEqual(self.browser.headers['Status'], '200 Ok') … … 348 348 file_ctrl.add_file(image, filename='myphoto.jpg') 349 349 self.browser.getControl("Save").click() 350 self.browser.getControl(" Add online payment ticket").click()350 self.browser.getControl("Create and make online").click() 351 351 self.assertTrue('Payment ticket created' in self.browser.contents) 352 352 self.assertTrue('<span>40000.0</span>' in self.browser.contents) -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r15716 r16330 62 62 self.assertMatches('...ticket created...', 63 63 self.browser.contents) 64 self.browser.open(self.payments_path) 64 65 ctrl = self.browser.getControl(name='val_id') 65 66 self.value = ctrl.options[0] … … 124 125 #self.browser.getControl("Create ticket").click() 125 126 127 self.browser.open(self.payments_path) 126 128 ctrl = self.browser.getControl(name='val_id') 127 129 value = ctrl.options[1] … … 179 181 self.browser.getControl(name="form.p_category").value = ['gown'] 180 182 self.browser.getControl("Create ticket").click() 183 self.browser.open(self.payments_path) 181 184 ctrl = self.browser.getControl(name='val_id') 182 185 value = ctrl.options[2] … … 278 281 self.browser.getControl(name="form.balance_amount").value = '200' 279 282 self.browser.getControl("Create ticket").click() 283 self.browser.open(self.payments_path) 280 284 ctrl = self.browser.getControl(name='val_id') 281 285 value = ctrl.options[3] … … 303 307 self.browser.getControl(name="form.p_category").value = ['jupeb'] 304 308 self.browser.getControl("Create ticket").click() 309 self.browser.open(self.payments_path) 305 310 ctrl = self.browser.getControl(name='val_id') 306 311 value = ctrl.options[4] … … 385 390 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 386 391 self.browser.getControl("Create ticket").click() 392 self.browser.open(self.payments_path) 387 393 # Pay first ticket 388 394 self.student['payments'][self.value].approve() … … 480 486 #IWorkflowState(self.student).setState('started') 481 487 super(InterswitchTestsApplicants, self).fill_correct_values() 482 self.browser.getControl(" Addonline").click()488 self.browser.getControl("Create and make online").click() 483 489 self.assertMatches('...passport photo before making payment...', 484 490 self.browser.contents) … … 492 498 file_ctrl.add_file(image, filename='myphoto.jpg') 493 499 self.browser.getControl("Save").click() 494 self.browser.getControl(" Addonline").click()500 self.browser.getControl("Create and make online").click() 495 501 self.assertMatches('...ticket created...', 496 502 self.browser.contents) -
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.