Ignore:
Timestamp:
29 Oct 2019, 10:32:34 (5 years ago)
Author:
Henrik Bettermann
Message:

Update test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py

    r14758 r15716  
    8484    def test_interswitch_form(self):
    8585        # Manager can access InterswitchForm
    86         self.browser.getLink("CollegePAY", index=0).click()
     86        self.browser.getLink("Pay via Interswitch", index=0).click()
    8787        # The total amount to be processed by Interswitch
    8888        # has been reduced by the Interswitch fee of 150 Nairas
     
    129129        self.assertEqual(self.student['payments'][value].gateway_amt, 0.0)
    130130        self.browser.getLink(value).click()
    131         self.browser.getLink("CollegePAY", index=0).click()
     131        self.browser.getLink("Pay via Interswitch", index=0).click()
    132132        # Split amounts have been set.
    133133        self.assertEqual(self.student['payments'][value].provider_amt, 1500.0)
     
    156156        #    self.browser.contents)
    157157        ## Manager can access InterswitchForm
    158         #self.browser.getLink("CollegePAY", index=0).click()
     158        #self.browser.getLink("Pay via Interswitch", index=0).click()
    159159        #self.assertEqual(self.student['payments'][value].provider_amt, 1500.0)
    160160        #self.assertEqual(self.student['payments'][value].gateway_amt, 150.0)
     
    186186            self.browser.contents)
    187187        # Manager can access InterswitchForm
    188         self.browser.getLink("CollegePAY", index=0).click()
     188        self.browser.getLink("Pay via Interswitch", index=0).click()
    189189        self.assertEqual(self.student['payments'][value].provider_amt, 0.0)
    190190        self.assertEqual(self.student['payments'][value].gateway_amt, 150.0)
     
    223223        #    '<span>8150.0</span>' in self.browser.contents)
    224224        # Manager can access InterswitchForm
    225         #self.browser.getLink("CollegePAY", index=0).click()
     225        #self.browser.getLink("Pay via Interswitch", index=0).click()
    226226        #self.assertEqual(self.student['payments'][value].provider_amt, 0.0)
    227227        #self.assertEqual(self.student['payments'][value].gateway_amt, 150.0)
     
    257257        #    self.browser.contents)
    258258        ## Manager can access InterswitchForm
    259         #self.browser.getLink("CollegePAY", index=0).click()
     259        #self.browser.getLink("Pay via Interswitch", index=0).click()
    260260        #self.assertEqual(self.student['payments'][value].provider_amt, 1500.0)
    261261        #self.assertEqual(self.student['payments'][value].gateway_amt, 150.0)
     
    284284            '<span>200.0</span>' in self.browser.contents)
    285285        # Manager can access InterswitchForm
    286         self.browser.getLink("CollegePAY", index=0).click()
     286        self.browser.getLink("Pay via Interswitch", index=0).click()
    287287        self.assertEqual(self.student['payments'][value].provider_amt, 0.0)
    288288        self.assertEqual(self.student['payments'][value].gateway_amt, 150.0)
     
    310310            self.browser.contents)
    311311        # Manager can access InterswitchForm
    312         self.browser.getLink("CollegePAY", index=0).click()
     312        self.browser.getLink("Pay via Interswitch", index=0).click()
    313313        self.assertEqual(self.student['payments'][value].provider_amt, 0.0)
    314314        self.assertEqual(self.student['payments'][value].gateway_amt, 150.0)
     
    357357        self.student['payments']['xyz'] = acc_payment
    358358        self.browser.open(self.payments_path + '/xyz')
    359         self.browser.getLink("CollegePAY", index=0).click()
     359        self.browser.getLink("Pay via Interswitch", index=0).click()
    360360        self.assertTrue('<input type="hidden" name="pay_item_id" value="5702" />'
    361361                           in self.browser.contents)
     
    369369        acc_payment.creation_date -= delta
    370370        self.browser.open(self.payments_path + '/xyz')
    371         self.browser.getLink("CollegePAY", index=0).click()
     371        self.browser.getLink("Pay via Interswitch", index=0).click()
    372372        self.assertMatches(
    373373            '...This payment ticket is too old. Please create a new ticket...',
     
    376376        acc_payment.creation_date += delta
    377377        self.browser.open(self.payments_path + '/xyz')
    378         self.browser.getLink("CollegePAY", index=0).click()
     378        self.browser.getLink("Pay via Interswitch", index=0).click()
    379379        self.assertMatches('...Total Amount Authorized:...',
    380380                           self.browser.contents)
     
    392392        value = ctrl.options[1]
    393393        self.browser.getLink(value).click()
    394         self.browser.getLink("CollegePAY", index=0).click()
     394        self.browser.getLink("Pay via Interswitch", index=0).click()
    395395        self.assertMatches(
    396396            '...alert alert-danger">This type of payment has already been made...',
     
    506506            '<span>1000.0</span>' in self.browser.contents)
    507507        # Manager can access InterswitchForm
    508         self.browser.getLink("CollegePAY", index=0).click()
     508        self.browser.getLink("Pay via Interswitch", index=0).click()
    509509        self.assertMatches('...Total Amount Authorized:...',
    510510                           self.browser.contents)
     
    515515        self.applicant.values()[0].creation_date -= delta
    516516        self.browser.open(self.payment_url)
    517         self.browser.getLink("CollegePAY", index=0).click()
     517        self.browser.getLink("Pay via Interswitch", index=0).click()
    518518        self.assertMatches(
    519519            '...This payment ticket is too old. Please create a new ticket...',
Note: See TracChangeset for help on using the changeset viewer.