Ignore:
Timestamp:
26 Oct 2012, 20:59:03 (12 years ago)
Author:
Henrik Bettermann
Message:

Link maintenance payment with bedticket. This way we can forgo a secon maint. payment category. The amount depends now on the bed really booked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.futminna/trunk/src/waeup/futminna/interswitch/tests.py

    r9410 r9431  
    116116        self.browser.getControl(name="form.p_category").value = ['hostel_maintenance']
    117117        self.browser.getControl("Create ticket").click()
     118        self.assertMatches('...You have not yet booked accommodation...',
     119                           self.browser.contents)
     120        # Students have to book bed first
     121        self.browser.open(self.acco_path)
     122        IWorkflowState(self.student).setState('admitted')
     123        self.browser.getLink("Book accommodation").click()
     124        self.assertFalse('Activation Code:' in self.browser.contents)
     125        self.browser.getControl("Create bed ticket").click()
     126        # Bed is randomly selected but, since there is only
     127        # one bed for this student, we know that ...
     128        self.assertMatches('...Hall 1, Block A, Room 101, Bed A...',
     129                           self.browser.contents)
     130        self.browser.open(self.payments_path + '/addop')
     131        self.browser.getControl(name="form.p_category").value = ['hostel_maintenance']
     132        self.browser.getControl("Create ticket").click()
    118133        self.assertMatches('...ticket created...',
    119134                           self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.