- Timestamp:
- 1 Jan 2015, 07:44:44 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12353 r12356 931 931 self.browser.getLink("Documents").click() 932 932 self.browser.getControl("Add document").click() 933 self.assertTrue('The requested form is locked' in self.browser.contents) 934 # Customer is in wrong state 935 IWorkflowState(self.customer).setState(APPROVED) 936 self.browser.getControl("Add document").click() 933 937 self.browser.getControl(name="doctype").value = ['CustomerSampleDocument'] 934 938 self.browser.getControl(name="form.title").value = 'My Sample Document' … … 937 941 docid = [i for i in self.customer['documents'].keys() if len(i) > 10][0] 938 942 document = self.customer['documents'][docid] 939 940 # Document can be edited ...941 self.browser.getLink(docid[:6]).click()942 self.browser.open(self.documents_path + '/' + docid + '/edit')943 #self.browser.getLink("Edit").click()944 self.assertTrue('The requested form is locked' in self.browser.contents)945 # Customer is in wrong state946 IWorkflowState(self.customer).setState(APPROVED)947 self.browser.open(self.documents_path + '/' + docid + '/edit')948 943 self.browser.getControl(name="form.title").value = 'My second doc' 949 944 self.browser.getControl("Save").click() … … 953 948 self.assertEqual( 954 949 self.browser.url, self.documents_path + '/%s/index' % docid) 955 # C ostumer can upload a document.950 # Customer can upload a document. 956 951 self.browser.getLink("Edit").click() 957 952 ctrl = self.browser.getControl(name='samplescaneditupload') … … 964 959 'href="http://localhost/app/customers/K1000000/documents/%s/sample"' 965 960 % docid in self.browser.contents) 966 # C ostumer can submit the form. The form is also saved.961 # Customer can submit the form. The form is also saved. 967 962 self.browser.getControl(name="form.title").value = 'My third doc' 968 963 self.browser.getControl("Final Submit").click() … … 1217 1212 in logcontent) 1218 1213 self.assertTrue( 1219 'INFO - zope.mgr - customers.browser.ContractAdd Page '1214 'INFO - zope.mgr - customers.browser.ContractAddFormPage ' 1220 1215 '- K1000000 - added: Sample Contract %s' 1221 1216 % contract.contract_id in logcontent)
Note: See TracChangeset for help on using the changeset viewer.