-
-
Notifications
You must be signed in to change notification settings - Fork 159
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 #741 from coreshop/carrier-shipping-rules-no-rule
[Shipping] shipping is valid when no shipping rule is configured
- Loading branch information
Showing
4 changed files
with
67 additions
and
6 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
features/shipping/carrier_with_no_shipping_rules_valid.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,27 @@ | ||
@shipping @shipping_carrier_with_no_rules | ||
Feature: Add a new carrier without rules should be valid | ||
|
||
Background: | ||
Given the site operates on a store in "Austria" | ||
And the site has a currency "Euro" with iso "EUR" | ||
And I am in country "Austria" | ||
And the site has a tax rate "AT" with "20%" rate | ||
And the site has a tax rule group "AT" | ||
And the tax rule group has a tax rule for country "Austria" with tax rate "AT" | ||
And the site has a product "Shoe" priced at 10000 | ||
And the product has the tax rule group "AT" | ||
And I add the product "Shoe" to my cart | ||
And the site has a carrier "Post" | ||
|
||
Scenario: Carrier with not shipping rule should be valid | ||
Given I add the product "Shoe" to my cart | ||
And the carrier "Post" should be valid for my cart | ||
|
||
Scenario: Carrier with one shipping rule should be valid | ||
Given adding a shipping rule named "product" | ||
And the shipping rule is active | ||
And the shipping rule has a condition products with product "Shoe" | ||
And the shipping rule belongs to carrier "Post" | ||
And I add the product "Shoe" to my cart | ||
And the carrier "Post" should be valid for my cart | ||
|
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