1 |
efrain |
1 |
@core @core_admin
|
|
|
2 |
Feature: Administrator is warned and when trying to set invalid allcountrycodes value.
|
|
|
3 |
In order to avoid misconfiguration of the country selector fields
|
|
|
4 |
As an admin
|
|
|
5 |
I want to be warned when I try to set an invalid country code in the allcountrycodes field
|
|
|
6 |
|
|
|
7 |
Scenario: Attempting to set allcountrycodes field with valid country codes
|
|
|
8 |
Given I log in as "admin"
|
|
|
9 |
And I navigate to "Location > Location settings" in site administration
|
|
|
10 |
When I set the following administration settings values:
|
|
|
11 |
| All country codes | CZ,BE,GB,ES |
|
|
|
12 |
Then I should not see "Invalid country code"
|
|
|
13 |
|
|
|
14 |
Scenario: Attempting to set allcountrycodes field with invalid country code
|
|
|
15 |
Given I log in as "admin"
|
|
|
16 |
And I navigate to "Location > Location settings" in site administration
|
|
|
17 |
When I set the following administration settings values:
|
|
|
18 |
| All country codes | CZ,BE,FOOBAR,GB,ES |
|
|
|
19 |
Then I should see "Invalid country code: FOOBAR"
|
|
|
20 |
|
|
|
21 |
Scenario: Attempting to unset allcountrycodes field
|
|
|
22 |
Given I log in as "admin"
|
|
|
23 |
And I navigate to "Location > Location settings" in site administration
|
|
|
24 |
And I set the following administration settings values:
|
|
|
25 |
| All country codes | CZ,BE,GB,ES |
|
|
|
26 |
And I navigate to "Location > Location settings" in site administration
|
|
|
27 |
When I set the following administration settings values:
|
|
|
28 |
| All country codes | |
|
|
|
29 |
Then I should not see "Invalid country code"
|