diff --git a/utilities/acceptance-tests/suites/CustomPositionsForm/AddPositions.html b/utilities/acceptance-tests/suites/CustomPositionsForm/AddPositions.html new file mode 100644 index 00000000..178cfc59 --- /dev/null +++ b/utilities/acceptance-tests/suites/CustomPositionsForm/AddPositions.html @@ -0,0 +1,530 @@ + + + +
+ + +AddPositions | ||
comment | +Validate this form and add positions | ++ |
deleteAllVisibleCookies | ++ | + |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
clickAndWait | +link=Log in | ++ |
comment | +Must log in as site admin | ++ |
type | +username | +testAdmin | +
type | +password | +Password | +
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to test faculty member via Index | ++ |
clickAndWait | +link=Index | ++ |
assertTitle | +Index to VIVO Contents | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Jane Faculty | ++ |
assertTitle | +Jane Faculty | ++ |
comment | +Select positions editing | ++ |
clickAndWait | +//div[@id='oprop-core-personInPosition']/a | ++ |
assertTitle | +Edit | ++ |
verifyTextPresent | +If your organization is not listed, please add a new organization. | ++ |
comment | +Cancel without adding anything | ++ |
click | +link=Cancel | ++ |
pause | +50000 | ++ |
clickAndWait | +//div[@id='oprop-core-personInPosition']/a | ++ |
assertTitle | +Edit | ++ |
comment | +Elect to add a new organization | ++ |
click | +link=add a new organization | ++ |
comment | +Add only organization name, which results in error | ++ |
type | +newOrgName | +Carroll College | +
clickAndWait | +submit | ++ |
assertTitle | +Edit | ++ |
verifyTextPresent | +Must select a type for the new organization. | ++ |
verifyTextPresent | +This field must not be empty. | ++ |
comment | +Add only organization name and type, which results in error | ++ |
type | +newOrgName | +Carroll College | +
select | +newOrgType | +label=College | +
clickAndWait | +submit | ++ |
assertTitle | +Edit | ++ |
verifyTextPresent | +This field must not be empty. | ++ |
comment | +Add position title, but leave position type and start year blank | ++ |
type | +newOrgName | +Carroll College | +
select | +newOrgType | +label=College | +
type | +title | +Lecturer | +
click | +submit | ++ |
pause | +50000 | ++ |
verifyTextPresent | +This field must not be empty. | ++ |
assertTitle | +Edit | ++ |
comment | +Enter all required fields except start year | ++ |
type | +newOrgName | +Carroll College | +
select | +newOrgType | +label=College | +
select | +positionType | +label=Faculty Administrative Position | +
type | +title | +Lecturer | +
clickAndWait | +submit | ++ |
assertTitle | +Edit | ++ |
verifyTextPresent | +This field must not be empty. | ++ |
comment | +Enter in all fields, with invalid start year | ++ |
type | +startYear | +9999 | +
click | +submit | ++ |
pause | +50000 | ++ |
comment | +Verify first position is listed properly | ++ |
assertTitle | +Jane Faculty | ++ |
verifyTextPresent | +Carroll College Lecturer, 9999 - | ++ |
comment | +Add second position using same organization | ++ |
clickAndWait | +//div[@id='oprop-core-personInPosition']/a | ++ |
assertTitle | +Edit | ++ |
select | +organizationUri | +label=Carroll College | +
type | +title | +Assistant Professor | +
select | +positionType | +label=Faculty Position | +
type | +startYear | +1981 | +
type | +endYear | +1985 | +
click | +submit | ++ |
pause | +50000 | ++ |
assertTitle | +Jane Faculty | ++ |
comment | +Verify both positions are listed properly | ++ |
verifyTextPresent | +Carroll College Lecturer, 9999 - | ++ |
verifyTextPresent | +Carroll College Assistant Professor, 1981 - 1985 | ++ |
comment | +Add third position using new organization | ++ |
clickAndWait | +//div[@id='oprop-core-personInPosition']/a | ++ |
assertTitle | +Edit | ++ |
click | +link=add a new organization | ++ |
type | +newOrgName | +Cornell University | +
select | +newOrgType | +label=University | +
type | +title | +Assistant Professor | +
select | +positionType | +label=Faculty Position | +
type | +startYear | +1986 | +
type | +endYear | +2010 | +
click | +submit | ++ |
pause | +50000 | ++ |
assertTitle | +Jane Faculty | ++ |
comment | +Verify all three positions show up | ++ |
verifyTextPresent | +Carroll College Lecturer, 9999 - | ++ |
verifyTextPresent | +Cornell University Assistant Professor, 1986 - 2010 | ++ |
verifyTextPresent | +Carroll College Assistant Professor, 1981 - 1985 | ++ |
comment | +Log out | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
ChangePositions | ||
comment | +Change 3 existing positions | ++ |
deleteAllVisibleCookies | ++ | + |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Must login as site admin | ++ |
type | +username | +testAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to test faculty member | ++ |
clickAndWait | +link=Index | ++ |
assertTitle | +Index to VIVO Contents | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Jane Faculty | ++ |
assertTitle | +Jane Faculty | ++ |
comment | +Verify position to be changed exisit | ++ |
verifyTextPresent | +Carroll College Lecturer, 9999 - | ++ |
verifyTextPresent | +Cornell University Assistant Professor, 1986 - 2010 | ++ |
verifyTextPresent | +Carroll College Assistant Professor, 1981 - 1985 | ++ |
comment | +Correct the dates of the lecturer position | ++ |
clickAndWait | +//div[@id='oprop-core-personInPosition']/ul/li[1]/span/span/a[1] | ++ |
assertTitle | +Edit | ++ |
type | +startYear | +1977 | +
type | +endYear | +1981 | +
clickAndWait | +submit | ++ |
comment | +Verify positions are still listed correctly | ++ |
verifyTextPresent | +Cornell University Assistant Professor, 1986 - 2010 | ++ |
verifyTextPresent | +Carroll College Assistant Professor, 1981 - 1985 | ++ |
verifyTextPresent | +Carroll College Lecturer, 1977 - 1981 | ++ |
assertTitle | +Jane Faculty | ++ |
comment | +Change the or organization for one position | ++ |
clickAndWait | +//div[@id='oprop-core-personInPosition']/ul/li[2]/span/span/a[1] | ++ |
assertTitle | +Edit | ++ |
click | +link=add a new organization | ++ |
type | +newOrgName | +Carroll University | +
select | +newOrgType | +label=University | +
clickAndWait | +submit | ++ |
assertTitle | +Jane Faculty | ++ |
comment | +Verify positions are still listed correctly | ++ |
verifyTextPresent | +Cornell University Assistant Professor, 1986 - 2010 | ++ |
verifyTextPresent | +Carroll University Assistant Professor, 1981 - 1985 | ++ |
verifyTextPresent | +Carroll College Lecturer, 1977 - 1981 | ++ |
clickAndWait | +//div[@id='oprop-core-personInPosition']/ul/li[1]/span/span/a[1] | ++ |
comment | +Change Cornell University position to Carroll University | ++ |
assertTitle | +Edit | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
refreshAndWait | +10000 | ++ |
select | +organizationUri | +label=Carroll University | +
type | +title | +Professor | +
type | +endYear | ++ |
clickAndWait | +submit | ++ |
pause | +50000 | ++ |
assertTitle | +Jane Faculty | ++ |
comment | +Verify positions are still listed correctly | ++ |
verifyTextPresent | +Carroll University Professor, 1986 - | ++ |
verifyTextPresent | +Carroll University Assistant Professor, 1981 - 1985 | ++ |
verifyTextPresent | +Carroll College Lecturer, 1977 - 1981 | ++ |
comment | +Log out | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
CreateTestFacultyMember | |||
comment | +Add test Faculty member named Jane Faculty | ++ | |
deleteAllVisibleCookies | ++ | + | |
setTimeout | +100000 | ++ | |
open | +/vivo/ | ++ | |
assertTitle | +VIVO | ++ | |
comment | +Must be logged off to start | ++ | |
clickAndWait | +link=Log in | ++ | |
assertTitle | +VIVO Site Administration | ++ | |
comment | +Must login as the site admin | ++ | |
type | +username | +testAdmin | +|
type | +password | +Password | +|
clickAndWait | +loginSubmitMode | ++ | |
assertTitle | +VIVO Site Administration | ++ | |
verifyTextPresent | +Data Input | ++ | |
select | +VClassURI | +label=Faculty Member (core) | +|
clickAndWait | +//input[@value='Add individual of this class'] | ++ | |
pause | +<<<<<<< .mine +50000 | +======= +10000 | +>>>>>>> .r513 ++ |
assertTitle | +Individual Editing Form | ++ | |
comment | +Add Assistant Professor Jane Faculty | ++ | |
type | +Name | +Jane Faculty | +|
type | +MonikerSelectAlt | +Assistant Professor | +|
verifyTextPresent | +Creating New Record | ++ | |
clickAndWait | +primaryAction | ++ | |
pause | +50000 | ++ | |
assertTitle | +Individual Control Panel | ++ | |
comment | +Verify that account was created | ++ | |
verifyTextPresent | +Jane Faculty | ++ | |
comment | +Logout | ++ | |
clickAndWait | +link=Log out | ++ | |
assertTitle | +VIVO | ++ |
DeletePositions | ||
comment | +Delete all positions setup for test faculty member | ++ |
deleteAllVisibleCookies | ++ | + |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in already | ++ |
click | +link=Log in | ++ |
pause | +50000 | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Must log in as site admin | ++ |
type | +username | +testAdmin | +
type | +password | +Password | +
click | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to test faculty member | ++ |
click | +link=Index | ++ |
pause | +50000 | ++ |
assertTitle | +Index to VIVO Contents | ++ |
click | +link=Faculty Member | ++ |
pause | +50000 | ++ |
assertTitle | +Faculty Member | ++ |
click | +link=Jane Faculty | ++ |
pause | +50000 | ++ |
assertTitle | +Jane Faculty | ++ |
comment | +Delete positions one at a time | ++ |
click | +link=delete | ++ |
pause | +50000 | ++ |
assertTitle | +Edit | ++ |
click | +submit | ++ |
pause | +50000 | ++ |
assertTitle | +Jane Faculty | ++ |
click | +link=delete | ++ |
pause | +50000 | ++ |
assertTitle | +Edit | ++ |
click | +submit | ++ |
pause | +50000 | ++ |
assertTitle | +Jane Faculty | ++ |
click | +link=delete | ++ |
pause | +50000 | ++ |
assertTitle | +Edit | ++ |
click | +submit | ++ |
pause | +50000 | ++ |
assertTitle | +Jane Faculty | ++ |
click | +link=Index | ++ |
pause | +50000 | ++ |
assertTitle | +Index to VIVO Contents | ++ |
comment | +Delete organizations one at a time | ++ |
click | +link=College | ++ |
waitForPageToLoad | +50000 | ++ |
assertTitle | +College | ++ |
click | +link=Carroll College | ++ |
waitForPageToLoad | +50000 | ++ |
assertTitle | +Carroll College | ++ |
click | +link=edit this individual | ++ |
pause | +50000 | ++ |
assertTitle | +Individual Control Panel | ++ |
click | +//input[@value='Edit This Individual'] | ++ |
pause | +50000 | ++ |
assertTitle | +Individual Editing Form | ++ |
click | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this entity? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +VIVO Site Administration | ++ |
click | +link=Index | ++ |
pause | +50000 | ++ |
assertTitle | +Index to VIVO Contents | ++ |
click | +link=Organization | ++ |
pause | +50000 | ++ |
assertTitle | +Organization | ++ |
click | +link=Carroll University | ++ |
pause | +50000 | ++ |
assertTitle | +Carroll University | ++ |
click | +link=edit this individual | ++ |
pause | +50000 | ++ |
assertTitle | +Individual Control Panel | ++ |
click | +//input[@value='Edit This Individual'] | ++ |
pause | +50000 | ++ |
assertTitle | +Individual Editing Form | ++ |
click | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this entity? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +VIVO Site Administration | ++ |
click | +link=Index | ++ |
pause | +50000 | ++ |
assertTitle | +Index to VIVO Contents | ++ |
click | +link=Organization | ++ |
pause | +50000 | ++ |
assertTitle | +Organization | ++ |
click | +link=Cornell University | ++ |
pause | +50000 | ++ |
assertTitle | +Cornell University | ++ |
click | +link=edit this individual | ++ |
pause | +50000 | ++ |
assertTitle | +Individual Control Panel | ++ |
click | +//input[@value='Edit This Individual'] | ++ |
pause | +50000 | ++ |
assertTitle | +Individual Editing Form | ++ |
click | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this entity? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +VIVO Site Administration | ++ |
click | +link=Index | ++ |
pause | +50000 | ++ |
assertTitle | +Index to VIVO Contents | ++ |
refreshAndWait | +10000 | ++ |
verifyElementNotPresent | +Organizations | ++ |
comment | +Log out | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
DeleteTestFacultyMember | ||
comment | +Delete test person Jane Faculty | ++ |
deleteAllVisibleCookies | ++ | + |
setTimeout | +100000 | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must not be logged in | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Must log in as site admin | ++ |
type | +username | +testAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=Index | ++ |
assertTitle | +Index to VIVO Contents | ++ |
comment | +Navigate to Jane Faculty | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Jane Faculty | ++ |
assertTitle | +Jane Faculty | ++ |
clickAndWait | +link=edit this individual | ++ |
comment | +Delete Jane Faculty | ++ |
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 entity? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Verify that Jane Faculty is indeed gone | ++ |
clickAndWait | +link=Index | ++ |
assertTitle | +Index to VIVO Contents | ++ |
verifyTextNotPresent | +Faculty Member | ++ |
comment | +Log out | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
SearchPositions | ||
comment | +Search for positions and organizations | ++ |
deleteAllVisibleCookies | ++ | + |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Search for lecturer | ++ |
type | +search | +lecturer | +
clickAndWait | +submit | ++ |
assertTitle | +lecturer - VIVO Search Results | ++ |
verifyElementPresent | +link=Carroll College | ++ |
verifyTextPresent | +... people Lecturer ... | ++ |
verifyElementPresent | +link=Jane Faculty | ++ |
verifyTextPresent | +Jane Faculty | Assistant Professor | ++ |
comment | +Search for professor, which should bring up Assistant Professor and Professor | ++ |
type | +search | +professor | +
click | +submit | ++ |
pause | +10000 | ++ |
assertTitle | +professor - VIVO Search Results | ++ |
verifyElementPresent | +link=Carroll University | ++ |
verifyElementPresent | +link=Jane Faculty | ++ |
comment | +Search for Carroll, which should bring up 2 organizations | ++ |
type | +search | +carroll | +
click | +submit | ++ |
pause | +10000 | ++ |
assertTitle | +carroll - VIVO Search Results | ++ |
verifyElementPresent | +link=Carroll College | ++ |
verifyElementPresent | +link=Carroll University | ++ |
comment | +Link to Carroll College to verify Jane Faculty is no longer listed | ++ |
type | +search | +carroll college | +
click | +submit | ++ |
pause | +10000 | ++ |
assertTitle | +carroll college - VIVO Search Results | ++ |
verifyTextPresent | +Carroll College | ++ |
click | +link=Carroll College | ++ |
pause | +10000 | ++ |
assertTitle | +Carroll College | ++ |
verifyTextNotPresent | +Jane Faculty | ++ |
comment | +Link to Carroll University to verify Jane Faculty is listed | ++ |
type | +search | +carroll university | +
click | +submit | ++ |
pause | +10000 | ++ |
assertTitle | +carroll university - VIVO Search Results | ++ |
verifyTextPresent | +Carroll University | ++ |
click | +link=Carroll University | ++ |
pause | +50000 | ++ |
assertTitle | +Carroll University | ++ |
verifyElementPresent | +link=Jane Faculty | ++ |
pause | +50000 | ++ |
verifyTextPresent | +Jane Faculty Professor, 1986 - | ++ |
comment | +Search for university to find both Carroll and Cornell | ++ |
type | +search | +university | +
clickAndWait | +submit | ++ |
pause | +50000 | ++ |
assertTitle | +university - VIVO Search Results | ++ |
verifyElementPresent | +link=Cornell University | ++ |
verifyElementPresent | +link=Carroll University | ++ |
comment | +Make sure Jane Faculty is no longer associated with Cornell | ++ |
click | +link=Cornell University | ++ |
pause | +50000 | ++ |
assertTitle | +Cornell University | ++ |
verifyElementNotPresent | +link=Jane Faculty | ++ |
pause | +50000 | ++ |
comment | +Go to home page | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
Test Suite |
CreateTestFacultyMember |
AddPositions |
ChangePositions |
SearchPositions |
DeletePositions |
DeleteTestFacultyMember |