setupSecurityRestrictions
setTimeout 120000
open /nuxeo/logout
open /nuxeo/
verifyElementPresent link=Log in
clickAndWait link=Log in
type username Administrator
type password Administrator
clickAndWait Submit
verifyTextPresent You are logged as Administrator
clickAndWait Link=Users & groups
clickAndWait link=Create a new user
type //input[@id='createUser:nxl_user:nxw_username'] restrictedUser
type //input[@id='createUser:nxl_user:nxw_firstname'] Restricted
type //input[@id='createUser:nxl_user:nxw_lastname'] User
type //input[@id='createUser:nxl_user:nxw_company'] Nuxeo
type //input[@id='createUser:nxl_user:nxw_firstPassword'] test
type //input[@id='createUser:nxl_user:nxw_secondPassword'] test
type //input[@id='createUser:nxl_user:nxw_email'] selenium+test@nuxeo.com
clickAndWait //input[@value='Save']
verifyTextPresent Restricted
open /nuxeo/
verifyElementPresent link=Workspaces
clickAndWait link=Workspaces
verifyElementPresent link=Manage
clickAndWait link=Manage
assertNotChecked //form[@id="block_inherit"]/input[@type="checkbox"]
clickAndWait //form[@id="block_inherit"]/input[@type="checkbox"]
verifyChecked //form[@id="block_inherit"]/input[@type="checkbox"]
open /nuxeo/logout