Test_PRL_05_01_013_AddNewCategoryWithDescriptionOverMaxLength
open /portal/public/classic/
echo -- Add new category with Description over max length --
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Application Registry
echo -- Click Add category icon --
waitForElementPresent //div[1]/div/div/div/div/div/div/div/div[2]/div[2]/div[1]/div[1]/div[1]
click //div[1]/div/div/div/div/div/div/div/div[2]/div[2]/div[1]/div[1]/div[1]
waitForElementPresent name
type name Test_PLT_05_01_013
type displayName Test_PLT_05_01_013
type description Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013 Test_PLT_05_01_013
waitForElementPresent link=Save
click link=Save
waitForTextPresent The length of the text in field "Description: " must be between "0" and "255" characters.
verifyTextPresent The length of the text in field "Description: " must be between "0" and "255" 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