- Timestamp:
- 10 Jun 2012, 08:59:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r8664 r8665 773 773 self.assertTrue('Final Submit' in self.browser.contents) 774 774 self.fill_correct_values() # fill other fields with correct values 775 self.browser.getControl("Save").click() 775 776 self.browser.getControl("Final Submit").click() 776 777 # We forgot to upload a passport picture … … 789 790 in self.browser.contents) 790 791 self.browser.getControl(name="confirm_passport").value = True 792 # If application period has expired and strict-deadline is set 793 # applicants do notsee edit button and can't open 794 # the edit form. 791 795 self.applicantscontainer.enddate = datetime.now(pytz.utc) 792 self.browser.getControl("Final Submit").click() 793 self.assertTrue( 794 'Application period has expired' in self.browser.contents) 796 self.browser.open(self.view_path) 797 self.assertFalse( 798 'Edit application record' in self.browser.contents) 799 self.browser.open(self.edit_path) 800 self.assertTrue( 801 'form is locked' in self.browser.contents) 795 802 # We can either postpone the enddate ... 796 803 self.applicantscontainer.enddate = datetime.now( 797 804 pytz.utc) + timedelta(days=10) 805 self.browser.open(self.edit_path) 798 806 self.browser.getControl(name="confirm_passport").value = True 799 807 self.browser.getControl("Final Submit").click() … … 811 819 self.browser.goBack(count=1) 812 820 self.browser.getControl("Save").click() 821 # The form is locked. 813 822 self.assertTrue( 814 823 'The requested form is locked' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.