2015-10-11 13:53:59 +02:00
|
|
|
Feature: Going back and forward.
|
|
|
|
Testing the :back/:forward commands.
|
|
|
|
|
|
|
|
Scenario: Going back/forward
|
|
|
|
Given I open data/backforward/1.txt
|
|
|
|
When I open data/backforward/2.txt
|
|
|
|
And I run :back
|
2015-10-27 06:59:57 +01:00
|
|
|
And I reload
|
2015-10-11 13:53:59 +02:00
|
|
|
And I run :forward
|
2015-10-27 06:59:57 +01:00
|
|
|
And I reload
|
2015-10-11 13:53:59 +02:00
|
|
|
Then the requests should be:
|
|
|
|
data/backforward/1.txt
|
|
|
|
data/backforward/2.txt
|
|
|
|
data/backforward/1.txt
|
|
|
|
data/backforward/2.txt
|
2015-10-22 06:44:05 +02:00
|
|
|
|
2015-11-01 22:10:48 +01:00
|
|
|
Scenario: Going back without history
|
|
|
|
Given I open data/backforward/1.txt
|
|
|
|
When I run :back
|
|
|
|
Then the error "At beginning of history." should be shown.
|
|
|
|
|
|
|
|
Scenario: Going forward without history
|
|
|
|
Given I open data/backforward/1.txt
|
|
|
|
When I run :forward
|
|
|
|
Then the error "At end of history." should be shown.
|