-
-
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.
- Loading branch information
Showing
9 changed files
with
126 additions
and
37 deletions.
There are no files selected for viewing
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
27 changes: 27 additions & 0 deletions
27
features/checkout/addressing_order/order_address_validation.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 @@ | ||
@checkout | ||
Feature: Order address validation | ||
In order to avoid making mistakes when addressing order | ||
As Visitor | ||
I want to be prevented from adding incorrect order address | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store has a product "Stark T-shirt" priced at "$12.00" | ||
And the store allows paying offline | ||
And the store has "UPS" shipping method with "$20.00" fee | ||
|
||
@api | ||
Scenario: Trying to add address with incorrect country to the cart by the visitor | ||
Given the visitor has product "Stark T-Shirt" in the cart | ||
When the visitor specify the email as "jon.snow@example.com" | ||
And the visitor try to specify the billing incorrect address as "Ankh Morpork", "Frost Alley", "90210", "United Russia" for "Jon Snow" | ||
And the visitor complete the addressing step | ||
Then I should be notified that "United Russia" country does not exist | ||
|
||
@api | ||
Scenario: Trying to add address without country to the cart by the visitor | ||
Given the visitor has product "Stark T-Shirt" in the cart | ||
When the visitor specify the email as "jon.snow@example.com" | ||
And the visitor try to specify the billing address without country as "Ankh Morpork", "Frost Alley", "90210" for "Jon Snow" | ||
And the visitor complete the addressing step | ||
Then I should be notified that address without country does not exist |
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
2 changes: 2 additions & 0 deletions
2
src/Sylius/Bundle/ApiBundle/Resources/translations/validators.en.yaml
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