AddTemplateLocalizedTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Web Content
clickAtAndWait link=Templates
clickAtAndWait //input[@value='Add Template']
type _15_newTemplateId LOCALIZED
type _15_name Test Localized Template
type _15_description This is a test localized template.
clickAt //input[@value='Select']
waitForPopUp structure 30000
selectWindow structure
pause 5000
store eval(selenium.isElementPresent('link=LOCALIZED')) localizedPresentA
gotoIf ${localizedPresentA} LocalizedPresentA
close structure
selectWindow null
label LocalizedPresentA
store eval(selenium.isElementPresent('link=LOCALIZED')) localizedPresentB
gotoIf !${localizedPresentB} LocalizedNotPresentB
click link=LOCALIZED
selectWindow null
label LocalizedNotPresentB
pause 5000
assertElementPresent link=Test Localized Structure
type _15_xsl L:\portal\build\portal-web\test\com\liferay\portalweb\portal\controlpanel\webcontent\wcwebcontent\addwebcontentlocalized\dependencies\LocalizedTemplate.htm
pause 5000
clickAtAndWait //input[@value='Save']
assertTextPresent Your request processed successfully.
assertElementPresent link=LOCALIZED
assertTextPresent Test Localized Template