From e65e60a4aaa4c6306f3be6468d792636fd33e35f Mon Sep 17 00:00:00 2001 From: ejc12 Date: Tue, 13 Jul 2010 20:58:16 +0000 Subject: [PATCH] Holly added a new upload image test case. --- .../CreatePeople/ChangeLibrarianImage.html | 350 ++++++++++++++++++ 1 file changed, 350 insertions(+) create mode 100644 utilities/acceptance-tests/suites/CreatePeople/ChangeLibrarianImage.html diff --git a/utilities/acceptance-tests/suites/CreatePeople/ChangeLibrarianImage.html b/utilities/acceptance-tests/suites/CreatePeople/ChangeLibrarianImage.html new file mode 100644 index 00000000..a7483798 --- /dev/null +++ b/utilities/acceptance-tests/suites/CreatePeople/ChangeLibrarianImage.html @@ -0,0 +1,350 @@ + + + + + + +ChangeFacultyImage + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ChangeFacultyImage
deleteAllVisibleCookies
commentChange the uploaded picture 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
commentNavigate to Jane Faculty
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Faculty Member
assertTitleFaculty Member
clickAndWaitlink=Jane Faculty
assertTitleJane Faculty
verifyAttribute//img[@title='click to view larger image']@src/vivo/file/*/thumbnail_Jane1.jpg
commentSelect to edit Jane Faculty's profile
click//div[@id='content']/div[1]/h3
clickAndWaitlink=edit this individual
assertTitleIndividual Control Panel
verifyTextPresentJane Faculty
commentSelect to upload a new image but cancel out
clickAndWait//input[@value='Upload Image']
assertTitleReplace image for Jane Faculty
verifyTextPresentPhoto Upload
verifyTextPresentCurrent Photo
verifyElementPresent//div[@id='photoUploadDefaultImageContainer']/img
typedatafileC:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\Jane2.jpg
clickAndWait//input[@value='Upload photo']
assertTitleCrop Photo for Jane Faculty
clickAndWaitlink=Cancel
assertTitleIndividual Control Panel
verifyTextPresentJane Faculty
commentSelect file to upload again
clickAndWait//input[@value='Upload Image']
assertTitleReplace image for Jane Faculty
verifyTextPresentPhoto Upload
verifyTextPresentCurrent Photo
verifyElementPresent//div[@id='photoUploadDefaultImageContainer']/img
typedatafileC:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\Jane2.jpg
clickAndWait//input[@value='Upload photo']
assertTitleCrop Photo for Jane Faculty
verifyTextPresentPhoto Upload
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']
assertTitleIndividual Control Panel
commentVerify image has been updated to new one
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Faculty Member
assertTitleFaculty Member
clickAndWaitlink=Jane Faculty
assertTitleJane Faculty
verifyAttribute//img[@title='click to view larger image']@src/vivo/file/*/thumbnail_Jane2.jpg
commentLogout
clickAndWaitlink=Log out
assertTitleVIVO
+ +