Changeset 15334 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 17 Feb 2019, 19:43:26 (6 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r15333 r15334 1709 1709 level_title = translate(self.context.level_title, 'waeup.kofa', 1710 1710 target_language=lang) 1711 return _('Edit transcript remark of level ${a}', mapping = {'a':level_title}) 1711 return _( 1712 'Edit transcript remark of level ${a}', mapping = {'a':level_title}) 1712 1713 1713 1714 @property … … 1719 1720 def save(self, **data): 1720 1721 msave(self, **data) 1721 self.redirect( 1722 self.url(self.context.student, 'studycourse/validate_transcript') 1723 +'#tab4') 1722 self.redirect(self.url(self.context.student) 1723 + '/studycourse/validate_transcript#tab4') 1724 1724 return 1725 1725 -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r15287 r15334 2177 2177 self.browser.getControl("Save").click() 2178 2178 self.assertTrue('Form has been saved' in self.browser.contents) 2179 # Officer can validate the transcript2179 # Officer can edit transcript remarks and validate the transcript 2180 2180 self.browser.open(self.studycourse_path + '/transcript') 2181 2181 self.browser.getLink("Validate transcript").click() 2182 self.browser.getLink("Edit").click() 2183 self.assertEqual( 2184 self.browser.url, self.studycourse_path + '/100/remark') 2185 self.browser.getControl( 2186 name="form.transcript_remark").value = 'Oh, the student failed' 2187 self.browser.getControl( 2188 "Save remark and go and back to transcript validation page").click() 2189 self.assertEqual( 2190 self.browser.url, 2191 self.studycourse_path + '/validate_transcript#tab4') 2192 self.assertEqual(self.student['studycourse']['100'].transcript_remark, 2193 'Oh, the student failed') 2182 2194 self.browser.getControl("Save comment and validate transcript").click() 2183 2195 # After validation all manage forms are locked. … … 2189 2201 self.assertTrue('The requested form is locked' in self.browser.contents) 2190 2202 self.browser.open(self.studycourse_path + '/100/COURSE1/manage') 2203 self.assertTrue('The requested form is locked' in self.browser.contents) 2204 self.browser.open(self.studycourse_path + '/100/remark') 2191 2205 self.assertTrue('The requested form is locked' in self.browser.contents) 2192 2206
Note: See TracChangeset for help on using the changeset viewer.