AddFrontPageEmptyAttachmentTest
open /web/guest/home/
waitForElementPresent link=Wiki Test Page
clickAtAndWait link=Wiki Test Page
clickAtAndWait //div[@class='portlet-msg-info']/a This page is empty. Edit it to add some text.
assertElementPresent link=Attachments Attachments tab
clickAtAndWait link=Attachments
waitForText //div[@class='portlet-msg-info'] This page does not have any file attachments.
assertText //div[@class='portlet-msg-info'] This page does not have any file attachments.
clickAtAndWait //input[@value='Add Attachments']
selectWindow null
windowFocus
waitForVisible link=Use the classic uploader.
click link=Use the classic uploader.
waitForVisible _36_file1
type _36_file1 L:\portal\build\portal-web\test\com\liferay\portalweb\portlet\wiki\attachment\addfrontpageemptyattachment\dependencies\Wiki_Attachment.jpg
clickAtAndWait //input[@value='Save'] Save
assertText //div[@class='portlet-msg-success'] Your request processed successfully.
assertText link=Wiki_Attachment.jpg Wiki_Attachment.jpg
assertText //div[@class='search-results']/ Showing 1 result.
open /web/guest/home/
waitForElementPresent link=Wiki Test Page
clickAtAndWait link=Wiki Test Page
assertText //div[@class='portlet-msg-info']/a This page is empty. Edit it to add some text.
clickAtAndWait //div[@class='portlet-msg-info']/a This page is empty. Edit it to add some text.
assertValue _36_content