From a02f0e3fbfe5a60b11b27cbfa2efb76d2147a61b Mon Sep 17 00:00:00 2001 From: ejc12 Date: Sat, 24 Jul 2010 17:59:49 +0000 Subject: [PATCH] Holly added a new test case and tweaked some of the other test cases. --- .../suites/CreatePeople/AddFacultyInfo.html | 5 + .../CreatePeople/DeleteEverythingElse.html | 505 ++++++++++++++++++ .../suites/CreatePeople/EditFacultyInfo.html | 2 +- .../suites/CreatePeople/SearchPeople.html | 25 - .../suites/CreatePeople/Suite.html | 2 + 5 files changed, 513 insertions(+), 26 deletions(-) create mode 100644 utilities/acceptance-tests/suites/CreatePeople/DeleteEverythingElse.html diff --git a/utilities/acceptance-tests/suites/CreatePeople/AddFacultyInfo.html b/utilities/acceptance-tests/suites/CreatePeople/AddFacultyInfo.html index e259d9ed..934214a7 100644 --- a/utilities/acceptance-tests/suites/CreatePeople/AddFacultyInfo.html +++ b/utilities/acceptance-tests/suites/CreatePeople/AddFacultyInfo.html @@ -194,6 +194,11 @@ //div[@id='hasCollaborator']/a + + pause + 10000 + + assertTitle Edit diff --git a/utilities/acceptance-tests/suites/CreatePeople/DeleteEverythingElse.html b/utilities/acceptance-tests/suites/CreatePeople/DeleteEverythingElse.html new file mode 100644 index 00000000..d0a13cc5 --- /dev/null +++ b/utilities/acceptance-tests/suites/CreatePeople/DeleteEverythingElse.html @@ -0,0 +1,505 @@ + + + + + + +DeleteEverythingElse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DeleteEverythingElse
commentDelete everything else (e.g. courses, subject areas).
deleteAllVisibleCookies
open/vivo/
assertTitleVIVO
commentMust not be logged in already
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
commentLogin a sys admin
clickAndWaitloginForm
assertTitleVIVO Site Administration
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
commentVerify everything to be deleted is there
commentDelete everything in the index
clickAndWaitlink=Semester Class
assertTitleSemester Class
clickAndWaitlink=Advanced Primates 301
assertTitleAdvanced Primates 301
clickAndWaitlink=edit this individual
assertTitleIndividual Control Panel
clickAndWait//input[@value='Edit This Individual']
assertTitleIndividual Editing Form
click_delete
assertConfirmationAre you SURE you want to delete this entity? If in doubt, CANCEL.
assertTitleVIVO Site Administration
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Semester Class
assertTitleSemester Class
clickAndWaitlink=Intermediate Primates 201
assertTitleIntermediate Primates 201
clickAndWaitlink=edit this individual
assertTitleIndividual Control Panel
clickAndWait//input[@value='Edit This Individual']
assertTitleIndividual Editing Form
click_delete
assertConfirmationAre you SURE you want to delete this entity? If in doubt, CANCEL.
assertTitleVIVO Site Administration
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Semester Class
assertTitleSemester Class
clickAndWaitlink=Introduction to Primates 101
assertTitleIntroduction to Primates 101
clickAndWaitlink=edit this individual
assertTitleIndividual Control Panel
clickAndWait//input[@value='Edit This Individual']
assertTitleIndividual Editing Form
click_delete
assertConfirmationAre you SURE you want to delete this entity? If in doubt, CANCEL.
assertTitleVIVO Site Administration
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Subject Area
assertTitleSubject Area
clickAndWaitlink=Apes
assertTitleApes
clickAndWaitlink=edit this individual
assertTitleIndividual Control Panel
clickAndWait//input[@value='Edit This Individual']
assertTitleIndividual Editing Form
click_delete
assertConfirmationAre you SURE you want to delete this entity? If in doubt, CANCEL.
assertTitleVIVO Site Administration
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Subject Area
assertTitleSubject Area
clickAndWaitlink=Chimps
assertTitleChimps
clickAndWaitlink=edit this individual
assertTitleIndividual Control Panel
clickAndWait//input[@value='Edit This Individual']
assertTitleIndividual Editing Form
click_delete
assertConfirmationAre you SURE you want to delete this entity? If in doubt, CANCEL.
assertTitleVIVO Site Administration
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Subject Area
assertTitleSubject Area
clickAndWaitlink=Monkeys
assertTitleMonkeys
clickAndWaitlink=edit this individual
assertTitleIndividual Control Panel
clickAndWait//input[@value='Edit This Individual']
assertTitleIndividual Editing Form
click_delete
assertConfirmationAre you SURE you want to delete this entity? If in doubt, CANCEL.
assertTitleVIVO Site Administration
commentVerify everything is gone
commentLog out
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/CreatePeople/EditFacultyInfo.html b/utilities/acceptance-tests/suites/CreatePeople/EditFacultyInfo.html index 7d77548e..5de0cc6b 100644 --- a/utilities/acceptance-tests/suites/CreatePeople/EditFacultyInfo.html +++ b/utilities/acceptance-tests/suites/CreatePeople/EditFacultyInfo.html @@ -896,7 +896,7 @@ clickAndWait - //div[@id='freetextKeyword']/div/ul/li[2]/span/span/a[1] + //div[@id='freetextKeyword']/div/div/span/span/a[1] diff --git a/utilities/acceptance-tests/suites/CreatePeople/SearchPeople.html b/utilities/acceptance-tests/suites/CreatePeople/SearchPeople.html index 192aa495..8d0c05db 100644 --- a/utilities/acceptance-tests/suites/CreatePeople/SearchPeople.html +++ b/utilities/acceptance-tests/suites/CreatePeople/SearchPeople.html @@ -34,31 +34,6 @@ - - comment - Search for two new people without logging in - - - - open - /vivo/search?querytext=librarian&classgroup=http%3A%2F%2Fvivoweb.org%2Fontology%23vitroClassGrouppeople - - - - assertTitle - librarian - VIVO Search Results - - - - clickAndWait - link=VIVO - - - - assertTitle - VIVO - - comment Search for Jane Faculty's first name only diff --git a/utilities/acceptance-tests/suites/CreatePeople/Suite.html b/utilities/acceptance-tests/suites/CreatePeople/Suite.html index 1b778348..19385641 100644 --- a/utilities/acceptance-tests/suites/CreatePeople/Suite.html +++ b/utilities/acceptance-tests/suites/CreatePeople/Suite.html @@ -41,6 +41,8 @@ href="UploadFacultyImage.html">UploadFacultyImage DeleteTestPeople DeleteTestTabs DeleteTestOrganization +DeleteEverythingElsen UploadNonPersonImage