Ignore:
Timestamp:
10 Nov 2020, 12:48:26 (4 years ago)
Author:
Henrik Bettermann
Message:

Adjust tests.

Location:
main/kofacustom.dspg/trunk/src/kofacustom/dspg
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/tests/test_browser.py

    r15592 r16308  
    290290        self.browser.getControl("Save").click()
    291291        IWorkflowState(self.applicant).setState('submitted')
    292         self.browser.open(self.manage_path)
     292        self.browser.open(self.view_path)
    293293        self.browser.getLink("Download application slip").click()
    294294        self.assertEqual(self.browser.headers['Status'], '200 Ok')
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py

    r16013 r16308  
    8080        self.assertMatches('...ticket created...',
    8181                           self.browser.contents)
    82         ctrl = self.browser.getControl(name='val_id')
    83         self.value = ctrl.options[1]
    84         self.browser.getLink(self.value).click()
    8582        self.assertTrue('<span>30000.0</span>'  in self.browser.contents)
    8683        self.payment_url = self.browser.url
     
    10097        self.browser.getControl("Create ticket").click()
    10198        self.assertTrue('ticket created' in self.browser.contents)
    102         ctrl = self.browser.getControl(name='val_id')
    103         self.value = ctrl.options[2]
    104         self.browser.getLink(self.value).click()
    10599        self.assertTrue('Amount Authorized' in self.browser.contents)
    106100        self.assertTrue('<span>12345.0</span>' in self.browser.contents)
     
    193187        self.browser.getControl("Create ticket").click()
    194188        self.assertMatches('...ticket created...', self.browser.contents)
    195         ctrl = self.browser.getControl(name='val_id')
    196         self.value = ctrl.options[0]
    197         self.browser.getLink(self.value).click()
    198189        self.assertTrue('<span>30000.0</span>'  in self.browser.contents)
    199190        self.payment_url = self.browser.url
     
    217208        self.browser.getControl("Create ticket").click()
    218209        self.assertMatches('...ticket created...', self.browser.contents)
    219         ctrl = self.browser.getControl(name='val_id')
    220         self.value = ctrl.options[0]
    221         self.browser.getLink(self.value).click()
    222210        self.assertTrue('<span>3150.0</span>'  in self.browser.contents)
    223211        self.payment_url = self.browser.url
Note: See TracChangeset for help on using the changeset viewer.