From 6f7daa5e48524184bc19d7d53957a2776770527b Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Thu, 7 Dec 2017 15:50:41 +0800 Subject: [PATCH] MDL-60880 core_search: Behat fix for clean theme The navigation block is visible in clean so "I should not see courses" finds the link in the navigation block --- search/tests/behat/search_query.feature | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/search/tests/behat/search_query.feature b/search/tests/behat/search_query.feature index e3d9b3502d3..3e3a0f05514 100644 --- a/search/tests/behat/search_query.feature +++ b/search/tests/behat/search_query.feature @@ -59,7 +59,7 @@ Feature: Use global search interface When I search for "frogs" using the header global search box And I expand all fieldsets Then I should not see "Search within" - And I should see "Courses" + And I should see "Courses" in the "region-main" "region" @javascript Scenario: Search starting from course context (within option lists course) @@ -71,9 +71,9 @@ Feature: Use global search interface And I expand all fieldsets Then I should see "Search within" And I select "Everywhere you can access" from the "Search within" singleselect - And I should see "Courses" + And I should see "Courses" in the "region-main" "region" And I select "Course: Amphibians" from the "Search within" singleselect - And I should not see "Courses" + And I should not see "Courses" in the "region-main" "region" @javascript Scenario: Search starting from forum context (within option lists course and forum) @@ -86,8 +86,8 @@ Feature: Use global search interface And I expand all fieldsets And I should see "Search within" And I select "Everywhere you can access" from the "Search within" singleselect - And I should see "Courses" + And I should see "Courses" in the "region-main" "region" And I select "Course: Amphibians" from the "Search within" singleselect - And I should not see "Courses" + And I should not see "Courses" in the "region-main" "region" And I select "Forum: ForumName1" from the "Search within" singleselect - And I should not see "Courses" + And I should not see "Courses" in the "region-main" "region"