Skip to content

Commit

Permalink
[Behat][API][Shiipin] Turn on chunk of shipping scenarios with taxation
Browse files Browse the repository at this point in the history
  • Loading branch information
lchrusciel committed Jul 15, 2021
1 parent 6bc0d75 commit ad4b1a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ Feature: Apply correct shipping fee on order
And the store has "UPS" shipping method with "$5.00" fee per unit for "United States" channel
And I am a logged in customer

@ui
@ui @api
Scenario: Adding proper shipping fee
Given I have product "PHP T-Shirt" in the cart
When I proceed selecting "DHL" shipping method
Then my cart total should be "$110.00"
And my cart shipping total should be "$10.00"

@ui
@ui @api
Scenario: Changing shipping fee after shipping method change
Given I have product "PHP T-Shirt" in the cart
And I chose "DHL" shipping method
When I change shipping method to "FedEx"
Then my cart total should be "$130.00"
And my cart shipping total should be "$30.00"

@ui
@ui @api
Scenario: Changing per unit shipping fee after decreasing quantity of item
Given I have 2 products "PHP T-Shirt" in the cart
And I chose "UPS" shipping method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Feature: Apply correct shipping fee with product taxes on order
And the store allows paying offline
And I am a logged in customer

@ui
@ui @api
Scenario: Proper shipping fee, tax and product tax
Given I have product "PHP T-Shirt" in the cart
When I proceed selecting "DHL" shipping method
Expand All @@ -30,7 +30,7 @@ Feature: Apply correct shipping fee with product taxes on order
And my cart taxes should be "$25.30"
And my cart shipping total should be "$12.30"

@ui
@ui @api
Scenario: Proper shipping fee, tax and products' taxes after addressing
Given I have 3 products "PHP T-Shirt" in the cart
When I proceed selecting "Germany" as billing country with "FedEx" method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Feature: Apply correct shipping fee with taxes on order
And the store allows paying offline
And I am a logged in customer

@ui
@ui @api
Scenario: Proper shipping fee and tax
Given I have product "PHP T-Shirt" in the cart
When I proceed selecting "DHL" shipping method
Expand All @@ -29,7 +29,7 @@ Feature: Apply correct shipping fee with taxes on order
And my cart taxes should be "$2.30"
And my cart shipping total should be "$12.30"

@ui
@ui @api
Scenario: Proper shipping fee and tax after addressing
Given I have product "PHP T-Shirt" in the cart
When I proceed selecting "Germany" as billing country with "DHL-World" method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface;
use Sylius\Component\Order\Modifier\OrderModifierInterface;
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
use Symfony\Component\VarDumper\VarDumper;
use Webmozart\Assert\Assert;

/** @experimental */
Expand Down

0 comments on commit ad4b1a8

Please sign in to comment.