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 | Log in to VIVO | |
comment | Must login as the site admin | |
type | loginName | testAdmin |
type | loginPassword | Password |
clickAndWait | loginForm | |
comment | Navigate to Lily Librarian | |
clickAndWait | link=Index | |
clickAndWait | link=Librarian | |
assertTitle | Librarian | |
clickAndWait | link=Librarian, Lily | |
assertTitle | Librarian, Lily | |
comment | Create a membership role in the front end | |
clickAndWait | //h3[@id='hasMemberRole']/a/img | |
assertTitle | Edit | |
select | typeSelector | label=Association |
type | relatedIndLabel | LITA |
type | roleLabel | Member at Large |
type | startField.year | 1999 |
type | endField.year | 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 | |
refreshAndWait | 10000 | |
refreshAndWait | 10000 | |
refreshAndWait | 10000 | |
refreshAndWait | 10000 | |
refreshAndWait | 10000 | |
verifyTextPresent | LITA | |
verifyElementNotPresent | link=related role | |
verifyElementNotPresent | link=Member at Large | |
comment | Go back to Lily Librarian in front end | |
clickAndWait | link=Index | |
clickAndWait | link=Librarian | |
assertTitle | Librarian | |
clickAndWait | link=Librarian, Lily | |
assertTitle | Librarian, Lily | |
comment | Verify condition of MEMBER OF | |
verifyElementPresent | link=missing activity | |
verifyTextPresent | missing activity Member at Large 1999 - 2009 | |
comment | Edit MEMBER OF to add data back | |
clickAndWait | //div[@id='wrapper-content']/section[2]/article[3]/ul/li[2]/a[2]/img | |
assertTitle | Edit | |
verifyTextPresent | Edit membership entry for Librarian, Lily | |
verifyTextPresent | Membership Type | |
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=Home | |
clickAndWait | link=Log out | |
assertTitle | VIVO |