Changeset 11645
- Timestamp:
- 14 May 2014, 05:00:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r11633 r11645 308 308 # self.browser.contents) 309 309 310 def test_pay_twice(self): 311 # Create second ticket 312 self.browser.open(self.payments_path + '/addop') 313 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 314 self.browser.getControl("Create ticket").click() 315 # Pay first ticket 316 self.student['payments'][self.value].approve() 317 # Try to pay second ticket 318 self.browser.open(self.payments_path) 319 ctrl = self.browser.getControl(name='val_id') 320 value = ctrl.options[1] 321 self.browser.getLink(value).click() 322 self.browser.getLink("CollegePAY", index=0).click() 323 self.assertMatches( 324 '...alert alert-danger">This type of payment has already been made...', 325 self.browser.contents) 326 310 327 @external_test 311 328 def test_webservice(self):
Note: See TracChangeset for help on using the changeset viewer.