mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-60953 search: Set solr as search engine for testing
Also replacing field label references for "All groups" references as there is a mforms bug related to hideIf.
This commit is contained in:
parent
659bdbd22a
commit
b71ce36030
@ -7,6 +7,7 @@ Feature: Use global search interface
|
||||
Background:
|
||||
Given the following config values are set as admin:
|
||||
| enableglobalsearch | 1 |
|
||||
| searchengine | solr |
|
||||
And the following "courses" exist:
|
||||
| shortname | fullname |
|
||||
| F1 | Amphibians |
|
||||
@ -108,12 +109,12 @@ Feature: Use global search interface
|
||||
| activity | PAGE1 |
|
||||
And I search for "frogs" using the header global search box
|
||||
And I expand all fieldsets
|
||||
Then I should not see "Groups" in the "region-main" "region"
|
||||
Then I should not see "All groups" in the "region-main" "region"
|
||||
And I select "Course: Amphibians" from the "Search within" singleselect
|
||||
And I should see "Groups" in the "region-main" "region"
|
||||
And I should see "All groups" in the "region-main" "region"
|
||||
And I set the field "Groups" to "A Group"
|
||||
And I select "Forum: ForumSG" from the "Search within" singleselect
|
||||
And I should see "Groups" in the "region-main" "region"
|
||||
And I should see "A Group" in the "region-main" "region"
|
||||
And I am on "Amphibians" course homepage
|
||||
And I follow "ForumName1"
|
||||
And global search expects the query "frogs" and will return:
|
||||
@ -121,8 +122,8 @@ Feature: Use global search interface
|
||||
| activity | PAGE1 |
|
||||
And I search for "frogs" using the header global search box
|
||||
And I expand all fieldsets
|
||||
Then I should not see "Groups" in the "region-main" "region"
|
||||
Then I should not see "All groups" in the "region-main" "region"
|
||||
And I select "Course: Amphibians" from the "Search within" singleselect
|
||||
And I should see "Groups" in the "region-main" "region"
|
||||
And I should see "All groups" in the "region-main" "region"
|
||||
And I select "Forum: ForumName1" from the "Search within" singleselect
|
||||
And I should not see "Groups" in the "region-main" "region"
|
||||
And I should not see "All groups" in the "region-main" "region"
|
||||
|
Loading…
x
Reference in New Issue
Block a user