diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-01-20 14:40:23 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-01-20 18:00:38 +0100 |
commit | 6e03a22482079bd7d87438406956aac5f47b20c0 (patch) | |
tree | eb19261aafc13a297572c28ad1ee1296895c6218 /tests | |
parent | 7146c18183e9eadfee2d7a9e7af21b183e207fdd (diff) | |
download | qutebrowser-6e03a22482079bd7d87438406956aac5f47b20c0.tar.gz qutebrowser-6e03a22482079bd7d87438406956aac5f47b20c0.zip |
Rename selection commands
See #6022
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end2end/features/caret.feature | 38 | ||||
-rw-r--r-- | tests/end2end/features/search.feature | 16 |
2 files changed, 27 insertions, 27 deletions
diff --git a/tests/end2end/features/caret.feature b/tests/end2end/features/caret.feature index ec45efaea..3d6869768 100644 --- a/tests/end2end/features/caret.feature +++ b/tests/end2end/features/caret.feature @@ -15,27 +15,27 @@ Feature: Caret mode Then the message "Nothing to yank" should be shown. Scenario: :yank selection message - When I run :toggle-selection + When I run :selection-toggle And I run :move-to-end-of-word And I run :yank selection Then the message "3 chars yanked to clipboard" should be shown. Scenario: :yank selection message with one char - When I run :toggle-selection + When I run :selection-toggle And I run :move-to-next-char And I run :yank selection Then the message "1 char yanked to clipboard" should be shown. Scenario: :yank selection with primary selection When selection is supported - And I run :toggle-selection + And I run :selection-toggle And I run :move-to-end-of-word And I run :yank selection --sel Then the message "3 chars yanked to primary selection" should be shown. And the primary selection should contain "one" Scenario: :yank selection with --keep - When I run :toggle-selection + When I run :selection-toggle And I run :move-to-end-of-word And I run :yank selection --keep And I run :move-to-end-of-word @@ -44,64 +44,64 @@ Feature: Caret mode And the message "7 chars yanked to clipboard" should be shown. And the clipboard should contain "one two" - # :follow-selected + # :selection-follow - Scenario: :follow-selected with --tab (with JS) + Scenario: :selection-follow with --tab (with JS) When I set content.javascript.enabled to true And I run :tab-only And I run :enter-mode caret - And I run :toggle-selection + And I run :selection-toggle And I run :move-to-end-of-word - And I run :follow-selected --tab + And I run :selection-follow --tab Then data/hello.txt should be loaded And the following tabs should be open: - data/caret.html - data/hello.txt (active) - Scenario: :follow-selected with --tab (without JS) + Scenario: :selection-follow with --tab (without JS) When I set content.javascript.enabled to false And I run :tab-only And I run :enter-mode caret - And I run :toggle-selection + And I run :selection-toggle And I run :move-to-end-of-word - And I run :follow-selected --tab + And I run :selection-follow --tab Then data/hello.txt should be loaded And the following tabs should be open: - data/caret.html - data/hello.txt (active) @flaky - Scenario: :follow-selected with link tabbing (without JS) + Scenario: :selection-follow with link tabbing (without JS) When I set content.javascript.enabled to false And I run :leave-mode And I run :jseval document.activeElement.blur(); And I run :fake-key <tab> - And I run :follow-selected + And I run :selection-follow Then data/hello.txt should be loaded @flaky - Scenario: :follow-selected with link tabbing (with JS) + Scenario: :selection-follow with link tabbing (with JS) When I set content.javascript.enabled to true And I run :leave-mode And I run :jseval document.activeElement.blur(); And I run :fake-key <tab> - And I run :follow-selected + And I run :selection-follow Then data/hello.txt should be loaded @flaky - Scenario: :follow-selected with link tabbing in a tab (without JS) + Scenario: :selection-follow with link tabbing in a tab (without JS) When I set content.javascript.enabled to false And I run :leave-mode And I run :jseval document.activeElement.blur(); And I run :fake-key <tab> - And I run :follow-selected --tab + And I run :selection-follow --tab Then data/hello.txt should be loaded @flaky - Scenario: :follow-selected with link tabbing in a tab (with JS) + Scenario: :selection-follow with link tabbing in a tab (with JS) When I set content.javascript.enabled to true And I run :leave-mode And I run :jseval document.activeElement.blur(); And I run :fake-key <tab> - And I run :follow-selected --tab + And I run :selection-follow --tab Then data/hello.txt should be loaded diff --git a/tests/end2end/features/search.feature b/tests/end2end/features/search.feature index de815a5b7..5fafd19f0 100644 --- a/tests/end2end/features/search.feature +++ b/tests/end2end/features/search.feature @@ -269,7 +269,7 @@ Feature: Searching on a page When I run :search follow And I wait for "search found follow" in the log And I wait 0.5s - And I run :follow-selected + And I run :selection-follow Then data/hello.txt should be loaded @skip # Too flaky @@ -278,7 +278,7 @@ Feature: Searching on a page And I run :search follow And I wait for "search found follow" in the log And I wait 0.5s - And I run :follow-selected -t + And I run :selection-follow -t And I wait until data/hello.txt is loaded Then the following tabs should be open: - data/search.html @@ -288,7 +288,7 @@ Feature: Searching on a page When I run :window-only And I run :search foo And I wait for "search found foo" in the log - And I run :follow-selected + And I run :selection-follow Then the following tabs should be open: - data/search.html (active) @@ -296,19 +296,19 @@ Feature: Searching on a page When I run :window-only And I run :search foo And I wait for "search found foo" in the log - And I run :follow-selected -t + And I run :selection-follow -t Then the following tabs should be open: - data/search.html (active) Scenario: Follow a manually selected link When I run :jseval --file (testdata)/search_select.js - And I run :follow-selected + And I run :selection-follow Then data/hello.txt should be loaded Scenario: Follow a manually selected link in a new tab When I run :window-only And I run :jseval --file (testdata)/search_select.js - And I run :follow-selected -t + And I run :selection-follow -t And I wait until data/hello.txt is loaded Then the following tabs should be open: - data/search.html @@ -321,7 +321,7 @@ Feature: Searching on a page And I run :tab-only And I run :search follow And I wait for "search found follow" in the log - And I run :follow-selected + And I run :selection-follow Then "navigation request: url http://localhost:*/data/hello.txt, type Type.link_clicked, is_main_frame False" should be logged # Too flaky @@ -331,7 +331,7 @@ Feature: Searching on a page And I run :tab-only And I run :search follow And I wait for "search found follow" in the log - And I run :follow-selected -t + And I run :selection-follow -t And I wait until data/hello.txt is loaded Then the following tabs should be open: - data/iframe_search.html |