Sindbad~EG File Manager

Current Path : /proc/self/root/var/www/html/ch.sumar.com.py/cursos/theme/snap/tests/behat/
Upload File :
Current File : //proc/self/root/var/www/html/ch.sumar.com.py/cursos/theme/snap/tests/behat/global_search.feature

# This file is part of Moodle - http://moodle.org/
#
# Moodle is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Moodle is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
#
# Tests for settings link.
#
# @package    theme_snap
# @copyright Copyright (c) 2016 Open LMS (https://www.openlms.net)
# @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

@theme @theme_snap
Feature: When the moodle theme is set to Snap, and global search is enabled, users should see a global search interface.

  Background:
    Given the following config values are set as admin:
      | enableglobalsearch | true |

  @javascript
  Scenario: Non-logged in user sees search interface.
    Given I am on site homepage
    Then ".snap-login-button" "css_element" should exist
    Then "div[id^='searchinput-navbar-']" "css_element" should exist
    And the following config values are set as admin:
        | enableglobalsearch | |
    And I reload the page
    Then "div[id^='searchinput-navbar-']" "css_element" should not exist

  @javascript
  Scenario: Logged in user sees search interface.
    Given I log in as "admin"
    Then "div[id^='searchinput-navbar-']" "css_element" should exist
    And the following config values are set as admin:
        | enableglobalsearch | |
    And I reload the page
    Then "div[id^='searchinput-navbar-']" "css_element" should not exist

  @javascript
  Scenario: Logged in user sees search interface.
    Given I log in as "admin"
    And I go to link "/admin/search.php"
    And ".nav-tabs" "css_element" should exist
    And ".simplesearchform" "css_element" should exist

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists