Check Project Notifications
setTimeout 45000
open index.php/projects/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Project
type Project_name creating project for testing notifications ${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 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
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue Project_owner_name Jill Smith
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 3000
waitForTextPresent creating project for testing notifications ${randomSuffix}
assertElementPresent link=Edit
clickAndWait link=Edit
setSpeed 0
select id=Project_status_value label=Archived
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //html/body/section/div[1]/div[2]/div[1]/nav/div[1]/a/i/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Task
setSpeed 3000
click //nav[contains(@class, 'pillbox clearfix')]/div[3]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 0
type Task_name creating task for testing notifications ${randomSuffix}
type Task_description test description
assertElementPresent link=More Details
click link=More Details
click //a[@id='Task_owner_SelectLink']/span[2]
waitForPageToLoad
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
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue Task_owner_name Jill Smith
click //div[@id='TaskModalEditView']/div/div/form/div[2]/div/div/a/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click css=span.ui-icon.ui-icon-closethick
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
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 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 New ProjectThe project, 'creating project for testing notifications ${randomSuffix}', is now owned by you.
waitForTextPresent Project ArchivedThe project, 'creating project for testing notifications ${randomSuffix}', is now archived.
waitForTextPresent Project Task AddedNew task, creating task for testing notifications ${randomSuffix}, was created for project, 'creating project for testing notifications ${randomSuffix}'. Created by Super User
waitForTextPresent New TasksThe task, 'creating task for testing notifications ${randomSuffix}', is now owned by you.
click //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[1]/label/input
click //div[@id='list-view']/div[2]/table/tbody/tr[2]/td[1]/label/input
click //div[@id='list-view']/div[2]/table/tbody/tr[3]/td[1]/label/input
click //div[@id='list-view']/div[2]/table/tbody/tr[4]/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_enableArchivedProjectNotificationInbox
click id=UserNotificationConfigurationForm_enableNewProjectNotificationInbox
click id=UserNotificationConfigurationForm_enableProjectTaskAddedNotificationInbox
click save
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/projects/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Project
type Project_name creating new project for testing notifications ${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 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
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue Project_owner_name Jill Smith
click save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 3000
waitForTextPresent creating new project for testing notifications ${randomSuffix}
assertElementPresent link=Edit
clickAndWait link=Edit
setSpeed 0
select id=Project_status_value label=Archived
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //html/body/section/div[1]/div[2]/div[1]/nav/div[1]/a/i/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Task
setSpeed 3000
click //nav[contains(@class, 'pillbox clearfix')]/div[3]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 0
type Task_name creating task for testing notifications ${randomSuffix}
type Task_description test description
assertElementPresent link=More Details
click link=More Details
click //a[@id='Task_owner_SelectLink']/span[2]
waitForPageToLoad
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
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue Task_owner_name Jill Smith
click //div[@id='TaskModalEditView']/div/div/form/div[2]/div/div/a/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click css=span.ui-icon.ui-icon-closethick
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
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 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 New ProjectThe project, 'creating new project for testing notifications ${randomSuffix}', is now owned by you.
waitForTextNotPresent Project ArchivedThe project, 'creating new project for testing notifications ${randomSuffix}', is now archived.
waitForTextNotPresent Project Task AddedNew task, creating task for testing notifications ${randomSuffix}, was created for project, 'creating new project for testing notifications ${randomSuffix}'. Created by Super User
waitForTextPresent New TasksThe task, 'creating task for testing notifications ${randomSuffix}', is now owned by you.
click //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[1]/label/input
click link=Delete selected
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