1 |
efrain |
1 |
@core @core_search
|
|
|
2 |
Feature: Show system information in the search interface
|
|
|
3 |
In order to let users know if there are current problems with search
|
|
|
4 |
As an admin
|
|
|
5 |
I need to be able to show information on search pages
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following config values are set as admin:
|
|
|
9 |
| enableglobalsearch | 1 |
|
|
|
10 |
| searchengine | simpledb |
|
|
|
11 |
And I log in as "admin"
|
|
|
12 |
|
|
|
13 |
@javascript
|
|
|
14 |
Scenario: Information displays when enabled
|
|
|
15 |
When the following config values are set as admin:
|
|
|
16 |
| searchbannerenable | 1 |
|
|
|
17 |
| searchbanner | The search currently only finds frog-related content; we hope to fix it soon. |
|
|
|
18 |
And I search for "toads" using the header global search box
|
|
|
19 |
Then I should see "The search currently only finds frog-related content" in the ".notifywarning" "css_element"
|
|
|
20 |
|
|
|
21 |
@javascript
|
|
|
22 |
Scenario: Information does not display when not enabled
|
|
|
23 |
When the following config values are set as admin:
|
|
|
24 |
| searchbannerenable | 0 |
|
|
|
25 |
| searchbanner | The search currently only finds frog-related content; we hope to fix it soon. |
|
|
|
26 |
And I search for "toads" using the header global search box
|
|
|
27 |
Then I should not see "The search currently only finds frog-related content"
|
|
|
28 |
And ".notifywarning" "css_element" should not exist
|
|
|
29 |
|
|
|
30 |
@javascript
|
|
|
31 |
Scenario: Information does not display when left blank
|
|
|
32 |
When the following config values are set as admin:
|
|
|
33 |
| searchbannerenable | 1 |
|
|
|
34 |
| searchbanner | |
|
|
|
35 |
And I search for "toads" using the header global search box
|
|
|
36 |
Then ".notifywarning" "css_element" should not exist
|