Ignore:
Timestamp:
9 Sep 2011, 15:51:56 (13 years ago)
Author:
Henrik Bettermann
Message:

Add SetPassword? page which uses an PWD access code as password for first-time login (admission checking).

Remove password from schema. This makes things much easier to handle.

File:
1 edited

Legend:

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

    r6695 r6699  
    205205        self.browser.getControl(name="transition").value = ['admit']
    206206        self.browser.getControl(name="form.name").value = 'John Tester'
    207         self.browser.getControl(name="form.password").value = 'secret'
     207        self.browser.getControl(name="form.reg_number").value = '123'
     208        self.browser.getControl(name="password").value = 'secret'
    208209        self.browser.getControl("Save").click()
    209         self.assertTrue('Form has been saved' in self.browser.contents)
     210        self.assertMatches('...Form has been saved...',
     211                           self.browser.contents)
     212        #self.assertTrue('Form has been saved' in self.browser.contents)
    210213
    211214        self.browser.open(self.student_path)
     
    262265        # Change password
    263266        self.browser.getLink("Change password").click()
    264         self.browser.getControl(name="form.password").value = 'new_password'
     267        self.browser.getControl(name="password").value = 'new_password'
    265268        self.browser.getControl("Save").click()
    266269        self.assertTrue('Form has been saved' in self.browser.contents)
     
    276279        self.browser.open(self.login_path)
    277280        self.browser.getControl(name="form.login").value = self.test_student_id
    278         self.browser.getControl(name="form.password").value = 'new_password'
     281        self.browser.getControl(name="password").value = 'new_password'
    279282        self.browser.getControl("Login").click()
    280283        self.assertEqual(self.browser.url, self.student_path)
Note: See TracChangeset for help on using the changeset viewer.