EditSiteInfo
deleteAllVisibleCookies
setTimeout 10000000
comment Test Menu Management
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=Menu management
assertTitle Default Menu
comment Validate adding menu item with Activities
clickAndWait link=Add menu item
assertTitle Add Menu Item
verifyTextPresent Name *
verifyTextPresent Pretty URL *
verifyTextPresent Must begin with a leading forward slash: / (e.g., /people)
verifyTextPresent Template *
verifyTextPresent Default
verifyTextPresent Custom template
verifyTextPresent Select content type for the associated page *
verifyTextPresent or Cancel
verifyElementPresent link=Cancel
verifyTextPresent * required fields
clickAndWait link=Cancel
assertTitle Default Menu
clickAndWait link=Add menu item
assertTitle Add Menu Item
click submit-Add
verifyTextPresent You must supply a name
verifyTextPresent You must supply a pretty URL
verifyTextPresent The pretty URL must begin with a leading forward slash
verifyTextPresent You must supply a content type
type menuName Activities
click submit-Add
verifyTextPresent You must supply a pretty URL
verifyTextPresent The pretty URL must begin with a leading forward slash
verifyTextPresent You must supply a content type
type name=prettyUrl http://localhost:8080/vivo/activities
click name=submit-Add
verifyTextPresent The pretty URL must begin with a leading forward slash
verifyTextPresent You must supply a content type
type prettyUrl /activities
click submit-Add
verifyTextPresent You must supply a content type
select selectClassGroup label=activities
verifyTextPresent Selected content type for the associated page
verifyTextPresent Change content type
verifyElementPresent changeContentType
verifyTextPresent Select content to display *
verifyTextPresent Only display activities within my institution
verifyTextPresent To enable this option, you must first select an institutional internal class for your instance
verifyElementPresent link=institutional internal class
clickAndWait submit-Add
assertTitle Default Menu
verifyTextPresent Home
verifyTextPresent People
verifyTextPresent Organizations
verifyTextPresent Research
verifyTextPresent Activities
verifyTextPresent Events
comment Add Courses menu
clickAndWait link=Add menu item
assertTitle Add Menu Item
type menuName Courses
type prettyUrl /courses
select selectClassGroup label=people
click changeContentType
select selectClassGroup label=courses
clickAndWait submit-Add
assertTitle Default Menu
verifyTextPresent Home
verifyTextPresent People
verifyTextPresent Research
verifyTextPresent Organizations
verifyTextPresent Activities
verifyTextPresent Courses
verifyTextPresent Events
comment Add Equipment menu
clickAndWait link=Add menu item
assertTitle Add Menu Item
type menuName Equipment
type prettyUrl /equipment
select selectClassGroup label=equipment
clickAndWait submit-Add
assertTitle Default Menu
verifyTextPresent Home
verifyTextPresent People
verifyTextPresent Organizations
verifyTextPresent Research
verifyTextPresent Events
verifyTextPresent Activities
verifyTextPresent Courses
verifyTextPresent Equipment
comment Add Locations menu
clickAndWait link=Add menu item
assertTitle Add Menu Item
type menuName Locations
type prettyUrl /locations
select selectClassGroup label=locations
clickAndWait submit-Add
assertTitle Default Menu
verifyTextPresent Home
verifyTextPresent People
verifyTextPresent Organizations
verifyTextPresent Research
verifyTextPresent Activities
verifyTextPresent Courses
verifyTextPresent Equipment
verifyTextPresent Locations
verifyTextPresent Events
comment Check Activities menu tab
clickAndWait link=Activities
assertTitle Activities
verifyTextPresent There is currently no Activities content in the system
verifyTextPresent You can add content and manage this site from the Site Administration page.
verifyElementPresent link=add content and manage this site
verifyTextPresent You can browse all of the public content currently in the system using the index page.
verifyElementPresent link=index page
verifyTextPresent Expecting content?
verifyTextPresent Try rebuilding the search index.
verifyElementPresent link=rebuilding the search index
comment Check Courses menu tab
clickAndWait link=Courses
assertTitle Courses
verifyTextPresent There is currently no Courses content in the system
verifyTextPresent You can add content and manage this site from the Site Administration page.
verifyElementPresent link=add content and manage this site
verifyTextPresent You can browse all of the public content currently in the system using the index page.
verifyElementPresent link=index page
verifyTextPresent Expecting content?
verifyTextPresent Try rebuilding the search index.
verifyElementPresent link=rebuilding the search index
comment Check Equipment menu tab
clickAndWait link=Equipment
assertTitle Equipment
verifyTextPresent There is currently no Equipment content in the system
verifyTextPresent You can add content and manage this site from the Site Administration page.
verifyElementPresent link=add content and manage this site
verifyTextPresent You can browse all of the public content currently in the system using the index page.
verifyElementPresent link=index page
verifyTextPresent Expecting content?
verifyTextPresent Try rebuilding the search index.
verifyElementPresent link=rebuilding the search index
comment Check Locations menu
clickAndWait link=Locations
assertTitle Locations
verifyTextPresent Locations
comment Change People menu name
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
clickAndWait link=Menu management
assertTitle Default Menu
clickAndWait css=img.edit-individual
assertTitle Edit Menu Item
type menuName People at CU
clickAndWait submit-Edit
assertTitle Default Menu
clickAndWait link=People at CU
assertTitle People at CU
verifyTextPresent There is currently no People at CU content in the system
comment Change People menu name back
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
clickAndWait link=Menu management
assertTitle Default Menu
clickAndWait css=img.edit-individual
assertTitle Edit Menu Item
type menuName People
clickAndWait submit-Edit
assertTitle Default Menu
clickAndWait link=People
assertTitle People
verifyTextPresent There is currently no People content in the system
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO
verifyTextPresent Log in