| 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 | //b | Test1 Folder1 |
| clickAtAndWait | //b | Test1 Folder1 |
| clickAtAndWait | //input[@value='Add Document'] | 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\sampledata529\documentlibrary\document\dependencies\test_document.txt |
| type | //input[@id='_20_title'] | Test1 Document1 |
| type | //textarea[@id='_20_description'] | This is Test1 Document1 |
| clickAtAndWait | //input[@value='Save'] | Save |
| 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 |