Ignore:
Timestamp:
18 Jan 2013, 10:10:32 (12 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes made in base package (r9895).

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  
    4949    </span>
    5050  </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>
    5271</form> 
    5372
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r9848 r9902  
    696696        self.browser.getLink("700").click()
    697697        self.browser.getLink("Edit course list").click()
    698         self.browser.getControl("Add course ticket").click()
     698        self.browser.getLink("here").click()
    699699        self.browser.getControl(name="form.course").value = ['COURSE1']
    700700        # Non-final year students can't add ticket with 51 credits
    701701        self.app['faculties']['fac1']['dep1'].courses['COURSE1'].credits = 51
    702702        self.browser.getControl("Add course ticket").click()
    703         self.assertMatches('...Your total credits exceed 50...',
     703        self.assertMatches('...Total credits exceed 50...',
    704704                           self.browser.contents)
    705705        # Final year students can't add ticket with 52 credits ...
     
    707707        self.student['studycourse'].certificate.end_level = 700
    708708        self.browser.getControl("Add course ticket").click()
    709         self.assertMatches('...Your total credits exceed 51...',
     709        self.assertMatches('...Total credits exceed 51...',
    710710                           self.browser.contents)
    711711        # ... but with 51 credits
Note: See TracChangeset for help on using the changeset viewer.