Sylius/features/currency/managing_currencies/currency_unique_code_validation.feature
2022-03-11 09:20:29 +01:00

17 lines
609 B
Gherkin

@managing_currencies
Feature: Currency unique code validation
In order to uniquely identify currency
As an Administrator
I want to be prevented from adding two currency with the same code
Background:
Given the store has currency "Euro"
And I am logged in as an administrator
@ui @api
Scenario: Trying to add currency with taken code
When I want to add a new currency
And I choose "Euro"
And I try to add it
Then I should be notified that currency code must be unique
And there should still be only one currency with code "EUR"