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