- Timestamp:
- 22 Oct 2012, 05:50:04 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py
r9378 r9379 108 108 def setUp(self): 109 109 super(StudentUITests, self).setUp() 110 self.student.nationality = u'DE'111 110 112 111 def test_classes(self): … … 148 147 149 148 def test_manage_access(self): 149 self.student.nationality = u'DE' 150 150 # Managers can access the pages of students 151 151 # and can perform actions … … 208 208 self.assertTrue('The requested form is locked' in self.browser.contents) 209 209 210 # Student can view and edit clearance data if clearance has started 210 # Student can view and edit clearance data if clearance has started ... 211 211 IWorkflowInfo(self.student).fireTransition('start_clearance') 212 212 self.browser.getLink("Clearance Data").click() 213 213 self.browser.getLink("Edit").click() 214 214 self.assertTrue('Save' in self.browser.contents) 215 # ... and request clearance if nationality field has been filled. 216 self.browser.getControl("Save and request clearance").click() 217 self.assertMatches('...Required input is missing...', 218 self.browser.contents) 219 self.student.nationality = u'DE' 220 self.browser.open(self.edit_clearance_path) 221 self.browser.getControl("Save and request clearance").click() 222 self.assertMatches('...Clearance has been requested...', 223 self.browser.contents) 215 224 216 225 def test_manage_upload_file(self):
Note: See TracChangeset for help on using the changeset viewer.