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

Fix some tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.