diff --git a/utilities/acceptance-tests/suites/CreatePeople/UploadNonPersonImage.html b/utilities/acceptance-tests/suites/CreatePeople/UploadNonPersonImage.html new file mode 100644 index 00000000..f24fd54e --- /dev/null +++ b/utilities/acceptance-tests/suites/CreatePeople/UploadNonPersonImage.html @@ -0,0 +1,530 @@ + + + + + + +UploadNonPersonImage + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
UploadNonPersonImage
deleteAllVisibleCookies
commentAdd image to non-person
open/vivo/
assertTitleVIVO
commentMust be logged off to start
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
commentMust login as the site admin
typeloginNametestAdmin
typeloginPasswordPassword
clickAndWaitloginForm
assertTitleVIVO Site Administration
commentNavigate to non-person
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Country
assertTitleCountry
clickAndWaitlink=Germany
assertTitleGermany
verifyTextPresentimage
commentMake sure no image exists
verifyElementNotPresent//img[@title='no image']
verifyTextNotPresent//img[@title='click to view larger image']
commentSelect to add an image
clickAndWaitlink=add
assertTitleUpload image for Germany
verifyTextPresentPhoto Upload
verifyTextPresentCurrent Photo
verifyTextPresentUpload a photo (JPEG, GIF or PNG)
commentCancel before doing anything
clickAndWaitlink=Cancel
commentHit upload button without selecting a file
assertTitleGermany
clickAndWaitlink=add
assertTitleUpload image for Germany
clickAndWait//input[@value='Upload photo']
assertTitleUpload image for Germany
verifyTextPresentPlease browse and select a photo.
commentNow select to add map then cancel in cropping
typedatafileC:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\germany1.jpg
clickAndWait//input[@value='Upload photo']
assertTitleCrop Photo for Germany
clickAndWaitlink=Cancel
assertTitleGermany
commentNow really add the map image
clickAndWaitlink=add
assertTitleUpload image for Germany
typedatafileC:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\germany1.jpg
clickAndWait//input[@value='Upload photo']
assertTitleCrop Photo for Germany
clickAndWait//input[@value='Save photo']
assertTitleGermany
verifyElementPresent//img[@title='click to view larger image']
verifyAttribute//img[@title='click to view larger image']@src/vivo/file/*/thumbnail_germany1.jpg
commentChange image to German flag
clickAndWaitlink=edit
assertTitleReplace image for Germany
verifyTextPresentPhoto Upload
verifyTextPresentCurrent Photo
verifyElementPresent//div[@id='photoUploadDefaultImageContainer']/img
verifyElementPresentlink=Delete photo
verifyTextPresentReplace Photo (JPEG, GIF or PNG)
commentCancel out and verify original image still there
clickAndWaitlink=Cancel
assertTitleGermany
verifyElementPresent//img[@title='click to view larger image']
verifyAttribute//img[@title='click to view larger image']@src/vivo/file/*/thumbnail_germany1.jpg
commentCancel out again, this time in cropping phase
clickAndWaitlink=edit
assertTitleReplace image for Germany
typedatafileC:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\germany2.jpg
clickAndWait//input[@value='Upload photo']
assertTitleCrop Photo for Germany
clickAndWaitlink=Cancel
assertTitleGermany
verifyElementPresent//img[@title='click to view larger image']
verifyAttribute//img[@title='click to view larger image']@src/vivo/file/*/thumbnail_germany1.jpg
commentNow really change the map to a flag
clickAndWaitlink=edit
assertTitleReplace image for Germany
typedatafileC:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\germany2.jpg
clickAndWait//input[@value='Upload photo']
assertTitleCrop Photo for Germany
clickAndWait//input[@value='Save photo']
assertTitleGermany
commentVerify image is changed
verifyElementPresent//img[@title='click to view larger image']
verifyAttribute//img[@title='click to view larger image']@src/vivo/file/*/thumbnail_germany2.jpg
commentNow delete the image
clickAndWaitlink=delete
assertConfirmationAre you sure you want to delete your photo?
refreshAndWait10000
assertTitleGermany
verifyTextPresentimage
commentVerify no image is present
verifyElementNotPresent//img[@title='click to view larger image']
commentLog out
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/CreatePeople/germany1.jpg b/utilities/acceptance-tests/suites/CreatePeople/germany1.jpg new file mode 100644 index 00000000..5df36a6d Binary files /dev/null and b/utilities/acceptance-tests/suites/CreatePeople/germany1.jpg differ diff --git a/utilities/acceptance-tests/suites/CreatePeople/germany2.jpg b/utilities/acceptance-tests/suites/CreatePeople/germany2.jpg new file mode 100644 index 00000000..32e39e98 Binary files /dev/null and b/utilities/acceptance-tests/suites/CreatePeople/germany2.jpg differ