Changeset 7459 for main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Timestamp:
- 12 Jan 2012, 16:19:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py
r7422 r7459 807 807 self.browser.getLink("Clear student").click() 808 808 self.assertTrue('Student has been cleared' in self.browser.contents) 809 self.assertTrue(' State: <span>cleared</span>' in self.browser.contents)809 self.assertTrue('cleared' in self.browser.contents) 810 810 self.browser.getLink("Reject clearance").click() 811 811 self.assertTrue('Clearance has been annulled' in self.browser.contents) … … 814 814 self.assertEqual(self.browser.url, self.student_path + 815 815 '/contactstudent?subject=%s' % urlmessage) 816 self.assertTrue('State: <span>clearance started</span>' 817 in self.browser.contents) 816 self.assertTrue('clearance started' in self.browser.contents) 818 817 IWorkflowInfo(self.student).fireTransition('request_clearance') 819 818 self.browser.open(self.clearance_student_path) … … 821 820 self.assertTrue('Clearance request has been rejected' 822 821 in self.browser.contents) 823 self.assertTrue('State: <span>clearance started</span>' 824 in self.browser.contents) 822 self.assertTrue('clearance started' in self.browser.contents) 825 823 # CO does now also see the contact form and can send a message 826 824 self.browser.getControl(name="form.subject").value = 'Important subject' … … 917 915 self.browser.getLink("Validate courses").click() 918 916 self.assertTrue('Course list has been validated' in self.browser.contents) 919 self.assertTrue(' State: <span>courses validated</span>' in self.browser.contents)917 self.assertTrue('courses validated' in self.browser.contents) 920 918 self.browser.getLink("Reject courses").click() 921 919 self.assertTrue('Course list request has been annulled' … … 924 922 self.assertEqual(self.browser.url, self.student_path + 925 923 '/contactstudent?subject=%s' % urlmessage) 926 self.assertTrue('State: <span>school fee paid</span>' 927 in self.browser.contents) 924 self.assertTrue('school fee paid' in self.browser.contents) 928 925 IWorkflowInfo(self.student).fireTransition('register_courses') 929 926 self.browser.open(L110_student_path) … … 931 928 self.assertTrue('Course list request has been rejected' 932 929 in self.browser.contents) 933 self.assertTrue('State: <span>school fee paid</span>' 934 in self.browser.contents) 930 self.assertTrue('school fee paid' in self.browser.contents) 935 931 # CA does now see the contact form and can send a message 936 932 self.browser.getControl(name="form.subject").value = 'Important subject' … … 977 973 self.assertTrue('Password changed' in self.browser.contents) 978 974 # We are still logged in. Changing the password hasn't thrown us out. 979 self.browser.getLink(" MyData").click()975 self.browser.getLink("Base Data").click() 980 976 self.assertEqual(self.browser.url, self.student_path) 981 977 # We can logout
Note: See TracChangeset for help on using the changeset viewer.