Changeset 11254 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 22 Feb 2014, 15:46:03 (11 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk
- Property svn:mergeinfo changed
-
main/waeup.kofa/trunk/src/waeup/kofa
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa merged eligible /main/waeup.kofa/branches/uli-autoinclude-less/src/waeup/kofa 8871-8888 /main/waeup.sirp/branches/uli-studentpw/src/waeup/kofa 6703-6755 /main/waeup.sirp/branches/ulif-extimgstore/src/waeup/kofa 7001-7062 /main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/kofa 7761-7794
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r10704 r11254 613 613 # There is a correct <img> link included 614 614 self.assertTrue( 615 ' <a target="image" href="birth_certificate">'615 'href="http://localhost/app/students/K1000000/birth_certificate"' 616 616 in self.browser.contents) 617 617 # Browsing the link shows a real image … … 673 673 name='upload_passportuploadmanage').click() 674 674 self.assertTrue( 675 ' <img align="middle" height="125px" src="passport.jpg" />'675 'src="http://localhost/app/students/K1000000/passport.jpg"' 676 676 in self.browser.contents) 677 677 # We remove the passport file again … … 1958 1958 # We are logged in as student and can see the 'My Data' tab 1959 1959 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...', 1961 1964 self.browser.contents) 1962 1965 self.browser.getLink("Logout").click() … … 2198 2201 self.browser.getControl("Login").click() 2199 2202 self.assertMatches( 2200 '...<div class="alert -messagewarning">'2203 '...<div class="alert alert-warning">' 2201 2204 'Your account has been deactivated.</div>...', self.browser.contents) 2202 2205 # If suspended_comment is set this message will be flashed instead … … 2206 2209 self.browser.getControl("Login").click() 2207 2210 self.assertMatches( 2208 '...<div class="alert -messagewarning">Aetsch baetsch!</div>...',2211 '...<div class="alert alert-warning">Aetsch baetsch!</div>...', 2209 2212 self.browser.contents) 2210 2213 self.student.suspended = False … … 2265 2268 name='upload_passportuploadedit').click() 2266 2269 self.assertTrue( 2267 ' <img align="middle" height="125px" src="passport.jpg" />'2270 'src="http://localhost/app/students/K1000000/passport.jpg"' 2268 2271 in self.browser.contents) 2269 2272 # Students can open admission letter … … 2323 2326 name='upload_birthcertificateupload').click() 2324 2327 self.assertTrue( 2325 ' <a target="image" href="birth_certificate">Birth Certificate Scan</a>'2328 'href="http://localhost/app/students/K1000000/birth_certificate"' 2326 2329 in self.browser.contents) 2327 2330 # Students can open clearance slip … … 2358 2361 # Now students can add the current study level 2359 2362 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 2360 2368 self.browser.getLink("Add course list").click() 2361 2369 self.assertMatches('...Add current level 100 (Year 1)...',
Note: See TracChangeset for help on using the changeset viewer.