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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Check Curator Privileges
open/vivo/
assertTitleVIVO
commentLog in as John Curator, first time requires new password.
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
typeusernameJohn Curator
typepasswordfirstTime
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
typepasswordnewPass
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
typepasswordnewPass
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
commentCheck privileges
verifyTextPresentData Input
verifyTextPresentOntology Editor
verifyTextPresentSite Configuration
verifyTextNotPresentAdvanced Data Tools
commentLog out
clickAndWaitloginSubmitMode
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/user-privileges/CheckEditorPrivileges.html b/utilities/acceptance-tests/suites/user-privileges/CheckEditorPrivileges.html new file mode 100644 index 00000000..9df4f328 --- /dev/null +++ b/utilities/acceptance-tests/suites/user-privileges/CheckEditorPrivileges.html @@ -0,0 +1,150 @@ + + + + + + +Check Editor Privileges + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Check Editor Privileges
open/vivo/
assertTitleVIVO
commentLog in as Sally Editor, first time requires new password.
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
typeusernameSally Editor
typepasswordfirstTime
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
typepasswordnewPass
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
typepasswordnewPass
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
commentCheck privileges
verifyTextPresentData Input
verifyTextNotPresentOntology Editor
verifyTextNotPresentSite Configuration
verifyTextNotPresentAdvanced Data Tools
commentLog out
clickAndWaitloginSubmitMode
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/user-privileges/CheckNobodyPrivileges.html b/utilities/acceptance-tests/suites/user-privileges/CheckNobodyPrivileges.html new file mode 100644 index 00000000..4c11501b --- /dev/null +++ b/utilities/acceptance-tests/suites/user-privileges/CheckNobodyPrivileges.html @@ -0,0 +1,150 @@ + + + + + + +Check Nobody Privileges + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Check Nobody Privileges
open/vivo/
assertTitleVIVO
commentLog in as Joe User, first time requires new password.
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
typeusernameJoe User
typepasswordfirstTime
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
typepasswordnewPass
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
typepasswordnewPass
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
commentCheck privileges
verifyTextNotPresentData Input
verifyTextNotPresentOntology Editor
verifyTextNotPresentSite Configuration
verifyTextNotPresentAdvanced Data Tools
commentLog out
clickAndWaitloginSubmitMode
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/user-privileges/CreateUsersInDifferentRoles.html b/utilities/acceptance-tests/suites/user-privileges/CreateUsersInDifferentRoles.html new file mode 100644 index 00000000..6cc5591e --- /dev/null +++ b/utilities/acceptance-tests/suites/user-privileges/CreateUsersInDifferentRoles.html @@ -0,0 +1,320 @@ + + + + + + +Create 3 Users in Different Roles + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Create 3 Users in Different Roles
open.
assertTitleVIVO
commentLog in as default admin
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
typeusernamedefaultAdmin
typepasswordPassword
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
commentgo to User Accounts
clickAndWaitlink=User accounts
assertTitleUser Accounts
commentCreate new Unprivileged user
clickAndWait//input[@value='Add new user account']
assertTitleUser Account Editing Form
typeUsernameJoe User
typeFirstNameJoe
typeLastNameUser
typeMd5passwordfirstTime
typepasswordConfirmationfirstTime
clickAndWaitprimaryAction
assertTitleUser Account Control Panel
clickAndWait//input[@value='See All User Accounts']
assertTitleUser Accounts
commentCreate new Editor user
clickAndWait//input[@value='Add new user account']
assertTitleUser Account Editing Form
typeUsernameSally Editor
typeFirstNameSally
typeLastNameEditor
selectRoleURIlabel=editor
typeMd5passwordfirstTime
typepasswordConfirmationfirstTime
clickAndWaitprimaryAction
assertTitleUser Account Control Panel
clickAndWait//input[@value='See All User Accounts']
assertTitleUser Accounts
commentCreate new Curator user
clickAndWait//input[@value='Add new user account']
assertTitleUser Account Editing Form
typeUsernameJohn Curator
typeFirstNameJohn
typeLastNameCurator
selectRoleURIlabel=curator
typeMd5passwordfirstTime
typepasswordConfirmationfirstTime
clickAndWaitprimaryAction
assertTitleUser Account Control Panel
clickAndWait//input[@value='See All User Accounts']
assertTitleUser Accounts
commentdo they all exist?
verifyElementPresentlink=Joe User
verifyElementPresentlink=John Curator
verifyElementPresentlink=Sally Editor
commentLog out
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/user-privileges/DeleteUsers.html b/utilities/acceptance-tests/suites/user-privileges/DeleteUsers.html new file mode 100644 index 00000000..32bd586a --- /dev/null +++ b/utilities/acceptance-tests/suites/user-privileges/DeleteUsers.html @@ -0,0 +1,245 @@ + + + + + + +Delete 3 Users + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Delete 3 Users
open.
assertTitleVIVO
commentLog in as default admin
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
typeusernamedefaultAdmin
typepasswordPassword
clickAndWaitloginSubmitMode
assertTitleVIVO Site Administration
commentGo to User Accounts
clickAndWaitlink=User accounts
assertTitleUser Accounts
commentdelete Joe User
clickAndWaitlink=Joe User
assertTitleUser Account Control Panel
clickAndWait//input[@value='Edit User Account']
assertTitleUser Account Editing Form
click_delete
assertConfirmationAre you SURE you want to delete this user? If in doubt, CANCEL.
waitForPageToLoad5000
assertTitleUser Accounts
commentDelete Sally Editor
clickAndWaitlink=Sally Editor
assertTitleUser Account Control Panel
clickAndWait//input[@value='Edit User Account']
assertTitleUser Account Editing Form
click_delete
assertConfirmationAre you SURE you want to delete this user? If in doubt, CANCEL.
waitForPageToLoad5000
assertTitleUser Accounts
commentDelete John Curator
clickAndWaitlink=John Curator
assertTitleUser Account Control Panel
clickAndWait//input[@value='Edit User Account']
assertTitleUser Account Editing Form
click_delete
waitForPageToLoad5000
assertConfirmationAre you SURE you want to delete this user? If in doubt, CANCEL.
assertTitleUser Accounts
commentLog out
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/user-privileges/Suite.html b/utilities/acceptance-tests/suites/user-privileges/Suite.html new file mode 100644 index 00000000..8edbb281 --- /dev/null +++ b/utilities/acceptance-tests/suites/user-privileges/Suite.html @@ -0,0 +1,18 @@ + + + + + + Test Suite + + + + + + + + + +
Test Suite
Create 3 Users in Different Roles
Check Curator Privileges
Check Editor Privileges
Check Nobody Privileges
Delete 3 Users
+ +