Test_PRL_04_04_005_CheckExistingOfUserInGroupAfterHisRoleInThatGroupWasDeleted
open /portal/public/classic/
echo --Check existing of user in group after his role in that group was deleted--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div
echo -- Go to User and Group management--
waitForElementPresent link=Users and groups management
click link=Users and groups management
echo -- Choose Membership Management--
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[3]/div[1]
click //div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[3]/div[1]
waitForElementPresent name
type name Test_PRL_04_04_005
type description Test_PRL_04_04_005
waitForElementPresent link=Save
click link=Save
echo -- Go to Group 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
echo -- Select a group --
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=Communication
click link=Communication
waitForElementPresent username
type username mary
waitForElementPresent membership
select membership label=Test_PRL_04_04_005
waitForElementPresent link=Save
click link=Save
echo -- Return to Membership Management to delete new membership--
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[3]/div[1]
click //div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[3]/div[1]
waitForElementPresent //div[@id='UIGrid']/table/tbody/tr[4]/td[5]/div/img[2]
click //div[@id='UIGrid']/table/tbody/tr[4]/td[5]/div/img[2]
assertConfirmation Are you sure you want to delete this membership?
echo -- Check existing of user in group--
waitForElementPresent link=Group Management
click link=Group Management
clickAndWait link=Sign out