Test_SNF_KS_53_ksdemo_SettingForumPortlet
open /ksdemo/public/classic/
windowMaximize
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
echo -Add category for forumsetting test-
open /ksdemo/private/classic/forum
waitForElementPresent //div[@id='AddCategory']/div/div/div/div/a/span
click //div[@id='AddCategory']/div/div/div/div/a/span
waitForElementPresent CategoryTitle
type CategoryTitle Cate1_SNF_KS_53
waitForElementPresent //form[@id='UICategoryForm']/div[3]/table//div[1]/div/div/div
click //form[@id='UICategoryForm']/div[3]/table//div[1]/div/div/div
waitForTextPresent Cate1_SNF_KS_53
verifyTextPresent Cate1_SNF_KS_53
waitForElementPresent link=Edit Page
click link=Edit Page
pause 5000
mouseOver //div[@id='UIPage']/div/div/div/div/div/div/div
waitForElementPresent //div/div/div[2]/div/div/div/div/div/div/a[1]
click //div/div/div[2]/div/div/div/div/div/div/a[1]
waitForElementPresent //input[@class='checkbox']
click //input[@class='checkbox']
waitForElementPresent link=Save
click link=Save
waitForElementPresent //div[@id='UIForumPortlet']//a[text()='OK']
click //div[@id='UIForumPortlet']//a[text()='OK']
waitForElementPresent link=Close
click link=Close
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
click //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
waitForElementNotPresent link=Knowledge Suite
verifyElementNotPresent link=Knowledge Suite
echo -Set default settings-
waitForElementPresent link=Edit Page
click link=Edit Page
pause 5000
mouseOver //div[@id='UIPage']/div/div/div/div/div/div/div
waitForElementPresent //div/div/div[2]/div/div/div/div/div/div/a[1]
click //div/div/div[2]/div/div/div/div/div/div/a[1]
waitForElementPresent //input[@class='checkbox']
click //input[@class='checkbox']
waitForElementPresent link=Save
click link=Save
waitForElementPresent //div[@id='UIForumPortlet']//a[text()='OK']
click //div[@id='UIForumPortlet']//a[text()='OK']
waitForElementPresent link=Close
click link=Close
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
click //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
waitForElementPresent link=Knowledge Suite
verifyElementPresent link=Knowledge Suite
echo -Delete test data-
waitForElementPresent link=Cate1_SNF_KS_53
click link=Cate1_SNF_KS_53
waitForElementPresent //form[@id='UICategory']/div[3]/div/div/div/div[4]/div[1]/div/div/div/div/div
click //form[@id='UICategory']/div[3]/div/div/div/div[4]/div[1]/div/div/div/div/div
waitForElementPresent link=Delete
click link=Delete
assertConfirmation Are you sure you want to delete this category?
waitForTextNotPresent Cate1_SNF_KS_53
verifyTextNotPresent Cate1_SNF_KS_53
clickAndWait link=Sign out