Ignore:
Timestamp:
9 Jan 2023, 21:16:28 (23 months ago)
Author:
Henrik Bettermann
Message:

Specify the role in flash message after logging in.

File:
1 edited

Legend:

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

    r17176 r17261  
    32873287        self.browser.getControl("Login").click()
    32883288        self.assertTrue(
    3289             'You logged in.' in self.browser.contents)
     3289            'You logged in as a student.' in self.browser.contents)
    32903290        # Now students can add the current study level
    32913291        self.browser.getLink("Study Course").click()
     
    48374837        # lecturers can login and will be led to landing page.
    48384838        self.login_as_lecturer()
    4839         self.assertMatches('...You logged in...', self.browser.contents)
     4839        self.assertTrue(
     4840            'You logged in as a lecturer.' in self.browser.contents)
    48404841        self.assertEqual(self.browser.url, URL_LECTURER_LANDING)
    48414842        self.assertTrue(
     
    52135214        self.browser.getControl("Login").click()
    52145215        self.assertTrue(
    5215             'You logged in.' in self.browser.contents)
     5216            'You logged in as a student.' in self.browser.contents)
    52165217        self.assertTrue(
    52175218            '<a href="http://localhost/app/students/K1000000">Base Data</a>'
Note: See TracChangeset for help on using the changeset viewer.