diff --git a/utilities/acceptance-tests/suites/user-privileges/CheckCuratorPrivileges.html b/utilities/acceptance-tests/suites/user-privileges/CheckCuratorPrivileges.html new file mode 100644 index 00000000..6ed73794 --- /dev/null +++ b/utilities/acceptance-tests/suites/user-privileges/CheckCuratorPrivileges.html @@ -0,0 +1,150 @@ + + + +
+ + +Check Curator Privileges | ||
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Log in as John Curator, first time requires new password. | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +username | +John Curator | +
type | +password | +firstTime | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +password | +newPass | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +password | +newPass | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Check privileges | ++ |
verifyTextPresent | +Data Input | ++ |
verifyTextPresent | +Ontology Editor | ++ |
verifyTextPresent | +Site Configuration | ++ |
verifyTextNotPresent | +Advanced Data Tools | ++ |
comment | +Log out | ++ |
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO | ++ |
Check Editor Privileges | ||
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Log in as Sally Editor, first time requires new password. | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +username | +Sally Editor | +
type | +password | +firstTime | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +password | +newPass | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +password | +newPass | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Check privileges | ++ |
verifyTextPresent | +Data Input | ++ |
verifyTextNotPresent | +Ontology Editor | ++ |
verifyTextNotPresent | +Site Configuration | ++ |
verifyTextNotPresent | +Advanced Data Tools | ++ |
comment | +Log out | ++ |
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO | ++ |
Check Nobody Privileges | ||
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Log in as Joe User, first time requires new password. | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +username | +Joe User | +
type | +password | +firstTime | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +password | +newPass | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +password | +newPass | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Check privileges | ++ |
verifyTextNotPresent | +Data Input | ++ |
verifyTextNotPresent | +Ontology Editor | ++ |
verifyTextNotPresent | +Site Configuration | ++ |
verifyTextNotPresent | +Advanced Data Tools | ++ |
comment | +Log out | ++ |
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO | ++ |
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 | ++ |
Delete 3 Users | ||
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 | +delete Joe User | ++ |
clickAndWait | +link=Joe User | ++ |
assertTitle | +User Account Control Panel | ++ |
clickAndWait | +//input[@value='Edit User Account'] | ++ |
assertTitle | +User Account Editing Form | ++ |
click | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this user? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +User Accounts | ++ |
comment | +Delete Sally Editor | ++ |
clickAndWait | +link=Sally Editor | ++ |
assertTitle | +User Account Control Panel | ++ |
clickAndWait | +//input[@value='Edit User Account'] | ++ |
assertTitle | +User Account Editing Form | ++ |
click | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this user? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +User Accounts | ++ |
comment | +Delete John Curator | ++ |
clickAndWait | +link=John Curator | ++ |
assertTitle | +User Account Control Panel | ++ |
clickAndWait | +//input[@value='Edit User Account'] | ++ |
assertTitle | +User Account Editing Form | ++ |
click | +_delete | ++ |
waitForPageToLoad | +5000 | ++ |
assertConfirmation | +Are you SURE you want to delete this user? If in doubt, CANCEL. | ++ |
assertTitle | +User Accounts | ++ |
comment | +Log out | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
Test Suite |
Create 3 Users in Different Roles |
Check Curator Privileges |
Check Editor Privileges |
Check Nobody Privileges |
Delete 3 Users |