Ignore:
Timestamp:
18 Sep 2018, 05:53:44 (6 years ago)
Author:
Henrik Bettermann
Message:

Implement transcript validation workflow. More tests will follow.

File:
1 edited

Legend:

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

    r15128 r15140  
    21512151        self.browser.getLink("K1000000").click()
    21522152        self.assertFalse('Release transcript request' in self.browser.contents)
    2153         # ToDo: Somebody has to validate the transcript
    2154 
    2155 
    2156 
    2157         IWorkflowState(self.student).setState('transcript validated')
    2158 
    2159 
    2160 
    2161         self.browser.open(self.student_path)
     2153        # Officer has to validate the transcript
     2154        self.browser.getLink("Validate transcript").click()
     2155
     2156
     2157
     2158
    21622159        self.assertTrue('Release transcript' in self.browser.contents)
    21632160        # Now the transcript can be released.
     
    21682165        self.browser.getControl(name="comment").value = (
    21692166            'Hello,\nYour transcript has been sent to the address provided.')
    2170         self.browser.getControl("Save comment and mark as released").click()
     2167        self.browser.getControl("Save comment and release transcript").click()
    21712168        self.assertTrue(
    21722169            'UTC mrtranscript wrote:\n\nHello,\nYour transcript has '
     
    21782175        logcontent = open(logfile).read()
    21792176        self.assertTrue(
    2180             'mrtranscript - students.browser.StudentTranscriptReleasesFormPage - '
     2177            'mrtranscript - students.browser.StudentTranscriptReleaseFormPage - '
    21812178            'K1000000 - comment: Hello,<br>'
    21822179            'Your transcript has been sent to the address provided'
     
    21862183        storage = getUtility(IExtFileStore)
    21872184        file_id = IFileStoreNameChooser(
    2188             self.student).chooseName(attr='transcript.pdf')
     2185            self.student).chooseName(attr='final_transcript.pdf')
    21892186        pdf = storage.getFile(file_id).read()
    21902187        self.assertTrue(len(pdf) > 0)
Note: See TracChangeset for help on using the changeset viewer.