- Timestamp:
- 29 Oct 2019, 13:17:07 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py
r15707 r15719 85 85 self.assertTrue('<span>30000.0</span>' in self.browser.contents) 86 86 self.payment_url = self.browser.url 87 self.browser.getLink(" CollegePAY", index=0).click()87 self.browser.getLink("Pay via Interswitch", index=0).click() 88 88 self.assertTrue('<input type="hidden" name="pay_item_id" value="102" />' 89 89 in self.browser.contents) … … 106 106 self.assertTrue('<span>12345.0</span>' in self.browser.contents) 107 107 self.payment_url = self.browser.url 108 self.browser.getLink(" CollegePAY", index=0).click()108 self.browser.getLink("Pay via Interswitch", index=0).click() 109 109 self.assertTrue('<input type="hidden" name="pay_item_id" value="103" />' 110 110 in self.browser.contents) … … 126 126 self.student['payments']['xyz'] = acc_payment 127 127 self.browser.open(self.payments_path + '/xyz') 128 self.browser.getLink(" CollegePAY", index=0).click()128 self.browser.getLink("Pay via Interswitch", index=0).click() 129 129 self.assertMatches('...<input type="hidden" name="pay_item_id" value="103" />...', 130 130 self.browser.contents) … … 138 138 acc_payment.creation_date -= delta 139 139 self.browser.open(self.payments_path + '/xyz') 140 self.browser.getLink(" CollegePAY", index=0).click()140 self.browser.getLink("Pay via Interswitch", index=0).click() 141 141 self.assertMatches( 142 142 '...This payment ticket is too old. Please create a new ticket...', … … 145 145 acc_payment.creation_date += delta 146 146 self.browser.open(self.payments_path + '/xyz') 147 self.browser.getLink(" CollegePAY", index=0).click()147 self.browser.getLink("Pay via Interswitch", index=0).click() 148 148 self.assertMatches('...Total Amount Authorized:...', 149 149 self.browser.contents) … … 182 182 #self.assertTrue(self.student['payments'][dep_sug_pid].amount_auth == 1650) 183 183 #self.browser.getLink(dep_sug_pid).click() 184 #self.browser.getLink(" CollegePAY", index=0).click()184 #self.browser.getLink("Pay via Interswitch", index=0).click() 185 185 #self.student['payments'][dep_sug_pid].p_state = 'paid' 186 186 #self.assertTrue( … … 198 198 self.assertTrue('<span>30000.0</span>' in self.browser.contents) 199 199 self.payment_url = self.browser.url 200 self.browser.getLink(" CollegePAY", index=0).click()200 self.browser.getLink("Pay via Interswitch", index=0).click() 201 201 self.assertTrue('<item_detail item_id="1" item_name="School Fee 1" item_amt="1545000" bank_id="117" acct_num="1015220292" />' 202 202 in self.browser.contents) … … 222 222 self.assertTrue('<span>3150.0</span>' in self.browser.contents) 223 223 self.payment_url = self.browser.url 224 self.browser.getLink(" CollegePAY", index=0).click()224 self.browser.getLink("Pay via Interswitch", index=0).click() 225 225 self.assertTrue('<item_detail item_id="1" item_name="SUG" item_amt="100000" bank_id="11" acct_num="0038079930" />' 226 226 in self.browser.contents) … … 356 356 self.assertTrue('span>1000.0</span>' in self.browser.contents) 357 357 self.payment_url = self.browser.url 358 self.browser.getLink(" CollegePAY", index=0).click()358 self.browser.getLink("Pay via Interswitch", index=0).click() 359 359 self.assertTrue('<input type="hidden" name="amount" value="100000" />' 360 360 in self.browser.contents) … … 362 362 self.applicant.values()[0].creation_date -= delta 363 363 self.browser.open(self.payment_url) 364 self.browser.getLink(" CollegePAY", index=0).click()364 self.browser.getLink("Pay via Interswitch", index=0).click() 365 365 self.assertMatches( 366 366 '...This payment ticket is too old. Please create a new ticket...', … … 371 371 self.browser.open(self.manage_path) 372 372 self.browser.getControl("Add online").click() 373 self.browser.getLink(" CollegePAY", index=0).click()373 self.browser.getLink("Pay via Interswitch", index=0).click() 374 374 self.assertTrue('<item_detail item_id="1" item_name="Application 1" item_amt="15000" bank_id="117" acct_num="1015220292" />' 375 375 in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.