This repository has been archived on 2022-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
chronometrist/features/point-restore.feature

32 lines
977 B
Gherkin
Raw Normal View History

2019-08-04 19:30:16 +00:00
Feature: Point restore in Chronometrist
2019-08-05 07:13:05 +00:00
# What about when we want point to be on the last project instead? In which situations should that happen?
2019-08-04 19:30:16 +00:00
Background:
2020-05-27 19:29:16 +00:00
Given I open Chronometrist
And I go to a random point in the buffer
2019-08-04 19:30:16 +00:00
2019-08-05 07:13:05 +00:00
Scenario: Simple re-open 1
When I kill its buffer
2019-08-04 19:30:16 +00:00
And I open it again
Then the position of point should be preserved
2020-05-27 19:29:16 +00:00
Scenario: Simple re-open 2
When I toggle its buffer
And I open it again
Then the position of point should be preserved
2019-08-05 07:13:05 +00:00
2020-05-27 19:29:16 +00:00
Scenario: Timer with buffer current
When buffer is current
Then the timer should preserve the position of point
2019-08-04 19:30:16 +00:00
2020-05-27 19:29:16 +00:00
Scenario: Timer with buffer not current, but visible
When buffer is not current
But it is visible in another window
Then the timer should preserve the position of point
2019-08-04 19:30:16 +00:00
2020-05-27 19:29:16 +00:00
Scenario: Previous/next week keys
When I open chronometrist-report
And I view the previous/next week
Then the position of point should be preserved