Add end2end tests issue52

This commit is contained in:
knaggita 2016-08-12 14:59:49 +03:00 committed by Florian Bruhin
parent 1d5a3a6175
commit bd6f4ae7c0

View File

@ -603,3 +603,27 @@ Feature: Various utility commands.
And the following tabs should be open:
- data/click_element.html
- data/hello.txt (active)
## logfilter
Scenario: Using :debug-log-filter with commands argument
When I run :debug-log-filter commands
And I run :message-info "Hello World"
Then the message "Hello World" should be shown
Scenario: Using debug-log-filter with invalid filter
When I run :debug-log-filter hello
Then the error "Invalid argument, hello choose from statusbar,completion,init,url,destroy,modes,webview,misc,mouse,procs,hints,keyboard,commands,signals,downloads,js,qt,rfc6266,ipc,shlexer,save,message,config,sessions" should be shown
Scenario: Using debug-log-level with invalid level
When I run :debug-log-level hello
Then the error "Invalid value hello - expected one of: debug,
error, vdebug, info, warning, critical" should be shown
Scenario: :debug-log-level with warning argument
When I run :message-error the-error-message
And I run :message-warning the-warning-message
And I run :message-info the-info-message
And I run :debug-log-level warning
Then the error "the-error-message" should be shown
And the warning "the-warning-message" should be shown