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

Add view and viewlet for customer document transitions.

File:
1 edited

Legend:

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

    r12020 r12028  
    294294        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    295295        self.assertEqual(self.browser.url, self.customer_path)
    296         self.browser.getLink("Trigger").click()
     296        self.browser.getLink("Transition").click()
    297297        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    298298        # Managers can trigger transitions
     
    800800        self.assertEqual(self.browser.url, self.documents_path + '/d102/index')
    801801
     802        # Transitions can be performed
     803        self.browser.getLink("Transition").click()
     804        self.browser.getControl(name="transition").value = ['submit']
     805        self.browser.getControl("Save").click()
     806        self.browser.getControl(name="transition").value = ['verify']
     807        self.browser.getControl("Save").click()
     808        self.assertEqual(document.state, 'verified')
     809
    802810        # Documents can be removed
    803811        self.browser.getLink("Documents").click()
Note: See TracChangeset for help on using the changeset viewer.