Changeset 6699 for main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Timestamp:
- 9 Sep 2011, 15:51:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py
r6695 r6699 205 205 self.browser.getControl(name="transition").value = ['admit'] 206 206 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' 208 209 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) 210 213 211 214 self.browser.open(self.student_path) … … 262 265 # Change password 263 266 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' 265 268 self.browser.getControl("Save").click() 266 269 self.assertTrue('Form has been saved' in self.browser.contents) … … 276 279 self.browser.open(self.login_path) 277 280 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' 279 282 self.browser.getControl("Login").click() 280 283 self.assertEqual(self.browser.url, self.student_path)
Note: See TracChangeset for help on using the changeset viewer.