Test_01_create_user
clickAndWait link=log in
type login_email admin@ica-atom.org
type login_password admin
clickAndWait //input[@name='commit' and @value='log in']
clickAndWait link=admin
verifyTextPresent list users
verifyElementPresent //div[@id='header-bottom']/div[2]/ul/li[4]/ul/li[1]/a
verifyElementPresent //div[@id='header-bottom']/div[2]/ul/li[4]/ul/li[2]/a
verifyElementPresent //div[@id='header-bottom']/div[2]/ul/li[4]/ul/li[3]/a
verifyElementPresent //div[@id='header-bottom']/div[2]/ul/li[4]/ul/li[4]/a
clickAndWait link=add new user
type username Hilary Jenkinson
type email hjenkinson@archives.ca
type sha1_password jenkinson
select role_id label=contributor
clickAndWait //input[@name='commit' and @value='create']
verifyTextPresent Hilary Jenkinson profile
verifyTextPresent Hilary Jenkinson
verifyTextPresent hjenkinson@archives.ca
verifyElementPresent link=reset password
verifyTextPresent contributor
clickAndWait link=list all users
verifyElementPresent link=Hilary Jenkinson
verifyTextPresent hjenkinson@archives.ca
verifyTextPresent contributor
clickAndWait link=Hilary Jenkinson
select role_id label=administrator
click //input[@name='commit' and @value='save']
verifyTextPresent contributor
verifyTextPresent administrator
clickAndWait link=add new
verifyTextPresent add new user
click link=cancel
clickAndWait link=log out
clickAndWait link=log in
type login_email hjenkinson@archives.ca
type login_password jenkinson
clickAndWait //input[@name='commit' and @value='log in']
verifyElementPresent link=add/edit
verifyElementPresent link=import/export
verifyElementPresent link=admin
clickAndWait link=log out
clickAndWait link=log in
type login_email admin@ica-atom.org
type login_password admin
clickAndWait //input[@name='commit' and @value='log in']
verifyElementPresent link=add/edit
verifyElementPresent link=import/export
verifyElementPresent link=translate
verifyElementPresent link=admin