Sylius/features/frontend/checkout_addressing_i18n.feature
2015-05-21 10:57:22 +02:00

48 lines
2.1 KiB
Gherkin

@i18n
Feature: Checkout addressing in preferred language
In order to select the correct shipping country
As a visitor
I want to see the country list in my preferred language
Background:
Given there are following taxonomies defined:
| name |
| Category |
And taxonomy "Category" has following taxons:
| Clothing > PHP T-Shirts |
And the following products exist:
| name | price | taxons |
| PHP Top | 5.99 | PHP T-Shirts |
And the following zones are defined:
| name | type | members |
| UK + Germany | country | United Kingdom, Germany |
| USA | country | USA |
And there are following countries:
| name |
| USA |
| United Kingdom |
| Poland |
| Germany |
And the following shipping methods exist:
| zone | name | calculator | configuration |
| UK + Germany | DHL Express | Flat rate | Amount: 5000 |
| USA | FedEx | Flat rate | Amount: 6500 |
And there is default currency configured
And there is default channel configured
And all products assigned to "DEFAULT-WEB" channel
And there are following locales configured:
| code | enabled |
| en_US | yes |
| de_DE | yes |
And the following country translations exist
| country | name | locale |
| Germany | Deutschland | de |
Scenario: Seeing country in preferred language
Given I am not logged in
And I added product "PHP Top" to cart
When I go to the checkout start page
And I fill in "sylius_checkout_guest[email]" with "example@example.com"
And I press "Proceed with your order"
And I change the locale to "German"
Then I select "Deutschland" from "Land"