Test_POR_12_02_036_CheckWhenChangeTitleOfPortletWithInvalidValueWhileEditingPortal
open /portal/public/classic/
echo -- Check when change title of portlet with invalid value while editing portal --
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Edit layout's portal --
waitForElementPresent link=Edit Layout
click link=Edit Layout
echo -- Edit portlet --
mouseOver //div/div/div[2]/div/div/div/div/div/div/div[2] Banner Portlet
waitForElementPresent //div/div/div[2]/div/div/div/div/div/div/a[1]
click //div/div/div[2]/div/div/div/div/div/div/a[1]
echo -- Choose Portlet Setting --
waitForElementPresent //div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]/div/div/div/div
click //div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]/div/div/div/div
echo -- Change current value of Title with new value less than 3 chars--
waitForElementPresent title
type title PO
waitForElementPresent link=Save And Close
click link=Save And Close
waitForTextPresent The length of the text in field "Portlet Title :" must be between "3" and "60" characters.
verifyTextPresent The length of the text in field "Portlet Title :" must be between "3" and "60" characters.
waitForElementPresent //div[6]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div[6]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
echo -- Change current value of Title with new value over 60 characters --
waitForElementPresent title
type title Test_POR_12_02_036 Test_POR_12_02_036 Test_POR_12_02_036 Test_POR_12_02_036 Test_POR_12_02_036 Test_POR_12_02_036 Test_POR_12_02_036 Test_POR_12_02_036
waitForElementPresent link=Save And Close
click link=Save And Close
waitForTextPresent The length of the text in field "Portlet Title :" must be between "3" and "60" characters.
verifyTextPresent The length of the text in field "Portlet Title :" must be between "3" and "60" characters.
waitForElementPresent //div[6]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div[6]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
waitForElementPresent Close
click Close
waitForElementPresent //div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]
click //div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]
waitForElementPresent link=Sign out
clickAndWait link=Sign out