From a5288201ca907625e461b8db93453700d61cc689 Mon Sep 17 00:00:00 2001 From: ejc12 Date: Tue, 13 Jul 2010 17:56:42 +0000 Subject: [PATCH] Holly added new image upload test case. --- .../CreatePeople/UploadLibrarianImage.html | 400 ++++++++++++++++++ 1 file changed, 400 insertions(+) create mode 100644 utilities/acceptance-tests/suites/CreatePeople/UploadLibrarianImage.html diff --git a/utilities/acceptance-tests/suites/CreatePeople/UploadLibrarianImage.html b/utilities/acceptance-tests/suites/CreatePeople/UploadLibrarianImage.html new file mode 100644 index 00000000..23b9f6ef --- /dev/null +++ b/utilities/acceptance-tests/suites/CreatePeople/UploadLibrarianImage.html @@ -0,0 +1,400 @@ + + + + + + +UploadFacultyImage + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
UploadFacultyImage
deleteAllVisibleCookies
commentUpload image for Jane Faculty in the backend
open/vivo/
assertTitleVIVO
commentMust not be logged in
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
commentMust log in as site admin
typeloginNametestAdmin
typeloginPasswordPassword
clickAndWaitloginForm
assertTitleVIVO Site Administration
commentFind Jane Faculty via Index
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
verifyTextPresentFaculty Member
clickAndWaitlink=Faculty Member
assertTitleFaculty Member
clickAndWaitlink=Jane Faculty
assertTitleJane Faculty
commentVerify no photo currently exists
verifyElementPresent//img[@title='no image']
commentSelect to update this individual
click//div[@id='content']/div[1]/h3
clickAndWaitlink=edit this individual
assertTitleIndividual Control Panel
verifyTextPresentJane Faculty
commentSelect to upload an image
clickAndWait//input[@value='Upload Image']
assertTitleUpload image for Jane Faculty
verifyTextPresentPhoto Upload
verifyTextPresentCurrent Photo
commentCancel out before adding a photo
clickAndWaitlink=Cancel
assertTitleJane Faculty
verifyElementPresent//img[@title='no image']
commentSelect a photo to add and then cancel out
clickAndWaitlink=edit this individual
assertTitleIndividual Control Panel
clickAndWait//input[@value='Upload Image']
assertTitleUpload image for Jane Faculty
typedatafileC:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\Jane1.jpg
clickAndWaitlink=Cancel
assertTitleJane Faculty
verifyElementPresent//img[@title='no image']
commentCancel after uploading the picture
clickAndWaitlink=edit this individual
assertTitleIndividual Control Panel
clickAndWait//input[@value='Upload Image']
assertTitleUpload image for Jane Faculty
typedatafileC:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\Jane1.jpg
clickAndWait//input[@value='Upload photo']
assertTitleCrop Photo for Jane Faculty
clickAndWaitlink=Cancel
assertTitleJane Faculty
verifyElementPresent//img[@title='no image']
commentNow really add a photo
clickAndWaitlink=edit this individual
assertTitleIndividual Control Panel
clickAndWait//input[@value='Upload Image']
assertTitleUpload image for Jane Faculty
typedatafileC:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\Jane1.jpg
clickAndWait//input[@value='Upload photo']
assertTitleCrop Photo for Jane Faculty
verifyTextPresentCurrent Photo
verifyTextPresentYour profile photo will look like the image below.
verifyTextPresentTo make adjustments, you can drag around and resize the photo to the right. When you are happy with your photo click the "Save Photo" button.
clickAndWait//input[@value='Save photo']
assertTitleJane Faculty
verifyElementPresent//img[@title='click to view larger image']
commentLogout
clickAndWaitlink=Log out
assertTitleVIVO
+ +