Create 3 Users in Different Roles
open .
assertTitle VIVO
comment Log in as default admin
clickAndWait link=Log in
assertTitle VIVO Site Administration
type username defaultAdmin
type password Password
clickAndWait loginSubmitMode
assertTitle VIVO Site Administration
comment go to User Accounts
clickAndWait link=User accounts
assertTitle User Accounts
comment Create new Unprivileged user
clickAndWait //input[@value='Add new user account']
assertTitle User Account Editing Form
type Username Joe User
type FirstName Joe
type LastName User
type Md5password firstTime
type passwordConfirmation firstTime
clickAndWait primaryAction
assertTitle User Account Control Panel
clickAndWait //input[@value='See All User Accounts']
assertTitle User Accounts
comment Create new Editor user
clickAndWait //input[@value='Add new user account']
assertTitle User Account Editing Form
type Username Sally Editor
type FirstName Sally
type LastName Editor
select RoleURI label=editor
type Md5password firstTime
type passwordConfirmation firstTime
clickAndWait primaryAction
assertTitle User Account Control Panel
clickAndWait //input[@value='See All User Accounts']
assertTitle User Accounts
comment Create new Curator user
clickAndWait //input[@value='Add new user account']
assertTitle User Account Editing Form
type Username John Curator
type FirstName John
type LastName Curator
select RoleURI label=curator
type Md5password firstTime
type passwordConfirmation firstTime
clickAndWait primaryAction
assertTitle User Account Control Panel
clickAndWait //input[@value='See All User Accounts']
assertTitle User Accounts
comment do they all exist?
verifyElementPresent link=Joe User
verifyElementPresent link=John Curator
verifyElementPresent link=Sally Editor
comment Log out
clickAndWait link=Log out
assertTitle VIVO