AssertCannotDeleteApplyOrganizationTest
waitForElementPresent link=Organizations
clickAtAndWait link=Organizations
store eval(selenium.isVisible('link=« Basic')) BasicPresent
gotoIf !${BasicPresent} basicNotPresent
click link=« Basic
label basicNotPresent
type _126_keywords Selenium
clickAtAndWait //input[@value='Search']
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 _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