diff --git a/utilities/acceptance-tests/suites/ProxyEditing/CreateNewCuratorUser.html b/utilities/acceptance-tests/suites/ProxyEditing/CreateNewCuratorUser.html new file mode 100644 index 00000000..bf890b33 --- /dev/null +++ b/utilities/acceptance-tests/suites/ProxyEditing/CreateNewCuratorUser.html @@ -0,0 +1,239 @@ + + + +
+ + +CreateNewCuratorUser | ||
deleteAllVisibleCookies | ++ | + |
setTimeout | +100000 | ++ |
comment | +Create New Curator User | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must login as site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
comment | +Create a new user | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=User accounts | ++ |
assertTitle | +VIVO | ++ |
verifyTextPresent | +User accounts | ++ |
clickAndWait | +css=input.submit.add-account | ++ |
assertTitle | +VIVO | ++ |
type | +email-address | +ConnieCurator@cornell.edu | +
type | +first-name | +Connie | +
type | +last-name | +Curator | +
click | +//input[@name='role' and @value='http://permissionSet-5'] | ++ |
type | +initial-password | +myPassword | +
type | +confirm-password | +myPassword | +
clickAndWait | +submitAdd | ++ |
assertTitle | +VIVO | ++ |
comment | +Confirm values for new user | ++ |
verifyTextPresent | +A new account for Connie Curator was successfully created. | ++ |
verifyElementPresent | +link=ConnieCurator@cornell.edu | ++ |
verifyText | +//tr[1]/td[1] | +ConnieCurator@cornell.edu | +
verifyText | +//tr[1]/td[2] | +Connie | +
verifyText | +//tr[1]/td[3] | +Curator | +
verifyText | +//tr[1]/td[4] | +ACTIVE | +
verifyText | +//tr[1]/td[5] | +Curator | +
verifyText | +//tr[1]/td[6] | +0 | +
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
CreateNewEditorUser | ||
deleteAllVisibleCookies | ++ | + |
setTimeout | +100000 | ++ |
comment | +Create New Editor User | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must login as site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
comment | +Create a new user | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=User accounts | ++ |
assertTitle | +VIVO | ++ |
verifyTextPresent | +User accounts | ++ |
clickAndWait | +css=input.submit.add-account | ++ |
assertTitle | +VIVO | ++ |
type | +email-address | +EddieEditor@cornell.edu | +
type | +first-name | +Eddie | +
type | +last-name | +Editor | +
click | +//input[@name='role' and @value='http://permissionSet-4'] | ++ |
type | +initial-password | +myPassword | +
type | +confirm-password | +myPassword | +
clickAndWait | +submitAdd | ++ |
assertTitle | +VIVO | ++ |
comment | +Confirm values for new user | ++ |
verifyTextPresent | +A new account for Eddie Editor was successfully created. | ++ |
verifyElementPresent | +link=EddieEditor@cornell.edu | ++ |
verifyText | +//tr[2]/td[1] | +EddieEditor@cornell.edu | +
verifyText | +//tr[2]/td[2] | +Eddie | +
verifyText | +//tr[2]/td[3] | +Editor | +
verifyText | +//tr[2]/td[4] | +ACTIVE | +
verifyText | +//tr[2]/td[5] | +Editor | +
verifyText | +//tr[2]/td[6] | +0 | +
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
CreateFacultyMember | ||
deleteAllVisibleCookies | ++ | + |
setTimeout | +10000000 | ++ |
comment | +Add a Faculty member named Jane Faculty | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must be logged off to start | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must login as the site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
verifyTextPresent | +Data Input | ++ |
select | +VClassURI | +label=Faculty Member (vivo) | +
clickAndWait | +//input[@value='Add individual of this class'] | ++ |
comment | +Add Jane Faculty | ++ |
type | +firstName | +Jane | +
type | +lastName | +Faculty | +
clickAndWait | +submit | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Add self-editor link id | ++ |
clickAndWait | +css=a.add-orcidId > img.add-individual | ++ |
assertTitle | +Edit | ++ |
type | +tinymce | +JaneFaculty@cornell.edu | +
clickAndWait | +id=submit | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
CreateLibrarian | ||
deleteAllVisibleCookies | ++ | + |
setTimeout | +100000 | ++ |
comment | +Create Librarian person | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must login as site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to add new individual page | ++ |
select | +VClassURI | +label=Librarian (vivo) | +
clickAndWait | +//input[@value='Add individual of this class'] | ++ |
verifyTextPresent | +Create a new Librarian | ++ |
comment | +Create a librarian individual | ++ |
type | +firstName | +Lily | +
type | +lastName | +Librarian | +
clickAndWait | +submit | ++ |
assertTitle | +Librarian, Lily | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
CreateLibrarian | ||
deleteAllVisibleCookies | ++ | + |
setTimeout | +100000 | ++ |
comment | +Create Librarian person | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must login as site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to add new individual page | ++ |
select | +VClassURI | +label=Person (foaf) | +
clickAndWait | +//input[@value='Add individual of this class'] | ++ |
verifyTextPresent | +Create a new Person | ++ |
comment | +Create a librarian individual | ++ |
type | +firstName | +Paula | +
type | +lastName | +Proxy | +
clickAndWait | +submit | ++ |
assertTitle | +Proxy, Paula | ++ |
comment | +Make individual an Assistant Librarian | ++ |
clickAndWait | +css=a.add-preferredTitle > img.add-individual | ++ |
assertTitle | +Edit | ++ |
type | +tinymce | +Administrative Assistant | +
clickAndWait | +submit | ++ |
assertTitle | +Proxy, Paula | ++ |
pause | +50000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
comment | +Verify that librarian was added sucessfully | ++ |
verifyTextPresent | +Proxy, Paula | ++ |
verifyTextPresent | +Administrative Assistant | ++ |
comment | +Browse for new librarian | ++ |
clickAndWait | +link=Index | ++ |
verifyElementPresent | +link=Person | ++ |
verifyTextPresent | +Person (1) | ++ |
verifyElementPresent | +link=Person | ++ |
clickAndWait | +link=Person | ++ |
assertTitle | +Person | ++ |
verifyElementPresent | +link=Proxy, Paula | ++ |
verifyTextPresent | +Proxy, Paula Administrative Assistant | ++ |
comment | +Search for new librarian | ++ |
type | +querytext | +administrative | +
clickAndWait | +//input[@value='Search'] | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
assertTitle | +administrative - VIVO Search Results | ++ |
verifyTextPresent | +Search results for 'administrative' | ++ |
verifyElementPresent | +link=Proxy, Paula | ++ |
verifyTextPresent | +Proxy, Paula Administrative Assistant | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
CreateNewNobodyUser | ||
deleteAllVisibleCookies | ++ | + |
setTimeout | +10000000 | ++ |
comment | +Create a new unprivileged user | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must login as site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
comment | +Create a new user | ++ |
clickAndWait | +link=Site Admin | ++ |
clickAndWait | +link=User accounts | ++ |
assertTitle | +VIVO | ++ |
verifyTextPresent | +User accounts | ++ |
clickAndWait | +//input[@value='Add new account'] | ++ |
assertTitle | +VIVO | ++ |
verifyTextPresent | +User accounts > Add new account | ++ |
type | +email-address | +JaneFaculty@cornell.edu | +
type | +first-name | +Jane | +
type | +last-name | +Faculty | +
type | +id=externalAuthId | +JaneFaculty@cornell.edu | +
click | +id=verifyProfileLink | ++ |
waitForPopUp | +verifyMatchWindow | +30000 | +
click | +//input[@name='role' and @value='http://permissionSet-1'] | ++ |
type | +initial-password | +myPassword | +
type | +confirm-password | +myPassword | +
clickAndWait | +submitAdd | ++ |
assertTitle | +VIVO | ++ |
comment | +Verify account | ++ |
verifyTextPresent | +A new account for Jane Faculty was successfully created. | ++ |
verifyElementPresent | +link=JaneFaculty@cornell.edu | ++ |
verifyTextPresent | +Jane | ++ |
verifyTextPresent | +Faculty | ++ |
verifyTextPresent | +ACTIVE | ++ |
verifyTextPresent | +Self Editor | ++ |
verifyTextPresent | +0 | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
ValidateAdminProxy | ||
deleteAllVisibleCookies | ++ | + |
comment | +Validate Admin Proxy Editing | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Login as admin | ++ |
type | +id=loginName | +testAdmin@cornell.edu | +
type | +id=loginPassword | +Password | +
clickAndWait | +name=loginForm | ++ |
comment | +Navigate to profile editing | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=Manage profile editing | ++ |
comment | +Verify that correct fields and text are present | ++ |
verifyTextPresent | +Manage profile editing | ++ |
verifyTextPresent | +Relate profile editors and profiles | ++ |
verifyTextPresent | +Select editors | ++ |
verifyTextPresent | +Select profiles | ++ |
verifyTextPresent | +Profile editors | ++ |
comment | +Enter nothing and get error message | ++ |
click | +name=createRelationship | ++ |
verifyTextPresent | +You must select a minimum of 1 editor and profile. | ++ |
assertTitle | +VIVO | ++ |
comment | +Select profile, but not editor | ++ |
type | +//form[@id='add-relation']/fieldset[2]/section/input | +Facult | +
type | +//form[@id='add-relation']/fieldset[2]/section/input | +fac | +
click | +id=ui-active-menuitem | ++ |
click | +name=createRelationship | ++ |
verifyTextPresent | +You must select a minimum of 1 editor and profile. | ++ |
click | +link=Remove selection | ++ |
comment | +Select editor, but not profile | ++ |
type | +id=selectProfileEditors | +edito | +
click | +id=ui-active-menuitem | ++ |
click | +name=createRelationship | ++ |
verifyTextPresent | +You must select a minimum of 1 editor and profile. | ++ |
click | +link=Remove selection | ++ |
comment | +Enter one of each | ++ |
type | +id=selectProfileEditors | +editor | +
click | +id=ui-active-menuitem | ++ |
verifyTextPresent | +Editor, Eddie | | ++ |
verifyElementPresent | +link=Remove selection | ++ |
type | +//form[@id='add-relation']/fieldset[2]/section/input | +faculty | +
click | +id=ui-active-menuitem | ++ |
verifyTextPresent | +Faculty, Jane | Faculty Member | ++ |
verifyElementPresent | +link=Remove selection | ++ |
comment | +Remove editor and attempt to save | ++ |
click | +link=Remove selection | ++ |
click | +name=createRelationship | ++ |
verifyTextPresent | +You must select a minimum of 1 editor and profile. | ++ |
comment | +Add back editor and then remove profile | ++ |
type | +id=selectProfileEditors | +editor | +
click | +id=ui-active-menuitem | ++ |
click | +css=p.proxy-info-profile > a.remove-proxy | ++ |
click | +name=createRelationship | ++ |
verifyTextPresent | +You must select a minimum of 1 editor and profile. | ++ |
comment | +Add one link | ++ |
verifyTextPresent | +Editor, Eddie | | ++ |
verifyElementPresent | +link=Remove selection | ++ |
type | +//form[@id='add-relation']/fieldset[2]/section/input | +faculty | +
click | +id=ui-active-menuitem | ++ |
verifyTextPresent | +Faculty, Jane | Faculty Member | ++ |
verifyElementPresent | +link=Remove selection | ++ |
clickAndWait | +name=createRelationship | ++ |
assertTitle | +VIVO | ++ |
comment | +Verify relationship is set | ++ |
verifyTextPresent | +Editor, Eddie | | ++ |
verifyElementPresent | +link=Delete profile editor | ++ |
verifyTextPresent | +Add profile | ++ |
verifyTextPresent | +Selected profiles: | ++ |
verifyTextPresent | +Faculty, Jane | Faculty Member | ++ |
verifyElementPresent | +link=Remove selection | ++ |
comment | +Try to add relationship again | ++ |
type | +id=selectProfileEditors | +editor | +
click | +id=ui-active-menuitem | ++ |
type | +//form[@id='add-relation']/fieldset[2]/section/input | +facul | +
click | +id=ui-active-menuitem | ++ |
clickAndWait | +name=createRelationship | ++ |
assertTitle | +VIVO | ++ |
type | +id=addProfile | +faculty | +
verifyTextPresent | +no match | ++ |
comment | +Test that editing works | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
type | +id=loginName | +EddieEditor@cornell.edu | +
type | +id=loginPassword | +myPassword | +
clickAndWait | +name=loginForm | ++ |
assertTitle | +VIVO | ++ |
type | +id=newPassword | +Password | +
type | +id=confirmPassword | +Password | +
clickAndWait | +name=passwordChangeForm | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Faculty, Jane | ++ |
assertTitle | +Faculty, Jane | ++ |
clickAndWait | +css=a.add-overview > img.add-individual | ++ |
assertTitle | +Edit | ++ |
type | +tinymce | +I am able to edit. | +
clickAndWait | +id=submit | ++ |
assertTitle | +Faculty, Jane | ++ |
verifyTextPresent | +Faculty, Jane | ++ |
verifyTextPresent | +I am able to edit. | ++ |
clickAndWait | +link=My profile | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Check My profile | ++ |
clickAndWait | +link=My profile | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
DeleteTestPeople | ||
deleteAllVisibleCookies | ++ | + |
setTimeout | +100000 | ++ |
comment | +Delete new people Jane Faculty and Lilly Librarian | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must log in as site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
clickAndWait | +link=People | ++ |
assertTitle | +People | ++ |
comment | +Navigate to Jane Faculty | ++ |
type | +querytext | +faculty | +
clickAndWait | +//input[@value='Search'] | ++ |
clickAndWait | +link=Faculty, Jane | ++ |
assertTitle | +Faculty, Jane | ++ |
clickAndWait | +link=Edit this individual | ++ |
assertTitle | +Individual Control Panel | ++ |
comment | +Delete Jane Faculty | ++ |
clickAndWait | +//input[@value="Edit This Individual"] | ++ |
assertTitle | +Individual Editing Form | ++ |
clickAndWait | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this individual? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to Lilly Librarian | ++ |
type | +querytext | +librarian | +
clickAndWait | +//input[@value='Search'] | ++ |
clickAndWait | +link=Librarian, Lily | ++ |
assertTitle | +Librarian, Lily | ++ |
clickAndWait | +link=Edit this individual | ++ |
assertTitle | +Individual Control Panel | ++ |
comment | +Delete Lilly Librarian | ++ |
clickAndWait | +//input[@value="Edit This Individual"] | ++ |
assertTitle | +Individual Editing Form | ++ |
clickAndWait | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this individual? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to Paula Proxy | ++ |
type | +querytext | +administrative | +
clickAndWait | +//input[@value='Search'] | ++ |
clickAndWait | +link=Proxy, Paula | ++ |
assertTitle | +Proxy, Paula | ++ |
clickAndWait | +link=Edit this individual | ++ |
assertTitle | +Individual Control Panel | ++ |
comment | +Delete Lilly Librarian | ++ |
clickAndWait | +//input[@value="Edit This Individual"] | ++ |
assertTitle | +Individual Editing Form | ++ |
clickAndWait | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this individual? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Verify Jane Faculty, Lilly Librarian, and Paula Proxy are gone | ++ |
type | +querytext | +faculty | +
clickAndWait | +//input[@value='Search'] | ++ |
verifyTextNotPresent | +Faculty, Jane | ++ |
type | +querytext | +librarian | +
clickAndWait | +//input[@value='Search'] | ++ |
verifyTextNotPresent | +Librarian, Lily | ++ |
type | +querytext | +administrative | +
clickAndWait | +//input[@value='Search'] | ++ |
verifyTextNotPresent | +Librarian, Lily | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
DeleteNewCuratorUser | ||
deleteAllVisibleCookies | ++ | + |
setTimeout | +100000 | ++ |
comment | +Delete new Curator account | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must login as site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
comment | +Go to User Accounts | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=User accounts | ++ |
assertTitle | +VIVO | ++ |
verifyElementPresent | +link=ConnieCurator@cornell.edu | ++ |
comment | +Delete the account | ++ |
click | +deleteAccount | ++ |
clickAndWait | +delete-account | ++ |
assertConfirmation | +Are you sure you want to delete this account? | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +VIVO | ++ |
verifyTextPresent | +User accounts | ++ |
verifyTextPresent | +Deleted 1 accounts. | ++ |
verifyElementNotPresent | +link=ConnieCurator@cornell.edu | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
ValidateAdminProxy2 | ||
deleteAllVisibleCookiesAndWait | ++ | + |
comment | +Validate multiple proxy editors | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Login as admin | ++ |
type | +id=loginName | +JaneFaculty@cornell.edu | +
type | +id=loginPassword | +Password | +
clickAndWait | +name=loginForm | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Verify existing relationship | ++ |
clickAndWait | +link=My account | ++ |
assertTitle | +VIVO | ++ |
verifyTextPresent | +Curator, Connie | | ++ |
verifyElementPresent | +link=Remove selection | ++ |
verifyTextPresent | +Editor, Eddie | | ++ |
verifyElementPresent | +link=Remove selection | ++ |
verifyTextNotPresent | +Librarian, Lily | Librarian | ++ |
comment | +Now make Lily Librarian able to edit Jane Faculty's profiel | ++ |
+ | + | + |
comment | +Test that editing works for Lily Librarian | ++ |
clickAndWait | +link=Log out | ++ |
type | +id=loginName | +EddieEditor@cornell.edu | +
type | +id=loginPassword | +Password | +
clickAndWait | +name=loginForm | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=My profile | ++ |
assertTitle | +Librarian, Lily | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
ValidateAdminProxy | ||
deleteAllVisibleCookies | ++ | + |
comment | +Validate Admin Proxy Editing | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Login as admin | ++ |
type | +id=loginName | +testAdmin@cornell.edu | +
type | +id=loginPassword | +Password | +
clickAndWait | +name=loginForm | ++ |
comment | +Navigate to profile editing | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=Manage profile editing | ++ |
comment | +Verify that correct fields and text are present | ++ |
verifyTextPresent | +Manage profile editing | ++ |
verifyTextPresent | +Relate profile editors and profiles | ++ |
verifyTextPresent | +Select editors | ++ |
verifyTextPresent | +Select profiles | ++ |
verifyTextPresent | +Profile editors | ++ |
comment | +Enter nothing and get error message | ++ |
click | +name=createRelationship | ++ |
verifyTextPresent | +You must select a minimum of 1 editor and profile. | ++ |
assertTitle | +VIVO | ++ |
comment | +Select profile, but not editor | ++ |
type | +//form[@id='add-relation']/fieldset[2]/section/input | +Facult | +
type | +//form[@id='add-relation']/fieldset[2]/section/input | +fac | +
click | +id=ui-active-menuitem | ++ |
click | +name=createRelationship | ++ |
verifyTextPresent | +You must select a minimum of 1 editor and profile. | ++ |
click | +link=Remove selection | ++ |
comment | +Select editor, but not profile | ++ |
type | +id=selectProfileEditors | +edito | +
click | +id=ui-active-menuitem | ++ |
click | +name=createRelationship | ++ |
verifyTextPresent | +You must select a minimum of 1 editor and profile. | ++ |
click | +link=Remove selection | ++ |
comment | +Enter one of each | ++ |
type | +id=selectProfileEditors | +editor | +
click | +id=ui-active-menuitem | ++ |
verifyTextPresent | +Editor, Eddie | | ++ |
verifyElementPresent | +link=Remove selection | ++ |
type | +//form[@id='add-relation']/fieldset[2]/section/input | +faculty | +
click | +id=ui-active-menuitem | ++ |
verifyTextPresent | +Faculty, Jane | Faculty Member | ++ |
verifyElementPresent | +link=Remove selection | ++ |
comment | +Remove editor and attempt to save | ++ |
click | +link=Remove selection | ++ |
click | +name=createRelationship | ++ |
verifyTextPresent | +You must select a minimum of 1 editor and profile. | ++ |
comment | +Add back editor and then remove profile | ++ |
type | +id=selectProfileEditors | +editor | +
click | +id=ui-active-menuitem | ++ |
click | +css=p.proxy-info-profile > a.remove-proxy | ++ |
click | +name=createRelationship | ++ |
verifyTextPresent | +You must select a minimum of 1 editor and profile. | ++ |
comment | +Add one link | ++ |
verifyTextPresent | +Editor, Eddie | | ++ |
verifyElementPresent | +link=Remove selection | ++ |
type | +//form[@id='add-relation']/fieldset[2]/section/input | +faculty | +
click | +id=ui-active-menuitem | ++ |
verifyTextPresent | +Faculty, Jane | Faculty Member | ++ |
verifyElementPresent | +link=Remove selection | ++ |
clickAndWait | +name=createRelationship | ++ |
assertTitle | +VIVO | ++ |
comment | +Verify relationship is set | ++ |
verifyTextPresent | +Editor, Eddie | | ++ |
verifyElementPresent | +link=Delete profile editor | ++ |
verifyTextPresent | +Add profile | ++ |
verifyTextPresent | +Selected profiles: | ++ |
verifyTextPresent | +Faculty, Jane | Faculty Member | ++ |
verifyElementPresent | +link=Remove selection | ++ |
comment | +Try to add relationship again | ++ |
type | +id=selectProfileEditors | +editor | +
click | +id=ui-active-menuitem | ++ |
type | +//form[@id='add-relation']/fieldset[2]/section/input | +facul | +
click | +id=ui-active-menuitem | ++ |
clickAndWait | +name=createRelationship | ++ |
assertTitle | +VIVO | ++ |
type | +id=addProfile | +faculty | +
verifyTextPresent | +no match | ++ |
comment | +Test that editing works | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
type | +id=loginName | +EddieEditor@cornell.edu | +
type | +id=loginPassword | +myPassword | +
clickAndWait | +name=loginForm | ++ |
assertTitle | +VIVO | ++ |
type | +id=newPassword | +Password | +
type | +id=confirmPassword | +Password | +
clickAndWait | +name=passwordChangeForm | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Faculty, Jane | ++ |
assertTitle | +Faculty, Jane | ++ |
clickAndWait | +css=a.add-overview > img.add-individual | ++ |
assertTitle | +Edit | ++ |
type | +tinymce | +I am able to edit. | +
clickAndWait | +id=submit | ++ |
assertTitle | +Faculty, Jane | ++ |
verifyTextPresent | +Faculty, Jane | ++ |
verifyTextPresent | +I am able to edit. | ++ |
clickAndWait | +link=My profile | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Check My profile | ++ |
clickAndWait | +link=My profile | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
ValidateAdminProxy2 | ||
deleteAllVisibleCookiesAndWait | ++ | + |
comment | +Validate multiple proxy editors | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Login as admin | ++ |
type | +id=loginName | +testAdmin@cornell.edu | +
type | +id=loginPassword | +Password | +
clickAndWait | +name=loginForm | ++ |
comment | +Navigate to profile editing | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=Manage profile editing | ++ |
comment | +Add second profile for Eddie Editor | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=Manage profile editing | ++ |
assertTitle | +VIVO | ++ |
type | +id=selectProfileEditors | +Editor | +
click | +id=ui-active-menuitem | ++ |
type | +//form[@id='add-relation']/fieldset[2]/section/input | +Libr | +
click | +id=ui-active-menuitem | ++ |
clickAndWait | +name=createRelationship | ++ |
assertTitle | +VIVO | ++ |
comment | +Verify relationship is set | ++ |
verifyTextPresent | +Editor, Eddie | | ++ |
verifyElementPresent | +link=Delete profile editor | ++ |
verifyTextPresent | +Faculty, Jane | Faculty Member | ++ |
verifyElementPresent | +link=Remove selection | ++ |
verifyTextPresent | +Librarian, Lily | Librarian | ++ |
verifyElementPresent | +link=Remove selection | ++ |
comment | +Now make 2 people able to edit the same profile | ++ |
type | +id=selectProfileEditors | +editor | +
click | +id=ui-active-menuitem | ++ |
type | +id=selectProfileEditors | +cura | +
click | +id=ui-active-menuitem | ++ |
type | +//form[@id='add-relation']/fieldset[2]/section/input | +fac | +
click | +id=ui-active-menuitem | ++ |
clickAndWait | +name=createRelationship | ++ |
assertTitle | +VIVO | ++ |
verifyTextPresent | +Curator, Connie | | ++ |
verifyElementPresent | +link=Delete profile editor | ++ |
verifyTextPresent | +Editor, Eddie | | ++ |
verifyElementPresent | +link=Delete profile editor | ++ |
comment | +Test that editing works for Eddie Editor | ++ |
clickAndWait | +link=Log out | ++ |
type | +id=loginName | +EddieEditor@cornell.edu | +
type | +id=loginPassword | +Password | +
clickAndWait | +name=loginForm | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=My profile | ++ |
assertTitle | +Librarian, Lily | ++ |
comment | +Test that editing works for Connie Curator | ++ |
clickAndWait | +link=Log out | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
type | +id=loginName | +ConnieCurator@cornell.edu | +
type | +id=loginPassword | +myPassword | +
clickAndWait | +name=loginForm | ++ |
type | +id=newPassword | +Password | +
type | +id=confirmPassword | +Password | +
clickAndWait | +name=passwordChangeForm | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=My profile | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Verify that both editors show up for Jane Faculty | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
type | +id=loginName | +JaneFaculty@cornell.edu | +
type | +id=loginPassword | +myPassword | +
clickAndWait | +name=loginForm | ++ |
assertTitle | +Log in to VIVO | ++ |
type | +id=newPassword | +Password | +
type | +id=confirmPassword | +Password | +
clickAndWait | +name=passwordChangeForm | ++ |
assertTitle | +Faculty, Jane | ++ |
clickAndWait | +link=My profile | ++ |
assertTitle | +Faculty, Jane | ++ |
clickAndWait | +link=My account | ++ |
assertTitle | +VIVO | ++ |
verifyTextPresent | +Curator, Connie | | ++ |
verifyElementPresent | +link=Remove selection | ++ |
verifyTextPresent | +Editor, Eddie | | ++ |
verifyElementPresent | +link=Remove selection | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
ValidateAdminProxy2 | ||
deleteAllVisibleCookiesAndWait | ++ | + |
comment | +Validate multiple proxy editors | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Login as admin | ++ |
type | +id=loginName | +JaneFaculty@cornell.edu | +
type | +id=loginPassword | +Password | +
clickAndWait | +name=loginForm | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Verify existing relationship | ++ |
clickAndWait | +link=My account | ++ |
assertTitle | +VIVO | ++ |
verifyTextPresent | +Curator, Connie | | ++ |
verifyElementPresent | +link=Remove selection | ++ |
verifyTextPresent | +Editor, Eddie | | ++ |
verifyElementPresent | +link=Remove selection | ++ |
verifyTextNotPresent | +Librarian, Lily | Librarian | ++ |
comment | +Now make Lily Librarian able to edit Jane Faculty's profiel | ++ |
+ | + | + |
comment | +Test that editing works for Lily Librarian | ++ |
clickAndWait | +link=Log out | ++ |
type | +id=loginName | +EddieEditor@cornell.edu | +
type | +id=loginPassword | +Password | +
clickAndWait | +name=loginForm | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=My profile | ++ |
assertTitle | +Librarian, Lily | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |