Changeset 15162 for main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/tests
- Timestamp:
- 21 Sep 2018, 09:32:42 (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
r15159 r15162 2127 2127 'Comment line2\n\nDispatch Address:\nAddress line 1 \n' 2128 2128 'Address line2\n\n') 2129 # Create transcript officer2129 # Create officer with both roles 2130 2130 self.app['users'].addUser('mrtranscript', 'mrtranscriptsecret') 2131 2131 self.app['users']['mrtranscript'].email = 'mrtranscript@foo.ng' … … 2133 2133 prmglobal = IPrincipalRoleManager(self.app) 2134 2134 prmglobal.assignRoleToPrincipal('waeup.TranscriptOfficer', 'mrtranscript') 2135 # Login as transcript officer 2135 prmglobal.assignRoleToPrincipal('waeup.StudentsManager', 'mrtranscript') 2136 prmglobal.assignRoleToPrincipal('waeup.TranscriptSignee', 'mrtranscript') 2137 # Login 2136 2138 self.browser.open(self.login_path) 2137 2139 self.browser.getControl(name="form.login").value = 'mrtranscript' … … 2186 2188 self.browser.open(self.studycourse_path + '/100/COURSE1/manage') 2187 2189 self.assertTrue('The requested form is locked' in self.browser.contents) 2190 2188 2191 # Transcript can be signed if officer has the permission to sign 2189 self.browser.open(self.studycourse_path + '/transcript') 2190 self.assertFalse('Sign transcript' in self.browser.contents) 2191 prmglobal = IPrincipalRoleManager(self.app) 2192 prmglobal.assignRoleToPrincipal('waeup.TranscriptSignee', 'mrtranscript') 2192 #self.browser.open(self.studycourse_path + '/transcript') 2193 #self.assertFalse('Sign transcript' in self.browser.contents) 2194 #prmglobal = IPrincipalRoleManager(self.app) 2195 #prmglobal.assignRoleToPrincipal('waeup.TranscriptSignee', 'mrtranscript') 2196 2193 2197 self.browser.open(self.studycourse_path + '/transcript') 2194 2198 self.browser.getLink("Sign transcript electronically").click() … … 2249 2253 self.assertEqual(self.browser.headers['Content-Type'], 2250 2254 'application/pdf') 2251 # Transcript views are no longer access sible2255 # Transcript views are no longer accessible 2252 2256 self.browser.open(self.studycourse_path) 2253 2257 self.assertFalse('studycourse/transcript' in self.browser.contents) … … 2289 2293 'http://localhost/app/students/K1000000/studycourse/transcript' 2290 2294 in self.browser.contents) 2291 self.browser.getLink(" Anna Tester").click()2295 self.browser.getLink("K1000000").click() 2292 2296 self.assertTrue( 2293 2297 'Anna Tester: Transcript Data' in self.browser.contents) … … 2329 2333 'http://localhost/app/students/K1000000/studycourse/transcript' 2330 2334 in self.browser.contents) 2331 self.browser.getLink(" Anna Tester").click()2335 self.browser.getLink("K1000000").click() 2332 2336 self.assertTrue( 2333 2337 'Anna Tester: Transcript Data' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.