diff --git a/utilities/acceptance-tests/suites/AddRoles/CheckRepairMode.html b/utilities/acceptance-tests/suites/AddRoles/CheckRepairMode.html new file mode 100644 index 00000000..a2ac3560 --- /dev/null +++ b/utilities/acceptance-tests/suites/AddRoles/CheckRepairMode.html @@ -0,0 +1,360 @@ + + + +
+ + +CheckRepairMode | ||
comment | +Test repair mode using Jane Faculty | ++ |
deleteAllVisibleCookies | ++ | + |
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 | +loginName | +testAdmin | +
type | +loginPassword | +Password | +
clickAndWait | +loginForm | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Navigate to Jane Faculty | ++ |
clickAndWait | +link=Index | ++ |
assertTitle | +Index to VIVO Contents | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Faculty, Jane | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Create a membership role in the front end | ++ |
clickAndWait | +//div[@id='hasMemberRole']/a | ++ |
assertTitle | +Edit | ++ |
select | +typeSelector | +label=Extension Unit | +
type | +relatedIndLabel | +Cornell Cooperative Extension | +
type | +newIndLabel | +Extension Agent | +
type | +startYear | +1999 | +
type | +endYear | +2009 | +
clickAndWait | +submit | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Verify membership role | ++ |
verifyElementPresent | +link=Cornell Cooperative Extension | ++ |
verifyTextPresent | +Extension Agent 1999 - 2009 | ++ |
clickAndWait | +link=Cornell Cooperative Extension | ++ |
assertTitle | +Cornell Cooperative Extension | ++ |
verifyElementPresent | +link=Faculty, Jane | ++ |
verifyTextPresent | +Extension Agent 1999 - 2009 | ++ |
comment | +Go to role node in backend editing | ++ |
clickAndWait | +link=Faculty, Jane | ++ |
assertTitle | +Faculty, Jane | ++ |
clickAndWait | +link=edit this individual | ++ |
assertTitle | +Individual Control Panel | ++ |
comment | +Verify role is there | ++ |
verifyTextPresent | +Faculty, Jane | ++ |
verifyTextPresent | +member of | ++ |
verifyTextPresent | +Extension Agent | ++ |
comment | +Select to delete the role in the backend | ++ |
click | +//input[@value='Delete'] | ++ |
assertConfirmation | +Are you sure you want to delete the property Extension Agent member of? |
+ + |
waitForPageToLoad | +5000 | ++ |
refreshAndWait | +10000 | ++ |
comment | +Verify role is gone | ++ |
verifyTextPresent | +Faculty, Jane | ++ |
verifyTextNotPresent | +member of | ++ |
verifyTextNotPresent | +Extension Agent | ++ |
comment | +Go back to Jane Faculty in front end | ++ |
clickAndWait | +link=Index | ++ |
assertTitle | +Index to VIVO Contents | ++ |
clickAndWait | +link=Faculty Member | ++ |
assertTitle | +Faculty Member | ++ |
clickAndWait | +link=Faculty, Jane | ++ |
assertTitle | +Faculty, Jane | ++ |
comment | +Edit Jane Faculty's membership role in the front end | ++ |
comment | +Log out | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |