From 853e75e3db201273b9ef85f67e4f8464ad07a76c Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Thu, 25 Aug 2016 13:41:47 +0200 Subject: [PATCH] Split test for yanking --- tests/end2end/data/hints/simple2.html | 14 -------------- tests/end2end/features/hints.feature | 13 +++++++++---- 2 files changed, 9 insertions(+), 18 deletions(-) delete mode 100644 tests/end2end/data/hints/simple2.html diff --git a/tests/end2end/data/hints/simple2.html b/tests/end2end/data/hints/simple2.html deleted file mode 100644 index 32613bdcc..000000000 --- a/tests/end2end/data/hints/simple2.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - Simple links - - - First link - Second link - - diff --git a/tests/end2end/features/hints.feature b/tests/end2end/features/hints.feature index 55dda14b9..f1ad97f29 100644 --- a/tests/end2end/features/hints.feature +++ b/tests/end2end/features/hints.feature @@ -81,14 +81,19 @@ Feature: Using hints And I hint with args "all userscript (testdata)/userscripts/echo_hint_text" and follow a Then the message "Follow me!" should be shown - Scenario: Yanking + Scenario: Yanking to clipboard When selection is supported And I run :debug-set-fake-clipboard - And I open data/hints/simple2.html + And I open data/hints/html/simple.html And I hint with args "links yank" and follow a - And I hint with args "links yank-primary" and follow s Then the clipboard should contain "http://localhost:(port)/data/hello.txt" - And the primary selection should contain "http://localhost:(port)/data/hello2.txt" + + Scenario: Yanking to primary selection + When selection is supported + And I run :debug-set-fake-clipboard + And I open data/hints/html/simple.html + And I hint with args "links yank-primary" and follow a + Then the primary selection should contain "http://localhost:(port)/data/hello.txt" Scenario: Yanking to primary selection without it being supported (#1336) When selection is not supported