Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Behat] Update test steps to use dynamic date #15690

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions features/admin/statistics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ Feature: Statistics

@ui @no-api
Scenario: Seeing statistics for the current year and default channel when expectations are not specified
Given it is "2022-12-31" now
Given it is "last day of December last year" now
And 2 new customers have fulfilled 2 orders placed for total of "$1,000.00"
And it is "2023-01-01" now
And it is "first day of January this year" now
And 3 new customers have fulfilled 4 orders placed for total of "$2,000.21"
And it is "2023-02-01" now
And it is "first day of February this year" now
And 2 more new customers have paid 2 orders placed for total of "$5,000.37"
When I view statistics
Then I should see 5 new customers
Expand All @@ -28,9 +28,9 @@ Feature: Statistics

@ui @javascript
Scenario: Seeing statistics for the previous year
Given it is "2022-01-01" now
Given it is "first day of January last year" now
And 3 new customers have fulfilled 2 orders placed for total of "$2,000.00"
And it is "2023-02-01" now
And it is "first day of February this year" now
And 4 more new customers have paid 5 orders placed for total of "$5,000.37"
And 2 more new customers have paid 2 orders placed for total of "$5,000.37"
When I view statistics for "United States" channel and previous year split by month
Expand All @@ -41,9 +41,9 @@ Feature: Statistics

@ui @javascript
Scenario: Seeing statistics for the next year
Given it is "2022-01-01" now
Given it is "first day of January last year" now
And 3 new customers have fulfilled 2 orders placed for total of "$2,000.00"
And it is "2023-02-01" now
And it is "first day of February this year" now
And 4 more new customers have paid 5 orders placed for total of "$5,000.37"
And 2 more new customers have paid 2 orders placed for total of "$5,000.37"
When I view statistics for "United States" channel and previous year split by month
Expand Down
Loading