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 12812)
+++ main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py	(revision 12825)
@@ -1660,2 +1660,34 @@
         radio_ctrl.displayValue = ['Credit Card (Demo Payments)']
         self.browser.getControl(self.never_ending_button_text).click()
+
+
+class PaymentsUITests(CustomersFullSetup):
+    # Tests for contract related views and pages
+
+    def setup_payment(self):
+        payer = IPayer(self.customer)
+        payable = IPayable(self.contract)
+        self.payment = Payment(payer, payable)
+        self.payment.gateway_service = 'demo_creditcard'
+        self.payment.state = STATE_PAID
+        self.payment.title = u'My payment'
+        self.app['payments'][self.payment.payment_id] = self.payment
+
+    def add_product_option(self, contract):
+        prodoption = ProductOption()
+        prodoption.title = u'Any product option'
+        prodoption.fee = Decimal('88.8')
+        prodoption.currency = 'EUR'
+        contract.product_options = [prodoption, ]
+
+    def test_view_payments(self):
+        self.add_product_option(self.contract)
+        self.setup_payment()
+        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
+        self.browser.open(self.customer_path)
+        self.assertEqual(self.browser.headers['Status'], '200 Ok')
+        self.assertEqual(self.browser.url, self.customer_path)
+        self.browser.open(self.customer_path)
+        self.browser.getLink("Payments", index=1).click()
+        self.assertTrue(
+            '<td>Credit Card (Demo Payments)</td>' in self.browser.contents)
