This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1526 from cdowding-sl/feature/friendly_datetimes
Added friendly date times
- Loading branch information
Showing
5 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
...ava/com/scottlogic/deg/orchestrator/cucumber/features/operators/temporal/DateTime.feature
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,27 @@ | ||
Feature: User can specify a datetime in a particular format | ||
|
||
Background: | ||
Given the generation strategy is full | ||
And there is a nullable field foo | ||
And foo has type "datetime" | ||
|
||
Scenario: 'EqualTo' valid date time is successful for date time specified fully | ||
Given foo is equal to 2018-09-01T00:00:00.000Z | ||
And the generator can generate at most 1 rows | ||
Then the following data should be generated: | ||
| foo | | ||
| 2018-09-01T00:00:00.000Z | | ||
|
||
Scenario: 'EqualTo' valid date time is successful for date time specified to seconds | ||
Given foo is equal to 2018-09-01T00:00:00 | ||
And the generator can generate at most 1 rows | ||
Then the following data should be generated: | ||
| foo | | ||
| 2018-09-01T00:00:00.000Z | | ||
|
||
Scenario: 'EqualTo' valid date time is successful for date time specified to minutes | ||
Given foo is equal to 2018-09-01T00:00 | ||
And the generator can generate at most 1 rows | ||
Then the following data should be generated: | ||
| foo | | ||
| 2018-09-01T00:00:00.000Z | |
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