ChangeFacultyImage
deleteAllVisibleCookies
comment Change the uploaded picture for Jane Faculty in the backend
open /vivo/
assertTitle VIVO
comment Must not be logged in
clickAndWait link=Log in
assertTitle VIVO Site Administration
comment Must log in as site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO Site Administration
comment Navigate to Jane Faculty
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Jane Faculty
assertTitle Jane Faculty
comment Select to edit Jane Faculty's profile
click //div[@id='content']/div[1]/h3
clickAndWait link=edit this individual
assertTitle Individual Control Panel
verifyTextPresent Jane Faculty
comment Select to upload an image to replace other one
clickAndWait //input[@value='Upload Image']
assertTitle Replace image for Jane Faculty
verifyTextPresent Photo Upload
verifyTextPresent Current Photo
verifyElementPresent //div[@id='photoUploadDefaultImageContainer']/img
type datafile C:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\Jane2.jpg
clickAndWait //input[@value='Upload photo']
assertTitle Crop Photo for Jane Faculty
clickAndWait link=Cancel
assertTitle Jane Faculty
comment Select file to upload
type file1 C:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\Jane2.jpg
clickAndWait submitMode
assertTitle Upload Image
verifyTextPresent Results from processing input file:
updated individual Jane Faculty
Link to check uploaded image:
<Jane2.html>
clickAndWait link=Jane Faculty
assertTitle Jane Faculty
comment Verify image has been updated to new one
verifyAttribute //img[@title='Jane Faculty']@src /vivo/images/people/Jane2.jpg
comment Logout
clickAndWait link=Log out
assertTitle VIVO