Ignore:
Timestamp:
14 Aug 2011, 07:30:12 (13 years ago)
Author:
Henrik Bettermann
Message:

Check if global roles show up on the user container page.

File:
1 edited

Legend:

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

    r6604 r6605  
    128128
    129129  >>> browser.getControl("edit", index=0).click()
     130  >>> browser.getControl("Save", index=0).click()
     131  >>> browser.getControl("Save and return", index=0).click()
     132  >>> browser.getControl("edit", index=0).click()
     133  >>> browser.getControl("Cancel", index=0).click()
     134
     135We can add global roles which are then displayed on the user container page.
     136Since the test browser does not use javascript, we have to add global roles
     137by setting the roles attribute manually:
     138
    130139  >>> print root['myuniversity']['users']['bob'].roles
    131140  []
     
    133142  >>> print root['myuniversity']['users']['bob'].roles
    134143  ['waeup.PortalUser']
    135   >>> browser.getControl("Save", index=0).click()
    136   >>> browser.getControl("Save and return", index=0).click()
    137   >>> browser.getControl("edit", index=0).click()
    138   >>> browser.getControl("Cancel", index=0).click()
    139 
     144  >>> browser.open('http://localhost/myuniversity/users')
     145  >>> print browser.contents
     146  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     147  ...<td>Portal User <br /></td>
     148  ...
    140149
    141150Contact Form
Note: See TracChangeset for help on using the changeset viewer.