diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-26 18:23:41 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-27 15:30:57 +0100 |
commit | 9eb009dc1b30243a7c60b5fee3df8435184897fc (patch) | |
tree | a651a4c8790d26b80832878eed49dd271c49a2b9 /tests/end2end | |
parent | 09cf5dc61d0ae00c31cf644e3ef84cc32c1650c4 (diff) | |
download | qutebrowser-9eb009dc1b30243a7c60b5fee3df8435184897fc.tar.gz qutebrowser-9eb009dc1b30243a7c60b5fee3df8435184897fc.zip |
notifications: Fix getting capabilities in tests
Diffstat (limited to 'tests/end2end')
-rw-r--r-- | tests/end2end/features/test_notifications_bdd.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/end2end/features/test_notifications_bdd.py b/tests/end2end/features/test_notifications_bdd.py index 53e63180f..5b16c1fc5 100644 --- a/tests/end2end/features/test_notifications_bdd.py +++ b/tests/end2end/features/test_notifications_bdd.py @@ -41,9 +41,7 @@ def supports_body_markup(notification_server, quteproc): notification_server.supports_body_markup = True quteproc.send_cmd( ":debug-pyeval -q __import__('qutebrowser').browser.webengine.notification." - "bridge._adapter._fetch_capabilities()") - quteproc.wait_for( - message="Notification server capabilities: ['actions', 'body-markup']") + "bridge._drop_adapter()") @bdd.given("the notification server doesn't support body markup") @@ -51,8 +49,7 @@ def doesnt_support_body_markup(notification_server, quteproc): notification_server.supports_body_markup = False quteproc.send_cmd( ":debug-pyeval -q __import__('qutebrowser').browser.webengine.notification." - "bridge._adapter._fetch_capabilities()") - quteproc.wait_for(message="Notification server capabilities: ['actions']") + "bridge._drop_adapter()") @bdd.then(bdd.parsers.cfparse('a notification with id {id_:d} should be presented')) |