Changeset 7143


Ignore:
Timestamp:
19 Nov 2011, 14:35:04 (13 years ago)
Author:
uli
Message:

Update tests to reflect new output of change password page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py

    r7134 r7143  
    639639        self.browser.getControl('Perform import...').click()
    640640        self.assertTrue('Processing of 1 rows failed' in self.browser.contents)
    641         self.assertTrue('Successfully processed 2 rows' in self.browser.contents)
     641        self.assertTrue('Successfully processed 2 rows'
     642                        in self.browser.contents)
    642643        return
    643644
     
    656657            name="form.password_repeat").value = 'pw'
    657658        self.browser.getControl("Save").click()
    658         self.assertTrue('Constraint not satisfied' in self.browser.contents)
     659        self.assertTrue('Value is too short' in self.browser.contents)
    659660        self.browser.getControl(name="form.password").value = 'new_password'
    660661        self.browser.getControl(
     
    666667            name="form.password_repeat").value = 'new_password'
    667668        self.browser.getControl("Save").click()
    668         self.assertTrue('Form has been saved' in self.browser.contents)
     669        self.assertTrue('Password has been set' in self.browser.contents)
    669670        # We are still logged in. Changing the password hasn't thrown us out.
    670671        self.browser.getLink("My Data").click()
Note: See TracChangeset for help on using the changeset viewer.