Test_SNF_KS_22_ksdemo_BasicActionsInCategory
open /ksdemo/public/classic/
windowMaximize
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
echo -Add Category-
open /ksdemo/private/classic/forum
waitForElementPresent link=Add Category
click link=Add Category
waitForElementPresent CategoryTitle
type CategoryTitle SNF_KS_22
type Description SNF_KS_22 Desc
waitForElementPresent link=Save
click link=Save
waitForElementPresent //div[@id='UIBreadcumbs']//a[text()='Home']
click //div[@id='UIBreadcumbs']//a[text()='Home']
waitForTextPresent SNF_KS_22
verifyTextPresent SNF_KS_22
echo -Edit Category-
waitForElementPresent link=SNF_KS_22
click link=SNF_KS_22
waitForElementPresent link=Manage Category
click link=Manage Category
waitForElementPresent link=Edit
click link=Edit
waitForElementPresent CategoryTitle
verifyValue CategoryTitle SNF_KS_22
verifyValue Description SNF_KS_22 Desc
type CategoryTitle SNF_KS_22 Update
type Description SNF_KS_22 Desc Update
type UserPrivate root
waitForElementPresent //form[@id='UICategoryForm']/div[2]//div[1]//div[2]/div/div/div/div/div
click //form[@id='UICategoryForm']/div[2]//div[1]//div[2]/div/div/div/div/div
waitForElementPresent Topicable
type Topicable root
type Postable root
waitForElementPresent link=Save
click link=Save
waitForElementPresent //div[@id='UIBreadcumbs']//a[text()='Home']
click //div[@id='UIBreadcumbs']//a[text()='Home']
waitForTextPresent SNF_KS_22 Update
verifyTextPresent SNF_KS_22 Update
echo -Delete Category-
click link=SNF_KS_22 Update
waitForElementPresent link=Manage Category
click link=Manage Category
waitForElementPresent link=Delete
click link=Delete
assertConfirmation Are you sure to delete this category?
waitForTextNotPresent SNF_KS_22 Update
verifyTextNotPresent SNF_KS_22 Update
clickAndWait link=Sign out
waitForTextPresent Sign in