From 1a6e77dd7feb4832cda519feed652f438ee505b1 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 10 Mar 2015 14:25:19 -0400 Subject: [PATCH] Holly added a new test suite. --- .../SearchTextDiscovery/DeleteStuff.html | 180 +-- .../SearchTextDiscovery/TextDiscovery.html | 1251 +++++++++++++++-- 2 files changed, 1135 insertions(+), 296 deletions(-) diff --git a/utilities/acceptance-tests/suites/SearchTextDiscovery/DeleteStuff.html b/utilities/acceptance-tests/suites/SearchTextDiscovery/DeleteStuff.html index 5f061436..f15b7ddb 100644 --- a/utilities/acceptance-tests/suites/SearchTextDiscovery/DeleteStuff.html +++ b/utilities/acceptance-tests/suites/SearchTextDiscovery/DeleteStuff.html @@ -11,7 +11,7 @@ DeleteMuseum - + deleteAllVisibleCookies @@ -70,183 +70,7 @@ link=Index - - clickAndWait - link=Museum - - - - assertTitle - Museum - - - - clickAndWait - link=Johnson Art Museum - - - - assertTitle - Johnson Art Museum - - - - 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 individual? If in doubt, CANCEL. - - - - waitForPageToLoad - 5000 - - - - assertTitle - VIVO Site Administration - - - - clickAndWait - link=Index - - - - pause - 50000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - - verifyTextNotPresent - Museum - - + clickAndWait diff --git a/utilities/acceptance-tests/suites/SearchTextDiscovery/TextDiscovery.html b/utilities/acceptance-tests/suites/SearchTextDiscovery/TextDiscovery.html index 5f061436..4c1a67b5 100644 --- a/utilities/acceptance-tests/suites/SearchTextDiscovery/TextDiscovery.html +++ b/utilities/acceptance-tests/suites/SearchTextDiscovery/TextDiscovery.html @@ -11,7 +11,7 @@ DeleteMuseum - + deleteAllVisibleCookies @@ -64,30 +64,1122 @@ VIVO - + - clickAndWait - link=Index + selectWindow + null clickAndWait - link=Museum + link=Site Admin assertTitle - Museum + VIVO Site Administration + + select + id=VClassURI + label=Person (foaf) + clickAndWait - link=Johnson Art Museum + id=submit assertTitle - Johnson Art Museum + Edit + + + + type + id=firstName + Able + + + type + id=lastName + Baker + + + clickAndWait + id=submit + + + + assertTitle + Baker, Able + + + + verifyText + css=span.fn + Baker, Able + + + verifyText + css=span.display-title + Person + + + pause + 5000 + + + + type + name=querytext + baker + + + clickAndWait + css=input.search + + + + assertTitle + baker - VIVO Search Results + + + + verifyText + css=h2.searchResultsHeader + Search results for 'baker' + + + verifyElementPresent + link=people + + + + verifyElementPresent + link=Baker, Able + + + + verifyText + css=span.display-title + Person + + + + clickAndWait + link=Baker, Able + + + + assertTitle + Baker, Able + + + + clickAndWait + css=a.add-overview > img.add-individual + + + + assertTitle + Edit + + + + clickAndWait + id=submit + + + + assertTitle + Baker, Able + + + + verifyText + css=span.fn + Baker, Able + + + verifyText + css=span.display-title + Person + + + verifyText + css=div.overview-value + seeker of truth + + + pause + 5000 + + + + type + name=querytext + seeker + + + clickAndWait + css=input.search + + + + assertTitle + seeker - VIVO Search Results + + + + verifyText + css=h2.searchResultsHeader + Search results for 'seeker' + + + verifyElementPresent + link=people + + + + verifyElementPresent + link=Baker, Able + + + + verifyText + css=span.display-title + Person + + + verifyText + css=p.snippet + ... seeker of truth ... + + + + clickAndWait + link=Baker, Able + + + + assertTitle + Baker, Able + + + + clickAndWait + css=header > #ARG_2000028 > a.add-ARG_2000028 > img.add-individual + + + + assertTitle + Edit + + + + type + id=preferredTitle + Honcho + + + clickAndWait + id=submit + + + + assertTitle + Baker, Able + + + + verifyText + css=span.fn + Baker, Able + + + verifyText + css=span.display-title-editable + Honcho + + + verifyText + css=div.overview-value + seeker of truth + + + pause + 5000 + + + + type + name=querytext + Honcho + + + clickAndWait + css=input.search + + + + assertTitle + Honcho - VIVO Search Results + + + + verifyText + css=h2.searchResultsHeader + Search results for 'Honcho' + + + verifyText + link=people + people + + + verifyElementPresent + link=Baker, Able + + + + verifyText + css=span.display-title + Honcho + + + verifyText + css=strong + Honcho + + + + clickAndWait + link=Baker, Able + + + + assertTitle + Baker, Able + + + + clickAndWait + css=a.add-ARG_2000028 > img.add-individual + + + + assertTitle + Edit + + + + type + id=emailAddress + abaker@mydomain.com + + + clickAndWait + id=submit + + + + assertTitle + Baker, Able + + + + verifyText + css=span.fn + Baker, Able + + + verifyText + css=span.display-title-editable + Honcho + + + verifyText + css=div.overview-value + seeker of truth + + + verifyElementPresent + link=abaker@mydomain.com + + + + pause + 5000 + + + + type + name=querytext + abaker + + + clickAndWait + css=input.search + + + + assertTitle + abaker - VIVO Search Results + + + + verifyText + css=h2.searchResultsHeader + Search results for 'abaker' + + + verifyElementPresent + link=people + + + + verifyElementPresent + link=Baker, Able + + + + verifyText + css=span.display-title + Honcho + + + verifyText + css=p.snippet + ... [abaker@mydomain.com] ... + + + + clickAndWait + link=Baker, Able + + + + assertTitle + Baker, Able + + + + clickAndWait + css=a.add-geographicFocus > img.add-individual + + + + assertTitle + Edit + + + + clickAndWait + id=offerCreate + + + + assertTitle + Edit + + + + type + id=label + Atlantis + + + clickAndWait + id=submit + + + + assertTitle + Baker, Able + + + + verifyText + css=span.fn + Baker, Able + + + verifyText + css=span.display-title-editable + Honcho + + + verifyText + css=div.overview-value + seeker of truth + + + verifyElementPresent + link=Atlantis + + + + verifyText + css=#individual-hasResearchArea > li + Atlantis  Continent + + + verifyElementPresent + link=abaker@mydomain.com + + + + pause + 5000 + + + + type + name=querytext + atlantis + + + clickAndWait + css=input.search + + + + assertTitle + atlantis - VIVO Search Results + + + + verifyText + css=h2.searchResultsHeader + Search results for 'atlantis' + + + verifyElementPresent + link=people + + + + verifyElementPresent + link=locations + + + + verifyElementPresent + link=Atlantis + + + + verifyText + css=span.display-title + Continent + + + verifyElementPresent + link=Baker, Able + + + + verifyText + //div[@id='wrapper-content']/div/ul/li[2]/span + Honcho + + + verifyText + css=strong + Atlantis + + + type + name=querytext + baker + + + clickAndWait + css=input.search + + + + assertTitle + baker - VIVO Search Results + + + + verifyText + css=h2.searchResultsHeader + Search results for 'baker' + + + verifyElementPresent + link=people + + + + verifyElementPresent + link=locations + + + + verifyElementPresent + link=Baker, Able + + + + verifyText + css=span.display-title + Honcho + + + verifyElementPresent + link=Atlantis + + + + verifyText + //div[@id='wrapper-content']/div/ul/li[2]/span + Continent + + + verifyText + //div[@id='wrapper-content']/div/ul/li[2]/p + ... Baker, Able ... + + + + clickAndWait + link=Baker, Able + + + + assertTitle + Baker, Able + + + + clickAndWait + xpath=(//img[@alt='add'])[8] + + + + assertTitle + Edit + + + + select + id=typeSelector + label=Department + + + type + id=activity + Advanced Tinkering + + + type + id=roleLabel + Burnisher + + + clickAndWait + id=submit + + + + assertTitle + Baker, Able + + + + verifyText + css=span.fn + Baker, Able + + + verifyText + css=span.display-title-editable + Honcho + + + verifyText + css=div.overview-value + seeker of truth + + + verifyElementPresent + link=Atlantis + + + + verifyText + css=#individual-hasResearchArea > li + Atlantis  Continent + + + verifyElementPresent + link=abaker@mydomain.com + + + + verifyElementPresent + link=Advanced Tinkering + + + + verifyText + css=#RO_0000053-MemberRole-List > li + Advanced Tinkering Burnisher + + + pause + 5000 + + + + type + name=querytext + tinkering + + + clickAndWait + css=input.search + + + + assertTitle + tinkering - VIVO Search Results + + + + verifyText + css=h2.searchResultsHeader + Search results for 'tinkering' + + + verifyElementPresent + link=people + + + + verifyElementPresent + link=organizations + + + + verifyElementPresent + link=Advanced Tinkering + + + + verifyText + css=span.display-title + Department + + + verifyElementPresent + link=Baker, Able + + + + verifyText + //div[@id='wrapper-content']/div/ul/li[2]/span + Honcho + + + verifyText + //div[@id='wrapper-content']/div/ul/li[2]/p + ... Advanced Tinkering ... + + + type + name=querytext + baker + + + clickAndWait + css=input.search + + + + assertTitle + baker - VIVO Search Results + + + + verifyText + css=h2.searchResultsHeader + Search results for 'baker' + + + verifyElementPresent + link=people + + + + verifyElementPresent + link=organizations + + + + verifyElementPresent + link=locations + + + + verifyElementPresent + link=Baker, Able + + + + verifyText + css=span.display-title + Honcho + + + verifyElementPresent + link=Advanced Tinkering + + + + verifyText + //div[@id='wrapper-content']/div/ul/li[2]/span + Department + + + verifyText + //div[@id='wrapper-content']/div/ul/li[2]/p + ... Baker, Able ... + + + verifyElementPresent + link=Atlantis + + + + verifyText + //div[@id='wrapper-content']/div/ul/li[3]/span + Continent + + + verifyText + //div[@id='wrapper-content']/div/ul/li[3]/p + ... Baker, Able ... + + + type + name=querytext + burnisher + + + clickAndWait + css=input.search + + + + assertTitle + burnisher - VIVO Search Results + + + + verifyText + css=h2.searchResultsHeader + Search results for 'burnisher' + + + verifyElementPresent + link=people + + + + verifyElementPresent + link=organizations + + + + verifyElementPresent + link=Advanced Tinkering + + + + verifyText + css=span.display-title + Department + + + verifyText + css=strong + Burnisher + + + verifyElementPresent + link=Baker, Able + + + + verifyText + //div[@id='wrapper-content']/div/ul/li[2]/span + Honcho + + + verifyText + //div[@id='wrapper-content']/div/ul/li[2]/p/strong + Burnisher + + + + clickAndWait + link=Baker, Able + + + + assertTitle + Baker, Able + + + + click + css=li.nonSelectedGroupTab.clickable + + + + clickAndWait + css=#relatedBy-Authorship > a.add-relatedBy > img.add-individual + + + + assertTitle + Edit + + + + select + id=typeSelector + label=Academic Article + + + click + css=option[value="http://purl.org/ontology/bibo/AcademicArticle"] + + + + type + id=title + Thoughts + + + clickAndWait + id=submit + + + + assertTitle + Baker, Able + + + + verifyText + css=span.fn + Baker, Able + + + verifyText + css=span.display-title-editable + Honcho + + + verifyText + css=div.overview-value + seeker of truth + + + verifyElementPresent + link=Atlantis + + + + verifyText + css=#individual-hasResearchArea > li + Atlantis  Continent + + + verifyElementPresent + link=abaker@mydomain.com + + + + verifyText + css=li.subclass > h3 + academic article + + + verifyElementPresent + link=Thoughts + + + + pause + 5000 + + + + type + name=querytext + thoughts + + + clickAndWait + css=input.search + + + + assertTitle + thoughts - VIVO Search Results + + + + verifyText + css=h2.searchResultsHeader + Search results for 'thoughts' + + + verifyElementPresent + link=people + + + + verifyElementPresent + link=research + + + + verifyElementPresent + link=Thoughts + + + + verifyText + css=span.display-title + Academic Article + + + verifyElementPresent + link=Baker, Able + + + + verifyText + //div[@id='wrapper-content']/div/ul/li[2]/span + Honcho + + + verifyText + css=strong + Thoughts + + + type + name=querytext + baker + + + clickAndWait + css=input.search + + + + assertTitle + baker - VIVO Search Results + + + + verifyText + css=h2.searchResultsHeader + Search results for 'baker' + + + verifyElementPresent + link=people + + + + verifyElementPresent + link=organizations + + + + verifyElementPresent + link=research + + + + verifyElementPresent + link=locations + + + + verifyElementPresent + link=Baker, Able + + + + verifyText + css=span.display-title + Honcho + + + verifyElementPresent + link=Advanced Tinkering + + + + verifyText + //div[@id='wrapper-content']/div/ul/li[2]/span + Department + + + verifyText + css=strong + Baker + + + verifyElementPresent + link=Thoughts + + + + verifyText + //div[@id='wrapper-content']/div/ul/li[3]/span + Academic Article + + + verifyText + //div[@id='wrapper-content']/div/ul/li[3]/p + ... Baker, Able ... + + + verifyElementPresent + link=Atlantis + + + + verifyText + //div[@id='wrapper-content']/div/ul/li[4]/span + Continent + + + verifyText + //div[@id='wrapper-content']/div/ul/li[4]/p/strong + Baker + + + + clickAndWait + link=Atlantis + + + + assertTitle + Atlantis @@ -100,10 +1192,9 @@ Individual Control Panel - clickAndWait - //input[@value="Edit This Individual"] + //input[@value='Edit This Individual'] @@ -112,141 +1203,65 @@ - click - _delete - + type + name=Name + Lemuria - assertConfirmation - Are you SURE you want to delete this individual? If in doubt, CANCEL. - - - - waitForPageToLoad - 5000 + clickAndWait + id=primaryAction assertTitle - VIVO Site Administration - - - - clickAndWait - link=Index + Individual Control Panel pause - 50000 + 5000 + + + + + type + name=querytext + Atlantis + + + clickAndWait + css=input.search - refreshAndWait - 10000 + assertTitle + Atlantis - VIVO Search Results - refreshAndWait - 10000 + verifyElementNotPresent + link=Atlantis - refreshAndWait - 10000 + verifyElementNotPresent + link=Baker, Able + - refreshAndWait - 10000 + + + - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - refreshAndWait - 10000 - - - - - verifyTextNotPresent - Museum + + + + clickAndWait