Changeset 8775 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 22 Jun 2012, 16:40:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r8753 r8775 261 261 self.assertMatches('...ticket created...', 262 262 self.browser.contents) 263 # In state returning we can't add a new school fee ticket 264 # for the next session because the second instalment is missing ... 265 IWorkflowState(self.student).setState('returning') 266 self.browser.open(self.payments_path + '/addop') 267 self.browser.getControl(name="form.p_category").value = ['schoolfee_1'] 268 self.browser.getControl("Create ticket").click() 269 self.assertMatches('...2nd school fee instalment has not yet been paid...', 270 self.browser.contents) 263 # We can't add the 2nd instalment ticket because the 264 # first one has not yet been approved. 271 265 self.browser.open(self.payments_path + '/addop') 272 266 self.browser.getControl(name="form.p_category").value = ['schoolfee_2'] 273 # ... and the first one has not yet been approved.274 267 self.browser.getControl("Create ticket").click() 275 268 self.assertMatches('...1st school fee instalment has not yet been paid...', … … 289 282 p_id = ctrl.options[1] 290 283 self.browser.open(self.payments_path + '/' + p_id + '/approve') 291 # ... and finally add the 1st instalment for the next session. 284 # ... and finally add the 1st instalment for the next session 285 # provided that student is returning. 286 IWorkflowState(self.student).setState('returning') 292 287 self.browser.open(self.payments_path + '/addop') 293 288 self.browser.getControl(name="form.p_category").value = ['schoolfee_1']
Note: See TracChangeset for help on using the changeset viewer.