bdd: Add tests for partial commandline matching

This commit is contained in:
Florian Bruhin 2016-06-06 16:10:10 +02:00
parent 2f60073cdf
commit c9d85d3a12

View File

@ -441,3 +441,17 @@ Feature: Various utility commands.
Scenario: Completing a single option argument Scenario: Completing a single option argument
When I run :set-cmd-text -s :-- When I run :set-cmd-text -s :--
Then no crash should happen Then no crash should happen
## https://github.com/The-Compiler/qutebrowser/issues/1386
Scenario: Partial commandline matching with startup command
When I run :message-i "Hello World" (invalid command)
Then the error "message-i: no such command" should be shown
# We can't run :message-i as startup command, so we use
# :set-cmd-text
Scenario: Partial commandline matching
When I run :set-cmd-text :message-i "Hello World"
And I run :command-accept
Then the message "Hello World" should be shown