Test-case indicator-messages/unity7-items-check
Log in to a Unity 7 user session
Go to the panel and click on the Messages indicator
Ensure there are items in the menu
Test-case indicator-messages/unity7-greeter-items-check
Start a system and wait for the greeter or logout of the current user session
Go to the panel and click on the Messages indicator
Ensure there are items in the menu
Test-case indicator-messages/unity8-items-check
Login to a user session running Unity 8
Pull down the top panel until it sticks open
Navigate through the tabs until "Notifications" is shown
Incoming is at the top of the menu
The menu is populated with items
Test-case indicator-messages/unity8-phone-symbolic-icon
NOTE: Requires Unity8 and Telephony hardware
Login to a user session running Unity 8
Send an SMS to the device
Icon on the panel should change color signifying a new message
Verify the application icon in the menu item is monochromatic
On the right side of the item the application icon should have no color
Test-case indicator-messages/unity8-embedded-greeter
NOTE: Only works with embedded greeter, split greeter will require modifications to this test
NOTE: Only works on a device that can receive SMS messages
Ensure System Settings is set to "Show Messages on Greeter"
Send an SMS to the device
The notification icon should change color
There should be an entry in the messaging menu with the SMS message
The item should include the sender and the start of the message
Go to the greeter. This can be done by hitting the lock button twice.
Ensure the messaging menu has the message
The notification icon should have color
There should be an entry in the messaging menu with the SMS message
The item should include the sender and the start of the message
Clear the message in the greeter
The message should no longer be in the messaging menu
Disable System Settings value "Show Messages on Greeter"
Send an SMS to the device
The notification icon should change color
There should be an entry in the messaging menu with the SMS message
The item should include the sender and the start of the message
Go to the greeter. This can be done by hitting the lock button twice.
Ensure the messaging menu has the message, but it does not include the start of the message
The notification icon should have color
There should be an entry in the messaging menu with the SMS message
The item should include the sender but NOT the start of the message
Clear the message in the greeter
The message should no longer be in the messaging menu
Test-case indicator-messages/push-message-twitter
From a shell prompt send a simultated Twitter push notification
gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/com_2eubuntu_2edeveloper_2ewebapps_2ewebapp_2dtwitter --method com.ubuntu.Postal.Post com.ubuntu.developer.webapps.webapp-twitter_webapp-twitter '"{\"message\": \"foobar\", \"notification\":{\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'
The messaging envelope on the panel should change to highlight a message
Open the messaging menu
The menu should contain an entry with the Twitter icon for the application
The title of the message should be 'yes'
The body of the message should be 'hello'
At the bottom of them menu there should be a 'Clear All' menu item
Clear the message using the 'Clear All' command
The Twitter message should disappear
The 'Clear All' item should disappear
The icon in the panel should return to its original state