-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When time traveling, *Quality-time* would show deleted reports after …
…their deletion date. Fixes #2997.
- Loading branch information
Showing
6 changed files
with
133 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Feature: time travel | ||
Displaying old reports | ||
|
||
Background: the client is logged in | ||
Given a logged-in client | ||
|
||
Scenario: time travel to the past, before the report existed | ||
When the client creates a report | ||
And the client enters a report date that's too old | ||
Then the report does not exist | ||
|
||
Scenario: time travel to the future | ||
When the client creates a report | ||
And the client enters a future report date | ||
Then the report title is "New report" | ||
|
||
Scenario: time travel to the past and back to the present | ||
When the client creates a report | ||
And the client creates a subject | ||
And the client creates a metric | ||
And the client creates a source | ||
And the collector measures "0" | ||
Then the metric latest_measurement.count.value is "0" | ||
When the client enters a report date that's not too old | ||
And the collector measures "100" | ||
Then the metric latest_measurement.count.value is "0" | ||
When the client resets the report date | ||
Then the metric latest_measurement.count.value is "100" | ||
|
||
Scenario: time travel to a time in the past after a report was deleted | ||
When the client creates a report | ||
And the client deletes the report | ||
And the client enters a report date that's not too old | ||
Then the report does not exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters