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/dls/blocks/search_forums/tests/behat/block_search_forums_frontpage.feature
@block @block_search_forums @mod_forum
Feature: The search forums block allows users to search for forum posts on frontpage
  In order to search for a forum post
  As an administrator
  I can add the search forums block

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email | idnumber |
      | student1 | Student | 1 | student1@example.com | S1 |
    And the following "blocks" exist:
      | blockname     | contextlevel | reference | pagetypepattern | defaultregion |
      | search_forums | System       | 1         | site-index      | side-pre      |

  Scenario: Use the search forum block on the frontpage and search for posts as a user
    Given I log in as "student1"
    And I am on site homepage
    When I set the field "Search" to "Moodle"
    And I press "Search"
    Then I should see "No posts"

  Scenario: Use the search forum block on the frontpage and search for posts as a guest
    Given I log in as "guest"
    And I am on site homepage
    When I set the field "Search" to "Moodle"
    And I press "Search"
    Then I should see "No posts"