Ignore:
Timestamp:
19 Sep 2018, 11:11:38 (6 years ago)
Author:
Henrik Bettermann
Message:

Print electronic signatures on pdf files.

Remove final transcript file when resetting the transcript process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/tests/test_browser.py

    r15148 r15150  
    21922192        prmglobal.assignRoleToPrincipal('waeup.TranscriptSignee', 'mrtranscript')
    21932193        self.browser.open(self.studycourse_path + '/transcript')
    2194         self.browser.getLink("Sign transcript").click()
     2194        self.browser.getLink("Sign transcript electronically").click()
    21952195        # Transcript signing has been logged ...
    21962196        logfile = os.path.join(
     
    22002200            'mrtranscript - students.browser.StudentTranscriptSignView - '
    22012201            'K1000000 - Transcript signed' in logcontent)
    2202         # ... and appears in the student's history
     2202        # ... appears in the student's history ...
    22032203        self.browser.open(self.history_path)
    22042204        self.assertTrue('Transcript signed by Ruth Gordon'
    22052205            in self.browser.contents)
     2206        # ... and is also stored in the transcript_signee attribute.
     2207        self.assertTrue(
     2208            u'Electronically signed by Ruth Gordon (mrtranscript) on '
     2209            in self.student.transcript_signees)
    22062210        # Officer can release the transcript
    22072211        self.browser.open(self.student_path)
     
    22452249        self.assertEqual(self.browser.headers['Content-Type'],
    22462250                         'application/pdf')
     2251        # Transcript views are no longer accesssible
     2252        self.browser.open(self.student_path)
     2253        self.assertFalse('studycourse/transcript' in self.browser.contents)
     2254        self.browser.open(self.studycourse_path)
     2255        self.assertFalse('studycourse/transcript' in self.browser.contents)
     2256        self.browser.open(self.studycourse_path + '/transcript')
     2257        self.assertTrue('Forbidden!' in self.browser.contents)
     2258        self.browser.open(self.studycourse_path + '/transcript.pdf')
     2259        self.assertTrue('Forbidden!' in self.browser.contents)
     2260        # If we reset the transcript process
     2261        # (can't be done by transcript officer), the file will be deleted
     2262        IWorkflowInfo(self.student).fireTransition('reset11')
     2263        self.browser.open(self.student_path)
     2264        self.assertFalse('Final Transcript' in self.browser.contents)
     2265
    22472266
    22482267class StudentUITests(StudentsFullSetup):
Note: See TracChangeset for help on using the changeset viewer.