From 31f30c6da9bbfcd48cd230b211cc06cbadb1810f Mon Sep 17 00:00:00 2001 From: ejc12 Date: Mon, 19 Jul 2010 00:07:04 +0000 Subject: [PATCH] Holly added investigator roles for faculty member. --- .../suites/AddRoles/AddFacultyMemberRoles1 | 530 ++++++++++++++++++ .../suites/AddRoles/CreateTestLibrarian.html | 175 ++++++ .../suites/AddRoles/DeleteTestLibrarian.html | 210 +++++++ .../suites/AddRoles/suite.html | 2 + 4 files changed, 917 insertions(+) create mode 100644 utilities/acceptance-tests/suites/AddRoles/AddFacultyMemberRoles1 create mode 100644 utilities/acceptance-tests/suites/AddRoles/CreateTestLibrarian.html create mode 100644 utilities/acceptance-tests/suites/AddRoles/DeleteTestLibrarian.html diff --git a/utilities/acceptance-tests/suites/AddRoles/AddFacultyMemberRoles1 b/utilities/acceptance-tests/suites/AddRoles/AddFacultyMemberRoles1 new file mode 100644 index 00000000..bc309191 --- /dev/null +++ b/utilities/acceptance-tests/suites/AddRoles/AddFacultyMemberRoles1 @@ -0,0 +1,530 @@ + + + + + + +AddFacultyMemberRoles1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddFacultyMemberRoles1
commentAdd roles for Jane Faculty
deleteAllVisibleCookies
open/vivo/
assertTitleVIVO
commentMust be logged off to start
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
commentMust login as the site admin
typeloginNametestAdmin
typeloginPasswordPassword
clickAndWaitloginForm
assertTitleVIVO Site Administration
commentNavigate to Jane Faculty
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Faculty Member
assertTitleFaculty Member
clickAndWaitlink=Jane Faculty
assertTitleJane Faculty
commentAdd Co-principal Investigator role for Jane Faculty
clickAndWait//div[@id='hasCo-PrincipalInvestigatorRole']/a
assertTitleEdit
typerelatedIndLabelNIH VIVO
typestartYear2009
typeendYear2010
clickAndWaitsubmit
assertTitleNIH VIVO
commentNavigate back to Jane Faculty
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Faculty Member
assertTitleFaculty Member
clickAndWaitlink=Jane Faculty
assertTitleJane Faculty
commentVerify that Co-principal Investigator role is showing up
verifyTextPresentNIH VIVO
verifyTextPresent2009-2010
verifyElementPresent//div[@id='hasCo-PrincipalInvestigatorRole']/ul/li/span
commentAdd Principal Investigator role for Jane Faculty
clickAndWait//div[@id='hasPrincipalInvestigatorRole']/a
assertTitleEdit
typerelatedIndLabelNIH
clickui-active-menuitem
typestartYear2010
typeendYear2011
clickAndWaitsubmit
assertTitleNIH VIVO
commentNavigate back to Jane Faculty
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Faculty Member
assertTitleFaculty Member
clickAndWaitlink=Jane Faculty
assertTitleJane Faculty
commentVerify that Principal Investigator role is showing up
verifyTextPresentNIH VIVO
verifyTextPresent2010-2011
verifyElementPresent//div[@id='hasPrincipalInvestigatorRole']/ul/li/span/a
commentAdd Investigator role for Jane Faculty
clickAndWait//div[@id='hasInvestigatorRole']/a
assertTitleEdit
typerelatedIndLabelDataStaR
typestartYear2008
typeendYear2009
clickAndWaitsubmit
assertTitleDataStaR
commentNavigate back to Jane Faculty
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Faculty Member
assertTitleFaculty Member
clickAndWaitlink=Jane Faculty
assertTitleJane Faculty
commentVerify Investigator role is showing up
verifyTextPresentDataStaR
verifyTextPresent2008-2009
verifyElementPresent//div[@id='hasInvestigatorRole']/ul/li/span
commentAdd second Principal investigator for Jane Faculty
clickAndWait//div[@id='hasPrincipalInvestigatorRole']/a
assertTitleEdit
typerelatedIndLabelDat
clickui-active-menuitem
typestartYear2010
clickAndWaitsubmit
assertTitleDataStaR
commentNavigate back to Jane Faculty
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Faculty Member
assertTitleFaculty Member
clickAndWaitlink=Jane Faculty
assertTitleJane Faculty
commentVerify Principal Investigator role is showing up
verifyTextPresentDataStaR
verifyTextPresent2010
verifyElementPresent//div[@id='hasPrincipalInvestigatorRole']/ul/li[1]/span
commentLog out
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/AddRoles/CreateTestLibrarian.html b/utilities/acceptance-tests/suites/AddRoles/CreateTestLibrarian.html new file mode 100644 index 00000000..bdca621f --- /dev/null +++ b/utilities/acceptance-tests/suites/AddRoles/CreateTestLibrarian.html @@ -0,0 +1,175 @@ + + + + + + +CreateTestLibrarian + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CreateTestLibrarian
commentAdd test Librarian named Lily Librarian
deleteAllVisibleCookies
open/vivo/
assertTitleVIVO
commentMust be logged off to start
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
commentMust login as the site admin
typeloginNametestAdmin
typeloginPasswordPassword
clickAndWaitloginForm
assertTitleVIVO Site Administration
verifyTextPresentData Input
selectVClassURIlabel=Librarian (core)
clickAndWait//input[@value='Add individual of this class']
pause10000
assertTitleIndividual Editing Form
commentAdd Associate Librarian Lily Librarian
typeNameLily Librarian
typeMonikerSelectAltAssociate Librarian
verifyTextPresentCreating New Record
clickAndWaitprimaryAction
assertTitleIndividual Control Panel
commentVerify that account was created
verifyTextPresentLily Librarian
commentLogout
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/AddRoles/DeleteTestLibrarian.html b/utilities/acceptance-tests/suites/AddRoles/DeleteTestLibrarian.html new file mode 100644 index 00000000..b35106d8 --- /dev/null +++ b/utilities/acceptance-tests/suites/AddRoles/DeleteTestLibrarian.html @@ -0,0 +1,210 @@ + + + + + + +DeleteTestLibrarian + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DeleteTestLibrarian
commentDelete test person Lily Librarian
deleteAllVisibleCookies
open/vivo/
assertTitleVIVO
commentMust not be logged in
clickAndWaitlink=Log in
assertTitleVIVO Site Administration
commentMust log in as site admin
typeloginNametestAdmin
typeloginPasswordPassword
clickAndWaitloginForm
assertTitleVIVO Site Administration
commentNavigate to Lily Librarian
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
clickAndWaitlink=Librarian
assertTitleLibrarian
clickAndWaitlink=Lily Librarian
assertTitleLily Librarian
clickAndWaitlink=edit this individual
commentDelete Lily Librarian
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.
waitForPageToLoad5000
assertTitleVIVO Site Administration
commentVerify that Lily Librarian is indeed gone
clickAndWaitlink=Index
assertTitleIndex to VIVO Contents
verifyTextNotPresentLibrarian
commentLogout
clickAndWaitlink=Log out
assertTitleVIVO
+ + diff --git a/utilities/acceptance-tests/suites/AddRoles/suite.html b/utilities/acceptance-tests/suites/AddRoles/suite.html index 48566cd1..ed413c69 100644 --- a/utilities/acceptance-tests/suites/AddRoles/suite.html +++ b/utilities/acceptance-tests/suites/AddRoles/suite.html @@ -11,6 +11,8 @@ CreateTestFacultyMember CreateTestLibrarian +AddFacultyMemberRoles1 VerifyAllRolesSearchable DeleteTestFacultyMember