Skip to content

Commit

Permalink
feature #12074 [API] add api tag to applying promotions with expirati…
Browse files Browse the repository at this point in the history
…on date (arti0090)

This PR was merged into the 1.9-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| License         | MIT


Commits
-------

1846000 add api tag to promotions
993e876 remove typo
  • Loading branch information
GSadee committed Nov 23, 2020
2 parents 518b03b + 993e876 commit 3cf1567
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 3cf1567

Please sign in to comment.