diff --git a/tests/end2end/features/misc.feature b/tests/end2end/features/misc.feature index c61924de9..20b465c91 100644 --- a/tests/end2end/features/misc.feature +++ b/tests/end2end/features/misc.feature @@ -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