Changeset 16354


Ignore:
Timestamp:
15 Dec 2020, 09:09:27 (4 years ago)
Author:
Henrik Bettermann
Message:

Fix some tests.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py

    r16283 r16354  
    220220        self.browser.getControl("Create ticket").click()
    221221        self.assertTrue('ticket created' in self.browser.contents)
    222         ctrl = self.browser.getControl(name='val_id')
    223         self.value = ctrl.options[0]
    224         self.browser.getLink(self.value).click()
    225222        self.assertTrue('Amount Authorized' in self.browser.contents)
    226223        # 50200 + 1000 + 500 - 400
     
    261258        self.assertTrue('ticket created' in
    262259                           self.browser.contents)
    263         ctrl = self.browser.getControl(name='val_id')
    264         self.value = ctrl.options[0]
    265         self.browser.getLink(self.value).click()
    266260        self.assertTrue('Amount Authorized' in
    267261                           self.browser.contents)
     
    302296        self.browser.getControl("Create ticket").click()
    303297        self.assertTrue('ticket created' in  self.browser.contents)
    304         ctrl = self.browser.getControl(name='val_id')
    305         self.value = ctrl.options[0]
    306         self.browser.getLink(self.value).click()
    307298        self.assertTrue('Amount Authorized' in self.browser.contents)
    308299        # 40200 + 2000 + 800 - 400
     
    333324        self.browser.getControl("Create ticket").click()
    334325        self.assertTrue('ticket created' in self.browser.contents)
    335         ctrl = self.browser.getControl(name='val_id')
    336         self.value = ctrl.options[0]
    337         self.browser.getLink(self.value).click()
    338326        self.assertTrue('Amount Authorized' in self.browser.contents)
    339327        self.assertTrue('<span>43050.0</span>' in self.browser.contents)
     
    362350        self.browser.getControl("Create ticket").click()
    363351        self.assertTrue('ticket created' in  self.browser.contents)
    364         ctrl = self.browser.getControl(name='val_id')
    365         self.value = ctrl.options[0]
    366         self.browser.getLink(self.value).click()
    367352        self.assertTrue('Amount Authorized' in self.browser.contents)
    368353        self.assertTrue(
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r16240 r16354  
    170170        self.browser.getControl(name="form.p_category").value = ['clearance_incl']
    171171        self.browser.getControl("Create ticket").click()
     172        self.browser.open(self.payments_path)
    172173        ctrl = self.browser.getControl(name='val_id')
    173174        cpt_value = ctrl.options[0]
     
    181182                           self.browser.contents)
    182183        # ... but not paid through the query_history page.
     184        self.browser.open(self.payments_path)
    183185        ctrl = self.browser.getControl(name='val_id')
    184186        sfpt_value = ctrl.options[1]
     
    269271        self.assertTrue('ticket created' in self.browser.contents)
    270272        # ... approve the second instalment ...
     273        self.browser.open(self.payments_path)
    271274        ctrl = self.browser.getControl(name='val_id')
    272275        p_id = ctrl.options[1]
     
    329332        self.browser.getControl(name="form.p_category").value = ['schoolfee_incl']
    330333        self.browser.getControl("Create ticket").click()
     334        self.browser.open(self.payments_path)
    331335        ctrl = self.browser.getControl(name='val_id')
    332336        value = ctrl.options[0]
     
    555559        self.assertMatches('...ticket created...', self.browser.contents)
    556560        self.app['configuration']['2004'].payment_disabled = ['sf_all']
     561        self.browser.open(self.payments_path)
    557562        self.browser.getLink("Add current session payment ticket").click()
    558563        self.browser.getControl(name="form.p_category").value = ['schoolfee_incl']
     
    566571        self.assertMatches('...ticket created...', self.browser.contents)
    567572        self.certificate.study_mode = 'ug_pt'
     573        self.browser.open(self.payments_path)
    568574        self.browser.getLink("Add current session payment ticket").click()
    569575        self.browser.getControl(name="form.p_category").value = ['schoolfee_incl']
     
    577583        self.assertMatches('...ticket created...', self.browser.contents)
    578584        self.certificate.study_mode = 'special_pg_ft'
     585        self.browser.open(self.payments_path)
    579586        self.browser.getLink("Add current session payment ticket").click()
    580587        self.browser.getControl(name="form.p_category").value = ['schoolfee']
     
    13911398        self.browser.getControl(name="form.password").value = 'spwd'
    13921399        self.browser.getControl("Login").click()
     1400        self.browser.open(self.student_path)
    13931401        self.browser.getLink("Download examination schedule slip").click()
    13941402        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     
    13971405        open(path, 'wb').write(self.browser.contents)
    13981406        print "Sample PDF examination_schedule_slip.pdf written to %s" % path
    1399         # If flash_notive does not contain exam' the button does not show up.
     1407        # If flash_notice does not contain exam' the button does not show up.
    14001408        self.student.flash_notice = u'anything'
    14011409        self.browser.open(self.student_path)
Note: See TracChangeset for help on using the changeset viewer.