diff --git a/utilities/acceptance-tests/suites/AddRoles/AddLibrarianRoles1 b/utilities/acceptance-tests/suites/AddRoles/AddLibrarianRoles1 index a421094c..06ab0f30 100644 --- a/utilities/acceptance-tests/suites/AddRoles/AddLibrarianRoles1 +++ b/utilities/acceptance-tests/suites/AddRoles/AddLibrarianRoles1 @@ -201,7 +201,7 @@ verifyTextPresent - Year + Year @@ -461,7 +461,7 @@ comment - Add presentation correctly + Add presentation type of invited talk @@ -541,7 +541,7 @@ comment - Navigate back to Jane Faculty + Navigate back to Lily Librarian @@ -609,6 +609,516 @@ //div[@id='hasPresenterRole']/ul/li/span + + comment + Add service to the profession - college + + + + clickAndWait + //div[@id='hasServiceProviderRole']/a + + + + assertTitle + Edit + + + + verifyTextPresent + Create a new service to the profession entry for Librarian, Lily + + + + verifyTextPresent + Service to the Profession Type + + + + select + typeSelector + label=College + + + verifyTextPresent + College Name + + + + verifyTextPresent + Role in College + + + + verifyTextPresent + Years of Participation in College + + + + verifyTextPresent + Start Year + + + + verifyTextPresent + End Year + + + + type + relatedIndLabel + Carroll College + + + type + newIndLabel + Consultant + + + type + startYear + 2010 + + + clickAndWait + submit + + + + assertTitle + Carroll College + + + + comment + Navigate back to Lily Librarian + + + + clickAndWait + link=Index + + + + assertTitle + Index to VIVO Contents + + + + clickAndWait + link=Librarian + + + + assertTitle + Librarian + + + + clickAndWait + link=Librarian, Lily + + + + assertTitle + Librarian, Lily + + + + comment + Add service to the profession - college + + + + clickAndWait + //div[@id='hasServiceProviderRole']/a + + + + assertTitle + Edit + + + + verifyTextPresent + Create a new service to the profession entry for Librarian, Lily + + + + verifyTextPresent + Service to the Profession Type + + + + select + typeSelector + label=Museum + + + verifyTextPresent + Museum Name + + + + verifyTextPresent + Role in Museum + + + + verifyTextPresent + Years of Participation in Museum + + + + verifyTextPresent + Start Year + + + + verifyTextPresent + End Year + + + + type + relatedIndLabel + Primates of the World + + + type + newIndLabel + Librarian + + + type + newIndLabel + Board + + + type + startYear + 2001 + + + type + endYear + 2003 + + + clickAndWait + submit + + + + assertTitle + Primates of the World + + + + comment + Navigate back to Lily Librarian + + + + clickAndWait + link=Index + + + + assertTitle + Index to VIVO Contents + + + + clickAndWait + link=Librarian + + + + assertTitle + Librarian + + + + clickAndWait + link=Librarian, Lily + + + + assertTitle + Librarian, Lily + + + + comment + Verify that service to the profession displays + + + + verifyTextPresent + Primates of the World + + + + verifyTextPresent + Board 2001 - 2003 + + + + verifyElementPresent + //div[@id='hasServiceProviderRole']/ul/li[1]/span + + + + verifyTextPresent + Carroll College + + + + verifyTextPresent + Consultant 2010 - + + + + verifyElementPresent + //div[@id='hasServiceProviderRole']/ul/li[2]/span + + + + comment + Add outreach and community service - committee + + + + clickAndWait + //div[@id='hasOutreachProviderRole']/a + + + + assertTitle + Edit + + + + verifyTextPresent + Create a new outreach & community service entry for Librarian, Lily + + + + verifyTextPresent + Outreach & Community Service Type + + + + select + typeSelector + label=Committee + + + verifyTextPresent + Committee Name + + + + verifyTextPresent + Role in Committee + + + + verifyTextPresent + Years of Participation in Committee + + + + verifyTextPresent + Start Year + + + + verifyTextPresent + End Year + + + + type + relatedIndLabel + Librarians for the Better Treatment of Primates + + + type + newIndLabel + Chair + + + type + startYear + 2009 + + + clickAndWait + submit + + + + assertTitle + Librarians for the Better Treatment of Primates + + + + comment + Navigate back to Lily Librarian + + + + clickAndWait + link=Index + + + + assertTitle + Index to VIVO Contents + + + + clickAndWait + link=Librarian + + + + assertTitle + Librarian + + + + clickAndWait + link=Librarian, Lily + + + + assertTitle + Librarian, Lily + + + + comment + Add outreach and community service - event + + + + clickAndWait + //div[@id='hasOutreachProviderRole']/a + + + + assertTitle + Edit + + + + verifyTextPresent + Create a new outreach & community service entry for Librarian, Lily + + + + verifyTextPresent + Outreach & Community Service Type + + + + select + typeSelector + label=Event + + + verifyTextPresent + Event Name + + + + verifyTextPresent + Role in Event + + + + verifyTextPresent + Years of Participation in Event + + + + verifyTextPresent + Start Year + + + + verifyTextPresent + End Year + + + + type + relatedIndLabel + Show Me the Primates! + + + type + newIndLabel + Booth + + + type + startYear + 2001 + + + type + endYear + 2001 + + + clickAndWait + submit + + + + assertTitle + Show Me the Primates! + + + + comment + Verify outreach and community service display + + + + verifyTextPresent + Show Me the Primates! + + + + verifyTextPresent + Booth 2001 + + + + verifyElementPresent + //div[@id='hasOutreachProviderRole']/ul/li[1]/span + + + + verifyElementPresent + link=Librarians for the Better Treatment of Primates + + + + verifyTextPresent + Chair 2009 - + + + + verifyElementPresent + //div[@id='hasOutreachProviderRole']/ul/li[2]/span + + comment Log out diff --git a/utilities/acceptance-tests/suites/AddRoles/AddLibrarianRoles2 b/utilities/acceptance-tests/suites/AddRoles/AddLibrarianRoles2 index 948e581a..6ac8c439 100644 --- a/utilities/acceptance-tests/suites/AddRoles/AddLibrarianRoles2 +++ b/utilities/acceptance-tests/suites/AddRoles/AddLibrarianRoles2 @@ -31,7 +31,7 @@ comment - Add 3 roles for Lily Librarian + Add head of and member of roles for Lily Librarian @@ -91,7 +91,7 @@ comment - Navigate to Jane Faculty + Navigate to Lily Librarian @@ -124,6 +124,266 @@ Librarian, Lily + + comment + Add Head of role + + + + clickAndWait + //div[@id='hasLeaderRole']/a + + + + assertTitle + Edit + + + + verifyTextPresent + Create a new head of entry for Librarian, Lily + + + + verifyTextPresent + Head Of Type + + + + select + typeSelector + label=Department + + + verifyTextPresent + Department Name + + + + verifyTextPresent + Role in Department + + + + verifyTextPresent + Years of Participation in Department + + + + verifyTextPresent + Start Year + + + + verifyTextPresent + End Year + + + + type + relatedIndLabel + Reference Division + + + type + newIndLabel + Head Librarian + + + type + startYear + 2009 + + + clickAndWait + submit + + + + assertTitle + Reference Division + + + + comment + Navigate back to Lily Librarian + + + + clickAndWait + link=Index + + + + assertTitle + Index to VIVO Contents + + + + clickAndWait + link=Librarian + + + + assertTitle + Librarian + + + + clickAndWait + link=Librarian, Lily + + + + assertTitle + Librarian, Lily + + + + comment + Add Member of role + + + + clickAndWait + //div[@id='hasMemberRole']/a + + + + assertTitle + Edit + + + + verifyTextPresent + Create a new membership entry for Librarian, Lily + + + + verifyTextPresent + Membership Type + + + + select + typeSelector + label=Association + + + verifyTextPresent + Association Name + + + + verifyTextPresent + Role in Association + + + + verifyTextPresent + Years of Participation in Association + + + + verifyTextPresent + Start Year + + + + verifyTextPresent + End Year + + + + type + relatedIndLabel + Amercian Library Association + + + type + newIndLabel + Member + + + type + startYear + 1988 + + + clickAndWait + submit + + + + assertTitle + Amercian Library Association + + + + comment + Navigate back to Lily Librarian + + + + clickAndWait + link=Index + + + + assertTitle + Index to VIVO Contents + + + + clickAndWait + link=Librarian + + + + assertTitle + Librarian + + + + clickAndWait + link=Librarian, Lily + + + + assertTitle + Librarian, Lily + + + + comment + Cerify Head of and Member of roles display + + + + verifyTextPresent + Reference Division + + + + verifyTextPresent + Head Librarian 2009 - + + + + open + /vivo/display/n881 + + + + verifyTextPresent + Member 1988 - + + + + verifyElementPresent + //div[@id='hasMemberRole']/ul/li/span + + comment Log out