@managing_channels
Feature: Selecting available locales for a channel
    In order to present stores website in different languages
    As an Administrator
    I want to be able to select available locales

    Background:
        Given the store has currency "Euro"
        And the store has locale "English (United States)"
        And I am logged in as an administrator

    @ui
    Scenario: Adding a new channel with locales
        Given I want to create a new channel
        When I specify its code as "MOBILE"
        And I name it "Mobile channel"
        And I make it available in "English (United States)"
        And I choose "Euro" as the base currency
        And I choose "English (United States)" as a default locale
        And I add it
        Then I should be notified that it has been successfully created
        And the channel "Mobile channel" should be available in "English (United States)"

    @ui
    Scenario: Adding locales to an existing channel
        Given the store operates on a channel named "Web Channel"
        And I want to modify this channel
        When I make it available in "English (United States)"
        And I save my changes
        Then I should be notified that it has been successfully edited
        And the channel "Web channel" should be available in "English (United States)"

@managing_channels
Feature: Selecting available locales for a channel
    In order to present stores website in different languages
    As an Administrator
    I want to be able to select available locales

    Background:
        Given the store has currency "Euro"
        And the store has locale "English (United States)"
        And I am logged in as an administrator

    @ui
    Scenario: Adding a new channel with locales
        Given I want to create a new channel
        When I specify its code as "MOBILE"
        And I name it "Mobile channel"
        And I make it available in "English (United States)"
        And I choose "Euro" as the base currency
        And I choose "English (United States)" as a default locale
        And I add it
        Then I should be notified that it has been successfully created
        And the channel "Mobile channel" should be available in "English (United States)"

    @ui
    Scenario: Adding locales to an existing channel
        Given the store operates on a channel named "Web Channel"
        And I want to modify this channel
        When I make it available in "English (United States)"
        And I save my changes
        Then I should be notified that it has been successfully edited
        And the channel "Web channel" should be available in "English (United States)"

    @todo @ui
    Scenario: Being unable to disable locale used as the default one for a channel
        Given the store operates on a channel named "Web"
        And this channel allows to shop using the "English (United States)" locale
        And this channel uses the "English (United States)" locale as default
        When I try to disable the "English (United States)" locale for this channel
        Then I should be notified that the default locale should be enabled

    @todo @ui
    Scenario: Being unable to set disabled locale as a default one for a channel
        Given the store has locale "Polish (Poland)"
        And the store operates on a channel named "Web"
        And this channel allows to shop using the "English (United States)" locale
        And this channel uses the "English (United States)" locale as default
        When I try to choose "Polish (Poland)" locale as default for this channel
        Then I should be notified that the default locale should be enabled

Add scenarios for validating default locale for a channel
[Behat][Admin] Add scenarios for validating default locale for a channel
