diff --git a/search/tests/behat/search_query.feature b/search/tests/behat/search_query.feature index 1d7c87af489..7d81fa00471 100644 --- a/search/tests/behat/search_query.feature +++ b/search/tests/behat/search_query.feature @@ -113,3 +113,27 @@ Feature: Use global search interface 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 "All groups" in the "region-main" "region" + + @javascript @frogfrog + Scenario: Search from header search box with 11 results (two pages) + Given the following config values are set as admin: + | searchengine | solr | + Given global search expects the query "frogs" and will return: + | type | idnumber | + | activity | PAGE1 | + | activity | PAGE1 | + | activity | PAGE1 | + | activity | PAGE1 | + | activity | PAGE1 | + | activity | PAGE1 | + | activity | PAGE1 | + | activity | PAGE1 | + | activity | PAGE1 | + | activity | PAGE1 | + | activity | FORUM1 | + When I search for "frogs" using the header global search box + Then I should see "PageName1" + And I should see "PageDesc1" + And I should not see "ForumName1" + And I should not see "No results" + And "Next" "link" should exist