Sylius/features/channel/managing_channels/channel_unique_code_validation.feature
2023-10-31 09:09:26 +01:00

18 lines
689 B
Gherkin

@managing_channels
Feature: Channel unique code validation
In order to uniquely identify channels
As an Administrator
I want to be prevented from adding two channels with same code
Background:
Given the store operates on a channel identified by "WEB" code
And I am logged in as an administrator
@api @ui
Scenario: Trying to add channel with taken code
When I want to create a new channel
And I specify its code as "WEB"
And I name it "Mobile channel"
And I try to add it
Then I should be notified that channel with this code already exists
And there should still be only one channel with code "WEB"