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 //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
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[2]/div/div/div/div[1]/a
click //div[2]/div/div/div/div[1]/a
waitForTextPresent SNF_KS_22
verifyTextPresent SNF_KS_22
echo -Edit Category-
waitForElementPresent link=SNF_KS_22
click link=SNF_KS_22
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=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[2]/div/div/div/div[1]/a
click //div[2]/div/div/div/div[1]/a
waitForTextPresent SNF_KS_22 Update
verifyTextPresent SNF_KS_22 Update
echo -Delete Category-
click link=SNF_KS_22 Update
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 SNF_KS_22 Update
verifyTextNotPresent SNF_KS_22 Update
clickAndWait link=Sign out
waitForTextPresent Sign in