Create Edit Delete Meetings For Accounts
setTimeout 45000
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Advanced
type AccountsSearchForm_anyMixedAttributes my account ${randomSuffix}
keyUp AccountsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a my account ${randomSuffix}
verifyTextPresent my account ${randomSuffix}
clickAndWait link=my account ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent my account ${randomSuffix}
clickAndWait //div[@id='AccountDetailsAndRelationsView']/div[2]/div/ul[2]/li[1]/div[1]/div/div/div/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Meeting
type Meeting_name Project kick-off account ${randomSuffix}
type Meeting_location Telephone
click Meeting_startDateTime
waitForTextPresent Hour
click //div[@id='ui-datepicker-div']/div[1]/a[2]/span
click //div[@id='ui-datepicker-div']/table/tbody/tr[2]/td[3]/a
click //div[@id='ui-datepicker-div']/div[3]/button[2]
click Meeting_endDateTime
waitForTextPresent Hour
click //div[@id='ui-datepicker-div']/div[1]/a[2]/span
click //div[@id='ui-datepicker-div']/table/tbody/tr[3]/td[3]/a
click //div[@id='ui-datepicker-div']/div[3]/button[2]
select Meeting_category_value label=Call
verifyValue ActivityItemForm_Account_name my account ${randomSuffix}
click ActivityItemForm_Opportunity_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Opportunity Search
waitForElementPresent OpportunitiesSearchForm_anyMixedAttributes
type OpportunitiesSearchForm_anyMixedAttributes Test Opportunity ${randomSuffix}
keyUp OpportunitiesSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td[1]/a Test Opportunity ${randomSuffix}
verifyTextPresent Test Opportunity ${randomSuffix}
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td[1]/a
waitForValue ActivityItemForm_Opportunity_name Test Opportunity ${randomSuffix}
type Meeting_description This is a test Meeting
click Meeting_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
waitForValue Meeting_owner_name Sam Smith
click Meeting_explicitReadWriteModelPermissions_type_2
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent my account ${randomSuffix}
click //div[@id='UpcomingMeetingsForAccountCalendarView']/div/div/div/a[2]/span
click //div[@id='UpcomingMeetingsForAccountCalendarView']/div/div/table/tbody/tr[2]/td[3]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Project kick-off account ${randomSuffix}
clickAndWait //div[@id='days-meetings-list-view']/div[2]/table/tbody/tr/td/div/div/h3/span/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Project kick-off account ${randomSuffix}
verifyValue Meeting_location Telephone
verifyTextPresent Call
verifyTextPresent my account ${randomSuffix}
verifyTextPresent Test Opportunity ${randomSuffix}
verifyTextPresent Everyone
verifyTextPresent This is a test Meeting
type Meeting_name Project kick-off new account ${randomSuffix}
click Meeting_explicitReadWriteModelPermissions_type_0
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent my account ${randomSuffix}
click //div[@id='UpcomingMeetingsForAccountCalendarView']/div/div/div/a[2]/span
click //div[@id='UpcomingMeetingsForAccountCalendarView']/div/div/table/tbody/tr[2]/td[3]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Project kick-off new account ${randomSuffix}
clickAndWait //div[@id='days-meetings-list-view']/div[2]/table/tbody/tr/td/div/div/h3/span/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Project kick-off new account ${randomSuffix}
verifyTextPresent Owner
clickAndWait link=Delete
waitForConfirmation Are you sure you want to delete this meeting?
waitForPageToLoad
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Advanced
type AccountsSearchForm_anyMixedAttributes my account ${randomSuffix}
keyUp AccountsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a my account ${randomSuffix}
verifyTextPresent my account ${randomSuffix}
clickAndWait link=my account ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent my account ${randomSuffix}
click //div[@id='UpcomingMeetingsForAccountCalendarView']/div/div/div/a[2]/span
click //div[@id='UpcomingMeetingsForAccountCalendarView']/div/div/table/tbody/tr[2]/td[3]/a
verifyTextNotPresent Project kick-off new account ${randomSuffix}