Test_SNF_PRL_57_ChangeContainerWhenEditLayoutForUserPage
open /portal/public/classic/
echo -- Add new page for user --
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']
clickAndWait link=Dashboard
echo -- Click Add new page on Dashboard editor menu--
waitForElementPresent link=Add New Page
click link=Add New Page
waitForElementPresent pageName
type pageName Test_SNF_PRL_57
type i18nizedLabel Test_SNF_PRL_57
echo -- Click Next to move step 2--
waitForElementPresent //div[contains(text(),'Next')]
click //div[contains(text(),'Next')]
echo -- Keep empty layout and click Next move step 3--
waitForElementPresent //div[contains(text(),'Next')]
click //div[contains(text(),'Next')]
echo -- Click Finish --
waitForElementPresent //a[@title='Finish']
clickAndWait //a[@title='Finish']
waitForTextPresent Test_SNF_PRL_57
verifyTextPresent Test_SNF_PRL_57
echo -- Edit Layout --
waitForElementPresent link=Edit Layout
click link=Edit Layout
echo -- View layout of page before Change container--
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
waitForElementNotPresent css= div[@id="UIPortalApplication"]
verifyElementNotPresent css= div[@id="UIPortalApplication"]
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
echo -- Change container--
waitForElementPresent //div[contains(text(),"Containers")]
click //div[contains(text(),"Containers")]
waitForElementPresent //div[@id='oneRow']/div //div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div/div[1]/div
dragAndDropToObject //div[@id='oneRow']/div //div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div/div[1]/div
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
waitForElementPresent UIPortalApplication
verifyElementPresent UIPortalApplication
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
echo --Edit container --
mouseOver //div[text()='Container']/following-sibling::a[@title='Edit Container']
click //div[text()='Container']/following-sibling::a[@title='Edit Container']
waitForElementPresent title
type title Test_SNF_PRL_57
waitForElementPresent width
type width 300px
waitForElementPresent height 100px
type height 100px
waitForElementPresent link=Save
click link=Save
echo -- Move position of container --
mouseOver //div[text()='Test_SNF_PRL_57']/following-sibling::a[@title='Edit Container']
dragAndDropToObject //div/div/div[2]/div/div/div[2]/div/div/div/div/div/div/div //div[@id='UIPortal-UIPortal']/div/div[1]
echo -- View after change position of container --
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
echo -- Delete container --
mouseOver //div[text()='Test_SNF_PRL_57']/following-sibling::a[@title='Delete Container']
waitForElementPresent //div[text()='Test_SNF_PRL_57']/following-sibling::a[@title='Delete Container']
click //div[text()='Test_SNF_PRL_57']/following-sibling::a[@title='Delete Container']
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this Container?
waitForElementPresent //div[@id='UIPortalComposer']//a[@title='Finish']
click //div[@id='UIPortalComposer']//a[@title='Finish']
echo -- Delete new tab
waitForElementPresent //div[@id='UITabPaneDashboard']/div/div/div/div/div/div[2]/div/div/div/div/a/img
clickAndWait //div[@id='UITabPaneDashboard']/div/div/div/div/div/div[2]/div/div/div/div/a/img
waitForConfirmationPresent
assertConfirmation Really want to remove this dashboard?
waitForElementPresent link=Sign out
clickAndWait link=Sign out