AddDocumentTest
open /web/guest/home/
waitForText link=Control Panel Control Panel
clickAtAndWait link=Control Panel Control Panel
clickAtAndWait link=Communities Communities
type //input[@id='_134_name'] Document Library Document Lock Community
clickAtAndWait //input[@value='Search'] Search
assertText //td[2]/a Open
clickAtAndWait //td[2]/a Open
assertText //a[2]/strong Test1 Folder1
clickAtAndWait //a[2]/strong Test1 Folder1
assertText //div[2]/ul/li[5]/a Add Document
clickAtAndWait //div[2]/ul/li[5]/a Add Document
waitForVisible //a[@class='use-fallback using-new-uploader'] Use the classic uploader.
assertText //a[@class='use-fallback using-new-uploader'] Use the classic uploader.
click //a[@class='use-fallback using-new-uploader'] Use the classic uploader.
type //input[@id='_20_file'] L:\portal\build\portal-web\test\com\liferay\portalweb\portal\dbupgrade\sampledata6010\documentlibrary\documentlock\dependencies\test_document.txt
type //input[@id='_20_title'] Test1 Document1.txt
type //textarea[@id='_20_description'] This is Test1 Document1
clickAtAndWait //input[@value='Publish'] Publish
waitForText //div[@class='portlet-msg-success'] Your request processed successfully.
assertText //div[@class='portlet-msg-success'] Your request processed successfully.
assertText //td[1]/a Test1 Document1.txt This is Test1 Document1
assertTextNotPresent 0.0k
assertText //td[3]/a 0
assertText //td[4]/a No