Index: main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py
===================================================================
--- main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py	(revision 11617)
+++ main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py	(revision 11755)
@@ -19,7 +19,8 @@
 from zope.event import notify
 from zope.component import createObject, getUtility
+from waeup.kofa.configuration import SessionConfiguration
 from waeup.aaue.testing import FunctionalLayer
 from waeup.kofa.applicants.tests.test_browser import (
-    ApplicantsFullSetup, container_name_1)
+    ApplicantsFullSetup, container_name_1, session_1)
 
 class CustomApplicantUITest(ApplicantsFullSetup):
@@ -44,2 +45,22 @@
         self.assertTrue('<td>Password:</td>' in self.browser.contents)
         return
+
+    def test_payment_slip_download_warning(self):
+        configuration = SessionConfiguration()
+        configuration.academic_session = session_1
+        configuration.application_fee = 200.0
+        self.app['configuration'].addSessionConfiguration(configuration)
+        self.login()
+        self.browser.open(self.edit_path)
+        self.fill_correct_values()
+        self.browser.getControl(name="form.programme_type").value = ['regular']
+        self.browser.getControl(name="form.nationality").value = ['NG']
+        self.browser.getControl("Save").click()
+        self.browser.getControl("Add online payment ticket").click()
+        self.assertMatches('...Payment ticket created...',
+                           self.browser.contents)
+        # Payment tickets can be downloaded without submitting the form.
+        self.browser.getLink("Download payment slip").click()
+        self.assertEqual(self.browser.headers['Content-Type'],
+                 'application/pdf')
+        return
