forked from Sylius/Sylius
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Sylius#8629 from Zales0123/default-shipping-method…
…-fixes [Shipping][OrderProcessing] Default shipping method fixes
- Loading branch information
Showing
10 changed files
with
334 additions
and
17 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
.../shipping_order/seeing_default_shipping_method_selected_based_on_shipping_address.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@checkout | ||
Feature: Seeing default shipping method selected based on shipping address | ||
In order to select correct shipping method for my order | ||
As a Customer | ||
I want to be able to choose only shipping methods that match shipping category of all my items | ||
|
||
Background: | ||
Given the store operates on a channel named "Web" | ||
And the store has a product "Star Trek Ship" priced at "$19.99" | ||
And the store ships to "United Kingdom" | ||
And the store ships to "United States" | ||
And the store has a zone "United Kingdom" with code "UK" | ||
And this zone has the "United Kingdom" country member | ||
And the store has a zone "United States" with code "US" | ||
And this zone has the "United States" country member | ||
And the store has "DHL" shipping method with "$10.00" fee within the "US" zone | ||
And the store has "FedEx" shipping method with "$20.00" fee within the "UK" zone | ||
And I am a logged in customer | ||
|
||
@ui | ||
Scenario: Seeing default shipping method selected based on country from shipping address | ||
Given I have product "Star Trek Ship" in the cart | ||
And I am at the checkout addressing step | ||
When I specify the shipping address as "Ankh Morpork", "Frost Alley", "90210", "United States" for "Jon Snow" | ||
And I complete the addressing step | ||
Then I should be on the checkout shipping step | ||
And I should see selected "DHL" shipping method | ||
And I should not see "FedEx" shipping method | ||
|
||
@ui | ||
Scenario: Seeing default shipping method selected based on country from shipping address after readdressing | ||
Given I have product "Star Trek Ship" in the cart | ||
And I am at the checkout addressing step | ||
When I specify the shipping address as "Ankh Morpork", "Frost Alley", "90210", "United States" for "Jon Snow" | ||
And I complete the addressing step | ||
And I decide to change my address | ||
And I specify the shipping address as "Ankh Morpork", "Frost Alley", "90210", "United Kingdom" for "Jon Snow" | ||
And I complete the addressing step | ||
Then I should be on the checkout shipping step | ||
And I should see selected "FedEx" shipping method | ||
And I should not see "DHL" shipping method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.