Test_PRL_05_06_004_LimitAccessRightForApplicationInNotPublicCategoryGroupMembershipToAccessApplicationAndCategoryAreNotTheSame
open /portal/public/classic/
echo -- Limit access right for application in not public category group/membership to access application & category are not the same--
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
click //div[@id='UIApplicationOrganizer']/div[1]/div[1]
waitForElementPresent name
type name Test_PRL_05_06_004
type displayName Test_PRL_05_06_004
type description Test_PRL_05_06_004
click //div[@id='UIApplicationOrganizer']/div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent link=Add Permission
click link=Add Permission
click link=Platform
waitForElementPresent link=Platform
waitForElementPresent link=Administrators
click link=Administrators
waitForElementPresent link=exact:*
click link=exact:*
waitForElementPresent link=Save
click link=Save
echo -- Add aplication into category--
waitForElementPresent //div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[3]
click //div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[3]
waitForElementPresent //input[@name='application' and @value='5']
click //input[@name='application' and @value='5']
waitForElementPresent link=Add
click link=Add
waitForElementPresent publicMode
click publicMode
waitForElementPresent link=Add Permission
click link=Add Permission
waitForElementPresent link=Platform
click link=Platform
waitForElementPresent link=Administrators
click link=Administrators
waitForElementPresent link=manager
click link=manager
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Add new page which user has right to access category but does not have right to access application--
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username john
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=New Staff
click link=Add New Page
waitForElementPresent pageName Test_PRL_05_06_004
type pageName Test_PRL_05_06_004
type pageDisplayName Test_PRL_05_06_004
echo -- Go to Step 2--
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
echo -- Go to step 3--
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
echo -- Choose new catefory--
waitForElementPresent link=Test_PRL_05_06_004
click link=Test_PRL_05_06_004
waitForElementPresent //div[@id='Test_PRL_05_06_004/DashboardPortlet']/div/div //div[2]/div/div/div[1]/div/div[2]/div/div/div/div
dragAndDropToObject //div[@id='Test_PRL_05_06_004/DashboardPortlet']/div/div //div[2]/div/div/div[1]/div/div[2]/div/div/div/div
clickAndWait //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Add new page which user has right to access the application but does not have right to access the category--
click link=Sign in
waitForElementPresent username
type username mary
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Dashboard
waitForElementPresent link=Add New Page
click link=Add New Page
waitForElementPresent pageName
type pageName Test_PRL_05_06_004
type pageDisplayName Test_PRL_05_06_004
echo -- Go to step 2--
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
echo -- Go to step 3--
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
clickAndWait //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
clickAndWait link=Sign out
echo -- Delete category--
open /portal/public/classic/
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Application Registry
waitForElementPresent //div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div/div/div/div/a
click //div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div/div/div/div/a
waitForElementPresent //div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[2]
click //div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[2]
assertConfirmation Are you sure to delete this category and all applications on it?
clickAndWait link=Sign out
echo -- Delete page user has right to access category but does not have right to access application --
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[2]/div[1]/div/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[2]/div[1]/div/a
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon' and @title='Test_PRL_05_06_004']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon' and @title='Test_PRL_05_06_004']
click link=Delete Node
assertConfirmation Are you sure you want to delete this node?
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Delete page which user has right to access the application but does not have right to access the category--
open /portal/public/classic/
waitForElementPresent link=User
click link=User
waitForElementPresent link=Dashboard
clickAndWait link=Dashboard
waitForElementPresent link=Test_PRL_05_06_004
click link=Test_PRL_05_06_004
waitForElementPresent //div[@id='UITabPaneDashboard']/div/div/div/div/div/div[2]/div/div/div/div/a/img
click //div[@id='UITabPaneDashboard']/div/div/div/div/div/div[2]/div/div/div/div/a/img
assertConfirmation Really want to remove this dashboard?
clickAndWait link=Sign out