AssertTemplateAssociatedTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Web Content
clickAtAndWait //input[@value='Add Web Content']
pause 5000
waitForElementPresent _15_changeStructureBtn
click _15_changeStructureBtn
assertConfirmation Selecting a new structure will change the available input fields and available templates? Do you want to proceed?
waitForPopUp ChangeStructure 30000
selectWindow name=ChangeStructure
pause 5000
store eval(selenium.isElementPresent('link=STRUCTUREID')) templatePresentA
gotoIf ${templatePresentA} TemplatePresentA
close name=structure
label TemplatePresentA
store eval(selenium.isElementPresent('link=STRUCTUREID')) templatePresentB
gotoIf !${templatePresentB} TemplateNotPresentB
waitForElementPresent link=STRUCTUREID
click link=STRUCTUREID
label TemplateNotPresentB
selectWindow null
pause 5000
assertText _15_structureNameLabel Web Content Structure Name (Use Default)
assertText //label/a Web Content Template Name Associated
assertElementNotPresent link=Web Content Template Name