Test_SNF_ECMS_74_ManageNodeType_ecmdemo
open /portal/public/default/
windowMaximize
clickAndWait link=Visit the Acme Website
echo -- Log in
click link=Login
type username root
type password gtn
clickAndWait link=Sign in
echo --  Go to Site Admin
clickAndWait //a[contains(@href, '/portal/private/acme/wcmAdmin')]
echo --Go to  Types Of Content
waitForElementPresent //div[@id='UIECMAdminPortlet']//div[@class='TabIcon DefaultItemIcon TypesOfContentIcon']
click //div[@id='UIECMAdminPortlet']//div[@class='TabIcon DefaultItemIcon TypesOfContentIcon']
echo --  Manage Node Type
waitForElementPresent link=Manage Node Type
click link=Manage Node Type
echo --  Add Node
waitForElementPresent link=Add
click link=Add
pause 3000
waitForElementPresent namespace label=nt
select namespace label=nt
type nodeTypeName TieuHuongDuong
type superTypes nt:base
echo -- Save
waitForElementPresent //form[@id='UINodeTypeForm']/div[3]/div[1]/div[1]/div/div/div/div[9]/table/tbody/tr/td/div[1]/div/div/div
click //form[@id='UINodeTypeForm']/div[3]/div[1]/div[1]/div/div/div/div[9]/table/tbody/tr/td/div[1]/div/div/div
echo --confirm message[press OK]
waitForElementPresent //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
type NodeTypeText TieuHuongDuong
click //form[@id='NodeTypeSearchForm']/div[2]/div[1]/div/div/div/div/table/tbody/tr/td[3]/a
echo -- Verify result find Node type
waitForTextPresent nt:TieuHuongDuong
verifyTextPresent nt:TieuHuongDuong
echo --View node Type
waitForElementPresent //div[@id='ListNodeType']/table/tbody/tr[1]/td[6]/a/div
click //div[@id='ListNodeType']/table/tbody/tr[1]/td[6]/a/div
echo -- verify  Super types
waitForValue superTypes nt:base
verifyValue superTypes nt:base
waitForElementPresent link=Close
click link=Close
echo --Logout
waitForElementPresent link=Logout
clickAndWait link=Logout