diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-27 14:47:47 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-27 15:50:50 +0100 |
commit | f1f0dc73df4f51822ac6207356e7928e68627ced (patch) | |
tree | 0c915f73448af912f5e423872f386c06f5616601 /tests | |
parent | 4790eae606fe2be8f8dc7e9d318f98b90211e6db (diff) | |
download | qutebrowser-f1f0dc73df4f51822ac6207356e7928e68627ced.tar.gz qutebrowser-f1f0dc73df4f51822ac6207356e7928e68627ced.zip |
notifications: Add basic tests for message notifications
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end2end/features/notifications.feature | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/end2end/features/notifications.feature b/tests/end2end/features/notifications.feature index b797f08d7..5da0c072e 100644 --- a/tests/end2end/features/notifications.feature +++ b/tests/end2end/features/notifications.feature @@ -139,3 +139,15 @@ Feature: Notifications And I wait for the javascript message "notification shown" And I trigger a custom action on the notification with id 1234 Then no crash should happen + + Scenario: Notification via messages + When I set content.notifications.presenter to messages + And I run :click-element id show-button + And I wait for the javascript message "notification shown" + Then the message "<i>Notification from http://localhost:*/:</i><br/><br/><b>notification title</b><br/>notification body" should be shown + + Scenario: Notification via messages with image + When I set content.notifications.presenter to messages + And I run :click-element id show-image-button + And I wait for the javascript message "notification shown" + Then the message "<i>Notification from http://localhost:*/: (image not shown)</i><br/><br/><b>RGBA</b><br/>" should be shown |