diff --git a/utilities/acceptance-tests/suites/CreatePeople/UploadLibrarianImage.html b/utilities/acceptance-tests/suites/CreatePeople/UploadLibrarianImage.html new file mode 100644 index 00000000..23b9f6ef --- /dev/null +++ b/utilities/acceptance-tests/suites/CreatePeople/UploadLibrarianImage.html @@ -0,0 +1,400 @@ + + + +
+ + +UploadFacultyImage | ||
deleteAllVisibleCookies | ++ | + |
comment | +Upload image for Jane Faculty in the backend | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Must log in as site admin | ++ |
type | +loginName | +testAdmin | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Find Jane Faculty via Index | ++ |
clickAndWait | +link=Index | ++ |
assertTitle | +Index to VIVO Contents | ++ |
verifyTextPresent | +Faculty Member | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Jane Faculty | ++ |
assertTitle | +Jane Faculty | ++ |
comment | +Verify no photo currently exists | ++ |
verifyElementPresent | +//img[@title='no image'] | ++ |
comment | +Select to update this individual | ++ |
click | +//div[@id='content']/div[1]/h3 | ++ |
clickAndWait | +link=edit this individual | ++ |
assertTitle | +Individual Control Panel | ++ |
verifyTextPresent | +Jane Faculty | ++ |
comment | +Select to upload an image | ++ |
clickAndWait | +//input[@value='Upload Image'] | ++ |
assertTitle | +Upload image for Jane Faculty | ++ |
verifyTextPresent | +Photo Upload | ++ |
verifyTextPresent | +Current Photo | ++ |
comment | +Cancel out before adding a photo | ++ |
clickAndWait | +link=Cancel | ++ |
assertTitle | +Jane Faculty | ++ |
verifyElementPresent | +//img[@title='no image'] | ++ |
comment | +Select a photo to add and then cancel out | ++ |
clickAndWait | +link=edit this individual | ++ |
assertTitle | +Individual Control Panel | ++ |
clickAndWait | +//input[@value='Upload Image'] | ++ |
assertTitle | +Upload image for Jane Faculty | ++ |
type | +datafile | +C:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\Jane1.jpg | +
clickAndWait | +link=Cancel | ++ |
assertTitle | +Jane Faculty | ++ |
verifyElementPresent | +//img[@title='no image'] | ++ |
comment | +Cancel after uploading the picture | ++ |
clickAndWait | +link=edit this individual | ++ |
assertTitle | +Individual Control Panel | ++ |
clickAndWait | +//input[@value='Upload Image'] | ++ |
assertTitle | +Upload image for Jane Faculty | ++ |
type | +datafile | +C:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\Jane1.jpg | +
clickAndWait | +//input[@value='Upload photo'] | ++ |
assertTitle | +Crop Photo for Jane Faculty | ++ |
clickAndWait | +link=Cancel | ++ |
assertTitle | +Jane Faculty | ++ |
verifyElementPresent | +//img[@title='no image'] | ++ |
comment | +Now really add a photo | ++ |
clickAndWait | +link=edit this individual | ++ |
assertTitle | +Individual Control Panel | ++ |
clickAndWait | +//input[@value='Upload Image'] | ++ |
assertTitle | +Upload image for Jane Faculty | ++ |
type | +datafile | +C:\vivo-code\vivo\utilities\acceptance-tests\suites\CreatePeople\Jane1.jpg | +
clickAndWait | +//input[@value='Upload photo'] | ++ |
assertTitle | +Crop Photo for Jane Faculty | ++ |
verifyTextPresent | +Current Photo | ++ |
verifyTextPresent | +Your profile photo will look like the image below. | ++ |
verifyTextPresent | +To 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'] | ++ |
assertTitle | +Jane Faculty | ++ |
verifyElementPresent | +//img[@title='click to view larger image'] | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |