Changeset 15140 for main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/tests
- Timestamp:
- 18 Sep 2018, 05:53:44 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/tests/test_browser.py
r15128 r15140 2151 2151 self.browser.getLink("K1000000").click() 2152 2152 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 2162 2159 self.assertTrue('Release transcript' in self.browser.contents) 2163 2160 # Now the transcript can be released. … … 2168 2165 self.browser.getControl(name="comment").value = ( 2169 2166 '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() 2171 2168 self.assertTrue( 2172 2169 'UTC mrtranscript wrote:\n\nHello,\nYour transcript has ' … … 2178 2175 logcontent = open(logfile).read() 2179 2176 self.assertTrue( 2180 'mrtranscript - students.browser.StudentTranscriptRelease sFormPage - '2177 'mrtranscript - students.browser.StudentTranscriptReleaseFormPage - ' 2181 2178 'K1000000 - comment: Hello,<br>' 2182 2179 'Your transcript has been sent to the address provided' … … 2186 2183 storage = getUtility(IExtFileStore) 2187 2184 file_id = IFileStoreNameChooser( 2188 self.student).chooseName(attr=' transcript.pdf')2185 self.student).chooseName(attr='final_transcript.pdf') 2189 2186 pdf = storage.getFile(file_id).read() 2190 2187 self.assertTrue(len(pdf) > 0)
Note: See TracChangeset for help on using the changeset viewer.