Test_SNF_KS_22_ksdemo_BasicActionsInCategory
open /portal/public/intranet/
windowMaximize
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
waitForElementPresent password
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
open /portal/private/intranet/forum
echo -Add Category-
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 //form[@id='UICategory']//a[text()='Manage Category']
click //form[@id='UICategory']//a[text()='Manage Category']
waitForElementPresent //form[@id='UICategory']//a[contains(@href,'EditCategory')]
click //form[@id='UICategory']//a[contains(@href,'EditCategory')]
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
waitForElementPresent link=Logout
clickAndWait link=Logout
waitForTextPresent Sign in