diff --git a/utilities/acceptance-tests/suites/CreatePeople/UploadLibrarianImage.html b/utilities/acceptance-tests/suites/CreatePeople/UploadLibrarianImage.html index 2fb4a31f..1e3a096d 100644 --- a/utilities/acceptance-tests/suites/CreatePeople/UploadLibrarianImage.html +++ b/utilities/acceptance-tests/suites/CreatePeople/UploadLibrarianImage.html @@ -306,7 +306,7 @@ comment - Now really add a photo + Try to add an image that is smaller than required @@ -319,11 +319,31 @@ Upload image for Lily Librarian + + type + datafile + C:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\lilysmall.jpg + + + clickAndWait + //input[@value='Upload photo'] + + + + assertTitle + Upload image for Lily Librarian + + verifyTextPresent Photo Upload + + verifyTextPresent + The uploaded image should be at least 115 pixels high and 115 pixels wide. + + verifyTextPresent Current Photo @@ -334,6 +354,56 @@ //div[@id='photoUploadDefaultImageContainer']/img + + comment + Try to add an image that is larger than allowed + + + + type + datafile + C:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\lilylarge.jpg + + + clickAndWait + //input[@value='Upload photo'] + + + + assertTitle + Upload image for Lily Librarian + + + + verifyTextPresent + Photo Upload + + + + verifyTextPresent + Please upload an image smaller than 6 megabytes + + + + verifyTextPresent + Current Photo + + + + verifyElementPresent + //div[@id='photoUploadDefaultImageContainer']/img + + + + comment + Now really add a photo + + + + assertTitle + Upload image for Lily Librarian + + type datafile