Ignore:
Timestamp:
10 Jul 2022, 08:40:43 (3 years ago)
Author:
Henrik Bettermann
Message:

Add BalancePaymentAddFormPage which can only be opened by managers.
No button is provided in base package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r17009 r17016  
    10861086        return
    10871087
     1088    def test_pay_balance(self):
     1089        # Managers can make balance payment
     1090        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     1091        self.browser.open(self.manage_path)
     1092        self.fill_correct_values()
     1093        self.browser.getControl("Save").click()
     1094        self.browser.open(self.view_path + '/addbp')
     1095        self.browser.getControl(name="form.p_category").value = ['donation']
     1096        self.browser.getControl(name="form.balance_amount").value = '10000'
     1097        self.browser.getControl("Create ticket").click()
     1098        self.assertTrue('Wrong state' in self.browser.contents)
     1099        IWorkflowState(self.applicant).setState('submitted')
     1100        self.browser.getControl("Create ticket").click()
     1101        self.assertTrue('Payment ticket created.' in self.browser.contents)
     1102        self.browser.getLink("Approve payment").click()
     1103        self.assertTrue('Payment approved' in self.browser.contents)
     1104        return
     1105
    10881106    def prepare_special_container(self):
    10891107        # Add special application container
Note: See TracChangeset for help on using the changeset viewer.