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/erauniversity.sumar.biz/course/tests/behat/search_recommended_activities.feature
@core @core_course
Feature: Search recommended activities
  As an admin I am able to search for activities in the "Recommended activities" admin setting page

  Scenario: Search results are returned if the search query matches any activity names
    Given I log in as "admin"
    And I am on site homepage
    And I navigate to "Courses > Activity chooser > Recommended activities" in site administration
    When I set the field "search" to "assign"
    And I click on "Submit search" "button"
    Then I should see "Search results"
    And "Assignment" "table_row" should exist
    And "Book" "table_row" should not exist

  Scenario: Search results are not returned if the search query does not match with any activity names
    Given I log in as "admin"
    And I am on site homepage
    And I navigate to "Courses > Activity chooser > Recommended activities" in site administration
    When I set the field "search" to "random query"
    And I click on "Submit search" "button"
    Then I should see "Search results: 0"