From 68eb7a8f2f3bcb46763fdedcdf491daf53ea74ed Mon Sep 17 00:00:00 2001 From: ejc12 Date: Thu, 15 Jul 2010 18:38:48 +0000 Subject: [PATCH] Holly made some changes to further test image uploading and deleting. --- .../CreatePeople/ChangeLibrarianImage.html | 104 +++++++++--------- .../CreatePeople/DeleteFacultyImage.html | 5 + .../CreatePeople/DeleteLibrarianImage.html | 14 ++- 3 files changed, 69 insertions(+), 54 deletions(-) diff --git a/utilities/acceptance-tests/suites/CreatePeople/ChangeLibrarianImage.html b/utilities/acceptance-tests/suites/CreatePeople/ChangeLibrarianImage.html index ab931e53..5dee145a 100644 --- a/utilities/acceptance-tests/suites/CreatePeople/ChangeLibrarianImage.html +++ b/utilities/acceptance-tests/suites/CreatePeople/ChangeLibrarianImage.html @@ -141,7 +141,57 @@ comment - Select to upload a new image but cancel out + Select to upload a new image but cancel out before cropping + + + + assertTitle + Replace image for Lily Librarian + + + + verifyTextPresent + Photo Upload + + + + verifyTextPresent + Current Photo + + + + verifyElementPresent + //div[@id='photoUploadDefaultImageContainer']/img + + + + type + datafile + C:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\Lily2.jpg + + + clickAndWait + link=Cancel + + + + assertTitle + Lily Librarian + + + + comment + Select to edit Lily Librarian's image again + + + + clickAndWait + //div[@id='dprop-vitro-image']/div/div/div/span/a[1] + + + + comment + Select to upload a new image but cancel out during cropping @@ -201,7 +251,7 @@ comment - Select to upload a new image but cancel out + Select to upload a new image @@ -239,56 +289,6 @@ Crop Photo for Lily Librarian - - comment - Select to edit Jane Faculty's image - - - - clickAndWait - //div[@id='dprop-vitro-image']/div/div/div/span/a[1] - - - - comment - Select to upload a new image but cancel out - - - - assertTitle - Replace image for Jane Faculty - - - - verifyTextPresent - Photo Upload - - - - verifyTextPresent - Current Photo - - - - verifyElementPresent - //div[@id='photoUploadDefaultImageContainer']/img - - - - type - datafile - C:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\Lily2.jpg - - - clickAndWait - //input[@value='Upload photo'] - - - - assertTitle - Crop Photo for Lily Librarian - - verifyTextPresent Photo Upload diff --git a/utilities/acceptance-tests/suites/CreatePeople/DeleteFacultyImage.html b/utilities/acceptance-tests/suites/CreatePeople/DeleteFacultyImage.html index 664b8d06..4fc7d43f 100644 --- a/utilities/acceptance-tests/suites/CreatePeople/DeleteFacultyImage.html +++ b/utilities/acceptance-tests/suites/CreatePeople/DeleteFacultyImage.html @@ -194,6 +194,11 @@ link=Delete photo + + assertConfirmation + Are you sure you want to delete your photo? + + assertTitle Individual Control Panel diff --git a/utilities/acceptance-tests/suites/CreatePeople/DeleteLibrarianImage.html b/utilities/acceptance-tests/suites/CreatePeople/DeleteLibrarianImage.html index de0fe748..d743fc14 100644 --- a/utilities/acceptance-tests/suites/CreatePeople/DeleteLibrarianImage.html +++ b/utilities/acceptance-tests/suites/CreatePeople/DeleteLibrarianImage.html @@ -126,13 +126,13 @@ assertTitle - Lily Library + Lily Librarian verifyAttribute //img[@title='click to view larger image']@src - /vivo/file/*/thumbnail_Lily2.jpg + /vivo/file/*/thumbnail_lily2.jpg comment @@ -144,6 +144,16 @@ link=delete + + assertConfirmation + Are you sure you want to delete your photo? + + + + refreshAndWait + 10000 + + verifyElementPresent //img[@title='no image']