Ignore:
Timestamp:
17 Feb 2019, 19:43:26 (6 years ago)
Author:
Henrik Bettermann
Message:

Add tests and adjust the documentation.

File:
1 edited

Legend:

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

    r15287 r15334  
    21772177        self.browser.getControl("Save").click()
    21782178        self.assertTrue('Form has been saved' in self.browser.contents)
    2179         # Officer can validate the transcript
     2179        # Officer can edit transcript remarks and validate the transcript
    21802180        self.browser.open(self.studycourse_path + '/transcript')
    21812181        self.browser.getLink("Validate transcript").click()
     2182        self.browser.getLink("Edit").click()
     2183        self.assertEqual(
     2184            self.browser.url, self.studycourse_path + '/100/remark')
     2185        self.browser.getControl(
     2186            name="form.transcript_remark").value = 'Oh, the student failed'
     2187        self.browser.getControl(
     2188            "Save remark and go and back to transcript validation page").click()
     2189        self.assertEqual(
     2190            self.browser.url,
     2191            self.studycourse_path + '/validate_transcript#tab4')
     2192        self.assertEqual(self.student['studycourse']['100'].transcript_remark,
     2193            'Oh, the student failed')
    21822194        self.browser.getControl("Save comment and validate transcript").click()
    21832195        # After validation all manage forms are locked.
     
    21892201        self.assertTrue('The requested form is locked' in self.browser.contents)
    21902202        self.browser.open(self.studycourse_path + '/100/COURSE1/manage')
     2203        self.assertTrue('The requested form is locked' in self.browser.contents)
     2204        self.browser.open(self.studycourse_path + '/100/remark')
    21912205        self.assertTrue('The requested form is locked' in self.browser.contents)
    21922206
Note: See TracChangeset for help on using the changeset viewer.