- Timestamp:
- 5 Oct 2020, 06:25:25 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_browser.py
r16263 r16264 110 110 self.browser.getControl(name="form.password").value = 'spwd' 111 111 self.browser.getControl("Login").click() 112 self.assertFalse(' Library' in self.browser.contents)112 self.assertFalse('Download Library' in self.browser.contents) 113 113 self.student.library = True 114 114 self.browser.open(self.student_path) … … 138 138 open(path, 'wb').write(self.browser.contents) 139 139 print "Sample PDF studycourse_slip.pdf written to %s" % path 140 141 def test_student_personal_edit(self): 142 IWorkflowState(self.student).setState('school fee paid') 143 self.browser.open(self.login_path) 144 self.browser.getControl(name="form.login").value = self.student_id 145 self.browser.getControl(name="form.password").value = 'spwd' 146 self.browser.getControl("Login").click() 147 self.browser.getLink("Bio Data").click() 148 self.browser.getLink("Edit registration bio data").click() 149 self.assertTrue("Please make required payments first" in self.browser.contents) 150 self.assertEqual(self.browser.url, self.personal_path) 140 151 141 152 def test_student_personal_slip(self):
Note: See TracChangeset for help on using the changeset viewer.