Test_SNF_ECMS_26_CreateEditDeleteFilePlan_ecmdemo
open /portal/public/default/
windowMaximize
clickAndWait link=Visit the Acme Website
echo --Login
waitForElementPresent link=Login
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 --Open Private driver
waitForElementPresent link=Private
click link=Private
echo -Go to Admin View
waitForElementPresent //a[@title='Admin View']
click //a[@title='Admin View']
echo -- Go to Action tab
waitForElementPresent link=Actions
click link=Actions
waitForElementPresent link=Add Document
click link=Add Document
pause 5000
waitForElementPresent selectTemplate label=File Plan
select selectTemplate label=File Plan
pause 5000
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[text()='Process properties']
click //div[text()='Process properties']
type eventTrigger FilePlan26
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 3000
waitForElementPresent link=Close
click link=Close
pause 3000
echo --Edit File Plan
waitForElementPresent link=Test_SNF_ECMS_26
mouseDownRight link=Test_SNF_ECMS_26
waitForElementPresent link=Edit
click link=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 3000
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