Add an end-to-end test for :history-clear

This commit is contained in:
Florian Bruhin 2016-06-10 13:20:58 +02:00
parent a0fd096038
commit e0acda403f
2 changed files with 10 additions and 0 deletions

View File

@ -45,3 +45,8 @@ Feature: Page history
And I wait for "Error while loading http://localhost:*/status/404: NOT FOUND" in the log
Then the history file should contain:
http://localhost:(port)/status/404 Error loading page: http://localhost:(port)/status/404
Scenario: Clearing history
When I open data/title.html
And I run :history-clear
Then the history file should be empty

View File

@ -42,3 +42,8 @@ def check_history(quteproc, httpbin, expected):
lines.append(line)
assert lines == expected
@bdd.then("the history file should be empty")
def check_history_empty(quteproc, httpbin):
check_history(quteproc, httpbin, '')