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

[API] add api tag to applying promotions with expiration date #12074

Merged
merged 2 commits into from
Nov 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@ Feature: Applying promotion with an expiration date
And there is a promotion "Christmas sale"
And this promotion gives "$10.00" discount to every order

@ui
@ui @api
Scenario: Receiving a discount from a promotion which does not expire
Given this promotion expires tomorrow
When I add product "PHP T-Shirt" to the cart
Then my cart total should be "$90.00"
And my discount should be "-$10.00"

@ui
@ui @api
Scenario: Receiving no discount from a valid but expired promotion
Given this promotion has already expired
When I add product "PHP T-Shirt" to the cart
And my cart total should be "$100.00"
And there should be no discount

@ui
@ui @api
Scenario: Receiving a discount from a promotion which has already started
Given this promotion has started yesterday
When I add product "PHP T-Shirt" to the cart
Then my cart total should be "$90.00"
And my discount should be "-$10.00"

@ui
@ui @api
Scenario: Receiving no discount from a promotion that has not been started yet
Given this promotion starts tomorrow
When I add product "PHP T-Shirt" to the cart
Expand Down