diff options
author | Charlotte Van Petegem <charlotte@vanpetegem.me> | 2021-07-29 17:21:37 +0200 |
---|---|---|
committer | Charlotte Van Petegem <charlotte@vanpetegem.me> | 2021-10-09 14:00:30 +0200 |
commit | 6121673c1a54df8fceb3d597efa4e362eda59ff0 (patch) | |
tree | 3d2329dec0937ea8b1a810676562e4ea78d04cc0 /tests | |
parent | 0f38c94197644d5d47dda335a9efaf3d212d1523 (diff) | |
download | qutebrowser-6121673c1a54df8fceb3d597efa4e362eda59ff0.tar.gz qutebrowser-6121673c1a54df8fceb3d597efa4e362eda59ff0.zip |
Switch to tab when clicking on notification
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end2end/features/notifications.feature | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/end2end/features/notifications.feature b/tests/end2end/features/notifications.feature index 08c5f725f..cd34793ef 100644 --- a/tests/end2end/features/notifications.feature +++ b/tests/end2end/features/notifications.feature @@ -4,7 +4,8 @@ Feature: Notifications HTML5 notification API interaction Background: - Given I open data/javascript/notifications.html + Given I clean up open tabs + And I open data/javascript/notifications.html And I set content.notifications.enabled to true And I run :click-element id button And I clean up the notification server @@ -120,8 +121,13 @@ Feature: Notifications Scenario: User clicks presented notification When I run :click-element id show-button And I wait for the javascript message "notification shown" + And I open about:blank in a new tab And I click the notification Then the javascript message "notification clicked" should be logged + And the following tabs should be open: + - about:blank + - data/javascript/notifications.html (active) + - about:blank @pyqtwebengine<5.15.0 Scenario: User clicks presented notification (old Qt) |