Ignore:
Timestamp:
30 Oct 2015, 08:09:05 (9 years ago)
Author:
Henrik Bettermann
Message:

Allow also reg_number on public page to check application status without password.

File:
1 edited

Legend:

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

    r13282 r13363  
    13881388        self.applicant.lastname = u'Lion '
    13891389        self.browser.open('http://localhost/app/applicants/checkstatus')
    1390         self.browser.getControl(name="applicant_id").value = 'nonsense'
     1390        self.browser.getControl(name="unique_id").value = 'nonsense'
    13911391        self.browser.getControl(name="lastname").value = 'Lion'
    13921392        self.browser.getControl("Submit").click()
    13931393        self.assertTrue('No application record found' in self.browser.contents)
    1394         self.browser.getControl(name="applicant_id").value = self.applicant.applicant_id
     1394        self.browser.getControl(name="unique_id").value = self.applicant.applicant_id
    13951395        self.browser.getControl(name="lastname").value = 'nonsense'
    13961396        self.browser.getControl("Submit").click()
    13971397        self.assertTrue('No application record found' in self.browser.contents)
    1398         self.browser.getControl(name="applicant_id").value = self.applicant.applicant_id
     1398        self.browser.getControl(name="unique_id").value = self.applicant.applicant_id
    13991399        self.browser.getControl(name="lastname").value = 'Lion'
    14001400        self.browser.getControl("Submit").click()
     
    14031403        IWorkflowState(self.applicant).setState('admitted')
    14041404        self.browser.open('http://localhost/app/applicants/checkstatus')
    1405         self.browser.getControl(name="applicant_id").value = self.applicant.applicant_id
     1405        self.browser.getControl(name="unique_id").value = self.applicant.applicant_id
    14061406        # whitespaces are ignored
    14071407        self.browser.getControl(name="lastname").value = 'Lion'
     
    14111411        self.applicant.course_admitted = self.certificate
    14121412        self.browser.open('http://localhost/app/applicants/checkstatus')
    1413         self.browser.getControl(name="applicant_id").value = self.applicant.applicant_id
     1413        self.browser.getControl(name="unique_id").value = self.applicant.applicant_id
     1414        self.browser.getControl(name="lastname").value = 'Lion'
     1415        self.browser.getControl("Submit").click()
     1416        self.assertTrue('Congratulations!' in self.browser.contents)
     1417        self.assertTrue('Unnamed Certificate (CERT1)' in self.browser.contents)
     1418        self.assertTrue('Department of Unnamed Department (dep1)' in self.browser.contents)
     1419        self.assertTrue('Faculty of Unnamed Faculty (NA)' in self.browser.contents)
     1420        # also the reg_number can be used
     1421        self.browser.open('http://localhost/app/applicants/checkstatus')
     1422        self.browser.getControl(name="unique_id").value = self.applicant.reg_number
    14141423        self.browser.getControl(name="lastname").value = 'Lion'
    14151424        self.browser.getControl("Submit").click()
Note: See TracChangeset for help on using the changeset viewer.