Ignore:
Timestamp:
15 Apr 2021, 07:20:26 (4 years ago)
Author:
Henrik Bettermann
Message:

Enable managers to remove all flash notices of students in a department.

File:
1 edited

Legend:

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

    r16412 r16459  
    18801880        self.browser.getLink("Clear all students").click()
    18811881        self.assertTrue('0 students have been cleared' in self.browser.contents)
     1882        return
     1883
     1884    def test_remove_all_flash_notices(self):
     1885        self.student.flash_notice = u'test'
     1886        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     1887        self.browser.open('http://localhost/app/faculties/fac1/dep1')
     1888        self.browser.getLink("Remove all flash notices").click()
     1889        self.assertTrue('1 flash notices have been removed' in self.browser.contents)
     1890        self.assertEqual(self.student.flash_notice, '')
    18821891        return
    18831892
Note: See TracChangeset for help on using the changeset viewer.