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