Changeset 15150 for main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/tests
- Timestamp:
- 19 Sep 2018, 11:11:38 (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
r15148 r15150 2192 2192 prmglobal.assignRoleToPrincipal('waeup.TranscriptSignee', 'mrtranscript') 2193 2193 self.browser.open(self.studycourse_path + '/transcript') 2194 self.browser.getLink("Sign transcript ").click()2194 self.browser.getLink("Sign transcript electronically").click() 2195 2195 # Transcript signing has been logged ... 2196 2196 logfile = os.path.join( … … 2200 2200 'mrtranscript - students.browser.StudentTranscriptSignView - ' 2201 2201 'K1000000 - Transcript signed' in logcontent) 2202 # ... a nd appears in the student's history2202 # ... appears in the student's history ... 2203 2203 self.browser.open(self.history_path) 2204 2204 self.assertTrue('Transcript signed by Ruth Gordon' 2205 2205 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) 2206 2210 # Officer can release the transcript 2207 2211 self.browser.open(self.student_path) … … 2245 2249 self.assertEqual(self.browser.headers['Content-Type'], 2246 2250 '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 2247 2266 2248 2267 class StudentUITests(StudentsFullSetup):
Note: See TracChangeset for help on using the changeset viewer.