AddShortcutTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Communities
type _134_name Document Library Shortcut Community
clickAtAndWait //input[@value='Search']
clickAtAndWait //td[2]/a Open
waitForElementPresent link=Document Library Page
clickAtAndWait link=Document Library Page
clickAtAndWait //tr[4]/td[1]/a[2]/strong Test2 Folder2
clickAtAndWait //div[2]/ul/li[5]/a Add Shortcut
clickAt //div/span[2]/span/input
waitForPopUp toGroup 30000
selectWindow name=toGroup
waitForElementPresent link=Document Library Shortcut Community
click link=Document Library Shortcut Community
selectWindow null
waitForText _20_toGroupName Document Library Shortcut Community
assertText _20_toGroupName Document Library Shortcut Community
clickAt _20_selectToFileEntryButton
waitForPopUp toGroup 30000
selectWindow name=toGroup
waitForElementPresent //td[1]/a Test1 Folder1
clickAtAndWait //td[1]/a Test1 Folder1
click //td[1]/a Test1 Document1.txt
selectWindow null
waitForText _20_toFileEntryTitle Test1 Document1.txt
assertText _20_toFileEntryTitle Test1 Document1.txt
clickAndWait //input[@value='Save']
assertText //div[2]/div/div/div[1] Your request processed successfully.
assertText //td[1]/a Test1 Document1.txt
This is test1 document1.