Test_PRL_05_01_004_AddNewCateogryWithNameStartsWithDashChars
open /portal/public/classic/
echo -- Add new category with name starts with  dash  characters--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Go to Application Registry--
clickAndWait link=Application Registry
echo -- Click Add Category icon--
waitForElementPresent //div[@id='UIApplicationOrganizer']/div[1]/div[1]
click //div[@id='UIApplicationOrganizer']/div[1]/div[1]
waitForElementPresent name
type name ------
type displayName Test_PRL_0
type displayName Test_PRL_05_01_004
type description Test_PRL_05_01_004
echo -- Choose Permission Setting tab--
waitForElementPresent //div[@id='UIApplicationOrganizer']/div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
click //div[@id='UIApplicationOrganizer']/div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent link=Add Permission
click link=Add Permission
waitForElementPresent //div[@id='ListPermissionSelector']/div/div[2]/div/div[2]/div/div/div[3]/div/a
click //div[@id='ListPermissionSelector']/div/div[2]/div/div[2]/div/div/div[3]/div/a
waitForElementPresent link=manager
click link=manager
waitForElementPresent link=Save
click link=Save
waitForTextPresent The "Category name: " field must start with a character and must not contain special characters."
verifyTextPresent The "Category name: " field must start with a character and must not contain special characters."
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
waitForElementPresent link=Cancel
click link=Cancel
clickAndWait link=Sign out