Confirmed users
33
edits
|  (formatting) |  (now 110% more awesome) | ||
| Line 1: | Line 1: | ||
| = Test Plan (Overview) = | = Test Plan (Overview) = | ||
| '''SUMMARY''' | '''SUMMARY''' | ||
| * The purpose of this wiki is to serve as a general testplan for verifying desktop Push notifications. | * The purpose of this wiki is to serve as a general testplan for verifying desktop Push notifications. | ||
| '''OWNERSHIP''' | '''OWNERSHIP''' | ||
| Line 11: | Line 10: | ||
| * Automated E2E smoke tests will be created by the Cloud Services QA Team | * Automated E2E smoke tests will be created by the Cloud Services QA Team | ||
| * Any further feature automation is TBD (by Firefox Quality Engineering Team) | * Any further feature automation is TBD (by Firefox Quality Engineering Team) | ||
| '''TEST RESULTS''' | '''TEST RESULTS''' | ||
| * Test results will be posted in Bugzilla (component: TBD). | |||
| '''SIGNOFF CRITERIA''' | '''SIGNOFF CRITERIA''' | ||
| Cloud Services QA team will verify that: | Cloud Services QA team will verify that: | ||
| * Desktop push notifications are working properly in FF Nightly. | * Desktop push notifications are working properly in FF Nightly. | ||
| * Interaction between  | * Interaction between push-service (autopush[3]), ServiceWorkers[1], and desktop UI is working as expected. | ||
| '''Testplan (Overview)''' | '''Testplan (Overview)''' | ||
| '''REFERENCE''' | '''REFERENCE''' | ||
| * http://www.w3.org/TR/service-workers/ | * [1] http://www.w3.org/TR/service-workers/ | ||
| * http://www.w3.org/TR/push-api/ | * [2] http://www.w3.org/TR/push-api/ | ||
| * [3] autopush: https://github.com/mozilla-services/autopush/ | |||
| * [4] push-service: https://github.com/mozilla-services/push-service | |||
| = Test Cases = | = Test Cases = | ||
| == NOTIFICATIONS API == | == NOTIFICATIONS API == | ||
| === Common === | |||
| '''setup()''' | '''setup()''' | ||
| Line 43: | Line 47: | ||
| === Tests === | === Tests === | ||
| '''Verify the doorhanger reports if the site has requested any notification permissions''' | '''Name:''' Doorhanger default state test<br/> | ||
| '''Description:''' Verify the doorhanger reports if the site has requested any notification permissions.<br/> | |||
| '''Steps:'''<br/> | |||
| # Click the lock icon in the address bar. | # Click the lock icon in the address bar. | ||
| # Verify the permissisons section says "You have not granted this site any special permissions." | # Verify the permissisons section says "You have not granted this site any special permissions." | ||
| <hr/> | |||
| '''Verify that trying to display a notification causes a dialog to appear.''' | '''Verify that trying to display a notification causes a dialog to appear.''' | ||
| Line 265: | Line 272: | ||
| == PUSH API == | == PUSH API == | ||
| === Common === | |||
| '''setup()''' | '''setup()''' | ||
| Line 278: | Line 287: | ||
| # <code>setup()</code> | # <code>setup()</code> | ||
| # Verify HTML output is: | # Verify HTML output is: | ||
|       registering service worker | |||
|       registered service worker. scope: https://pdehaan.github.io/push-notification-test/ | |||
| # Click "Check Service Worker" button. | # Click "Check Service Worker" button. | ||
| # Verify HTML output is: | # Verify HTML output is: | ||
|      checking service worker |      checking service worker | ||
|      Service worker active |      Service worker active | ||
| # Open about:serviceworkers | # Open about:serviceworkers | ||
| # Verify service worker is registered to https://pdehaan.github.io/ origin. | # Verify service worker is registered to https://pdehaan.github.io/ origin. | ||
| Line 306: | Line 311: | ||
| # Verify "messageChannel.port1.onmessage: SW echo: 999" output on page. | # Verify "messageChannel.port1.onmessage: SW echo: 999" output on page. | ||
| # <code>teardown()</code> | # <code>teardown()</code> | ||
| = CONTACTS = | |||
| * pdehaan@mozilla | |||
| * rpappalardo@mozilla | |||
| * ryanvm@mozilla | |||