Create Account
setTimeout 45000
open index.php/accounts/default?clearingSearch=1
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Create
assertTextPresent Update
assertTextPresent Export
assertTextPresent Delete
type id=AccountsSearchForm_anyMixedAttributes Test Account ${randomSuffix}
keyUp id=AccountsSearchForm_anyMixedAttributes \10
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a Test Account ${randomSuffix}
verifyTextPresent Test Account ${randomSuffix}
verifyValue AccountsSearchForm_anyMixedAttributes Test Account ${randomSuffix}
click //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Test Account ${randomSuffix}
setSpeed 2000
clickAndWait //div[@class='juiportlet-columns']/ul[2]/li[3]/div[1]/div/div/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=Contact_firstName Test
type id=Contact_lastName Contact ${randomSuffix}
select id=Contact_state_id label=Customer
clickAndWait name=save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Test Contact ${randomSuffix}
clickAndWait //div[@class='juiportlet-columns']/ul[2]/li[3]/div[1]/div/div/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=Contact_firstName Test
click name=save
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Last Name cannot be blank.
type id=Contact_lastName Zurmo ${randomSuffix}
click name=save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Zurmo ${randomSuffix}
setSpeed 2000
click link=Unlink
waitForConfirmation Are you sure you want to unlink this contact?
chooseCancelOnNextConfirmation
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Zurmo ${randomSuffix}
click link=Unlink
waitForConfirmation Are you sure you want to unlink this contact?
chooseOkOnNextConfirmation
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertText //div[@id='AccountDetailsAndRelationsView']/div[2]/div/ul[2]/li[3]/div[2]/div/div/table/tbody/tr[1]/td[1]/div/a Test Zurmo ${randomSuffix}
waitForElementNotPresent //div[@id='AccountDetailsAndRelationsView']/div[2]/div/ul[2]/li[3]/div[2]/div/div/table/tbody/tr[2]
clickAndWait //div[@class='juiportlet-columns']/ul[2]/li[3]/div[1]/div/div/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 1
type id=Contact_firstName Test
type id=Contact_lastName Contact ${randomSuffix}
select id=Contact_state_id label=Customer
clickAndWait name=save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Contact ${randomSuffix}