Changeset 12020 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Timestamp:
- 21 Nov 2014, 09:19:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12018 r12020 40 40 from waeup.ikoba.customers.interfaces import ICustomersUtils 41 41 from waeup.ikoba.customers.customer import Customer 42 from waeup.ikoba.interfaces import IUserAccount, IJobManager 42 from waeup.ikoba.interfaces import IUserAccount, IJobManager, APPROVED 43 43 from waeup.ikoba.authentication import LocalRoleSetEvent 44 44 from waeup.ikoba.tests.test_async import FunctionalAsyncTestCase 45 from waeup.ikoba.documents.workflow import VERIFIED 45 46 46 47 PH_LEN = 15911 # Length of placeholder file … … 843 844 # Document can be edited ... 844 845 self.browser.getLink("d102").click() 845 846 847 846 self.browser.open(self.documents_path + '/d102/edit') 848 847 #self.browser.getLink("Edit").click() 849 848 self.assertTrue('The requested form is locked' in self.browser.contents) 850 851 852 853 854 855 856 849 # Customer is in wrong state 850 IWorkflowState(self.customer).setState(APPROVED) 851 self.browser.open(self.documents_path + '/d102/edit') 857 852 self.browser.getControl(name="form.title").value = 'My second doc' 858 853 self.browser.getControl("Save").click() … … 860 855 self.browser.getLink("View").click() 861 856 self.assertEqual(self.browser.url, self.documents_path + '/d102/index') 857 # Customer can't edit the document once it has been verified 858 IWorkflowState(document).setState(VERIFIED) 859 self.browser.open(self.documents_path + '/d102/edit') 860 self.assertTrue('The requested form is locked' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.