Check Opportunities Notifications
setTimeout 45000
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 id=Opportunity_closeDate
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='ui-datepicker-div']/table/tbody/tr/td[3]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click Opportunity_owner_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent UsersSearchForm_anyMixedAttributes
type UsersSearchForm_anyMixedAttributes Jill 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 Jill Smith
assertElementPresent link=Jill Smith
click link=Jill Smith
waitForValue Opportunity_owner_name Jill Smith
assertNotValue Opportunity_owner_id
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='OpportunityDetailsPortletView']/div/div/div/table/tbody/tr[1]/td Test Opportunity ${randomSuffix}
waitForElementPresent //div[@id='CommentInlineEditForModelView']/div/div/form/div[1]/div/table/tbody/tr[1]/td/div[1]/textarea
type //div[@id='CommentInlineEditForModelView']/div/div/form/div[1]/div/table/tbody/tr[1]/td/div[1]/textarea comment added by Super User.
click //div[@id='CommentInlineEditForModelView']/div/div/form/div[2]/div/a/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent comment added by Super User.
assertTextPresent comment added by Super User.
open index.php/zurmo/default/login
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type LoginForm_username jill
type LoginForm_password jill
clickAndWait Login
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //ul[@id='user-header-menu']/li/a/span jill
open index.php/mashableInbox/default/list?modelClassName=Notification
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Opportunity comment creation or modification
waitForTextPresent Super User has commented on the opportunity 'Test Opportunity ${randomSuffix}':
waitForTextPresent comment added by Super User.
click //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[1]/label/input
click link=Delete selected
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
open index.php/users/default/profile
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Configuration
clickAndWait link=Notifications
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=UserNotificationConfigurationForm_enableOpportunityCommentNotificationInbox
click save
assertElementPresent link=Sign out
click link=Sign out
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
open index.php/zurmo/default/login
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type LoginForm_username super
type LoginForm_password super
clickAndWait Login
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //ul[@id='user-header-menu']/li/a/span super
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 id=Opportunity_closeDate
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='ui-datepicker-div']/table/tbody/tr/td[3]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click Opportunity_owner_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent UsersSearchForm_anyMixedAttributes
type UsersSearchForm_anyMixedAttributes Jill 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 Jill Smith
assertElementPresent link=Jill Smith
click link=Jill Smith
waitForValue Opportunity_owner_name Jill Smith
assertNotValue Opportunity_owner_id
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='OpportunityDetailsPortletView']/div/div/div/table/tbody/tr[1]/td Test Opportunity ${randomSuffix}
waitForElementPresent //div[@id='CommentInlineEditForModelView']/div/div/form/div[1]/div/table/tbody/tr[1]/td/div[1]/textarea
type //div[@id='CommentInlineEditForModelView']/div/div/form/div[1]/div/table/tbody/tr[1]/td/div[1]/textarea comment added by Super User.
click //div[@id='CommentInlineEditForModelView']/div/div/form/div[2]/div/a/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent comment added by Super User.
assertTextPresent comment added by Super User.
open index.php/zurmo/default/login
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type LoginForm_username jill
type LoginForm_password jill
clickAndWait Login
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //ul[@id='user-header-menu']/li/a/span jill
open index.php/mashableInbox/default/list?modelClassName=Notification
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextNotPresent Opportunity comment creation or modification
waitForTextNotPresent Super User has commented on the opportunity 'Test opportunity ${randomSuffix}':
waitForTextNotPresent comment added by Super User.
open index.php/zurmo/default/login
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type LoginForm_username super
type LoginForm_password super
clickAndWait Login
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //ul[@id='user-header-menu']/li/a/span super