Ignore:
Timestamp:
10 Aug 2011, 22:19:27 (13 years ago)
Author:
Henrik Bettermann
Message:

Test workflow transition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py

    r6590 r6591  
    242242        self.add_applicant_path = self.container_path + '/addapplicant'
    243243        self.container_manage_path = self.container_path + '/@@manage'
    244         self.browser.open(self.add_applicant_path)
     244        self.browser.open(self.container_manage_path)
     245        self.browser.getControl("Add applicant").click()
    245246        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    246247        self.assertEqual(self.browser.url, self.add_applicant_path)
     
    278279        self.browser.getControl(name="form.lga").value = ['foreigner']
    279280        self.browser.getControl(name="form.sex").value = ['m']
     281        self.browser.getControl(name="transition").value = ['start']
    280282        self.browser.getControl("Save").click()
    281283        self.assertMatches('...Form has been saved...', self.browser.contents)
     284        self.assertMatches('...Application started by zope.mgr...', self.browser.contents)
    282285        self.browser.open(self.applicant_view_path)
    283286        self.assertEqual(self.browser.headers['Status'], '200 Ok')
Note: See TracChangeset for help on using the changeset viewer.