Ignore:
Timestamp:
13 Mar 2019, 17:48:36 (6 years ago)
Author:
Henrik Bettermann
Message:

Add ExportJHLIdCard page.

Make email field required on CustomStudentBaseEditFormPage?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r15314 r15352  
    213213        self.browser.open(self.student_path)
    214214        self.assertFalse('examination schedule slip' in self.browser.contents)
     215
     216    def test_jhl_idcard(self):
     217        self.browser.open(self.login_path)
     218        self.browser.getControl(name="form.login").value = self.student_id
     219        self.browser.getControl(name="form.password").value = 'spwd'
     220        self.browser.getControl("Login").click()
     221        self.browser.getLink("Download JHL Id Card").click()
     222        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     223        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     224        path = os.path.join(samples_dir(), 'jhl_idcard.pdf')
     225        open(path, 'wb').write(self.browser.contents)
     226        print "Sample PDF jhl_idcard.pdf written to %s" % path
    215227
    216228    def test_jupeb_result_slip(self):
Note: See TracChangeset for help on using the changeset viewer.