weekly release 4.5dev+
[moodle.git] / admin / tests / behat / search_areas.feature
blobc1c4909ed881457a244bcf3c8c3fabc8ed968902
1 @core @core_admin
2 Feature: Use the search areas admin screen
3   In order to control search indexing
4   As an admin
5   I need to use the search areas admin screen
7   Background:
8     Given I log in as "admin"
9     And I navigate to "Plugins > Search > Search areas" in site administration
11   Scenario: Disable and enable a search area
12     When I click on "Disable" "link" in the "Book - resource information" "table_row"
13     Then I should see "Search area disabled" in the ".alert-success" "css_element"
14     And I should see "Search area disabled" in the "Book - resource information" "table_row"
16     When I click on "Enable" "link" in the "Book - resource information" "table_row"
17     Then I should see "Search area enabled" in the ".alert-success" "css_element"
18     And I should not see "Search area disabled" in the "Book - resource information" "table_row"
20   # Note: Other scenarios are not currently easy to implement in Behat because there is no mock
21   # search engine - we could add testing once Moodle has an internal database search engine.