UploadLibrarianImage
deleteAllVisibleCookies
setTimeout 100000
open /vivo/
assertTitle VIVO
clickAndWait link=Log in
assertTitle Log in to VIVO
type loginName testAdmin@cornell.edu
type loginPassword Password
clickAndWait loginForm
clickAndWait link=Index
verifyTextPresent Librarian
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily Lou
assertTitle Librarian, Lily Lou
verifyElementPresent //img[@title='no image']
clickAndWait //img[@alt='add']
assertTitle Upload image for Librarian, Lily Lou
verifyTextPresent Photo Upload
verifyTextPresent Current Photo
verifyTextPresent Upload a photo (JPEG, GIF or PNG)
verifyElementPresent //img[@alt='Individual photo']
clickAndWait link=Cancel
assertTitle Librarian, Lily Lou
clickAndWait //img[@alt='add']
assertTitle Upload image for Librarian, Lily Lou
verifyTextPresent Photo Upload
verifyTextPresent Current Photo
verifyTextPresent Upload a photo (JPEG, GIF or PNG)
verifyElementPresent //img[@alt='Individual photo']
type datafile C:\VIVO\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\lily1.jpg
clickAndWait link=Cancel
assertTitle Librarian, Lily Lou
clickAndWait //img[@alt='add']
assertTitle Upload image for Librarian, Lily Lou
verifyTextPresent Photo Upload
verifyTextPresent Current Photo
verifyTextPresent Upload a photo (JPEG, GIF or PNG)
verifyElementPresent //img[@alt='Individual photo']
type datafile C:\VIVO\vivo\utilities\acceptance-tests\suites\CreatePeople\lily1.jpg
clickAndWait //input[@value='Upload photo']
assertTitle Crop image for Librarian, Lily Lou
clickAndWait link=Cancel
assertTitle Librarian, Lily Lou
verifyElementPresent //img[@title='no image']
verifyElementNotPresent //img[@title='click to view larger image']
clickAndWait //img[@alt='add']
assertTitle Upload image for Librarian, Lily Lou
type datafile C:\VIVO\vivo\utilities\acceptance-tests\suites\CreatePeople\lilysmall.jpg
clickAndWait //input[@value='Upload photo']
assertTitle Upload image for Librarian, Lily Lou
verifyTextPresent Photo Upload
verifyTextPresent Current Photo
verifyTextPresent Upload a photo (JPEG, GIF or PNG)
verifyTextPresent The uploaded image should be at least 200 pixels high and 200 pixels wide.
verifyElementPresent //img[@alt='Individual photo']
type datafile C:\VIVO\vivo\utilities\acceptance-tests\suites\CreatePeople\lilylarge.jpg
clickAndWait //input[@value='Upload photo']
assertTitle Upload image for Librarian, Lily Lou
verifyTextPresent Photo Upload
verifyTextPresent Current Photo
verifyTextPresent Upload a photo (JPEG, GIF or PNG)
verifyTextPresent Please upload an image smaller than 6 megabytes
verifyElementPresent //img[@alt='Individual photo']
assertTitle Upload image for Librarian, Lily Lou
type datafile C:\VIVO\vivo\utilities\acceptance-tests\suites\CreatePeople\lily1.jpg
clickAndWait css=input.submit
assertTitle Crop image for Librarian, Lily Lou
clickAndWait css=input.submit
assertTitle Librarian, Lily Lou
verifyAttribute //img[@title='click to view larger image']@src /vivo/file/*/thumbnail_lily1.jpg
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO