From d213fd463ab5ede8ecb8fba4c52a4b98027a7241 Mon Sep 17 00:00:00 2001 From: ejc12 Date: Fri, 16 Jul 2010 15:49:50 +0000 Subject: [PATCH] Holly added uploading images that are smaller and larger than allowed. Both produce the appropriate error message. --- .../CreatePeople/UploadLibrarianImage.html | 72 ++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) 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