From 30d3612a177813eb23558ebe02f26c546069f238 Mon Sep 17 00:00:00 2001 From: rr- Date: Mon, 16 Apr 2018 09:31:36 +0200 Subject: [PATCH] Add test for rapid yanking --- tests/end2end/features/hints.feature | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/end2end/features/hints.feature b/tests/end2end/features/hints.feature index a1c4d0bde..2399fb372 100644 --- a/tests/end2end/features/hints.feature +++ b/tests/end2end/features/hints.feature @@ -120,6 +120,15 @@ Feature: Using hints And I hint with args "links yank" and follow a Then the clipboard should contain "javascript:window.location.href='/data/hello.txt'" + Scenario: Rapid yanking + When I run :debug-set-fake-clipboard + And I open data/hints/rapid.html + And I hint with args "links yank --rapid" + And I run :follow-hint a + And I run :follow-hint s + And I run :leave-mode + Then the clipboard should contain "http://localhost:(port)/data/hello.txt\nhttp://localhost:(port)/data/hello2.txt" + Scenario: Rapid hinting When I open data/hints/rapid.html in a new tab And I run :tab-only