Ignore:
Timestamp:
19 Aug 2019, 10:27:05 (5 years ago)
Author:
Henrik Bettermann
Message:

Allow to add applicants containers with a number instead of entrance year
in container code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r15287 r15548  
    365365        self.assertTrue('exists already in the database'
    366366                        in self.browser.contents)
     367        # Managers can add containers with prefix+number code instead of
     368        # prefix+year code.
     369        self.browser.open(self.add_container_path)
     370        self.browser.getControl(name="form.prefix").value = ['app']
     371        self.browser.getControl(name="form.year").value = [str(session_2)]
     372        self.browser.getControl(name="form.container_number").value = ['8']
     373        self.browser.getControl(name="form.mode").value = ['create']
     374        self.browser.getControl(
     375            name="form.application_category").value = ['basic']
     376        self.browser.getControl("Add applicants container").click()
     377        self.assertTrue('Added: "app8"' in self.browser.contents)
     378        self.browser.getLink(container_name_1).click()
     379        self.assertTrue('Manage applicants container'
     380            in self.browser.contents)
    367381        self.browser.open(self.manage_root_path)
    368382        ctrl = self.browser.getControl(name='val_id')
Note: See TracChangeset for help on using the changeset viewer.