AssertCannotDeleteApplyOrganizationTest
waitForElementPresent link=Organizations
clickAtAndWait link=Organizations
store eval(selenium.isVisible('link=« Basic')) Basic1Present
gotoIf !${Basic1Present} basic1NotPresent
clickAt link=« Basic
label basic1NotPresent
waitForVisible _126_keywords
type _126_keywords Selenium
clickAtAndWait //input[@value='Search']
pause 2500
waitForVisible //strong/span
clickAt //strong/span
waitForElementPresent //div[4]/ul/li[6]/a
clickAtAndWait //div[4]/ul/li[6]/a
store eval(selenium.isTextPresent('No users were found.')) NoUsersAssigned
gotoIf ${NoUsersAssigned} NoUsersPresent
clickAtAndWait link=Organizations
store eval(selenium.isVisible('link=« Basic')) Basic2Present
gotoIf !${Basic2Present} basic2NotPresent
clickAt link=« Basic
label basic2NotPresent
waitForVisible _126_keywords
type _126_keywords Selenium
clickAtAndWait //input[@value='Search']
clickAt _126_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete this?
assertTextPresent You have entered invalid data. Please try again.
assertTextPresent You cannot delete organizations that have suborganizations or users.
label NoUsersPresent