summaryrefslogtreecommitdiff
path: root/tests/end2end/features/misc.feature
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end2end/features/misc.feature')
-rw-r--r--tests/end2end/features/misc.feature89
1 files changed, 49 insertions, 40 deletions
diff --git a/tests/end2end/features/misc.feature b/tests/end2end/features/misc.feature
index 3940d0243..1872ca5a6 100644
--- a/tests/end2end/features/misc.feature
+++ b/tests/end2end/features/misc.feature
@@ -1,63 +1,63 @@
Feature: Various utility commands.
- ## :set-cmd-text
+ ## :cmd-set-text
- Scenario: :set-cmd-text and :command-accept
- When I run :set-cmd-text :message-info "Hello World"
+ Scenario: :cmd-set-text and :command-accept
+ When I run :cmd-set-text :message-info "Hello World"
And I run :command-accept
Then the message "Hello World" should be shown
- Scenario: :set-cmd-text and :command-accept --rapid
- When I run :set-cmd-text :message-info "Hello World"
+ Scenario: :cmd-set-text and :command-accept --rapid
+ When I run :cmd-set-text :message-info "Hello World"
And I run :command-accept --rapid
And I run :command-accept
Then the message "Hello World" should be shown
And the message "Hello World" should be shown
- Scenario: :set-cmd-text with two commands
- When I run :set-cmd-text :message-info test ;; message-error error
+ Scenario: :cmd-set-text with two commands
+ When I run :cmd-set-text :message-info test ;; message-error error
And I run :command-accept
Then the message "test" should be shown
And the error "error" should be shown
- Scenario: :set-cmd-text with URL replacement
+ Scenario: :cmd-set-text with URL replacement
When I open data/hello.txt
- And I run :set-cmd-text :message-info {url}
+ And I run :cmd-set-text :message-info {url}
And I run :command-accept
Then the message "http://localhost:*/hello.txt" should be shown
- Scenario: :set-cmd-text with URL replacement with encoded spaces
+ Scenario: :cmd-set-text with URL replacement with encoded spaces
When I open data/title with spaces.html
- And I run :set-cmd-text :message-info {url}
+ And I run :cmd-set-text :message-info {url}
And I run :command-accept
Then the message "http://localhost:*/title%20with%20spaces.html" should be shown
- Scenario: :set-cmd-text with URL replacement with decoded spaces
+ Scenario: :cmd-set-text with URL replacement with decoded spaces
When I open data/title with spaces.html
- And I run :set-cmd-text :message-info "> {url:pretty} <"
+ And I run :cmd-set-text :message-info "> {url:pretty} <"
And I run :command-accept
Then the message "> http://localhost:*/title with spaces.html <" should be shown
- Scenario: :set-cmd-text with -s and -a
- When I run :set-cmd-text -s :message-info "foo
- And I run :set-cmd-text -a bar"
+ Scenario: :cmd-set-text with -s and -a
+ When I run :cmd-set-text -s :message-info "foo
+ And I run :cmd-set-text -a bar"
And I run :command-accept
Then the message "foo bar" should be shown
- Scenario: :set-cmd-text with -a but without text
- When I run :set-cmd-text -a foo
+ Scenario: :cmd-set-text with -a but without text
+ When I run :cmd-set-text -a foo
Then the error "No current text!" should be shown
- Scenario: :set-cmd-text with invalid command
- When I run :set-cmd-text foo
+ Scenario: :cmd-set-text with invalid command
+ When I run :cmd-set-text foo
Then the error "Invalid command text 'foo'." should be shown
- Scenario: :set-cmd-text with run on count flag and no count
- When I run :set-cmd-text --run-on-count :message-info "Hello World"
+ Scenario: :cmd-set-text with run on count flag and no count
+ When I run :cmd-set-text --run-on-count :message-info "Hello World"
Then "message:info:86 Hello World" should not be logged
- Scenario: :set-cmd-text with run on count flag and a count
- When I run :set-cmd-text --run-on-count :message-info "Hello World" with count 1
+ Scenario: :cmd-set-text with run on count flag and a count
+ When I run :cmd-set-text --run-on-count :message-info "Hello World" with count 1
Then the message "Hello World" should be shown
## :jseval
@@ -395,7 +395,7 @@ Feature: Various utility commands.
## https://github.com/qutebrowser/qutebrowser/issues/1523
Scenario: Completing a single option argument
- When I run :set-cmd-text -s :--
+ When I run :cmd-set-text -s :--
Then no crash should happen
## https://github.com/qutebrowser/qutebrowser/issues/1386
@@ -405,12 +405,12 @@ Feature: Various utility commands.
Then the error "message-i: no such command (did you mean :message-info?)" should be shown
Scenario: Multiple leading : in command
- When I run :::::set-cmd-text ::::message-i "Hello World"
+ When I run :::::cmd-set-text ::::message-i "Hello World"
And I run :command-accept
Then the message "Hello World" should be shown
Scenario: Whitespace in command
- When I run : : set-cmd-text : : message-i "Hello World"
+ When I run : : cmd-set-text : : message-i "Hello World"
And I run :command-accept
Then the message "Hello World" should be shown
@@ -421,10 +421,10 @@ Feature: Various utility commands.
And the message "foo" should be shown
# We can't run :message-i as startup command, so we use
- # :set-cmd-text
+ # :cmd-set-text
Scenario: Partial commandline matching
- When I run :set-cmd-text :message-i "Hello World"
+ When I run :cmd-set-text :message-i "Hello World"
And I run :command-accept
Then the message "Hello World" should be shown
@@ -516,42 +516,42 @@ Feature: Various utility commands.
## :command-history-{prev,next}
Scenario: Calling previous command
- When I run :set-cmd-text :message-info blah
+ When I run :cmd-set-text :message-info blah
And I run :command-accept
And I wait for "blah" in the log
- And I run :set-cmd-text :
+ And I run :cmd-set-text :
And I run :command-history-prev
And I run :command-accept
Then the message "blah" should be shown
Scenario: Command starting with space and calling previous command
- When I run :set-cmd-text :message-info first
+ When I run :cmd-set-text :message-info first
And I run :command-accept
And I wait for "first" in the log
- When I run :set-cmd-text : message-info second
+ When I run :cmd-set-text : message-info second
And I run :command-accept
And I wait for "second" in the log
- And I run :set-cmd-text :
+ And I run :cmd-set-text :
And I run :command-history-prev
And I run :command-accept
Then the message "first" should be shown
Scenario: Calling previous command with :completion-item-focus
- When I run :set-cmd-text :message-info blah
+ When I run :cmd-set-text :message-info blah
And I wait for "Entering mode KeyMode.command (reason: *)" in the log
And I run :command-accept
And I wait for "blah" in the log
- And I run :set-cmd-text :
+ And I run :cmd-set-text :
And I wait for "Entering mode KeyMode.command (reason: *)" in the log
And I run :completion-item-focus prev --history
And I run :command-accept
Then the message "blah" should be shown
Scenario: Browsing through commands
- When I run :set-cmd-text :message-info blarg
+ When I run :cmd-set-text :message-info blarg
And I run :command-accept
And I wait for "blarg" in the log
- And I run :set-cmd-text :
+ And I run :cmd-set-text :
And I run :command-history-prev
And I run :command-history-prev
And I run :command-history-next
@@ -561,13 +561,13 @@ Feature: Various utility commands.
Scenario: Calling previous command when history is empty
Given I have a fresh instance
- When I run :set-cmd-text :
+ When I run :cmd-set-text :
And I run :command-history-prev
And I run :command-accept
Then the error "No command given" should be shown
Scenario: Calling next command when there's no next command
- When I run :set-cmd-text :
+ When I run :cmd-set-text :
And I run :command-history-next
And I run :command-accept
Then the error "No command given" should be shown
@@ -622,3 +622,12 @@ Feature: Various utility commands.
When I open data/invalid_resource.html in a new tab
Then "Ignoring invalid * URL: Invalid hostname (contains invalid characters); *" should be logged
And no crash should happen
+
+ @skip # Too flaky
+ Scenario: Keyboard focus after cross-origin navigation
+ When I turn on scroll logging
+ And I open qute://gpl in a new tab
+ And I run :tab-only
+ And I open data/scroll/simple.html
+ And I run :fake-key "<Space>"
+ Then the page should be scrolled vertically