AssertCannotDeleteApplyOrganizationTest
waitForElementPresent link=Enterprise Admin Test Page
clickAtAndWait link=Enterprise Admin Test Page
clickAtAndWait link=Organizations
type _79_keywords Selenium
clickAtAndWait //input[@value='Search Organizations']
clickAt //strong/span
waitForElementPresent link=View Users
clickAtAndWait link=View Users
store eval(selenium.isTextPresent('No users were found.')) NoUsersAssigned
gotoIf ${NoUsersAssigned} NoUsersPresent
clickAtAndWait link=Organizations
type _79_keywords Selenium
clickAtAndWait //input[@value='Search Organizations']
clickAt _79_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