HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.0.30
System: Linux multiplicar 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64
User: root (0)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /var/www/html/dda.sumar.com.py/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.