2015-11-02 07:43:37 +01:00
|
|
|
Feature: Yanking and pasting.
|
|
|
|
:yank and :paste can be used to copy/paste the URL or title from/to the
|
|
|
|
clipboard and primary selection.
|
|
|
|
|
|
|
|
Background:
|
2015-11-03 07:11:47 +01:00
|
|
|
Given I open data/yankpaste.html
|
2015-11-02 07:43:37 +01:00
|
|
|
|
|
|
|
Scenario: Yanking URLs to clipboard
|
|
|
|
When I run :yank
|
2015-11-03 07:11:47 +01:00
|
|
|
Then the message "Yanked URL to clipboard: http://localhost:(port)/data/yankpaste.html" should be shown.
|
|
|
|
And the clipboard should contain "http://localhost:(port)/data/yankpaste.html"
|
2015-11-02 07:43:37 +01:00
|
|
|
|
|
|
|
Scenario: Yanking URLs to primary selection
|
2015-11-02 08:07:25 +01:00
|
|
|
When selection is supported
|
|
|
|
And I run :yank --sel
|
2015-11-03 07:11:47 +01:00
|
|
|
Then the message "Yanked URL to primary selection: http://localhost:(port)/data/yankpaste.html" should be shown.
|
|
|
|
And the primary selection should contain "http://localhost:(port)/data/yankpaste.html"
|
2015-11-02 07:43:37 +01:00
|
|
|
|
|
|
|
Scenario: Yanking title to clipboard
|
2015-11-05 08:03:03 +01:00
|
|
|
When I wait for regex "Changing title for idx \d to 'Test title'" in the log
|
|
|
|
And I run :yank --title
|
2015-11-02 07:43:37 +01:00
|
|
|
Then the message "Yanked title to clipboard: Test title" should be shown.
|
|
|
|
And the clipboard should contain "Test title"
|
|
|
|
|
|
|
|
Scenario: Yanking domain to clipboard
|
|
|
|
When I run :yank --domain
|
|
|
|
Then the message "Yanked domain to clipboard: http://localhost:(port)" should be shown.
|
|
|
|
And the clipboard should contain "http://localhost:(port)"
|