Check Mission Notifications
setTimeout 45000
setSpeed 3000
open index.php/missions/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Mission
type id=Mission_description creating mission for testing notifications ${randomSuffix}
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent creating mission for testing notifications ${randomSuffix}
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 MissionHello,
waitForTextPresent There is a new mission. Be the first one to start it and get this great reward: .
open index.php/mashableInbox/default/list?modelClassName=Mission
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type MashableInboxForm_searchTerm creating mission for testing notifications ${randomSuffix}
keyUp MashableInboxForm_searchTerm \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr/td[2]/a creating mission for testing notifications ${randomSuffix}
verifyTextPresent creating mission for testing notifications ${randomSuffix}
verifyValue MashableInboxForm_searchTerm creating mission for testing notifications ${randomSuffix}
click //div[@id='list-view']/div[2]/table/tbody/tr/td[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent creating mission for testing notifications ${randomSuffix}
click //div[@id='ModelDetailsSummaryView']/div/div/div/a/span[3]
waitForElementPresent Comment_description
type Comment_description comment added by Jill
click save
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent comment added by Jill
assertTextPresent comment added by Jill
open index.php/mashableInbox/default/list?modelClassName=Notification
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent New MissionHello,
waitForTextPresent There is a new mission. Be the first one to start it and get this great reward: .
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_enableMissionCommentNotificationInbox
click id=UserNotificationConfigurationForm_enableMissionStatusChangeNotificationInbox
click id=UserNotificationConfigurationForm_enableNewMissionNotificationInbox
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/mashableInbox/default/list?modelClassName=Notification
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Mission comment creation or modification
waitForTextPresent Jill Smith added a new comment to the mission:
waitForTextPresent comment added by Jill
waitForTextPresent A mission status has changedA mission you created has been taken on by Jill Smith-Click Here
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 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_enableMissionCommentNotificationInbox
click id=UserNotificationConfigurationForm_enableMissionStatusChangeNotificationInbox
click id=UserNotificationConfigurationForm_enableNewMissionNotificationInbox
click save
open index.php/missions/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Mission
type id=Mission_description creating new mission for testing notifications ${randomSuffix}
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent creating new mission for testing notifications ${randomSuffix}
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 MissionHello,
waitForTextNotPresent There is a new mission. Be the first one to start it and get this great reward: .
open index.php/mashableInbox/default/list?modelClassName=Mission
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=MashableInboxForm_searchTerm creating new mission for testing notifications ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent creating new mission for testing notifications ${randomSuffix}
clickAndWait //div[@id='list-view']/div[2]/table/tbody/tr/td[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent creating new mission for testing notifications ${randomSuffix}
click //div[@id='ModelDetailsSummaryView']/div/div/div/a/span[3]
waitForElementPresent Comment_description
type Comment_description comment added by Jill
click save
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent comment added by Jill
assertTextPresent comment added by Jill
assertElementPresent link=Sign out
click link=Sign out
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 0
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/mashableInbox/default/list?modelClassName=Notification
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextNotPresent Mission comment creation or modification
waitForTextNotPresent Jill Smith added a new comment to the mission:
waitForTextNotPresent comment added by Jill
waitForTextNotPresent A mission status has changedA mission you created has been taken on by Jill Smith-Click Here