From 0d1851a95f7175d1370e2d77573b7b3420bf77c8 Mon Sep 17 00:00:00 2001
From: Kathrin Osswald <kathrin.osswald@uni-ulm.de>
Date: Fri, 5 Jun 2020 09:15:25 +0200
Subject: [PATCH] Fixing broken behat step.

---
 CHANGES.md                                                | 1 +
 .../theme_boost_campus_course_layout_settings.feature     | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/CHANGES.md b/CHANGES.md
index d7fcb84..47c1522 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -6,6 +6,7 @@ Changes
 
 ### Unreleased
 
+* 2020-06-05 - Fixing broken behat step.
 * 2020-06-04 - Adjusted columns2.mustache template due to upstream changes in theme Boost.
 * 2020-06-04 - Making Travis happy again.
 
diff --git a/tests/behat/theme_boost_campus_course_layout_settings.feature b/tests/behat/theme_boost_campus_course_layout_settings.feature
index d293b4a..cf169e9 100644
--- a/tests/behat/theme_boost_campus_course_layout_settings.feature
+++ b/tests/behat/theme_boost_campus_course_layout_settings.feature
@@ -153,19 +153,19 @@ Feature: Configuring the theme_boost_campus plugin for the "Course Layout settin
     And I should see "Course administration" in the "#boost-campus-course-settings" "css_element"
     And I should see "Backup" in the "#course-settings-courseadmin" "css_element"
     And I should see "Users" in the "#boost-campus-course-settings" "css_element"
-    When I click on "Users" "link"
+    When I click on "Users" "link" in the "#boost-campus-course-settings" "css_element"
     Then "#course-settings-users" "css_element" should be visible
     And I should see "Enrolment methods" in the "#course-settings-users" "css_element"
     And I should see "Reports" in the "#boost-campus-course-settings" "css_element"
-    When I click on "Reports" "link"
+    When I click on "Reports" "link" in the "#boost-campus-course-settings" "css_element"
     Then "#course-settings-coursereports" "css_element" should be visible
     And I should see "Activity report" in the "#course-settings-coursereports" "css_element"
     And I should see "Badges" in the "#boost-campus-course-settings" "css_element"
-    When I click on "Badges" "link"
+    When I click on "Badges" "link" in the "#boost-campus-course-settings" "css_element"
     Then "#course-settings-coursebadges" "css_element" should be visible
     And I should see "Manage badges" in the "#course-settings-coursebadges" "css_element"
     And I should see "Question bank" in the "#boost-campus-course-settings" "css_element"
-    When I click on "Question bank" "link"
+    When I click on "Question bank" "link" in the "#boost-campus-course-settings" "css_element"
     Then "#course-settings-questionbank" "css_element" should be visible
     And I should see "Questions" in the "#course-settings-questionbank" "css_element"
 
-- 
GitLab