HEX
Server: LiteSpeed
System: Linux server.zepintelhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: enamadmin (1026)
PHP: 8.2.30
Disabled: exec,system,passthru,shell_exec,proc_nice,proc_terminate,pfsockopen,dl,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,leak,apache_child_terminate
Upload Files
File: /home/enamadmin/public_html/elearning_plateforme1/admin/tests/behat/invalid_allcountrycodes.feature
@core @core_admin
Feature: Administrator is warned and when trying to set invalid allcountrycodes value.
  In order to avoid misconfiguration of the country selector fields
  As an admin
  I want to be warned when I try to set an invalid country code in the allcountrycodes field

  Scenario: Attempting to set allcountrycodes field with valid country codes
    Given I log in as "admin"
    And I navigate to "Location > Location settings" in site administration
    When I set the following administration settings values:
      | All country codes | CZ,BE,GB,ES |
    Then I should not see "Invalid country code"

  Scenario: Attempting to set allcountrycodes field with invalid country code
    Given I log in as "admin"
    And I navigate to "Location > Location settings" in site administration
    When I set the following administration settings values:
      | All country codes | CZ,BE,FOOBAR,GB,ES |
    Then I should see "Invalid country code: FOOBAR"

  Scenario: Attempting to unset allcountrycodes field
    Given I log in as "admin"
    And I navigate to "Location > Location settings" in site administration
    And I set the following administration settings values:
      | All country codes | CZ,BE,GB,ES |
    And I navigate to "Location > Location settings" in site administration
    When I set the following administration settings values:
      | All country codes | |
    Then I should not see "Invalid country code"