AddTemplateExpandoTest
open /user/joebloggs/home/
waitForElementPresent link=Communities I Own
clickAtAndWait link=Communities I Own
type _29_name Expando Web Content Community
clickAtAndWait //input[@value='Search Communities']
clickAtAndWait //tr[@class='portlet-section-body results-row']/td[1]/a
clickAtAndWait link=Journal Page
clickAtAndWait link=Templates
clickAtAndWait //input[@value='Add Template']
type _15_newTemplateId test_expando
type _15_name Expando Template Test
type _15_description This is an expando template test.
store eval(selenium.isChecked('_15_cacheableCheckbox')) cacheableChecked
gotoIf !${cacheableChecked} CacheableNotChecked
clickAt _15_cacheableCheckbox
label CacheableNotChecked
clickAt //input[@value='Select']
waitForPopUp structure 30000
selectWindow name=structure
waitForElementPresent link=TEST_EXPANDO
click link=TEST_EXPANDO
selectWindow null
waitForText _15_structureName Expando Structure Test
assertText _15_structureName Expando Structure Test
type _15_xsl L:\portal\build\portal-web\test\com\liferay\portalweb\portal\dbupgrade\sampledata510\expando\webcontent\dependencies\Expando.htm
clickAtAndWait //input[@value='Save']
assertTextPresent Your request processed successfully.
assertText //tr[@class='portlet-section-body results-row']/td[2] TEST_EXPANDO
assertText //tr[@class='portlet-section-body results-row']/td[3] Expando Template Test
This is an expando template test.