Changeset 8364 for main/waeup.kofa/trunk


Ignore:
Timestamp:
5 May 2012, 10:42:31 (13 years ago)
Author:
Henrik Bettermann
Message:

Test if registered users can get a new password.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/browser.txt

    r8065 r8364  
    7474  ...
    7575
     76Registered users with an email address can request a password change:
     77
     78  >>> root['myuniversity']['users'].addUser('forgetful', 'secret',title='Bob Forgetful',
     79  ...                               description='A forgetful user', email='aa@aa.ng')
     80  >>> browser.open('http://localhost/myuniversity/sendpw')
     81  >>> browser.getControl(name="form.identifier").value = 'forgetful'
     82  >>> browser.getControl(name="form.email").value = 'aa@aa.ng'
     83  >>> browser.getControl("Get login credentials").click()
     84  >>> print browser.contents
     85  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     86  ...An email with your user name and password has been sent to aa@aa.ng...
     87
    7688Now we login as manager::
    7789
     
    112124  ...
    113125
    114 The default frontpage ReST has been saved in a dictionary
     126The default frontpage HTML has been saved in a dictionary
    115127and is properly rendered on the frontpage of the portal:
    116128
     
    118130  >>> print browser.contents
    119131  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    120   ...<h1>Welcome to Kofa...</h1>
     132  ...<h1>Welcome to WAeUP.Kofa...</h1>
    121133  ...
    122134
     
    132144  >>> print browser.contents
    133145  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    134   ...<h1>Willkommen in Kofa</h1>
     146  ...<h1>Willkommen auf WAeUP.Kofa...</h1>
    135147  ...
    136148
     
    224236
    225237  >>> browser.open('http://localhost/myuniversity/users')
    226   >>> browser.getControl("Remove").click()
     238  >>> browser.getControl("Remove", index=0).click()
    227239  >>> 'User account bob successfully deleted' in browser.contents
    228240  True
     241
    229242
    230243
Note: See TracChangeset for help on using the changeset viewer.