-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correcting failing tests, comments and missing configuration
- Loading branch information
Showing
22 changed files
with
319 additions
and
215 deletions.
There are no files selected for viewing
34 changes: 0 additions & 34 deletions
34
...ules/viewing_available_shipping_methods_based_on_channel_as_an_logged_in_customer.feature
This file was deleted.
Oops, something went wrong.
37 changes: 29 additions & 8 deletions
37
...thods_based_on_channel_as_a_guest.feature → ...shipping_methods_based_on_channel.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 |
---|---|---|
@@ -1,33 +1,54 @@ | ||
@applying_shipping_method_rules | ||
@viewing_shipping_methods | ||
Feature: Viewing available shipping methods based on channel | ||
In order to only see applicable shipping methods | ||
As a guest | ||
As a Visitor or Shop User | ||
I want to see the shipping methods that are available to my order based on the channel | ||
|
||
Background: | ||
Given the store operates on a channel named "United Kingdom" in "USD" currency and with hostname "uk.cool-clothes.example" | ||
And the store operates on another channel named "United States" in "USD" currency and with hostname "usa.cool-clothes.example" | ||
And the store operates on another channel named "Colombia" in "USD" currency and with hostname "colombia.cool-clothes.example" | ||
And the store has a zone "World" with code "WRLD" | ||
And the store has a zone "World" | ||
And the store ships to "United States" | ||
And this zone has the "United States" country member | ||
And the store ships everywhere for free for all channels | ||
And the store has "ultra fast" shipping method with "$4" fee per unit for "United States" channel | ||
And the store has "uber speedy" shipping method with "$15.00" fee per shipment for "United Kingdom" channel and "$12.00" for "Colombia" channel | ||
And the store has "ultra fast" shipping method with "$4.00" fee per unit for "United States" channel | ||
And the store has "uber speedy" shipping method with "$15.00" fee per shipment for "United Kingdom" channel | ||
And the store has a product "T-Shirt" priced at "$20.00" available in channel "United Kingdom" and channel "United States" | ||
|
||
@api @ui | ||
Scenario: Seeing shipping methods that are available in channel as an logged in customer | ||
Scenario: Seeing shipping methods that are available in channel as a guest | ||
Given I changed my current channel to "United States" | ||
And I have product "T-Shirt" in the cart | ||
When I complete addressing step with email "john@example.com" and "United States" based billing address | ||
Then I should be on the checkout shipping step | ||
And I should see "ultra fast" shipping method | ||
And I should not see "uber speedy" shipping method | ||
|
||
@api @ui | ||
Scenario: Seeing shipping methods that are available in another channel as an logged in customer | ||
Scenario: Seeing shipping methods that are available in another channel as a guest | ||
Given I changed my current channel to "United Kingdom" | ||
And I have product "T-Shirt" in the cart | ||
When I complete addressing step with email "john@example.com" and "United States" based billing address | ||
Then I should be on the checkout shipping step | ||
And I should see "uber speedy" shipping method | ||
And I should not see "ultra fast" shipping method | ||
|
||
@api @ui | ||
Scenario: Seeing shipping methods that are available in channel as an logged in customer | ||
Given I changed my current channel to "United States" | ||
And I am a logged in customer | ||
And I have product "T-Shirt" in the cart | ||
When I specified the billing address | ||
Then I should be on the checkout shipping step | ||
And I should see "ultra fast" shipping method | ||
And I should not see "uber speedy" shipping method | ||
|
||
@api @ui | ||
Scenario: Seeing shipping methods that are available in another channel as an logged in customer | ||
Given I changed my current channel to "United Kingdom" | ||
And I am a logged in customer | ||
And I have product "T-Shirt" in the cart | ||
When I specified the billing address | ||
Then I should be on the checkout shipping step | ||
And I should see "uber speedy" shipping method | ||
And I should not see "ultra fast" 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
38 changes: 38 additions & 0 deletions
38
src/Sylius/Behat/Resources/config/suites/api/shipping/viewing_shipping_methods.yml
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,38 @@ | ||
# This file is part of the Sylius package. | ||
# (c) Paweł Jędrzejewski | ||
|
||
default: | ||
suites: | ||
api_viewing_shipping_methods: | ||
contexts: | ||
- sylius.behat.context.hook.doctrine_orm | ||
|
||
- sylius.behat.context.transform.address | ||
- sylius.behat.context.transform.cart | ||
- sylius.behat.context.transform.channel | ||
- sylius.behat.context.transform.country | ||
- sylius.behat.context.transform.lexical | ||
- sylius.behat.context.transform.product | ||
- sylius.behat.context.transform.shipping_method | ||
- sylius.behat.context.transform.tax_category | ||
- sylius.behat.context.transform.zone | ||
|
||
- sylius.behat.context.transform.shared_storage | ||
|
||
- sylius.behat.context.setup.address | ||
- sylius.behat.context.setup.cart | ||
- sylius.behat.context.setup.channel | ||
- sylius.behat.context.setup.currency | ||
- sylius.behat.context.setup.geographical | ||
- sylius.behat.context.setup.payment | ||
- sylius.behat.context.setup.product | ||
- sylius.behat.context.setup.shop_security | ||
- sylius.behat.context.setup.shipping | ||
- sylius.behat.context.setup.taxation | ||
- sylius.behat.context.setup.zone | ||
|
||
- sylius.behat.context.api.shop.cart | ||
- sylius.behat.context.api.shop.checkout | ||
|
||
filters: | ||
tags: "@viewing_shipping_methods&&@api" |
38 changes: 38 additions & 0 deletions
38
src/Sylius/Behat/Resources/config/suites/ui/shipping/viewing_shipping_methods.yml
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,38 @@ | ||
# This file is part of the Sylius package. | ||
# (c) Paweł Jędrzejewski | ||
|
||
default: | ||
suites: | ||
ui_viewing_shipping_methods: | ||
contexts: | ||
- sylius.behat.context.hook.doctrine_orm | ||
|
||
- sylius.behat.context.transform.address | ||
- sylius.behat.context.transform.channel | ||
- sylius.behat.context.transform.country | ||
- sylius.behat.context.transform.lexical | ||
- sylius.behat.context.transform.product | ||
- sylius.behat.context.transform.shipping_method | ||
- sylius.behat.context.transform.tax_category | ||
- sylius.behat.context.transform.zone | ||
|
||
- sylius.behat.context.transform.shared_storage | ||
|
||
- sylius.behat.context.setup.channel | ||
- sylius.behat.context.setup.currency | ||
- sylius.behat.context.setup.geographical | ||
- sylius.behat.context.setup.payment | ||
- sylius.behat.context.setup.product | ||
- sylius.behat.context.setup.shop_security | ||
- sylius.behat.context.setup.shipping | ||
- sylius.behat.context.setup.taxation | ||
- sylius.behat.context.setup.zone | ||
|
||
- sylius.behat.context.ui.shop.cart | ||
- sylius.behat.context.ui.shop.checkout | ||
- sylius.behat.context.ui.shop.checkout.addressing | ||
- sylius.behat.context.ui.shop.checkout.payment | ||
- sylius.behat.context.ui.shop.checkout.shipping | ||
|
||
filters: | ||
tags: "@viewing_shipping_methods&&@ui" |
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.