Changeset 12566 for main/waeup.uniben/trunk/src/waeup/uniben/interswitch
- Timestamp:
- 7 Feb 2015, 10:25:56 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r11787 r12566 202 202 'item_name="BT Education"' in self.browser.contents) 203 203 204 # Create hostel application ticket 205 self.browser.open(self.payments_path + '/addop') 206 self.browser.getControl(name="form.p_category").value = ['hostel_application'] 207 self.browser.getControl("Create ticket").click() 208 ctrl = self.browser.getControl(name='val_id') 209 value = ctrl.options[3] 210 self.browser.getLink(value).click() 211 self.assertMatches( 212 '...<span>1000.0</span>...', 213 self.browser.contents) 214 self.student['payments'][value].approve() 215 204 216 # Create temp maint fee ticket 205 217 self.browser.open(self.payments_path + '/addop') … … 207 219 self.browser.getControl("Create ticket").click() 208 220 ctrl = self.browser.getControl(name='val_id') 209 value = ctrl.options[ 3]221 value = ctrl.options[4] 210 222 self.browser.getLink(value).click() 211 223 self.assertMatches( … … 224 236 self.browser.contents) 225 237 self.assertMatches( 226 '...<item_detail item_id="1" item_name="Hostel Maintenance Fee" item_amt="800000" bank_id="1 7" acct_num="0009598925" />...',238 '...<item_detail item_id="1" item_name="Hostel Maintenance Fee" item_amt="800000" bank_id="129" acct_num="0014419432" />...', 227 239 self.browser.contents) 228 240 self.assertFalse( … … 269 281 self.browser.getControl("Create ticket").click() 270 282 ctrl = self.browser.getControl(name='val_id') 271 value = ctrl.options[ 4]283 value = ctrl.options[5] 272 284 self.browser.getLink(value).click() 273 285 self.assertMatches(
Note: See TracChangeset for help on using the changeset viewer.