Changeset 9273 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 2 Oct 2012, 16:50:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9257 r9273 113 113 self.student_path = self.container_path + '/' + self.student_id 114 114 self.manage_student_path = self.student_path + '/manage_base' 115 self.trigtrans_path = self.student_path + '/trigtrans' 115 116 self.clearance_path = self.student_path + '/view_clearance' 116 117 self.personal_path = self.student_path + '/view_personal' … … 435 436 self.assertEqual(self.browser.headers['Status'], '200 Ok') 436 437 self.assertEqual(self.browser.url, self.student_path) 438 self.browser.getLink("Trigger").click() 439 self.assertEqual(self.browser.headers['Status'], '200 Ok') 440 # Managers can trigger transitions 441 self.browser.getControl(name="transition").value = ['admit'] 442 self.browser.getControl("Save").click() 443 # Managers can edit base 444 self.browser.open(self.student_path) 437 445 self.browser.getLink("Manage").click() 438 self.assertEqual(self.browser.headers['Status'], '200 Ok')439 446 self.assertEqual(self.browser.url, self.manage_student_path) 440 # Managers can edit base data and fire transitions 441 self.browser.getControl(name="transition").value = ['admit'] 447 self.assertEqual(self.browser.headers['Status'], '200 Ok') 442 448 self.browser.getControl(name="form.firstname").value = 'John' 443 449 self.browser.getControl(name="form.lastname").value = 'Tester' … … 720 726 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 721 727 student = self.app['students'][self.student_id] 722 self.browser.open(self. manage_student_path)728 self.browser.open(self.trigtrans_path) 723 729 self.assertTrue(student.clearance_locked) 724 730 self.browser.getControl(name="transition").value = ['admit'] … … 761 767 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 762 768 student = self.app['students'][self.student_id] 763 self.browser.open(self. manage_student_path)769 self.browser.open(self.trigtrans_path) 764 770 self.assertTrue('<option value="reset6">' in self.browser.contents) 765 771 self.assertTrue('<option value="register_courses">' in self.browser.contents) 766 772 self.assertTrue('<option value="reset5">' in self.browser.contents) 767 773 self.certificate.study_mode = 'pg_ft' 768 self.browser.open(self. manage_student_path)774 self.browser.open(self.trigtrans_path) 769 775 self.assertFalse('<option value="reset6">' in self.browser.contents) 770 776 self.assertFalse('<option value="register_courses">' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.