Test_PRL_03_03_007_EditDescriptionOfGroupWithOverMaxLength
open /portal/public/classic/
echo -- Add new group with description over 255 chars--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Users and groups management
click link=Group Management
echo -- Add new group--
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[3]
click //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[3]
waitForElementPresent groupName
type groupName Test_PRL_03_03_007
type label Test_PRL_03_03_007
type description Test_PRL_03_03_007
waitForElementPresent //form[@id='UIGroupForm']/div[2]/div/div/table/tbody/tr/td/div[1]/div/div/div
click //form[@id='UIGroupForm']/div[2]/div/div/table/tbody/tr/td/div[1]/div/div/div
echo -- Edit description of group--
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[2]
click //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[2]
waitForElementPresent description
type description Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007 Test_PRL_03_03_007
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
echo -- Delete group--
waitForElementPresent //a[@title='Delete Selected Group']
click //a[@title='Delete Selected Group']
assertConfirmation Are you sure you want to delete this group?
waitForElementPresent link=Sign out
click link=Sign out