QA/Push Notifications: Difference between revisions

→‎Tests: Test Plan/Case Updates
(→‎Tests: Test Plan/Case Updates)
Line 359: Line 359:




'''Name:''' '''Push:  Register Service Worker'''<br/>
'''Description:''' Verify registering a service worker causes it to appear in about:serviceworkers.<br/>
'''Steps:'''<br/>
# setup()
# Verify HTML output is:
    registering service worker
    registered service worker. scope: https://pdehaan.github.io/push-notification-test/
# Click "Check Service Worker" button.
# Verify HTML output is:
    checking service worker
    Service worker active
# Open about:serviceworkers
# Verify service worker is registered to https://pdehaan.github.io/ origin.
# Go back to https://pdehaan.github.io/push-notification-test/
# Click "Unregister Service Worker" button.
# Open about:serviceworkers
# Verify "No Service Workers registered." message (refresh page if it was previously open tab).
# teardown()
'''Name:''' '''Push: Service Worker'''<br/>
'''Description:''' Verify sending a message to a service worker causes it to echo the message.<br/>
'''Steps:'''<br/>
# setup()
# Click "subscribe to push" button.
# Click "sendMsgToSW" button.
# Verify "messageChannel.port1.onmessage: SW echo: HelloWorld" output on page.
# Change text box value to "999".
# Click "sendMsgToSW" button.
# Verify "messageChannel.port1.onmessage: SW echo: 999" output on page.
# teardown()