diff --git a/utilities/acceptance-tests/suites/InitialSetup/CreateHTMLPage.html b/utilities/acceptance-tests/suites/InitialSetup/CreateHTMLPage.html new file mode 100644 index 00000000..0aa5ecc9 --- /dev/null +++ b/utilities/acceptance-tests/suites/InitialSetup/CreateHTMLPage.html @@ -0,0 +1,339 @@ + + + +
+ + +EditSiteInfo | ||
deleteAllVisibleCookies | ++ | + |
setTimeout | +10000000 | ++ |
comment | +Create HTML menu page | ++ |
open | +/vivo/ | ++ |
assertTitle | +VIVO | ++ |
comment | +Must be logged out | ++ |
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 Menu Management | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=Page management | ++ |
assertTitle | +Pages | ++ |
comment | +Add a page containing html | ++ |
clickAndWait | +id=submit | ++ |
assertTitle | +Edit | ++ |
select | +id=typeSelect | +label=Fixed HTML | +
type | +id=fixedHTMLSaveToVar | +test | +
type | +id=fixedHTMLValue | +This is a test. | +
click | +xpath=(//input[@id='doneWithContent'])[3] | ++ |
type | +id=pageName | +Test | +
type | +id=pageName | +Test HTML | +
type | +id=pageName | +Test HTML Page | +
type | +name=prettyUrl | +/html | +
click | +id=menuCheckbox | ++ |
type | +id=menuLinkText | +Test HTML Page | +
clickAndWait | +id=pageSave | ++ |
assertTitle | +Pages | ++ |
comment | +Verify HTML page correct | ++ |
verifyElementPresent | +link=Test HTML Page | ++ |
verifyTextPresent | +/html | ++ |
clickAndWait | +link=Test HTML Page | ++ |
assertTitle | +Test HTML Page | ++ |
verifyTextPresent | +This is a test. | ++ |
comment | +Veirfy url works | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
open | +/vivo/html/ | ++ |
assertTitle | +Test HTML Page | ++ |
verifyTextPresent | +This is a test. | ++ |
comment | +Delete the HTML page | ++ |
clickAndWait | +link=Site Admin | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=Page management | ++ |
assertTitle | +Pages | ++ |
click | +xpath=(//img[@alt='delete'])[7] | ++ |
assertConfirmation | +Are you sure you wish to delete this page: Test HTML Page? | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +Pages | ++ |
comment | +Make sure it is gone | ++ |
verifyElementNotPresent | +link=Test HTML Page | ++ |
verifyTextNotPresent | +/html | ++ |
comment | +Logout | ++ |
clickAndWait | +link=Home | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
verifyTextPresent | +Log in | ++ |