Index: main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
===================================================================
--- main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py	(revision 12351)
+++ main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py	(revision 12352)
@@ -837,4 +837,5 @@
         # Managers can access the pages of customer documentsconter
         # and can perform actions
+        IWorkflowState(self.customer).setState('approved')
         self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
         self.browser.open(self.customer_path)
@@ -1041,4 +1042,5 @@
 
     def test_verify_document(self):
+        IWorkflowState(self.customer).setState('approved')
         self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
         self.browser.open(self.customer_path + '/documents/DOC1/manage')
@@ -1347,5 +1349,5 @@
 
     def test_contract_approval(self):
-        # This is not a UI test. It just a functional test.
+        # This is not a UI test. It's just a functional test.
         self.assertRaises(ConstraintNotSatisfied,
             self.contract.document_object, self.document)
@@ -1356,12 +1358,15 @@
         self.assertRaises(InvalidTransitionError,
             IWorkflowInfo(self.contract).fireTransition, 'approve')
-        # Document must be verified for the approval of contracts
+        # Customer must be approved and
+        # document must be verified for the approval of contracts
         IWorkflowState(self.document).setState('verified')
+        IWorkflowState(self.customer).setState('approved')
         IWorkflowInfo(self.contract).fireTransition('approve')
         self.assertEqual(IWorkflowState(self.contract).getState(), 'approved')
 
     def test_contract_approval_in_UI(self):
-        # Now let's see what the UI says why trying to approve a contract
+        # Now let's see what the UI says when trying to approve a contract
         # with unverified documents.
+        IWorkflowState(self.customer).setState('approved')
         IWorkflowState(self.document).setState('submitted')
         self.contract.document_object = self.document
