Skip to content

Commit

Permalink
[WIP] Cover seeing_order_discounts.feature scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubtobiasz committed Nov 22, 2023
1 parent 3d608a6 commit 545c7c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Feature: Seeing discounts of an order
And there is a customer "lucy@teamlucifer.com" that placed an order "#00000666"
And I am logged in as an administrator

@ui
@ui @api
Scenario: Seeing promotion discount on order while buying at least 3 items
Given the promotion gives "$15.00" discount to every order with quantity at least 3
And the customer bought 4 "Angel T-Shirt" products
Expand All @@ -26,7 +26,7 @@ Feature: Seeing discounts of an order
And the order's promotion discount should be "-$15.00" from "Holiday promotion" promotion
And the order's total should be "$141.00"

@ui
@ui @api
Scenario: Seeing promotion discount on order's items while buying a product from a promoted taxon
Given the promotion gives "$10.00" off on every product classified as "T-Shirts"
And the customer bought a single "Angel T-Shirt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ default:
- sylius.behat.context.setup.order
- sylius.behat.context.setup.payment
- sylius.behat.context.setup.product
- sylius.behat.context.setup.product_taxon
- sylius.behat.context.setup.promotion
- sylius.behat.context.setup.shipping
- sylius.behat.context.setup.shop_api_security
- sylius.behat.context.setup.taxation
- sylius.behat.context.setup.taxonomy
- sylius.behat.context.setup.zone

- Sylius\Calendar\Tests\Behat\Context\Setup\CalendarContext
Expand Down

0 comments on commit 545c7c8

Please sign in to comment.