From d7531738c853859ebb8c5674e9d929c36d8b5119 Mon Sep 17 00:00:00 2001 From: hlm7 Date: Mon, 17 Jan 2011 22:26:25 +0000 Subject: [PATCH] Holly finalized (she hopes) the AddNonPersonThings test suite. --- .../AddNonPersonThings/CheckIndexView.html | 25 ++++ .../AddNonPersonThings/CheckPublicView.html | 27 ++-- .../AddNonPersonThings/CreateCourse.html | 12 +- .../AddNonPersonThings/CreateEvent.html | 30 ++++ .../CreateOrganization.html | 42 +++++- .../AddNonPersonThings/DeleteIndexStuff.html | 130 ++++++++++++++++++ .../VerifyAllThingsSearchable.html | 25 +++- 7 files changed, 263 insertions(+), 28 deletions(-) diff --git a/utilities/acceptance-tests/suites/AddNonPersonThings/CheckIndexView.html b/utilities/acceptance-tests/suites/AddNonPersonThings/CheckIndexView.html index d065e8ae..6feae912 100644 --- a/utilities/acceptance-tests/suites/AddNonPersonThings/CheckIndexView.html +++ b/utilities/acceptance-tests/suites/AddNonPersonThings/CheckIndexView.html @@ -199,11 +199,26 @@ Equipment (2) + + verifyTextPresent + Book (1) + + + + verifyTextPresent + Database (1) + + verifyTextPresent Grant (3) + + verifyTextPresent + Proceedings (1) + + verifyTextPresent Subject Area (4) @@ -319,11 +334,21 @@ link=Equipment + + verifyElementPresent + link=Book + + verifyElementPresent link=Grant + + verifyElementPresent + link=Proceedings + + verifyElementPresent link=Subject Area diff --git a/utilities/acceptance-tests/suites/AddNonPersonThings/CheckPublicView.html b/utilities/acceptance-tests/suites/AddNonPersonThings/CheckPublicView.html index 27a1d64b..3b47e613 100644 --- a/utilities/acceptance-tests/suites/AddNonPersonThings/CheckPublicView.html +++ b/utilities/acceptance-tests/suites/AddNonPersonThings/CheckPublicView.html @@ -146,7 +146,7 @@ verifyTextPresent - Primate Health Conference Conference + Primate Health Conference Conference @@ -179,11 +179,6 @@ Service - - verifyTextPresent - Primate Heart Health Clinic

    * Service - - clickAndWait link=Primate Heart Health Clinic @@ -386,7 +381,12 @@ verifyTextPresent - Librarian, Lily Assistant Librarian + PHC Proceedings Proceedings + + + + verifyTextPresent + Librarian, Lily Assistant Librarian @@ -411,7 +411,7 @@ verifyTextPresent - http://primatehealthintro.cornell.edu Webpage + http://primatehealthintro.cornell.edu Webpage @@ -421,7 +421,7 @@ verifyTextPresent - Primate Health Check Event + Primate Health Check Event @@ -629,6 +629,11 @@ Primate Heart Health Clinic Founder 2010 - + + verifyTextPresent + Primate Info + + verifyTextPresent Primate Health and Fitness Organizer 2008 @@ -1281,12 +1286,12 @@ verifyTextPresent - Primate Health Conference Conference + Primate Health Conference Conference verifyTextPresent - Introduction to Primate Health Course + Introduction to Primate Health Course diff --git a/utilities/acceptance-tests/suites/AddNonPersonThings/CreateCourse.html b/utilities/acceptance-tests/suites/AddNonPersonThings/CreateCourse.html index e87d03b1..6f55b8cb 100644 --- a/utilities/acceptance-tests/suites/AddNonPersonThings/CreateCourse.html +++ b/utilities/acceptance-tests/suites/AddNonPersonThings/CreateCourse.html @@ -469,19 +469,9 @@ Select an existing Document for Introduction to Primate Health - - verifyTextPresent - There are no entries in the system to select from. - - - - verifyTextPresent - Please create a new entry. - - clickAndWait - submit + //input[@id='submit' and @value='add a new item to this list'] diff --git a/utilities/acceptance-tests/suites/AddNonPersonThings/CreateEvent.html b/utilities/acceptance-tests/suites/AddNonPersonThings/CreateEvent.html index 4f6a47f2..77630766 100644 --- a/utilities/acceptance-tests/suites/AddNonPersonThings/CreateEvent.html +++ b/utilities/acceptance-tests/suites/AddNonPersonThings/CreateEvent.html @@ -239,6 +239,31 @@ //div[@id='wrapper-content']/section[2]/article[3]/h3/a/img + + clickAndWait + submit + + + + assertTitle + Edit + + + + type + name + PHC Proceedings + + + clickAndWait + submit + + + + assertTitle + Primate Health Conference + + clickAndWait link=Index @@ -564,6 +589,11 @@ First annual conference for those interested in the general health of primates. + + verifyTextPresent + PHC Proceedings Proceedings + + verifyTextPresent Librarian, Lily Assistant Librarian diff --git a/utilities/acceptance-tests/suites/AddNonPersonThings/CreateOrganization.html b/utilities/acceptance-tests/suites/AddNonPersonThings/CreateOrganization.html index 393951b8..c92f89d2 100644 --- a/utilities/acceptance-tests/suites/AddNonPersonThings/CreateOrganization.html +++ b/utilities/acceptance-tests/suites/AddNonPersonThings/CreateOrganization.html @@ -756,7 +756,37 @@ clickAndWait - //div[@id='wrapper-content']/section[5]/article/h3/a/img + //div[@id='wrapper-content']/section[5]/article[1]/h3/a/img + + + + assertTitle + Edit + + + + select + typeSelector + label=Database + + + type + relatedIndLabel + Primate Info + + + clickAndWait + submit + + + + assertTitle + Primate College of America + + + + clickAndWait + //div[@id='wrapper-content']/section[5]/article[2]/h3/a/img @@ -1184,6 +1214,16 @@ Primate Heart Health Clinic Founder 2010 - + + verifyTextPresent + database + + + + verifyTextPresent + Primate Info + + verifyTextPresent Primate Health and Fitness Organizer 2008 - diff --git a/utilities/acceptance-tests/suites/AddNonPersonThings/DeleteIndexStuff.html b/utilities/acceptance-tests/suites/AddNonPersonThings/DeleteIndexStuff.html index 725ea633..ac0c6a39 100644 --- a/utilities/acceptance-tests/suites/AddNonPersonThings/DeleteIndexStuff.html +++ b/utilities/acceptance-tests/suites/AddNonPersonThings/DeleteIndexStuff.html @@ -1379,6 +1379,136 @@ Delete research + + clickAndWait + link=Book + + + + assertTitle + Book + + + + clickAndWait + link=PHC Proceedings + + + + assertTitle + PHC Proceedings + + + + clickAndWait + link=edit this individual + + + + assertTitle + Individual Control Panel + + + + clickAndWait + //input[@value='Edit This Individual'] + + + + assertTitle + Individual Editing Form + + + + click + _delete + + + + assertConfirmation + Are you SURE you want to delete this entity? If in doubt, CANCEL. + + + + assertTitle + VIVO Site Administration + + + + clickAndWait + link=Index + + + + assertTitle + Index to VIVO Contents + + + + clickAndWait + link=Database + + + + assertTitle + Database + + + + clickAndWait + link=Primate Info + + + + assertTitle + Primate Info + + + + clickAndWait + link=edit this individual + + + + assertTitle + Individual Control Panel + + + + clickAndWait + //input[@value='Edit This Individual'] + + + + assertTitle + Individual Editing Form + + + + click + _delete + + + + assertConfirmation + Are you SURE you want to delete this entity? If in doubt, CANCEL. + + + + assertTitle + VIVO Site Administration + + + + clickAndWait + link=Index + + + + assertTitle + Index to VIVO Contents + + clickAndWait link=Subject Area diff --git a/utilities/acceptance-tests/suites/AddNonPersonThings/VerifyAllThingsSearchable.html b/utilities/acceptance-tests/suites/AddNonPersonThings/VerifyAllThingsSearchable.html index a016837d..cf5a22cf 100644 --- a/utilities/acceptance-tests/suites/AddNonPersonThings/VerifyAllThingsSearchable.html +++ b/utilities/acceptance-tests/suites/AddNonPersonThings/VerifyAllThingsSearchable.html @@ -139,6 +139,11 @@ Primate Student of the Year | Award or Honor + + verifyTextPresent + Primate Info | Database + + verifyTextPresent Primate Health Check | Event @@ -194,6 +199,11 @@ Best Primate College | Award or Honor Receipt + + verifyTextPresent + Primate Survival Planning Grant | Grant + + verifyTextPresent Animal Health | Subject Area @@ -229,11 +239,6 @@ Faculty, Jane | Assistant Professor - - verifyTextPresent - Elderly Care | Subject Area - - clickAndWait link=Next @@ -244,6 +249,16 @@ primates - VIVO Search Results + + verifyTextPresent + Elderly Care | Subject Area + + + + verifyTextPresent + PHC Proceedings | Proceedings + + verifyTextPresent Primate Health Conference | Conference