Test_POR_24_01_002_CheckNavigationListByUserWhoDoesNotHaveRightToEditAnyGroupNavigation
open /portal/public/classic/
echo -- Check navigations list by user who does not have right to edit any group navigation --
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Create new user --
clickAndWait link=New Staff
waitForElementPresent username
type username Test_POR_24_01_002
type password Test_POR_24_01_002
type Confirmpassword Test_POR_24_01_002
type firstName Test_POR_24_01_002
type lastName Test_POR_24_01_002
type email Test_POR_24_01_002@gmail.com
echo -- Choose User Profile tab --
waitForElementPresent //div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
click //div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent user.language
select user.language label=English
waitForElementPresent link=Save
click link=Save
waitForTextPresent You have registered a new account.
verifyTextPresent You have registered a new account.
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
echo -- Add this user into a group with membership is not “Manager” --
clickAndWait link=Users and groups management
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[2]/div[1]
click //div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[2]/div[1]
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div/a
click //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div/a
waitForElementPresent link=Management
click link=Management
waitForElementPresent username
type username Test_POR_24_01_002
waitForElementPresent link=Save
click link=Save
clickAndWait link=Sign out
open /portal/public/classic/
echo -- Login by new user --
click link=Sign in
waitForElementPresent username
type username Test_POR_24_01_002
type password Test_POR_24_01_002
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Group
echo -- The Add Navigation button is not existing --
verifyTextPresent
clickAndWait link=Sign out
open /portal/public/classic/
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Go to Users and group management --
clickAndWait link=Users and groups management
echo -- Search new user --
waitForElementPresent searchTerm
type searchTerm Test_POR_24_01_002
waitForElementPresent //form[@id='UISearchForm']/div[2]/a
click //form[@id='UISearchForm']/div[2]/a
echo -- Delete user --
waitForElementPresent //img[@alt='DeleteUser']
click //img[@alt='DeleteUser']
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete Test_POR_24_01_002 user?
clickAndWait link=Sign out