CheckRepairMode | ||
comment | Test repair mode using Lily Librarian--originally tested auto-complete but doesn't work well within Selenium | |
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 Lily Librarian | |
clickAndWait | link=Index | |
assertTitle | Index to VIVO Contents | |
clickAndWait | link=Librarian | |
assertTitle | Librarian | |
clickAndWait | link=Librarian, Lily | |
assertTitle | Librarian, Lily | |
comment | Create a membership role in the front end | |
clickAndWait | //div[@id='hasMemberRole']/a | |
assertTitle | Edit | |
select | typeSelector | label=Association |
type | relatedIndLabel | LITA |
type | newIndLabel | Member at Large |
type | startYear | 1999 |
type | endYear | 2009 |
clickAndWait | submit | |
assertTitle | Librarian, Lily | |
comment | Verify membership role | |
verifyElementPresent | link=LITA | |
verifyTextPresent | Member at Large 1999 - 2009 | |
clickAndWait | link=LITA | |
assertTitle | LITA | |
verifyElementPresent | link=Librarian, Lily | |
verifyTextPresent | Member at Large 1999 - 2009 | |
comment | Go to role node in backend editing | |
clickAndWait | link=Librarian, Lily | |
assertTitle | Librarian, Lily | |
clickAndWait | link=LITA | |
assertTitle | LITA | |
clickAndWait | link=edit this individual | |
assertTitle | Individual Control Panel | |
comment | Verify role is there | |
verifyTextPresent | LITA | |
verifyElementPresent | link=related role | |
verifyElementPresent | link=Member at Large | |
comment | Delete relationship between role node and non-person thing | |
click | //input[@value='Delete'] | |
assertConfirmation | Are you sure you want to delete the property Member at Large related role? |
|
waitForPageToLoad | 5000 | |
comment | Verify role is gone | |
verifyTextPresent | LITA | |
verifyElementNotPresent | link=related role | |
verifyElementNotPresent | link=Member at Large | |
comment | Go back to Lily Librarian in front end | |
clickAndWait | link=Index | |
assertTitle | Index to VIVO Contents | |
clickAndWait | link=Librarian | |
assertTitle | Librarian | |
clickAndWait | link=Librarian, Lily | |
assertTitle | Librarian, Lily | |
comment | Verify condition of MEMBER OF | |
verifyTextPresent | unknown Member at Large (unidentified activity - please edit) | |
comment | Edit MEMBER OF to add data back | |
clickAndWait | //div[@id='hasMemberRole']/ul/li[2]/span/span/a[1] | |
assertTitle | Edit | |
verifyTextPresent | Edit membership entry for Librarian, Lily | |
verifyTextPresent | Membership Type | |
verifyTextPresent | Activity Name | |
verifyTextPresent | Role in Activity | |
verifyTextPresent | Years of Participation in Activity | |
verifyTextPresent | Start Year | |
verifyTextPresent | End Year | |
comment | Don't select anything--just press enter button | |
clickAndWait | submit | |
assertTitle | Edit | |
verifyTextPresent | This field must not be empty. | |
comment | Have to re-select Association | |
select | typeSelector | label=Association |
verifyTextPresent | Edit membership entry for Librarian, Lily | |
verifyTextPresent | Membership Type | |
verifyTextPresent | Association Name | |
verifyTextPresent | Role in Association | |
verifyTextPresent | Years of Participation in Association | |
verifyTextPresent | Start Year | |
verifyTextPresent | End Year | |
clickAndWait | submit | |
assertTitle | Edit | |
comment | Forgot to enter name of organization so error occurred | |
verifyTextPresent | This field must not be empty. | |
comment | Now enter the missing information | |
type | relatedIndLabel | LITA Too |
clickAndWait | submit | |
assertTitle | Librarian, Lily | |
verifyElementPresent | link=LITA Too | |
verifyTextPresent | Member at Large 1999 - 2009 | |
comment | Log out | |
clickAndWait | link=Log out | |
assertTitle | VIVO |