bdd: Add tests for :reload.

This commit is contained in:
Florian Bruhin 2015-11-23 14:37:54 +01:00
parent 1e79aae231
commit 7a82bb55e4

View File

@ -148,7 +148,7 @@ Feature: Various utility commands.
And I wait for "got keypress in mode KeyMode.normal - delegating to <qutebrowser.keyinput.modeparsers.NormalKeyParser>" in the log
Then no crash should happen
# :stop
# :stop/:reload
Scenario: :stop
Given I have a fresh instance
@ -162,3 +162,15 @@ Feature: Various utility commands.
Then the requests should be:
custom/redirect-later?delay=2
# no request on / because we stopped the redirect
Scenario: :reload
When I open data/hello.txt
And I run :reload
Then the requests should be:
data/hello.txt
data/hello.txt
Scenario: :reload with force
When I open headers
And I run :reload --force
Then the header Cache-Control should be set to no-cache