From 332cbf811b1137231e85c1cb0368df3eb6df69ba Mon Sep 17 00:00:00 2001 From: Olmo Kramer Date: Fri, 4 May 2018 19:29:02 +0200 Subject: [PATCH] Add test for custom hint group --- tests/end2end/data/hints/custom_group.html | 13 +++++++++++++ tests/end2end/features/hints.feature | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 tests/end2end/data/hints/custom_group.html diff --git a/tests/end2end/data/hints/custom_group.html b/tests/end2end/data/hints/custom_group.html new file mode 100644 index 000000000..d593b8231 --- /dev/null +++ b/tests/end2end/data/hints/custom_group.html @@ -0,0 +1,13 @@ + + + + + + Custom hint groups + + +
beep!
+
bop!
+
boop!
+ + diff --git a/tests/end2end/features/hints.feature b/tests/end2end/features/hints.feature index bb739b6bb..4372f732c 100644 --- a/tests/end2end/features/hints.feature +++ b/tests/end2end/features/hints.feature @@ -190,6 +190,17 @@ Feature: Using hints And I run :hint INVALID_GROUP Then the error "Undefined hinting group 'INVALID_GROUP'!" should be shown + Scenario: Custom hint group + When I open data/hints/custom_group.html + And I set hints.selectors to {"custom": [".clickable"]} + And I hint with args "--rapid custom" + And I run :follow-hint a + And I run :follow-hint s + And I run :follow-hint d + Then the javascript message "beep!" should be logged + And the javascript message "bop!" should be logged + And the javascript message "boop!" should be logged + # https://github.com/qutebrowser/qutebrowser/issues/1613 Scenario: Hinting inputs with padding When I open data/hints/input.html