Test_POR_24_02_005_CreateNewNaviForTheSameGroupAfterCurrentNavigationHadJustBeenDeleted
open /portal/public/classic/
echo -- Create new nav for the same group after current navigation had just been deleted --
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Add new user --
clickAndWait link=New Staff
waitForElementPresent username
type username Test_POR_24_02_005
type password Test_POR_24_02_005
type Confirmpassword Test_POR_24_02_005
type firstName Test_POR_24_02_005
type lastName Test_POR_24_02_005
type email Test_POR_24_02_005@gmail.com
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
click //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div
echo -- Go to user and group management --
clickAndWait link=Users and groups management
clickAndWait link=Users and groups management
echo -- Add new group --
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[1]/a[3]
click //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[3]
waitForElementPresent groupName
type groupName Test_POR_24_02_005
type label Test_POR_24_02_005
type description Test_POR_24_02_005
waitForElementPresent link=Save
click link=Save
echo -- Add this user into new added group with “manager” role --
waitForElementPresent username
type username Test_POR_24_02_005
waitForElementPresent membership
select membership label=manager
waitForElementPresent link=Save
click link=Save
clickAndWait link=Sign out
open /portal/public/classic/
click link=Sign in
waitForElementPresent username
type username Test_POR_24_02_005
type password Test_POR_24_02_005
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Group
echo -- Create navigation for group --
waitForElementPresent link=Add Navigation
click link=Add Navigation
waitForElementPresent //div[@id='UIAddGroupNavigationGrid']/table/tbody/tr/td[2]/a
click //div[@id='UIAddGroupNavigationGrid']/table/tbody/tr/td[2]/a
waitForTextPresent Each of the groups has navigation now
verifyTextPresent Each of the groups has navigation now
waitForElementPresent link=Cancel
click link=Cancel
echo -- Delete group navigation --
click link=Delete Navigation
waitForConfirmationPresent
assertConfirmation Are you sure to delete this navigation?
waitForTextPresent
verifyTextPresent
echo --  Create navigation after deleted --
waitForElementPresent link=Add Navigation
click link=Add Navigation
waitForElementPresent //div[@id='UIAddGroupNavigationGrid']/table/tbody/tr/td[2]/a
click //div[@id='UIAddGroupNavigationGrid']/table/tbody/tr/td[2]/a
waitForTextPresent Each of the groups has navigation now
verifyTextPresent Each of the groups has navigation now
click link=Cancel
waitForTextPresent Test_POR_24_02_005
verifyTextPresent Test_POR_24_02_005
echo -- Delete group navigation --
waitForElementPresent link=Delete Navigation
click link=Delete Navigation
waitForConfirmationPresent
assertConfirmation Are you sure to delete this navigation?
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 -- delete new group --
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 link=Test_POR_24_02_005
click link=Test_POR_24_02_005
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[1]
click //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[1]
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this group?
echo -- Delete new user --
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[1]/div[1]
click //div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[1]/div[1]
waitForElementPresent searchTerm
type searchTerm Test_POR_24_02_005
waitForElementPresent //form[@id='UISearchForm']/div[2]/a
click //form[@id='UISearchForm']/div[2]/a
waitForElementPresent //img[@alt='DeleteUser']
click //img[@alt='DeleteUser']
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete Test_POR_24_02_005 user?
waitForElementPresent link=Sign out
clickAndWait link=Sign out