Test_PRL_03_04_002_DeleteGroupWithoutConfirmation
open /portal/public/classic/
echo -- Delete group without confirmation --
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 --
clickAndWait link=Users and groups management
echo -- Choose 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]
echo -- Add new group --
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_PRL_03_04_003
type label Test_PRL_03_04_003
type description Test_PRL_03_04_003
waitForElementPresent link=Save
click link=Save
echo -- Delete group without confirmation --
chooseCancelOnNextConfirmation
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]
assertConfirmation Are you sure you want to delete this group?
waitForTextPresent Test_PRL_03_04_003
verifyTextPresent Test_PRL_03_04_003
echo -- Delete group with confirmation --
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]
assertConfirmation Are you sure you want to delete this group?
verifyTextNotPresent Test_PRL_03_04_003
clickAndWait link=Sign out