EditHomeTab
deleteAllVisibleCookies
comment Edit Home Tab Body (then reset it to default)
open /vivo/
assertTitle VIVO
comment Must be logged out
clickAndWait link=Log in
assertTitle VIVO
comment Must login as site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO
comment Navigate to Tab Management
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
clickAndWait link=Tab management
assertTitle Tabs
verifyTextPresent Home
clickAndWait //a[contains(@href, './tabEdit?id=1&home=1')]
assertTitle Tab Control Panel
clickAndWait //input[@value='Edit Tab Details']
assertTitle Tab Editing Form
comment Edit Home Tab body to add the word "test" between VIVO and !
type Body <h3>Welcome! You have successfully installed VIVO test!</h3>

<p>Your next step is to <a href="siteAdmin?home=1&login=block">login</a> and change your password. You can find the login link in the header on the right above.</p>

<p>Please see the <a href="http://vivoweb.org/support/user-guide" target="_blank">VIVO User Guide</a> for help.  The user guide includes information on <a href="siteAdmin?home=1">Site Administration</a>.  You may want to read about the <a href="http://vivoweb.org/support/user-guide/site-configuration" target="_blank">Site Configuration</a> topics next:</p>
<ul>
<li><a href="http://vivoweb.org/support/user-guide/site-information" target="_blank">Edit site information</a></li>
<li><a href="http://vivoweb.org/support/user-guide/tab-management" target="_blank">Manage tabs</a></li>
<li><a href="http://vivoweb.org/support/user-guide/managing-user-accounts" target="_blank">Manage user accounts</a></li>
</ul>
clickAndWait primaryAction
assertTitle Tab Control Panel
clickAndWait link=Home
assertTitle VIVO
comment Verify that Home Tab body text has changed
verifyTextPresent This is the home page of the VIVO vivo-basic theme.
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
verifyTextPresent Site Configuration
clickAndWait link=Tab management
assertTitle Tabs
verifyTextPresent Home
clickAndWait //a[contains(@href, './tabEdit?id=1&home=1')]
assertTitle Tab Control Panel
clickAndWait //input[@value='Edit Tab Details']
assertTitle Tab Editing Form
comment Reset Home Tab body to installation default
type Body <h3>Welcome! You have successfully installed VIVO!</h3>

<p>Your next step is to <a href="siteAdmin?home=1&login=block">login</a> and change your password. You can find the login link in the header on the right above.</p>

<p>Please see the <a href="http://vivoweb.org/support/user-guide" target="_blank">VIVO User Guide</a> for help.  The user guide includes information on <a href="siteAdmin?home=1">Site Administration</a>.  You may want to read about the <a href="http://vivoweb.org/support/user-guide/site-configuration" target="_blank">Site Configuration</a> topics next:</p>
<ul>
<li><a href="http://vivoweb.org/support/user-guide/site-information" target="_blank">Edit site information</a></li>
<li><a href="http://vivoweb.org/support/user-guide/tab-management" target="_blank">Manage tabs</a></li>
<li><a href="http://vivoweb.org/support/user-guide/managing-user-accounts" target="_blank">Manage user accounts</a></li>
</ul>
clickAndWait primaryAction
assertTitle Tab Control Panel
clickAndWait link=Home
assertTitle VIVO
comment Verify Home Tab body is back to default
verifyTextPresent This is the home page of the VIVO vivo-basic theme.
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO