Ignore:
Timestamp:
22 Jun 2012, 16:40:39 (12 years ago)
Author:
Henrik Bettermann
Message:

Fix flow of payments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r8753 r8775  
    261261        self.assertMatches('...ticket created...',
    262262                           self.browser.contents)
    263         # In state returning we can't add a new school fee ticket
    264         # for the next session because the second instalment is missing ...
    265         IWorkflowState(self.student).setState('returning')
    266         self.browser.open(self.payments_path + '/addop')
    267         self.browser.getControl(name="form.p_category").value = ['schoolfee_1']
    268         self.browser.getControl("Create ticket").click()
    269         self.assertMatches('...2nd school fee instalment has not yet been paid...',
    270                            self.browser.contents)
     263        # We can't add the 2nd instalment ticket because the
     264        # first one has not yet been approved.
    271265        self.browser.open(self.payments_path + '/addop')
    272266        self.browser.getControl(name="form.p_category").value = ['schoolfee_2']
    273         # ... and the first one has not yet been approved.
    274267        self.browser.getControl("Create ticket").click()
    275268        self.assertMatches('...1st school fee instalment has not yet been paid...',
     
    289282        p_id = ctrl.options[1]
    290283        self.browser.open(self.payments_path + '/' + p_id + '/approve')
    291         # ... and finally add the 1st instalment for the next session.
     284        # ... and finally add the 1st instalment for the next session
     285        # provided that student is returning.
     286        IWorkflowState(self.student).setState('returning')
    292287        self.browser.open(self.payments_path + '/addop')
    293288        self.browser.getControl(name="form.p_category").value = ['schoolfee_1']
Note: See TracChangeset for help on using the changeset viewer.