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/ceade.tocsa.com.py/search/tests/behat/setup_search_engine.feature
@core @core_search
Feature: Plugins > Search > Search setup contains Setup search engine only if the target section actually exists
  In order to set up the selected search engine
  As an admin
  I need to be able to click the link 'Setup search engine' but only if the target section actually exists

  Scenario: Selected search engine has an admin section
    Given the following config values are set as admin:
      | enableglobalsearch | 1        |
      | searchengine       | solr     |
    And I log in as "admin"
    When I navigate to "Plugins > Search" in site administration
    Then "Setup search engine" "link" should exist

  Scenario: Selected search engine does not have an admin section
    Given the following config values are set as admin:
      | enableglobalsearch | 1        |
      | searchengine       | simpledb |
    And I log in as "admin"
    When I navigate to "Plugins > Search" in site administration
    Then I should see "Setup search engine"
    And "Setup search engine" "link" should not exist