AddOrganizationAddressZipNullTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Organizations
store eval(selenium.isVisible('link=« Basic')) basicVisible
gotoIf !${basicVisible} BasicNotVisible
clickAt link=« Basic
label BasicNotVisible
type _126_keywords Selenium
clickAtAndWait //input[@value='Search']
assertText //td[2]/a Selenium
clickAtAndWait //td[2]/a
assertPartialText //a[@id='_126_addressesLink'] Addresses
clickAt //a[@id='_126_addressesLink'] Addresses
waitForVisible _126_addressStreet1_0 Street 1
type _126_addressStreet1_0 12345 Selenium St
type _126_addressCity0 Diamond Bar
type _126_addressZip0
waitForPartialText _126_addressCountryId0 United States
select _126_addressCountryId0 label=United States
waitForPartialText _126_addressRegionId0 California
select _126_addressRegionId0 label=California
select _126_addressTypeId0 label=Billing
clickAt _126_addressMailing0Checkbox
clickAt _126_addressPrimary0
pause 5000
clickAtAndWait //input[@value='Save']
assertText xPath=(//div[@class='portlet-msg-error'])[1] You have entered invalid data. Please try again.
assertText xPath=(//div[@class='portlet-msg-error'])[2] Please enter a valid zip.