Test_SNF_ECMS_26_CreateEditDeleteFilePlan_ecmdemo
open /portal/public/acme/
windowMaximize
echo -- Login
waitForElementPresent link=Login
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo -- Go to Sites Explorer
waitForElementPresent link=Sites Explorer
clickAndWait link=Sites Explorer
echo --Open  driver pane
waitForElementPresent //div[@id='UISideBar']/div/div[1]/div[2]/div[1]/div/div/div/a/div
click //div[@id='UISideBar']/div/div[1]/div[2]/div[1]/div/div/div/a/div
echo --Open Private driver
waitForElementPresent link=Public
click link=Public
echo --Go to Detail View
waitForElementPresent //form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a
click //form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a
echo -- Go to Action tab
pause 5000
waitForElementPresent link=Actions
click link=Actions
echo --Add File Plan
pause 5000
waitForElementPresent link=Add Document
click link=Add Document
pause 5000
waitForElementPresent selectTemplate label=File Plan
select selectTemplate label=File Plan
waitForElementPresent name
type name Test_SNF_ECMS_26
waitForElementPresent //div[contains(text(), "Record properties")]
click //div[contains(text(), "Record properties")]
type recordCategoryIdentifier FilePlan26
type dispositionAuthority FilePlan26
type defaultOriginatingOrganization FilePlan26
waitForElementPresent //div[4]/div/div/div[2]/div/div/div/div/div/div/div/div/div[3]/div/div/div/div
click //div[4]/div/div/div[2]/div/div/div/div/div/div/div/div/div[3]/div/div/div/div
type eventTrigger FilePlan26
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 5000
waitForElementPresent link=Close
click link=Close
pause 10000
echo --Edit File Plan
waitForElementPresent link=Test_SNF_ECMS_26
mouseDownRight link=Test_SNF_ECMS_26
waitForElementPresent //div[@class='MenuItem']/a[contains(text(),'Edit')]
click //div[@class='MenuItem']/a[contains(text(),'Edit')]
waitForElementPresent filePlanNote
type filePlanNote test
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 5000
waitForElementPresent link=Close
click link=Close
pause 5000
echo --Delete File Plan
waitForElementPresent link=Test_SNF_ECMS_26
mouseDownRight link=Test_SNF_ECMS_26
waitForElementPresent link=Delete
click link=Delete
waitForElementPresent //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
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
pause 5000
waitForTextNotPresent Test_SNF_ECMS_26
verifyTextNotPresent Test_SNF_ECMS_26
echo --Logout
waitForElementPresent link=Logout
clickAndWait link=Logout