AddWebContentImageAssociationTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Communities
type _134_name Web Content Image Association Community
clickAtAndWait //input[@value='Search']
clickAtAndWait //td[2]/a Open
clickAtAndWait link=Control Panel
clickAtAndWait link=Web Content
clickAtAndWait //input[@value='Add Web Content']
type _15_title Image Web Content Test
clickAt _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 ChangeStructure
waitForElementPresent link=TEST_IMAGE
click link=TEST_IMAGE
selectWindow null
waitForText _15_structureNameLabel Image Structure Test (Use Default)
assertText _15_structureNameLabel Image Structure Test (Use Default)
type text-test Text Test
type image-test L:\portal\build\portal-web\test\com\liferay\portalweb\portal\dbupgrade\sampledata605\webcontent\imageassociation\dependencies\Image.jpg
click //input[@value='Select']
waitForPopUp ImageGallery 30000
selectWindow name=ImageGallery
waitForElementPresent link=Folder Test
clickAtAndWait link=Folder Test
click //input[@value='Choose']
selectWindow null
pause 5000
clickAtAndWait //input[@value='Publish']
selectWindow null
assertText //section/div/div/div/div Your request processed successfully.
assertElementPresent //td[2]/a Web Content ID
assertText //td[3]/a Image Web Content Test
assertText //td[4]/a 1.0
assertText //td[5]/a Approved
assertElementPresent //td[6]/a Modified Date
assertElementPresent //td[7]/a Display Date
assertText //td[8]/a Joe Bloggs