Ignore:
Timestamp:
5 Oct 2020, 06:25:25 (4 years ago)
Author:
Henrik Bettermann
Message:

Implement new personal edit form requirements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_browser.py

    r16263 r16264  
    110110        self.browser.getControl(name="form.password").value = 'spwd'
    111111        self.browser.getControl("Login").click()
    112         self.assertFalse('Library' in self.browser.contents)
     112        self.assertFalse('Download Library' in self.browser.contents)
    113113        self.student.library = True
    114114        self.browser.open(self.student_path)
     
    138138        open(path, 'wb').write(self.browser.contents)
    139139        print "Sample PDF studycourse_slip.pdf written to %s" % path
     140
     141    def test_student_personal_edit(self):
     142        IWorkflowState(self.student).setState('school fee paid')
     143        self.browser.open(self.login_path)
     144        self.browser.getControl(name="form.login").value = self.student_id
     145        self.browser.getControl(name="form.password").value = 'spwd'
     146        self.browser.getControl("Login").click()
     147        self.browser.getLink("Bio Data").click()
     148        self.browser.getLink("Edit registration bio data").click()
     149        self.assertTrue("Please make required payments first" in self.browser.contents)
     150        self.assertEqual(self.browser.url, self.personal_path)
    140151
    141152    def test_student_personal_slip(self):
Note: See TracChangeset for help on using the changeset viewer.