Test_SNF_PRL_56_ChangeSiteConfigWhenEditLayoutForUserPage
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--
click link=Add New Page
waitForElementPresent link=Add New Page
waitForElementPresent pageName
type pageName Test_SNF_PRL_56
type i18nizedLabel Test_SNF_PRL_56
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']
assertLocation http://localhost:8080/portal/users/root/Test_SNF_PRL_56
echo -- Edit Layout --
waitForElementPresent link=Edit Layout
click link=Edit Layout
echo -- Click Site's config from edit inline composer--
waitForElementPresent link=Site's Config
click link=Site's Config
echo -- Make change something --
waitForElementPresent locale
select locale label=French
waitForElementPresent skin
select skin label=SimpleSkin
echo -- Choose Properties--
waitForElementPresent //div[text()='Properties']
click //div[text()='Properties']
waitForElementPresent link=Save
click link=Save
echo -- Finish change in Site config's portal --
waitForElementPresent //div[@id='UIPortalComposer']//a[@title="Finish"]
click //div[@id='UIPortalComposer']//a[@title="Finish"]
echo - https://issues.jboss.org/browse/GTNPORTAL-2070 -
echo -- Delete new tab
clickAndWait link=Dashboard
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?
echo -- Edit Layout --
waitForElementPresent link=Edit Layout
click link=Edit Layout
echo -- Click Site's config from edit inline composer--
waitForElementPresent link=Site's Config
click link=Site's Config
echo -- Make change something --
waitForElementPresent locale
select locale label=English
waitForElementPresent skin
select skin label=Default
echo -- Choose Properties--
waitForElementPresent //div[text()='Properties']
click //div[text()='Properties']
waitForElementPresent link=Save
click link=Save
echo -- Finish change in Site config's portal --
waitForElementPresent //div[@id='UIPortalComposer']//a[@title="Finish"]
click //div[@id='UIPortalComposer']//a[@title="Finish"]
waitForElementPresent link=Sign out
clickAndWait link=Sign out