Ignore:
Timestamp:
22 Oct 2012, 05:50:04 (12 years ago)
Author:
Henrik Bettermann
Message:

Students can request clearance without uploading scans.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py

    r9378 r9379  
    108108    def setUp(self):
    109109        super(StudentUITests, self).setUp()
    110         self.student.nationality = u'DE'
    111110
    112111    def test_classes(self):
     
    148147
    149148    def test_manage_access(self):
     149        self.student.nationality = u'DE'
    150150        # Managers can access the pages of students
    151151        # and can perform actions
     
    208208        self.assertTrue('The requested form is locked' in self.browser.contents)
    209209
    210         # Student can view and edit clearance data if clearance has started
     210        # Student can view and edit clearance data if clearance has started ...
    211211        IWorkflowInfo(self.student).fireTransition('start_clearance')
    212212        self.browser.getLink("Clearance Data").click()
    213213        self.browser.getLink("Edit").click()
    214214        self.assertTrue('Save' in self.browser.contents)
     215        # ... and request clearance if nationality field has been filled.
     216        self.browser.getControl("Save and request clearance").click()
     217        self.assertMatches('...Required input is missing...',
     218                           self.browser.contents)
     219        self.student.nationality = u'DE'
     220        self.browser.open(self.edit_clearance_path)
     221        self.browser.getControl("Save and request clearance").click()
     222        self.assertMatches('...Clearance has been requested...',
     223                           self.browser.contents)
    215224
    216225    def test_manage_upload_file(self):
Note: See TracChangeset for help on using the changeset viewer.