Changeset 9902 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 18 Jan 2013, 10:10:32 (12 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser_templates/studyleveleditpage.pt
r9722 r9902 49 49 </span> 50 50 </div> 51 51 <br /><br /><br /> 52 <table class="input-table"> 53 <tr> 54 <td> 55 <input class="btn primary" type="submit" name="ADD" 56 i18n:translate="" 57 value="Add course ticket" /> 58 </td> 59 <td> 60 <input type="text" name="course" /> 61 <div class="hint" i18n:translate=""> 62 Enter valid course code. 63 </div> 64 </td> 65 </tr> 66 </table> 67 <p i18n:translate=""> 68 You don't know the course code? Then select a course 69 <a href="ctadd">here</a>. 70 </p> 52 71 </form> 53 72 -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r9848 r9902 696 696 self.browser.getLink("700").click() 697 697 self.browser.getLink("Edit course list").click() 698 self.browser.get Control("Add course ticket").click()698 self.browser.getLink("here").click() 699 699 self.browser.getControl(name="form.course").value = ['COURSE1'] 700 700 # Non-final year students can't add ticket with 51 credits 701 701 self.app['faculties']['fac1']['dep1'].courses['COURSE1'].credits = 51 702 702 self.browser.getControl("Add course ticket").click() 703 self.assertMatches('... Your total credits exceed 50...',703 self.assertMatches('...Total credits exceed 50...', 704 704 self.browser.contents) 705 705 # Final year students can't add ticket with 52 credits ... … … 707 707 self.student['studycourse'].certificate.end_level = 700 708 708 self.browser.getControl("Add course ticket").click() 709 self.assertMatches('... Your total credits exceed 51...',709 self.assertMatches('...Total credits exceed 51...', 710 710 self.browser.contents) 711 711 # ... but with 51 credits
Note: See TracChangeset for help on using the changeset viewer.