QA/Push Notifications: Difference between revisions

Line 72: Line 72:
# Set '''Show Notifications''' permission to "Always Ask".
# Set '''Show Notifications''' permission to "Always Ask".


=== Friday: In-Depth & Exploratory Tests ===
=== Weekly: In-Depth & Exploratory Tests ===
Notes:
Notes:
Manual/Automation: Test will be conducted manually
Manual/Automation: Test will be conducted manually
Line 80: Line 80:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Title !! Description !! Win 10 !! Win 8 !! Win 8.1 !! Vista !! Win 7 !! Mac OS !! Ubuntu
! Title !! Description
|-
|-
| <small>Doorhanger default state test</small> || <small>Verify the doorhanger reports if the site has requested any notification permissions.
| <small>Doorhanger default state test</small> || <small>Verify the doorhanger reports if the site has requested any notification permissions.
Line 86: Line 86:


2. <small>Verify the Verify the doorhanger reports if the site has requested any notification permissions.</small>
2. <small>Verify the Verify the doorhanger reports if the site has requested any notification permissions.</small>
|| || || || || || ||
|-
|-
| <small>Pop-up Dialog || V<small>erify that trying to display a notification causes a dialog to appear.
| <small>Pop-up Dialog || V<small>erify that trying to display a notification causes a dialog to appear.
Line 96: Line 95:


4. Verify the notification doorhanger appears again and requests permissions.</small></small>
4. Verify the notification doorhanger appears again and requests permissions.</small></small>
|| || || || || || ||
|-
|-
| <small>Close Dialog by External Means /  
| <small>Close Dialog by External Means /  
Line 105: Line 103:
2. Click outside of the notifications doorhanger.
2. Click outside of the notifications doorhanger.


3. Verify the notifications doorhanger is dismissed.</small>
3. Verify the notifications doorhanger is dismissed.</small>  
|| || || || || || ||
|-
|-
| L<small>earn More Link</small> || <small>Verify clicking on the "Learn more" link opens the target page.
| L<small>earn More Link</small> || <small>Verify clicking on the "Learn more" link opens the target page.
Line 114: Line 111:


3. Verify the browser redirects to https://www.mozilla.org/en-US/firefox/push/ (in a new tab).</small>
3. Verify the browser redirects to https://www.mozilla.org/en-US/firefox/push/ (in a new tab).</small>
|| || || || || || ||
|-
|-
| <small>Auto Close (Timeout)</small> || <small>Verify that a notification is auto-closed after X seconds.
| <small>Auto Close (Timeout)</small> || <small>Verify that a notification is auto-closed after X seconds.
Line 123: Line 119:
3. Verify the notification appears and auto-dismisses after X seconds.
3. Verify the notification appears and auto-dismisses after X seconds.


4. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
4. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>  
|| || || || || || ||
|-
|-
| <small>Blocking Notifications</small> || <small>Verify that blocking notifications prevents notifications from displaying.
| <small>Blocking Notifications</small> || <small>Verify that blocking notifications prevents notifications from displaying.
Line 138: Line 133:


6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Not Now</small> || <small>Verify clicking "Not Now" from the notification permissions doorhanger causes the permissions popup to appear again.
| <small>Not Now</small> || <small>Verify clicking "Not Now" from the notification permissions doorhanger causes the permissions popup to appear again.
Line 152: Line 146:


6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Permission Changes</small> || <small>Verify changing notification permissions in the address bar causes the notification permissions screen to reappear.
| <small>Permission Changes</small> || <small>Verify changing notification permissions in the address bar causes the notification permissions screen to reappear.
Line 190: Line 183:


18. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
18. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Programmatic Close</small> || V<small>erify programmatically closing a notification causes it to immediately disappear.
| <small>Programmatic Close</small> || V<small>erify programmatically closing a notification causes it to immediately disappear.
Line 204: Line 196:


6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Title Characters & Numbers</small> || <small>Verify title can contain special characters like % or /.
| <small>Title Characters & Numbers</small> || <small>Verify title can contain special characters like % or /.
Line 218: Line 209:


Set Show Notifications permission to "Always Ask".</small>
Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Swipe to Close</small> || <small>Verify notification can be manually dismissed by swiping it (OS X only).
| <small>Swipe to Close</small> || <small>Verify notification can be manually dismissed by swiping it (OS X only).
Line 228: Line 218:


4. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
4. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Require Interaction = True</small> || <small>Verify setting `requireInteraction` to true causes the notification to remain open until explicitly closed (OS X only).
| <small>Require Interaction = True</small> || <small>Verify setting `requireInteraction` to true causes the notification to remain open until explicitly closed (OS X only).
Line 242: Line 231:


6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Require Interaction = False</small> || <small>Verify setting `requireInteraction` to false (default) causes the notification to auto-close after X seconds.
| <small>Require Interaction = False</small> || <small>Verify setting `requireInteraction` to false (default) causes the notification to auto-close after X seconds.
Line 255: Line 243:
5. Verify the notification auto dismisses after X seconds.
5. Verify the notification auto dismisses after X seconds.


6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>  
|| || || || || || ||
|-
|-
| <small>Redirection = New Tab</small> || <small>Description: Verify clicking on a notification opens a specified URL.
| <small>Redirection = New Tab</small> || <small>Description: Verify clicking on a notification opens a specified URL.
Line 267: Line 254:
4. Verify that https://www.mozilla.org/en-US/ opens in a new tab.
4. Verify that https://www.mozilla.org/en-US/ opens in a new tab.


5. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
5. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>  
|| || || || || || ||
|-
|-
| <small>Redirection = Current Tab</small> || <small>Verify setting target opens specified URL in the specified window.
| <small>Redirection = Current Tab</small> || <small>Verify setting target opens specified URL in the specified window.
Line 282: Line 268:


6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Redirection = Same Window New Tab</small> || <small>Verify setting a target causes a notification to open in the same window.
| <small>Redirection = Same Window New Tab</small> || <small>Verify setting a target causes a notification to open in the same window.
Line 299: Line 284:
7. Verify that https://www.mozilla.org/en-US/ opens in the same tab as step 5.
7. Verify that https://www.mozilla.org/en-US/ opens in the same tab as step 5.


8. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
8. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>  
|| || || || || || ||
|-
|-
| <small>Target = _blank</small> || <small>Verify setting a _blank target causes a notification to open in the new window.
| <small>Target = _blank</small> || <small>Verify setting a _blank target causes a notification to open in the new window.
Line 318: Line 302:


8. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
8. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Multi/Repeat Message (Stacking)</small> || <small>Verify clicking the pop Notification button causes the notification to display multiple times.
| <small>Multi/Repeat Message (Stacking)</small> || <small>Verify clicking the pop Notification button causes the notification to display multiple times.
Line 331: Line 314:
5. Verify there are 11 notifications in the OSX notifications tray.
5. Verify there are 11 notifications in the OSX notifications tray.


6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>  
|| || || || || || ||
|-
|-
| <small>Hover Over Notification</small> || <small>Verify the notification is not dismissed when hovering over the notification.
| <small>Hover Over Notification</small> || <small>Verify the notification is not dismissed when hovering over the notification.
Line 345: Line 327:
5. Verify that the notification disappears after X seconds.
5. Verify that the notification disappears after X seconds.


6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>  
|| || || || || || ||
|-
|-
| <small>Hover Over Submenu</small> || <small>Verify the notification is not dismissed when hovering over an item in the submenu (OS X only).
| <small>Hover Over Submenu</small> || <small>Verify the notification is not dismissed when hovering over an item in the submenu (OS X only).
Line 361: Line 342:
6. Verify notification doorhanger appears.
6. Verify notification doorhanger appears.


7. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
7. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>  
|| || || || || || ||
|-
|-
| <small>Preferences - Choose</small> || <small>Verify allowing notifications reports correctly in about:preferences#content
| <small>Preferences - Choose</small> || <small>Verify allowing notifications reports correctly in about:preferences#content
Line 376: Line 356:


6.teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
6.teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Notification Settings: <br />
| <small>Notification Settings: <br />
Line 392: Line 371:


6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Notification: Preferences - Blocking</small> || <small>Verify blocking notifications reports correctly in about:preferences#content
| <small>Notification: Preferences - Blocking</small> || <small>Verify blocking notifications reports correctly in about:preferences#content
Line 406: Line 384:


6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
6. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Notification: Title > Size and Text Wrapping</small> || <small>Verify a long "Title" doesn't cause the notification to re-size.
| <small>Notification: Title > Size and Text Wrapping</small> || <small>Verify a long "Title" doesn't cause the notification to re-size.
Line 418: Line 395:


5. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
5. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Notification: Body > Size and Text Wrapping</small> || <small>Verify a long "Body Text" doesn't cause the notification to re-size.
| <small>Notification: Body > Size and Text Wrapping</small> || <small>Verify a long "Body Text" doesn't cause the notification to re-size.
Line 430: Line 406:


5. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
5. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
|| || || || || || ||
|-
|-
| <small>Notification: Title Characters & Numbers</small> || <small>Verify title can contain special characters like % or /.
| <small>Notification: Title Characters & Numbers</small> || <small>Verify title can contain special characters like % or /.
Line 441: Line 416:
4. Verify the title text is accurately displayed.
4. Verify the title text is accurately displayed.


5. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
5. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>  
|| || || || || || ||
|-
|-
| <small>Notification: Body Text Characters & Numbers</small> || <small>Verify body can contain special characters like % or /.
| <small>Notification: Body Text Characters & Numbers</small> || <small>Verify body can contain special characters like % or /.
Line 453: Line 427:
4. Verify the body text is accurately displayed.
4. Verify the body text is accurately displayed.


5. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>
5. teardown() = Click on lock icon in the address bar & Set Show Notifications permission to "Always Ask".</small>  
|| || || || || || ||  
|-
| <small>Pop-up Settings > Do not disturb me until I restart Nightly</small>
|| <small>1. Access https://pdehaan.github.io/push-notification-test/
 
2. Click the pop Notification button
 
3. Set the hanger to Always Receive Notifications
 
4. Verify a popup notification is displayed
 
5. Click the settings icon on the notification pop-up
 
6. Select the option Do not disturb me until I restart Nightly
 
7. Click pop Notification button several times and ensure the pop-up dialog for the notification does not appear
 
8. Click the lock icon and select Always Ask
 
9. Close and restart the browser</small>
|-
| <small>Content > Block pop-up windows
(about:preferences#content)</small>
|| <small>1. Access https://pdehaan.github.io/push-notification-test/
 
2. Click the pop Notification button
 
3. Set the hanger to Always Receive Notifications
 
4. Verify a popup notification is displayed
 
5. Close the popup
 
6. Select Tools > Options and then click Content on left side bar
 
7. Check the box Block pop-up windows
 
8. Return to https://pdehaan.github.io/push-notification-test/
 
9. Click the pop Notification button
 
10. Verify pop up dialog for the notification does not display
 
11. Click on lock icon in the address bar and set Show Notifications permission to "Always Ask".</small>
|-
| <small>Pop-up Settings > Disable notification <br />
from pdehaan.github.io</small>
|| <small>1. Access https://pdehaan.github.io/push-notification-test/
 
2. Click the pop Notification button
 
3. Set the hanger to Always Receive Notifications
 
4. Verify a popup notification is displayed
 
5. Click the settings icon on the notification pop-up
 
6. Select the option Disable notification from pdehaan.github.io
 
7. Verify the pop-up for the Notification dialog is removed
 
8. Click the pop Notification button
 
9. Verify the door hanger is displayed with default set to Always  Receive Notification</small> 
|-
| <small>Pop-up Settings > Notification settings</small> || <small>1. Access https://pdehaan.github.io/push-notification-test/
 
2. Click the lock icon and set the Permission option to Always Ask
 
3. Click the pop Notification button
 
4. Verify the door hanger displays
 
5. Set the option to Always Receive Notifications
 
6. Verify the pop-up dialog for the notification is displayed
 
7. Click the Settings icon on the pop-up
 
8. Select the option Notification Settings
 
9. Verify the current window opens a new tab for Options (about:preferences#content)
 
10. Click the lock icon and set the option to Always Ask</small>
|-
|-
|}
|}