Test_SNF_ECMS_65_QuickFilter
open /portal/public/default/
windowMaximize
clickAndWait link=Visit the Acme Website
echo -- Log in
click link=Login
type username root
type password gtn
clickAndWait link=Sign in
echo -- Site Explorer
clickAndWait //a[@href='/portal/private/acme/siteExplorer']
echo -- Browse all drives
waitForElementPresent //div[@title='Show Drives']
click //div[@title='Show Drives']
echo -- Go to Private drive
waitForElementPresent link=Private
click link=Private
echo -- Add Folder
waitForElementPresent link=Add Folder
click link=Add Folder
echo -- Add folder's name
waitForElementPresent name
type name SNF_ECMS_65
echo -- Save
waitForElementPresent //form[@id='UIFolderForm']//a[text()='Save']
click //form[@id='UIFolderForm']//a[text()='Save']
echo -- Filter by Items: Owend by me
waitForElementPresent //div[@id='UIAllItems']//span[text()='Owned by me']
click //div[@id='UIAllItems']//span[text()='Owned by me']
echo --  Admin View
waitForElementPresent //a[@title='Admin View']
click //a[@title='Admin View']
echo -- Verify folder is displayed on right
echo --  Not Show Documents
waitForElementNotPresent //div[@id='UIDocumentInfo']//div[@title='Documents ']
verifyElementNotPresent //div[@id='UIDocumentInfo']//div[@title='Documents ']
echo --  Not Show Favorites
waitForElementNotPresent //div[@id='UIDocumentInfo']//div[@title='Favorites ']
verifyElementNotPresent //div[@id='UIDocumentInfo']//div[@title='Favorites ']
echo --  Show Test_SNF_65
waitForElementPresent //div[@id='UIDocumentInfo']//div[@title='SNF_ECMS_65 ']
verifyElementPresent //div[@id='UIDocumentInfo']//div[@title='SNF_ECMS_65 ']
echo -- Remove filter
waitForElementPresent //div[@id='UIAllItems']//span[text()='Owned by me']
click //div[@id='UIAllItems']//span[text()='Owned by me']
echo --  Show Documents
waitForElementPresent //div[@id='UIDocumentInfo']//div[@title='Documents ']
verifyElementPresent //div[@id='UIDocumentInfo']//div[@title='Documents ']
echo --  Show Favorites
waitForElementPresent //div[@id='UIDocumentInfo']//div[@title='Favorites ']
verifyElementPresent //div[@id='UIDocumentInfo']//div[@title='Favorites ']
echo --  Show Test_SNF_65
waitForElementPresent //div[@id='UIDocumentInfo']//div[@title='SNF_ECMS_65 ']
verifyElementPresent //div[@id='UIDocumentInfo']//div[@title='SNF_ECMS_65 ']
echo -- Delete Folder
waitForElementPresent //a[text()='SNF_ECMS_65']
mouseDownRight //a[text()='SNF_ECMS_65']
waitForElementPresent link=Delete
click link=Delete
echo -- OK to delete
waitForElementPresent //div[@id='UIPopupWindow']//a[text()='OK']
click //div[@id='UIPopupWindow']//a[text()='OK']
waitForElementNotPresent //div[@id='UIDocumentInfo']//div[@title='SNF_ECMS_65 ']
verifyElementNotPresent //div[@id='UIDocumentInfo']//div[@title='SNF_ECMS_65 ']
echo -- Log out
waitForElementPresent link=Logout
clickAndWait link=Logout