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/search_areas.feature
@core @core_admin
Feature: Use the search areas admin screen
  In order to control search indexing
  As an admin
  I need to use the search areas admin screen

  Background:
    Given I log in as "admin"
    And I navigate to "Plugins > Search > Search areas" in site administration

  Scenario: Disable and enable a search area
    When I click on "Disable" "link" in the "Book - resource information" "table_row"
    Then I should see "Search area disabled" in the ".alert-success" "css_element"
    And I should see "Search area disabled" in the "Book - resource information" "table_row"

    When I click on "Enable" "link" in the "Book - resource information" "table_row"
    Then I should see "Search area enabled" in the ".alert-success" "css_element"
    And I should not see "Search area disabled" in the "Book - resource information" "table_row"

  # Note: Other scenarios are not currently easy to implement in Behat because there is no mock
  # search engine - we could add testing once Moodle has an internal database search engine.