Ignore:
Timestamp:
6 Sep 2016, 18:37:59 (8 years ago)
Author:
Henrik Bettermann
Message:

Remove CustomStudyCourseTranscriptPage?.

Students are allowed to view transcripts. Buttons not yet visible, waiting for confirmation.

File:
1 edited

Legend:

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

    r14136 r14165  
    867867        self.assertTrue('mrslecturer - waeup.aaue.students.browser.CustomEditScoresPage - '
    868868                        'E1000000 100/COURSE1 score updated (None)' in logcontent)
     869
     870
     871    def test_student_view_transcript(self):
     872        # Student cant login if their password is not set
     873        IWorkflowInfo(self.student).fireTransition('admit')
     874        self.browser.open(self.login_path)
     875        self.browser.getControl(name="form.login").value = self.student_id
     876        self.browser.getControl(name="form.password").value = 'spwd'
     877        self.browser.getControl("Login").click()
     878        self.assertMatches(
     879            '...You logged in...', self.browser.contents)
     880        # Students can view the transcript
     881        self.browser.open(self.studycourse_path)
     882        self.browser.getLink("Transcript").click()
     883        self.browser.getLink("Academic Transcript").click()
     884        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     885        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
Note: See TracChangeset for help on using the changeset viewer.