Test_SNF_ECMS_67_ManageFolksonomy_ecmdemo
open /ecmdemo/public/acme/
windowMaximize
echo -- Login
waitForElementPresent link=Login
click link=Login
type username root
type password gtn
clickAndWait link=Sign in
echo -- Go to sites Administration
clickAndWait //a[@href='/ecmdemo/private/acme/wcmAdmin']
echo --  Go to Ontologies
waitForElementPresent //div[@class='TabIcon DefaultItemIcon OntologiesIcon']
click //div[@class='TabIcon DefaultItemIcon OntologiesIcon']
echo --  Go to Manage Folksonomy form
waitForElementPresent link=Manage Tags
click link=Manage Tags
echo --  Add style
waitForElementPresent link=Add style
click link=Add style
pause 10000
waitForElementPresent styleName
type styleName Test_SNF_ECMS_67
type styleHTML font-size: 20px; font-weight: bold; color: red; font-family:Arial; text-decoration:none;
type documentRange 20..*
click link=Update
echo -- Verify Results
waitForTextPresent Test_SNF_ECMS_67
verifyTextPresent Test_SNF_ECMS_67
echo -- Edit Folksonomy
waitForElementPresent //img[contains(@onclick,"Test_SNF_ECMS_67") and @title="Edit"]
click //img[contains(@onclick,"Test_SNF_ECMS_67") and @title="Edit"]
type documentRange 22..*
click link=Update
pause 3000
waitForTextPresent 22..*
verifyTextPresent 22..*
echo --Delete Folksonomy
waitForElementPresent //img[contains(@onclick,"Test_SNF_ECMS_67") and @title="Remove"]
click //img[contains(@onclick,"Test_SNF_ECMS_67") and @title="Remove"]
assertConfirmation Do you want to delete this style ?
waitForElementNotPresent Test_SNF_ECMS_67
verifyElementNotPresent Test_SNF_ECMS_67
echo --Logout
waitForElementPresent link=Sign out
clickAndWait link=Sign out