Ignore:
Timestamp:
21 Nov 2014, 05:08:19 (10 years ago)
Author:
Henrik Bettermann
Message:

Add more customer document components.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py

    r12015 r12016  
    790790        document = self.customer['documents']['d102']
    791791
     792        # Document can be edited
     793        self.browser.getLink("d102").click()
     794        self.browser.getLink("Manage").click()
     795        self.browser.getControl(name="form.title").value = 'My second doc'
     796        self.browser.getControl("Save").click()
     797        self.assertTrue('Form has been saved.' in self.browser.contents)
     798        self.browser.getLink("View").click()
     799        self.assertEqual(self.browser.url, self.documents_path + '/d102/index')
     800
    792801        # Documents can be removed
     802        self.browser.getLink("Documents").click()
    793803        ctrl = self.browser.getControl(name='val_id')
    794804        ctrl.getControl(value=document.document_id).selected = True
     
    802812
    803813        self.assertTrue(
     814            'INFO - zope.mgr - customers.browser.DocumentManageFormPage '
     815            '- K1000000 - saved: title'
     816            in logcontent)
     817
     818        self.assertTrue(
    804819            'INFO - zope.mgr - customers.browser.DocumentAddFormPage '
    805820            '- K1000000 - added: Generic Document %s'
Note: See TracChangeset for help on using the changeset viewer.