- Timestamp:
- 27 Oct 2012, 05:35:04 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9424 r9437 674 674 self.browser.getControl(name="addlevel").value = ['100'] 675 675 self.browser.getControl("Add study level").click() 676 self.assertMatches( 677 '...You must select a session...', self.browser.contents) 678 self.browser.getControl(name="addlevel").value = ['100'] 679 self.browser.getControl(name="level_session").value = ['2004'] 680 self.browser.getControl("Add study level").click() 676 681 self.assertMatches('...<span>100</span>...', self.browser.contents) 677 682 self.assertEqual(self.student['studycourse']['100'].level, 100) 678 683 self.assertEqual(self.student['studycourse']['100'].level_session, 2004) 684 self.browser.getControl(name="addlevel").value = ['100'] 685 self.browser.getControl(name="level_session").value = ['2004'] 679 686 self.browser.getControl("Add study level").click() 680 687 self.assertMatches('...This level exists...', self.browser.contents) … … 683 690 '...No study level selected...', self.browser.contents) 684 691 self.browser.getControl(name="val_id").value = ['100'] 692 self.browser.getControl(name="level_session").value = ['2004'] 685 693 self.browser.getControl("Remove selected").click() 686 694 self.assertMatches('...Successfully removed...', self.browser.contents) … … 693 701 # Add level again 694 702 self.browser.getControl(name="addlevel").value = ['100'] 703 self.browser.getControl(name="level_session").value = ['2004'] 695 704 self.browser.getControl("Add study level").click() 696 705 … … 732 741 # Add next level 733 742 self.browser.getControl(name="addlevel").value = ['200'] 743 self.browser.getControl(name="level_session").value = ['2005'] 734 744 self.browser.getControl("Add study level").click() 735 745 self.browser.getLink("200").click()
Note: See TracChangeset for help on using the changeset viewer.