From 40eb875fb6c7ca26b2cdade7e7f1586de64ff60b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 10 Oct 2016 07:33:59 +0200 Subject: [PATCH] Add a test for private-browsing mode --- tests/end2end/features/misc.feature | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/end2end/features/misc.feature b/tests/end2end/features/misc.feature index 933c698c2..f58dcf9e2 100644 --- a/tests/end2end/features/misc.feature +++ b/tests/end2end/features/misc.feature @@ -709,3 +709,16 @@ Feature: Various utility commands. And I run :command-history-next And I run :command-accept Then the error "No command given" should be shown + + Scenario: Calling previous command with private-browsing mode + When I run :set-cmd-text :message-info blah + And I run :command-accept + And I set general -> private-browsing to true + And I run :set-cmd-text :message-error This should only be shown once + And I run :command-accept + And I wait for the error "This should only be shown once" + And I run :set-cmd-text : + And I run :command-history-prev + And I run :command-accept + And I set general -> private-browsing to false + Then the message "blah" should be shown