Changeset 15719 for main


Ignore:
Timestamp:
29 Oct 2019, 13:17:07 (5 years ago)
Author:
Henrik Bettermann
Message:

Adjust to base package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py

    r15707 r15719  
    8585        self.assertTrue('<span>30000.0</span>'  in self.browser.contents)
    8686        self.payment_url = self.browser.url
    87         self.browser.getLink("CollegePAY", index=0).click()
     87        self.browser.getLink("Pay via Interswitch", index=0).click()
    8888        self.assertTrue('<input type="hidden" name="pay_item_id" value="102" />'
    8989            in self.browser.contents)
     
    106106        self.assertTrue('<span>12345.0</span>' in self.browser.contents)
    107107        self.payment_url = self.browser.url
    108         self.browser.getLink("CollegePAY", index=0).click()
     108        self.browser.getLink("Pay via Interswitch", index=0).click()
    109109        self.assertTrue('<input type="hidden" name="pay_item_id" value="103" />'
    110110                           in self.browser.contents)
     
    126126        self.student['payments']['xyz'] = acc_payment
    127127        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()
    129129        self.assertMatches('...<input type="hidden" name="pay_item_id" value="103" />...',
    130130                           self.browser.contents)
     
    138138        acc_payment.creation_date -= delta
    139139        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()
    141141        self.assertMatches(
    142142            '...This payment ticket is too old. Please create a new ticket...',
     
    145145        acc_payment.creation_date += delta
    146146        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()
    148148        self.assertMatches('...Total Amount Authorized:...',
    149149                           self.browser.contents)
     
    182182        #self.assertTrue(self.student['payments'][dep_sug_pid].amount_auth == 1650)
    183183        #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()
    185185        #self.student['payments'][dep_sug_pid].p_state = 'paid'
    186186        #self.assertTrue(
     
    198198        self.assertTrue('<span>30000.0</span>'  in self.browser.contents)
    199199        self.payment_url = self.browser.url
    200         self.browser.getLink("CollegePAY", index=0).click()
     200        self.browser.getLink("Pay via Interswitch", index=0).click()
    201201        self.assertTrue('<item_detail item_id="1" item_name="School Fee 1" item_amt="1545000" bank_id="117" acct_num="1015220292" />'
    202202            in self.browser.contents)
     
    222222        self.assertTrue('<span>3150.0</span>'  in self.browser.contents)
    223223        self.payment_url = self.browser.url
    224         self.browser.getLink("CollegePAY", index=0).click()
     224        self.browser.getLink("Pay via Interswitch", index=0).click()
    225225        self.assertTrue('<item_detail item_id="1" item_name="SUG" item_amt="100000" bank_id="11" acct_num="0038079930" />'
    226226            in self.browser.contents)
     
    356356        self.assertTrue('span>1000.0</span>' in self.browser.contents)
    357357        self.payment_url = self.browser.url
    358         self.browser.getLink("CollegePAY", index=0).click()
     358        self.browser.getLink("Pay via Interswitch", index=0).click()
    359359        self.assertTrue('<input type="hidden" name="amount" value="100000" />'
    360360            in self.browser.contents)
     
    362362        self.applicant.values()[0].creation_date -= delta
    363363        self.browser.open(self.payment_url)
    364         self.browser.getLink("CollegePAY", index=0).click()
     364        self.browser.getLink("Pay via Interswitch", index=0).click()
    365365        self.assertMatches(
    366366            '...This payment ticket is too old. Please create a new ticket...',
     
    371371        self.browser.open(self.manage_path)
    372372        self.browser.getControl("Add online").click()
    373         self.browser.getLink("CollegePAY", index=0).click()
     373        self.browser.getLink("Pay via Interswitch", index=0).click()
    374374        self.assertTrue('<item_detail item_id="1" item_name="Application 1" item_amt="15000" bank_id="117" acct_num="1015220292" />'
    375375            in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.