Ignore:
Timestamp:
22 Feb 2014, 15:46:03 (11 years ago)
Author:
uli
Message:

Merge changes from uli-diazo-themed back into trunk. If this works, then a miracle happened.

Location:
main/waeup.kofa/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk

  • main/waeup.kofa/trunk/src/waeup/kofa

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

    r10704 r11254  
    613613        # There is a correct <img> link included
    614614        self.assertTrue(
    615             '<a target="image" href="birth_certificate">'
     615            'href="http://localhost/app/students/K1000000/birth_certificate"'
    616616            in self.browser.contents)
    617617        # Browsing the link shows a real image
     
    673673            name='upload_passportuploadmanage').click()
    674674        self.assertTrue(
    675             '<img align="middle" height="125px" src="passport.jpg" />'
     675            'src="http://localhost/app/students/K1000000/passport.jpg"'
    676676            in self.browser.contents)
    677677        # We remove the passport file again
     
    19581958        # We are logged in as student and can see the 'My Data' tab
    19591959        self.assertMatches(
    1960             '...<a href="#" class="dropdown-toggle">My Data</a>...',
     1960            '...<a href="#" class="dropdown-toggle" data-toggle="dropdown">...',
     1961            self.browser.contents)
     1962        self.assertMatches(
     1963            '...My Data...',
    19611964            self.browser.contents)
    19621965        self.browser.getLink("Logout").click()
     
    21982201        self.browser.getControl("Login").click()
    21992202        self.assertMatches(
    2200             '...<div class="alert-message warning">'
     2203            '...<div class="alert alert-warning">'
    22012204            'Your account has been deactivated.</div>...', self.browser.contents)
    22022205        # If suspended_comment is set this message will be flashed instead
     
    22062209        self.browser.getControl("Login").click()
    22072210        self.assertMatches(
    2208             '...<div class="alert-message warning">Aetsch baetsch!</div>...',
     2211            '...<div class="alert alert-warning">Aetsch baetsch!</div>...',
    22092212            self.browser.contents)
    22102213        self.student.suspended = False
     
    22652268            name='upload_passportuploadedit').click()
    22662269        self.assertTrue(
    2267             '<img align="middle" height="125px" src="passport.jpg" />'
     2270            'src="http://localhost/app/students/K1000000/passport.jpg"'
    22682271            in self.browser.contents)
    22692272        # Students can open admission letter
     
    23232326            name='upload_birthcertificateupload').click()
    23242327        self.assertTrue(
    2325             '<a target="image" href="birth_certificate">Birth Certificate Scan</a>'
     2328            'href="http://localhost/app/students/K1000000/birth_certificate"'
    23262329            in self.browser.contents)
    23272330        # Students can open clearance slip
     
    23582361        # Now students can add the current study level
    23592362        self.browser.getLink("Study Course").click()
     2363        self.student['studycourse'].current_level = None
     2364        self.browser.getLink("Add course list").click()
     2365        self.assertMatches('...Your data are incomplete...',
     2366                           self.browser.contents)
     2367        self.student['studycourse'].current_level = 100
    23602368        self.browser.getLink("Add course list").click()
    23612369        self.assertMatches('...Add current level 100 (Year 1)...',
Note: See TracChangeset for help on using the changeset viewer.