Test_SNF_ECMS_07_ShowDraftContent_ecmdemo
open /portal/public/default/
windowMaximize
clickAndWait link=Visit the Acme Website
echo -- Log in
click link=Login
waitForElementPresent username
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 --  Sites Management
waitForElementPresent link=Sites Management
click link=Sites Management
echo --  acme
waitForElementPresent //a[text()='acme' and @style='cursor: pointer;']
click //a[text()='acme' and @style='cursor: pointer;']
echo --  acme/documents
waitForElementPresent link=documents
click link=documents
waitForElementPresent link=Add Document
click link=Add Document
pause 5000
waitForElementPresent title
type title Test_SNF_ECMS_07
type name Test_SNF_ECMS_07
waitForElementPresent //td[@id='cke_contents_summary']/iframe
selectFrame //td[@id='cke_contents_summary']/iframe
type //html/body Ong troi cho ta gap nhau nhung khong cho ta ben nhau
selectFrame relative=top
selectFrame //td[@id='cke_contents_content']/iframe
type //html/body Du ben nhau chi trong phut giay nhung anh se nho mai
selectFrame relative=top
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 5000
waitForElementPresent link=Close
click link=Close
pause 3000
echo -- Check the draft content in CLV
waitForElementPresent link=Overview
clickAndWait link=Overview
waitForTextNotPresent Test_SNF_ECMS_07
verifyTextNotPresent Test_SNF_ECMS_07
select EditingOptions label=Edit
waitForElementPresent link=Test_SNF_ECMS_07
verifyElementPresent link=Test_SNF_ECMS_07
select EditingOptions label=Published
echo -- Delete document
echo -- Site Explorer
clickAndWait //a[@href='/portal/private/acme/siteExplorer']
waitForElementPresent link=Test_SNF_ECMS_07
mouseDownRight link=Test_SNF_ECMS_07
waitForElementPresent link=Delete
click link=Delete
waitForElementPresent //div[@id='UIPopupWindow']//a[text()='OK']
click //div[@id='UIPopupWindow']/div/div[2]/div/div/div/div/div/div/div/div[2]/table/tbody/tr/td/div[1]/div/div/div/a
echo -- Log out
waitForElementPresent link=Logout
clickAndWait link=Logout