Create Project
setTimeout 45000
storeGlobal javascript{Math.floor(Math.random()*11000)} randomSuffix
open index.php/accounts/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Account
type Account_name Test Account ${randomSuffix}
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[1]/td Test Account ${randomSuffix}
open index.php/contacts/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Contact
type Contact_firstName Test
type Contact_lastName Contact ${randomSuffix}
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Test Contact ${randomSuffix}
open index.php/opportunities/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Opportunity
type Opportunity_name Test Opportunity ${randomSuffix}
click //form[@id='edit-form']/div[2]/div[1]/div/table/tbody/tr[4]/td/div[1]/button
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click link=19
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Test Opportunity ${randomSuffix}
open index.php/projects/default/dashboardDetails
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Dashboard
assertTextPresent Projects
assertTextNotPresent Update
assertTextNotPresent Export
clickAndWait //div[@id='SecuredActionBarForProjectsDashboardView']/div[1]/nav[1]/div[2]/a/span
assertTextPresent Update
assertTextPresent Export
clickAndWait //div[@id='SecuredActionBarForProjectsSearchAndListView']/div/nav/div[2]/ul/li/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Create Project
clickAndWait save
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Name cannot be blank.
type Project_name Test Project ${randomSuffix}
type Project_description Test Project description
click Project_owner_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent UsersSearchForm_anyMixedAttributes
type UsersSearchForm_anyMixedAttributes Sam Smith
keyUp UsersSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a Sam Smith
click link=Sam Smith
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue Project_owner_name Sam Smith
type id=token-input-ProjectAccountsForm_Account_ids Test Account ${randomSuffix}
typeKeys //*[@id="token-input-ProjectAccountsForm_Account_ids"] Jil
typeKeys //*[@id="token-input-ProjectAccountsForm_Account_ids"] Jil
assertTextPresent Test Account ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=token-input-ProjectContactsForm_Contact_ids Test Contact ${randomSuffix}
typeKeys //*[@id="token-input-ProjectContactsForm_Contact_ids"] Jil
typeKeys //*[@id="token-input-ProjectContactsForm_Contact_ids"] Jil
assertTextPresent Test Contact ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=token-input-ProjectOpportunitiesForm_Opportunity_ids Test Opportunity ${randomSuffix}
typeKeys //*[@id="token-input-ProjectOpportunitiesForm_Opportunity_ids"] Jil
typeKeys //*[@id="token-input-ProjectOpportunitiesForm_Opportunity_ids"] Jil
assertTextPresent Test Opportunity ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=Project_status_value label=Active
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Project ${randomSuffix}