Changeset 15712 for main/waeup.aaue
- Timestamp:
- 29 Oct 2019, 07:01:11 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r15455 r15712 79 79 self.payment_url = self.browser.url 80 80 # Manager can access InterswitchForm 81 self.browser.getLink(" CollegePAY", index=0).click()81 self.browser.getLink("Pay via Interswitch", index=0).click() 82 82 self.assertTrue('Total Amount Authorized:' in self.browser.contents) 83 83 self.assertTrue( … … 96 96 self.applicant.values()[0].creation_date -= delta 97 97 self.browser.open(self.payment_url) 98 self.browser.getLink(" CollegePAY", index=0).click()98 self.browser.getLink("Pay via Interswitch", index=0).click() 99 99 self.assertTrue( 100 100 'This payment ticket is too old. Please create a new ticket' … … 110 110 self.payment_url = self.browser.url 111 111 # Manager can access InterswitchForm 112 self.browser.getLink(" CollegePAY", index=0).click()112 self.browser.getLink("Pay via Interswitch", index=0).click() 113 113 self.assertTrue('Total Amount Authorized:' in self.browser.contents) 114 114 self.assertTrue( … … 130 130 self.applicant.values()[0].creation_date -= delta 131 131 self.browser.open(self.payment_url) 132 self.browser.getLink(" CollegePAY", index=0).click()132 self.browser.getLink("Pay via Interswitch", index=0).click() 133 133 self.assertTrue( 134 134 'This payment ticket is too old. Please create a new ticket' … … 144 144 self.payment_url = self.browser.url 145 145 # Manager can access InterswitchForm 146 self.browser.getLink(" CollegePAY", index=0).click()146 self.browser.getLink("Pay via Interswitch", index=0).click() 147 147 self.assertTrue('Total Amount Authorized:' in self.browser.contents) 148 148 self.assertTrue( … … 161 161 self.applicant.values()[0].creation_date -= delta 162 162 self.browser.open(self.payment_url) 163 self.browser.getLink(" CollegePAY", index=0).click()163 self.browser.getLink("Pay via Interswitch", index=0).click() 164 164 self.assertTrue( 165 165 'This payment ticket is too old. Please create a new ticket' … … 175 175 self.payment_url = self.browser.url 176 176 # Manager can access InterswitchForm 177 self.browser.getLink(" CollegePAY", index=0).click()177 self.browser.getLink("Pay via Interswitch", index=0).click() 178 178 self.assertTrue('Total Amount Authorized:' in self.browser.contents) 179 179 self.assertTrue( … … 226 226 self.assertTrue('<span>51250.0</span>' in self.browser.contents) 227 227 self.payment_url = self.browser.url 228 self.browser.getLink(" CollegePAY", index=0).click()228 self.browser.getLink("Pay via Interswitch", index=0).click() 229 229 self.assertTrue( 230 230 'Please pay acceptance fee first' in self.browser.contents) … … 233 233 acc_payment.p_category = 'clearance' 234 234 self.student['payments']['xyz'] = acc_payment 235 self.browser.getLink(" CollegePAY", index=0).click()235 self.browser.getLink("Pay via Interswitch", index=0).click() 236 236 self.assertTrue('<input type="hidden" name="pay_item_id" value="105" />' 237 237 in self.browser.contents) … … 267 267 self.assertTrue('<span>51750.0</span>' in self.browser.contents) 268 268 self.payment_url = self.browser.url 269 self.browser.getLink(" CollegePAY", index=0).click()269 self.browser.getLink("Pay via Interswitch", index=0).click() 270 270 self.assertTrue( 271 271 'Please pay acceptance fee first' in self.browser.contents) … … 274 274 acc_payment.p_category = 'clearance' 275 275 self.student['payments']['xyz'] = acc_payment 276 self.browser.getLink(" CollegePAY", index=0).click()276 self.browser.getLink("Pay via Interswitch", index=0).click() 277 277 self.assertTrue('<input type="hidden" name="pay_item_id" value="107" />' 278 278 in self.browser.contents) … … 308 308 self.assertTrue('<span>42550.0</span>' in self.browser.contents) 309 309 self.payment_url = self.browser.url 310 self.browser.getLink(" CollegePAY", index=0).click()310 self.browser.getLink("Pay via Interswitch", index=0).click() 311 311 self.assertTrue('<input type="hidden" name="pay_item_id" value="104" />' in 312 312 self.browser.contents) … … 338 338 self.assertTrue('<span>43050.0</span>' in self.browser.contents) 339 339 self.payment_url = self.browser.url 340 self.browser.getLink(" CollegePAY", index=0).click()340 self.browser.getLink("Pay via Interswitch", index=0).click() 341 341 self.assertTrue('<input type="hidden" name="pay_item_id" value="102" />' 342 342 in self.browser.contents) … … 369 369 self.payment_url = self.browser.url 370 370 self.certificate.study_mode = 'ug_ft' 371 self.browser.getLink(" CollegePAY", index=0).click()371 self.browser.getLink("Pay via Interswitch", index=0).click() 372 372 self.assertTrue('<input type="hidden" name="pay_item_id" value="107" />' 373 373 in self.browser.contents) … … 393 393 self.student['payments']['xyz'] = acc_payment 394 394 self.browser.open(self.payments_path + '/xyz') 395 self.browser.getLink(" CollegePAY", index=0).click()395 self.browser.getLink("Pay via Interswitch", index=0).click() 396 396 self.assertTrue('<input type="hidden" name="pay_item_id" value="104" />' 397 397 in self.browser.contents) … … 404 404 acc_payment.creation_date -= delta 405 405 self.browser.open(self.payments_path + '/xyz') 406 self.browser.getLink(" CollegePAY", index=0).click()406 self.browser.getLink("Pay via Interswitch", index=0).click() 407 407 self.assertTrue( 408 408 'This payment ticket is too old. Please create a new ticket' … … 411 411 acc_payment.creation_date += delta 412 412 self.browser.open(self.payments_path + '/xyz') 413 self.browser.getLink(" CollegePAY", index=0).click()413 self.browser.getLink("Pay via Interswitch", index=0).click() 414 414 self.assertTrue('Total Amount Authorized:' in self.browser.contents) 415 415
Note: See TracChangeset for help on using the changeset viewer.