Sylius/features/channel/managing_channels/adding_channel.feature
Łukasz Chruściel e8145f02b9
feature #11055 Define countries for a channel (pamil)
This PR was merged into the 1.7-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes #9122 
| License         | MIT

Currently used only in checkout addressing to limit the list of countries. If not defined, fallbacks to the previous behaviour - all enabled countries.

<img width="672" alt="Screenshot 2020-01-22 at 20 10 51" src="https://user-images.githubusercontent.com/1897953/72925676-65ef8f80-3d53-11ea-831c-25fad0973a83.png">



Commits
-------

2e68737703 Define countries for a channel
2020-01-23 13:22:17 +01:00

40 lines
1.8 KiB
Gherkin

@managing_channels
Feature: Adding a new channel
In order to sell through multiple websites or mobile applications
As an Administrator
I want to add a new channel to the registry
Background:
Given the store has currency "Euro"
And the store has locale "English (United States)"
And the store operates in "United States" and "Poland"
And I am logged in as an administrator
@ui
Scenario: Adding a new channel
Given I want to create a new channel
When I specify its code as "MOBILE"
And I name it "Mobile channel"
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 appear in the registry
@ui
Scenario: Adding a new channel with additional fields
Given I want to create a new channel
When I specify its code as "MOBILE"
And I name it "Mobile channel"
And I describe it as "Main distribution channel for mobile apps"
And I set its hostname as "m.avengers-gear.com"
And I set its contact email as "contact@avengers-gear.com"
And I define its color as "blue"
And I choose "Euro" as the base currency
And I choose "English (United States)" as a default locale
And I choose "United States" and "Poland" as operating countries
And I allow to skip shipping step if only one shipping method is available
And I allow to skip payment step if only one payment method is available
And I add it
Then I should be notified that it has been successfully created
And the channel "Mobile channel" should appear in the registry