Changeset 16354
- Timestamp:
- 15 Dec 2020, 09:09:27 (4 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r16283 r16354 220 220 self.browser.getControl("Create ticket").click() 221 221 self.assertTrue('ticket created' in self.browser.contents) 222 ctrl = self.browser.getControl(name='val_id')223 self.value = ctrl.options[0]224 self.browser.getLink(self.value).click()225 222 self.assertTrue('Amount Authorized' in self.browser.contents) 226 223 # 50200 + 1000 + 500 - 400 … … 261 258 self.assertTrue('ticket created' in 262 259 self.browser.contents) 263 ctrl = self.browser.getControl(name='val_id')264 self.value = ctrl.options[0]265 self.browser.getLink(self.value).click()266 260 self.assertTrue('Amount Authorized' in 267 261 self.browser.contents) … … 302 296 self.browser.getControl("Create ticket").click() 303 297 self.assertTrue('ticket created' in self.browser.contents) 304 ctrl = self.browser.getControl(name='val_id')305 self.value = ctrl.options[0]306 self.browser.getLink(self.value).click()307 298 self.assertTrue('Amount Authorized' in self.browser.contents) 308 299 # 40200 + 2000 + 800 - 400 … … 333 324 self.browser.getControl("Create ticket").click() 334 325 self.assertTrue('ticket created' in self.browser.contents) 335 ctrl = self.browser.getControl(name='val_id')336 self.value = ctrl.options[0]337 self.browser.getLink(self.value).click()338 326 self.assertTrue('Amount Authorized' in self.browser.contents) 339 327 self.assertTrue('<span>43050.0</span>' in self.browser.contents) … … 362 350 self.browser.getControl("Create ticket").click() 363 351 self.assertTrue('ticket created' in self.browser.contents) 364 ctrl = self.browser.getControl(name='val_id')365 self.value = ctrl.options[0]366 self.browser.getLink(self.value).click()367 352 self.assertTrue('Amount Authorized' in self.browser.contents) 368 353 self.assertTrue( -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r16240 r16354 170 170 self.browser.getControl(name="form.p_category").value = ['clearance_incl'] 171 171 self.browser.getControl("Create ticket").click() 172 self.browser.open(self.payments_path) 172 173 ctrl = self.browser.getControl(name='val_id') 173 174 cpt_value = ctrl.options[0] … … 181 182 self.browser.contents) 182 183 # ... but not paid through the query_history page. 184 self.browser.open(self.payments_path) 183 185 ctrl = self.browser.getControl(name='val_id') 184 186 sfpt_value = ctrl.options[1] … … 269 271 self.assertTrue('ticket created' in self.browser.contents) 270 272 # ... approve the second instalment ... 273 self.browser.open(self.payments_path) 271 274 ctrl = self.browser.getControl(name='val_id') 272 275 p_id = ctrl.options[1] … … 329 332 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 330 333 self.browser.getControl("Create ticket").click() 334 self.browser.open(self.payments_path) 331 335 ctrl = self.browser.getControl(name='val_id') 332 336 value = ctrl.options[0] … … 555 559 self.assertMatches('...ticket created...', self.browser.contents) 556 560 self.app['configuration']['2004'].payment_disabled = ['sf_all'] 561 self.browser.open(self.payments_path) 557 562 self.browser.getLink("Add current session payment ticket").click() 558 563 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] … … 566 571 self.assertMatches('...ticket created...', self.browser.contents) 567 572 self.certificate.study_mode = 'ug_pt' 573 self.browser.open(self.payments_path) 568 574 self.browser.getLink("Add current session payment ticket").click() 569 575 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] … … 577 583 self.assertMatches('...ticket created...', self.browser.contents) 578 584 self.certificate.study_mode = 'special_pg_ft' 585 self.browser.open(self.payments_path) 579 586 self.browser.getLink("Add current session payment ticket").click() 580 587 self.browser.getControl(name="form.p_category").value = ['schoolfee'] … … 1391 1398 self.browser.getControl(name="form.password").value = 'spwd' 1392 1399 self.browser.getControl("Login").click() 1400 self.browser.open(self.student_path) 1393 1401 self.browser.getLink("Download examination schedule slip").click() 1394 1402 self.assertEqual(self.browser.headers['Status'], '200 Ok') … … 1397 1405 open(path, 'wb').write(self.browser.contents) 1398 1406 print "Sample PDF examination_schedule_slip.pdf written to %s" % path 1399 # If flash_noti ve does not contain exam' the button does not show up.1407 # If flash_notice does not contain exam' the button does not show up. 1400 1408 self.student.flash_notice = u'anything' 1401 1409 self.browser.open(self.student_path)
Note: See TracChangeset for help on using the changeset viewer.