Changeset 9503 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 2 Nov 2012, 06:58:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9486 r9503 1726 1726 '...You logged in...', self.browser.contents) 1727 1727 1728 def test_student_ access(self):1728 def test_student_clearance(self): 1729 1729 # Student cant login if their password is not set 1730 1730 IWorkflowInfo(self.student).fireTransition('admit') … … 1821 1821 self.assertMatches('...The requested form is locked...', 1822 1822 self.browser.contents) 1823 1824 def test_student_course_registration(self): 1825 # Student cant login if their password is not set 1826 IWorkflowInfo(self.student).fireTransition('admit') 1827 self.browser.open(self.login_path) 1828 self.browser.getControl(name="form.login").value = self.student_id 1829 self.browser.getControl(name="form.password").value = 'spwd' 1830 self.browser.getControl("Login").click() 1823 1831 # Student can't add study level if not in state 'school fee paid' 1824 1832 self.browser.open(self.student_path + '/studycourse/add') … … 1826 1834 self.browser.contents) 1827 1835 # ... and must be transferred first 1828 IWorkflowInfo(self.student).fireTransition('clear') 1829 IWorkflowInfo(self.student).fireTransition('pay_first_school_fee') 1836 IWorkflowState(self.student).setState('school fee paid') 1830 1837 # Now students can add the current study level 1831 1838 self.browser.getLink("Study Course").click()
Note: See TracChangeset for help on using the changeset viewer.