Sylius/features/shop/locale/switching_current_locale.feature
Michał Pysiak 787cde8fb3 Enable scenarios, add component
# Conflicts:
#	src/Sylius/Bundle/ShopBundle/Resources/config/services/twig/component.xml
2024-08-26 10:06:31 +02:00

27 lines
1 KiB
Gherkin

@locales
Feature: Switching the current locale
In order to browse shop in my preferred locale
As a Customer
I want to be able to switch locales
Background:
Given the store operates on a channel named "Web" with hostname "web"
And that channel allows to shop using "English (United States)" and "Polish (Poland)" locales
And it uses the "English (United States)" locale by default
@api @ui
Scenario: Showing the current locale
When I browse that channel
Then I should shop using the "English (United States)" locale
@api @ui
Scenario: Showing available locales
When I browse that channel
Then I should be able to shop using the "Polish (Poland)" locale
@api @ui
Scenario: Switching the current locale
When I browse that channel
And I switch to the "Polish (Poland)" locale
Then I should shop using the "Polish (Poland)" locale
And I should be able to shop using the "English (United States)" locale