- Timestamp:
- 29 Oct 2019, 13:13:31 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interswitch/tests.py
r15301 r15718 97 97 '<span>40000.0</span>' in self.browser.contents) 98 98 self.payment_url = self.browser.url 99 self.browser.getLink(" CollegePAY", index=0).click()99 self.browser.getLink("Pay via Interswitch", index=0).click() 100 100 self.assertTrue('<input type="hidden" name="pay_item_id" value="101" />' in 101 101 self.browser.contents) … … 119 119 '<span>3456.0</span>' in self.browser.contents) 120 120 self.payment_url = self.browser.url 121 self.browser.getLink(" CollegePAY", index=0).click()121 self.browser.getLink("Pay via Interswitch", index=0).click() 122 122 self.assertTrue('<input type="hidden" name="pay_item_id" value="101" />' in 123 123 self.browser.contents) … … 139 139 self.student['payments']['xyz'] = acc_payment 140 140 self.browser.open(self.payments_path + '/xyz') 141 self.browser.getLink(" CollegePAY", index=0).click()141 self.browser.getLink("Pay via Interswitch", index=0).click() 142 142 self.assertMatches('...<input type="hidden" name="pay_item_id" value="101" />...', 143 143 self.browser.contents) … … 151 151 acc_payment.creation_date -= delta 152 152 self.browser.open(self.payments_path + '/xyz') 153 self.browser.getLink(" CollegePAY", index=0).click()153 self.browser.getLink("Pay via Interswitch", index=0).click() 154 154 self.assertMatches( 155 155 '...This payment ticket is too old. Please create a new ticket...', … … 158 158 acc_payment.creation_date += delta 159 159 self.browser.open(self.payments_path + '/xyz') 160 self.browser.getLink(" CollegePAY", index=0).click()160 self.browser.getLink("Pay via Interswitch", index=0).click() 161 161 self.assertMatches('...Total Amount Authorized:...', 162 162 self.browser.contents) … … 277 277 def test_interswitch_form(self): 278 278 # Manager can access InterswitchForm 279 self.browser.getLink(" CollegePAY", index=0).click()279 self.browser.getLink("Pay via Interswitch", index=0).click() 280 280 self.assertMatches('...Total Amount Authorized:...', 281 281 self.browser.contents) … … 286 286 self.applicant.values()[0].creation_date -= delta 287 287 self.browser.open(self.payment_url) 288 self.browser.getLink(" CollegePAY", index=0).click()288 self.browser.getLink("Pay via Interswitch", index=0).click() 289 289 self.assertMatches( 290 290 '...This payment ticket is too old. Please create a new ticket...',
Note: See TracChangeset for help on using the changeset viewer.