Ignore:
Timestamp:
7 Jul 2016, 06:18:06 (9 years ago)
Author:
Henrik Bettermann
Message:

Inform applicant how many emails were sent.

File:
1 edited

Legend:

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

    r14014 r14016  
    16771677        self.assertTrue(
    16781678            'Application submitted' in self.browser.contents)
     1679        self.assertTrue(
     1680            'Form has been successfully submitted and 2 '
     1681            'invitation emails were sent.' in self.browser.contents)
    16791682        logfile = os.path.join(
    16801683            self.app['datacenter'].storage, 'logs', 'applicants.log')
     
    16871690        self.assertTrue(referee1.email_sent)
    16881691        self.assertTrue(referee2.email_sent)
    1689         return
     1692        # If the form is being resubmitted, no more emails will be sent
     1693        IWorkflowState(self.applicant).setState('paid')
     1694        self.applicant.locked = False
     1695        self.browser.open(self.edit_path)
     1696        self.browser.getControl(name="confirm_passport").value = True
     1697        self.browser.getControl("Finally Submit").click()
     1698        self.assertTrue(
     1699            'Form has been successfully submitted and 0 '
     1700            'invitation emails were sent.' in self.browser.contents)
     1701        return
Note: See TracChangeset for help on using the changeset viewer.