Create Edit Delete Meetings For Opportunity
setTimeout 45000
open index.php/opportunities/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Advanced
type OpportunitiesSearchForm_anyMixedAttributes Test Opportunity ${randomSuffix}
keyUp OpportunitiesSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='OpportunitiesListView']/div/table/tbody/tr/td[2]/a Test Opportunity ${randomSuffix}
verifyTextPresent Test Opportunity ${randomSuffix}
clickAndWait link=Test Opportunity ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Opportunity ${randomSuffix}
clickAndWait //div[@id='UpcomingMeetingsForOpportunityCalendarView']/div[1]/div/a
waitForTextPresent Create Meeting
type Meeting_name Project kick-off opportunity ${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
click ActivityItemForm_Account_SelectLink
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent AccountsSearchForm_anyMixedAttributes
type AccountsSearchForm_anyMixedAttributes my account ${randomSuffix}
keyUp AccountsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/table/tbody/tr/td[1]/a my account ${randomSuffix}
verifyTextPresent my account ${randomSuffix}
click //div[@id='list-viewmodal']/table/tbody/tr/td[1]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue ActivityItemForm_Account_name my account ${randomSuffix}
verifyValue 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='UsersModalListView']/div/table/tbody/tr/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 Test Opportunity ${randomSuffix}
click //div[@id='UpcomingMeetingsForOpportunityCalendarView']/div[2]/div/div/a[2]/span
click //div[@id='UpcomingMeetingsForOpportunityCalendarView']/div[2]/div/table/tbody/tr[2]/td[3]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Project kick-off opportunity ${randomSuffix}
clickAndWait //div[@id='days-meetings-list-view']/table/tbody/tr[1]/td/div/h3/span/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Project kick-off opportunity ${randomSuffix}
verifyValue Meeting_location Telephone
verifyTextPresent Call
verifyTextPresent Test Opportunity ${randomSuffix}
verifyTextPresent Test Opportunity ${randomSuffix}
verifyTextPresent Everyone
verifyTextPresent This is a test Meeting
type Meeting_name Project kick-off new opportunity ${randomSuffix}
click Meeting_explicitReadWriteModelPermissions_type_0
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Opportunity ${randomSuffix}
click //div[@id='UpcomingMeetingsForOpportunityCalendarView']/div[2]/div/div/a[2]/span
click //div[@id='UpcomingMeetingsForOpportunityCalendarView']/div[2]/div/table/tbody/tr[2]/td[3]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Project kick-off new opportunity ${randomSuffix}
clickAndWait //div[@id='days-meetings-list-view']/table/tbody/tr[1]/td/div/h3/span/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Project kick-off new opportunity ${randomSuffix}
verifyTextPresent Owner
clickAndWait link=Delete
waitForConfirmation Are you sure you want to delete this meeting?
waitForPageToLoad
open index.php/opportunities/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Advanced
type OpportunitiesSearchForm_anyMixedAttributes Test Opportunity ${randomSuffix}
keyUp OpportunitiesSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='OpportunitiesListView']/div/table/tbody/tr/td[2]/a Test Opportunity ${randomSuffix}
verifyTextPresent Test Opportunity ${randomSuffix}
clickAndWait link=Test Opportunity ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Opportunity ${randomSuffix}
click //div[@id='UpcomingMeetingsForOpportunityCalendarView']/div[2]/div/div/a[2]/span
click //div[@id='UpcomingMeetingsForOpportunityCalendarView']/div[2]/div/table/tbody/tr[2]/td[3]/a
verifyTextNotPresent Project kick-off new opportunity ${randomSuffix}