diff --git a/utilities/acceptance-tests/suites/CustomAwardsForm/AddAwards.html b/utilities/acceptance-tests/suites/CustomAwardsForm/AddAwards.html new file mode 100644 index 00000000..cb5003bf --- /dev/null +++ b/utilities/acceptance-tests/suites/CustomAwardsForm/AddAwards.html @@ -0,0 +1,429 @@ + + + +
+ + +AddPositions | ||
comment | +Validate this form and add awards | ++ |
deleteAllVisibleCookies | ++ | + |
setTimeout | +100000 | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must log in as site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
comment | +Navigate to test faculty member via Index | ++ |
clickAndWait | +link=Index | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Faculty, Jane | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Select awards editing | ++ |
clickAndWait | +css=a.add-awardOrHonor > img.add-individual | ++ |
assertTitle | +VIVO | ++ |
+ | + | + |
comment | +Cancel without adding anything | ++ |
clickAndWait | +link=Cancel | ++ |
clickAndWait | +//section[@id='individual-info']/header/h2/a/img | ++ |
assertTitle | +Edit | ++ |
comment | +Add only organization name, which results in error | ++ |
select | +typeSelector | +label=College | +
type | +id=orgLabel | +Carroll College | +
clickAndWait | +submit | ++ |
assertTitle | +Edit | ++ |
verifyTextPresent | +Please enter a value in the Position Title field. | ++ |
verifyTextPresent | +Please select a value in the Position Type field. | ++ |
comment | +Add position title, but leave position type and start year blank | ++ |
type | +positionTitle | +Lecturer | +
clickAndWait | +submit | ++ |
assertTitle | +Edit | ++ |
verifyTextPresent | +Please select a value in the Position Type field. | ++ |
comment | +Enter in all fields except for end year | ++ |
select | +positionType | +label=Faculty Administrative Position | +
type | +startField-year | +1971 | +
type | +endField-year | ++ |
clickAndWait | +submit | ++ |
comment | +Verify first position is listed properly | ++ |
assertTitle | +Faculty, Jane | ++ |
verifyTextPresent | +Lecturer, Carroll College 1971 - | ++ |
comment | +Add second position using same organization | ++ |
clickAndWait | +//section[@id='individual-info']/header/h2/a/img | ++ |
assertTitle | +Edit | ++ |
select | +typeSelector | +label=University | +
type | +id=orgLabel | +Carroll University | +
type | +positionTitle | +Assistant Professor | +
select | +positionType | +label=Faculty Position | +
type | +startField-year | +1981 | +
type | +endField-year | +1985 | +
clickAndWait | +submit | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Verify both positions are listed properly | ++ |
verifyTextPresent | +Lecturer, Carroll College 1971 - | ++ |
verifyTextPresent | +Assistant Professor, Carroll University 1981 - 1985 | ++ |
comment | +Add third position using new organization | ++ |
clickAndWait | +//section[@id='individual-info']/header/h2/a/img | ++ |
assertTitle | +Edit | ++ |
select | +typeSelector | +label=University | +
type | +id=orgLabel | +Cornell University | +
type | +positionTitle | +Assistant Professor | +
select | +positionType | +label=Faculty Position | +
type | +startField-year | +1986 | +
type | +endField-year | +2010 | +
clickAndWait | +submit | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Verify all three positions show up | ++ |
verifyTextPresent | +Lecturer, Carroll College 1971 - | ++ |
verifyTextPresent | +Assistant Professor, Cornell University 1986 - 2010 | ++ |
verifyTextPresent | +Assistant Professor, Carroll University 1981 - 1985 | ++ |
comment | +Log out | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
ChangePositions | ||
comment | +Change 3 existing positions | ++ |
deleteAllVisibleCookies | ++ | + |
setTimeout | +100000 | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must login as site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
comment | +Navigate to test faculty member | ++ |
clickAndWait | +link=Index | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Faculty, Jane | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Verify position to be changed exisit | ++ |
verifyTextPresent | +Lecturer, Carroll College 1971 - | ++ |
verifyTextPresent | +Assistant Professor, Cornell University 1986 - 2010 | ++ |
verifyTextPresent | +Assistant Professor, Carroll University 1981 - 1985 | ++ |
comment | +Correct the dates of the Carroll College position | ++ |
clickAndWait | +//section[@id='individual-info']/header/ul/li[1]/a[2]/img | ++ |
assertTitle | +Edit | ++ |
type | +startField-year | +1977 | +
type | +endField-year | +1981 | +
clickAndWait | +submit | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
comment | +Verify positions are still listed correctly | ++ |
assertTitle | +Faculty, Jane | ++ |
verifyTextPresent | +Assistant Professor, Cornell University 1986 - 2010 | ++ |
verifyTextPresent | +Assistant Professor, Carroll University 1981 - 1985 | ++ |
verifyTextPresent | +Lecturer, Carroll College 1977 - 1981 | ++ |
comment | +Change the title for Carroll University position | ++ |
clickAndWait | +//section[@id='individual-info']/header/ul/li[2]/a[2]/img | ++ |
assertTitle | +Edit | ++ |
type | +positionTitle | +Associate Professor | +
clickAndWait | +submit | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
comment | +Verify positions are still listed correctly | ++ |
assertTitle | +Faculty, Jane | ++ |
verifyTextPresent | +Assistant Professor, Cornell University 1986 - 2010 | ++ |
verifyTextPresent | +Associate Professor, Carroll University 1981 - 1985 | ++ |
verifyTextPresent | +Lecturer, Carroll College 1977 - 1981 | ++ |
comment | +Change the title for Cornell University position | ++ |
clickAndWait | +//section[@id='individual-info']/header/ul/li[1]/a[2]/img | ++ |
assertTitle | +Edit | ++ |
type | +positionTitle | +Professor | +
type | +endField-year | ++ |
clickAndWait | +submit | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
comment | +Verify positions are still listed correctly | ++ |
assertTitle | +Faculty, Jane | ++ |
verifyTextPresent | +Professor, Cornell University 1986 - | ++ |
verifyTextPresent | +Associate Professor, Carroll University 1981 - 1985 | ++ |
verifyTextPresent | +Lecturer, Carroll College 1977 - 1981 | ++ |
comment | +Log out | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
CheckIndexView | ||
comment | +Verify index entries | ++ |
deleteAllVisibleCookies | ++ | + |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Don't login | ++ |
comment | +Navigate to Index | ++ |
clickAndWait | +link=Index | ++ |
comment | +Verify all 3 organization entries appear properly | ++ |
verifyElementPresent | +link=College | ++ |
verifyTextPresent | +College (1) | ++ |
verifyElementPresent | +link=Organization | ++ |
verifyTextPresent | +Organization (3) | ++ |
verifyElementPresent | +link=University | ++ |
verifyTextPresent | +University (2) | ++ |
comment | +Go back to the beginning | ++ |
clickAndWait | +link=Home | ++ |
assertTitle | +VIVO | ++ |
CheckPublicView | ||
comment | +Verify public view of Jane Faculty's positions | ++ |
deleteAllVisibleCookies | ++ | + |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Don't login | ++ |
comment | +Navigate to Jane Faculty | ++ |
clickAndWait | +link=Index | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Faculty, Jane | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Verify all 3 positions appear properly | ++ |
verifyTextPresent | +Positions | ++ |
verifyTextPresent | +Professor, Cornell University 1986 - | ++ |
verifyTextPresent | +Associate Professor, Carroll University 1981 - 1985 | ++ |
verifyTextPresent | +Lecturer, Carroll College 1977 - 1981 | ++ |
comment | +Go back to the beginning | ++ |
clickAndWait | +link=Home | ++ |
assertTitle | +VIVO | ++ |
CreateTestFacultyMember | ||
comment | +Add test Faculty member named Jane Faculty | ++ |
deleteAllVisibleCookies | ++ | + |
setTimeout | +10000000 | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must be logged off to start | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must login as the site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
verifyTextPresent | +Data Input | ++ |
select | +VClassURI | +label=Faculty Member (vivo) | +
clickAndWait | +//input[@value='Add individual of this class'] | ++ |
assertTitle | +Edit | ++ |
comment | +Add Jane Faculty | ++ |
type | +firstName | +Jane | +
type | +lastName | +Faculty | +
clickAndWait | +submit | ++ |
comment | +Edit Jane Faculty to add title | ++ |
assertTitle | +Faculty, Jane | ++ |
assertTextPresent | +Faculty Member | ++ |
clickAndWait | +css=a.add-preferredTitle > img.add-individual | ++ |
assertTitle | +Edit | ++ |
verifyTextPresent | +Add new entry for: preferred title | ++ |
waitForElementPresent | +tinymce | ++ |
type | +tinymce | +Assistant Professor | +
clickAndWait | +submit | ++ |
assertTitle | +Faculty, Jane | ++ |
assertTextPresent | +Assistant Professor | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
DeletePositions | ||
comment | +Delete all positions setup for test faculty member | ++ |
deleteAllVisibleCookies | ++ | + |
setTimeout | +200000 | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must log in as site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
comment | +Navigate to test faculty member | ++ |
clickAndWait | +link=Index | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Faculty, Jane | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Delete positions one at a time | ++ |
clickAndWait | +css=a.delete-personInPosition > img.delete-individual | ++ |
assertTitle | +Edit | ++ |
clickAndWait | +submit | ++ |
assertTitle | +Faculty, Jane | ++ |
clickAndWait | +css=a.delete-personInPosition > img.delete-individual | ++ |
assertTitle | +Edit | ++ |
clickAndWait | +submit | ++ |
assertTitle | +Faculty, Jane | ++ |
clickAndWait | +css=a.delete-personInPosition > img.delete-individual | ++ |
assertTitle | +Edit | ++ |
clickAndWait | +submit | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Delete organizations one at a time | ++ |
clickAndWait | +link=Index | ++ |
clickAndWait | +link=College | ++ |
assertTitle | +College | ++ |
clickAndWait | +link=Carroll College | ++ |
assertTitle | +Carroll College | ++ |
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 | +10000 | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=Index | ++ |
clickAndWait | +link=Organization | ++ |
assertTitle | +Organization | ++ |
clickAndWait | +link=Carroll University | ++ |
assertTitle | +Carroll University | ++ |
clickAndWait | +link=Edit this individual | ++ |
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 | +10000 | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=Index | ++ |
clickAndWait | +link=Organization | ++ |
assertTitle | +Organization | ++ |
clickAndWait | +link=Cornell University | ++ |
assertTitle | +Cornell University | ++ |
clickAndWait | +link=Edit this individual | ++ |
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 | +10000 | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=Index | ++ |
refreshAndWait | +10000 | ++ |
verifyElementNotPresent | +Organizations | ++ |
comment | +Log out | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
DeleteTestFacultyMember | ||
comment | +Delete test person Jane Faculty | ++ |
deleteAllVisibleCookies | ++ | + |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
comment | +Must log in as site admin | ++ |
type | +loginName | +testAdmin@cornell.edu | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
comment | +Navigate to Jane Faculty | ++ |
clickAndWait | +link=Index | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Faculty, Jane | ++ |
assertTitle | +Faculty, Jane | ++ |
clickAndWait | +link=Edit this individual | ++ |
comment | +Delete Jane Faculty | ++ |
clickAndWait | +//input[@value="Edit This Individual"] | ++ |
assertTitle | +Individual Editing Form | ++ |
clickAndWait | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this individual? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +10000 | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Verify that Jane Faculty is indeed gone | ++ |
clickAndWait | +link=Index | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
verifyTextNotPresent | +Faculty Member | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
RebuildSearchIndex | ||
comment | +Rebuild Search Index | ++ |
deleteAllVisibleCookies | ++ | + |
setTimeout | +100000000000 | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +Log in to VIVO | ++ |
type | +id=loginName | +testAdmin@cornell.edu | +
type | +id=loginPassword | +Password | +
clickAndWait | +name=loginForm | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=Rebuild search index | ++ |
assertTitle | +Rebuild Search Index | ++ |
clickAndWait | +name=rebuild | ++ |
assertTitle | +Rebuild Search Index | ++ |
waitForTextPresent | +Reset the search index and re-populate it. | ++ |
clickAndWait | +link=Log out | ++ |
SearchPositions | ||
comment | +Search for positions and organizations | ++ |
deleteAllVisibleCookies | ++ | + |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Search for lecturer | ++ |
type | +querytext | +lecturer | +
clickAndWait | +//input[@value='Search'] | ++ |
assertTitle | +lecturer - VIVO Search Results | ++ |
verifyTextPresent | +Search results for 'lecturer' | ++ |
verifyElementPresent | +link=people | ++ |
verifyElementPresent | +link=organizations | ++ |
verifyElementPresent | +link=Carroll College | ++ |
verifyTextPresent | +College | ++ |
verifyElementPresent | +link=Faculty, Jane | ++ |
verifyTextPresent | +Assistant Professor | ++ |
comment | +Search for professor, which should bring up Assistant Professor and Professor | ++ |
type | +querytext | +professor | +
clickAndWait | +//input[@value='Search'] | ++ |
assertTitle | +professor - VIVO Search Results | ++ |
verifyTextPresent | +Search results for 'professor' | ++ |
verifyElementPresent | +link=people | ++ |
verifyElementPresent | +link=organizations | ++ |
verifyElementPresent | +link=Faculty, Jane | ++ |
verifyTextPresent | +Assistant Professor | ++ |
verifyElementPresent | +link=Carroll University | ++ |
verifyTextPresent | +University | ++ |
verifyElementPresent | +link=Cornell University | ++ |
verifyTextPresent | +University | ++ |
comment | +Search for Carroll, which should bring up 2 organizations | ++ |
type | +querytext | +carroll | +
clickAndWait | +//input[@value='Search'] | ++ |
assertTitle | +carroll - VIVO Search Results | ++ |
verifyTextPresent | +Search results for 'carroll' | ++ |
verifyElementPresent | +link=people | ++ |
verifyElementPresent | +link=organizations | ++ |
verifyElementPresent | +link=Carroll College | ++ |
verifyTextPresent | +College | ++ |
verifyElementPresent | +link=Carroll University | ++ |
verifyTextPresent | +University | ++ |
verifyElementPresent | +link=Faculty, Jane | ++ |
verifyTextPresent | +Assistant Professor | ++ |
comment | +Link to Carroll College to verify Jane Faculty is not listed | ++ |
clickAndWait | +link=Carroll College | ++ |
assertTitle | +Carroll College | ++ |
verifyElementNotPresent | +link=Faculty, Jane | ++ |
verifyTextNotPresent | +Faculty, Jane, Lecturer 1977 - 1981 | ++ |
comment | +Search for university to find both Carroll and Cornell | ++ |
type | +querytext | +university | +
clickAndWait | +//input[@value='Search'] | ++ |
assertTitle | +university - VIVO Search Results | ++ |
verifyTextPresent | +Search results for 'university' | ++ |
verifyElementPresent | +link=people | ++ |
verifyElementPresent | +link=organizations | ++ |
verifyElementPresent | +link=Cornell University | ++ |
verifyTextPresent | +University | ++ |
verifyElementPresent | +link=Carroll University | ++ |
verifyTextPresent | +University | ++ |
comment | +Make sure Jane Faculty is associated with Carroll and Cornell | ++ |
clickAndWait | +link=Carroll University | ++ |
assertTitle | +Carroll University | ++ |
verifyElementNotPresent | +link=Faculty, Jane | ++ |
verifyTextNotPresent | +Faculty, Jane, Lecturer 1977 - 1981 | ++ |
type | +querytext | +university | +
clickAndWait | +//input[@value='Search'] | ++ |
clickAndWait | +link=Cornell University | ++ |
assertTitle | +Cornell University | ++ |
verifyTextPresent | +Affiliation | ++ |
verifyTextPresent | +people | ++ |
verifyTextPresent | +faculty position | ++ |
verifyElementPresent | +link=Faculty, Jane | ++ |
verifyTextPresent | +Faculty, Jane, Professor 1986 - | ++ |
comment | +Go to home page | ++ |
clickAndWait | +link=Home | ++ |
assertTitle | +VIVO | ++ |
Test Suite |
RebuildSearchIndex |
CreateTestFacultyMember |
AddAwards |
ChangeAwards |
SearchAwards |
CheckPublicView |
CheckIndexView |
DeleteAwards |
DeleteTestFacultyMember |