Ignore:
Timestamp:
17 Sep 2015, 06:26:01 (9 years ago)
Author:
Henrik Bettermann
Message:

Show file size of pdf documents in the documents section.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/documents/tests/test_browser.py

    r13138 r13263  
    147147        self.browser.getControl(
    148148            name='upload_pdfscanmanageupload').click()
    149         self.assertTrue(
    150             'href="http://localhost/app/documents/DOC1/file.pdf">DOC1.pdf</a>'
     149        # The file size is shown
     150        self.assertTrue(
     151            'href="http://localhost/app/documents/DOC1/file.pdf">DOC1.pdf (23.7 kB)</a>'
     152            in self.browser.contents)
     153        # Also on display page the file size is displayed.
     154        self.browser.open(self.container_path + '/DOC1')
     155        self.assertTrue(
     156            'href="http://localhost/app/documents/DOC1/file.pdf">DOC1.pdf (23.7 kB)</a>'
    151157            in self.browser.contents)
    152158        # The file can be found in the file system
Note: See TracChangeset for help on using the changeset viewer.