From 58bf071ce7cbd017de5902c7fdf0384c2faf7c4d Mon Sep 17 00:00:00 2001
From: Alexander Bias <alexander.bias@uni-ulm.de>
Date: Tue, 17 Aug 2021 15:47:19 +0200
Subject: [PATCH] Bugfix: Fix Behat test which checks the 'Hide link to the
 Moodle docs' feature which broke since the last release.

---
 CHANGES.md                                                  | 1 +
 .../behat/theme_boost_campus_footer_layout_settings.feature | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/CHANGES.md b/CHANGES.md
index 807c799..8caf6c7 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -6,6 +6,7 @@ Changes
 
 ### Unreleased
 
+* 2021-08-16 - Bugfix: Fix Behat test which checks the 'Hide link to the Moodle docs' feature which broke since the last release.
 * 2021-08-16 - Bugfix: In-course settings have been shown below course information banners instead of above them.
 * 2021-08-16 - Improvement: Add in-course settings only to HTML tree of the setting is enabled.
 * 2021-08-16 - Adjust activity_settings_incourse.mustache template based on changes in settings_link_page.mustache
diff --git a/tests/behat/theme_boost_campus_footer_layout_settings.feature b/tests/behat/theme_boost_campus_footer_layout_settings.feature
index b7e47ea..117d37c 100644
--- a/tests/behat/theme_boost_campus_footer_layout_settings.feature
+++ b/tests/behat/theme_boost_campus_footer_layout_settings.feature
@@ -129,7 +129,7 @@ Feature: Configuring the theme_boost_campus plugin for the "Footer Layout Settin
   #  Given the following config values are set as admin:
   #    | config             | value | plugin             |
   #    | footerhidehelplink | 1     | theme_boost_campus |
-  Scenario: Enable Hide link to the Moodle docs"
+  Scenario: Enable "Hide link to the Moodle docs"
     When I log in as "admin"
     And I navigate to "Appearance > Boost Campus" in site administration
     And I click on "Footer Layout Settings" "link"
@@ -138,7 +138,7 @@ Feature: Configuring the theme_boost_campus plugin for the "Footer Layout Settin
     And I log out
     When I log in as "teacher1"
     And I am on "Course 1" course homepage
-    Then I should not see "Moodle Docs for this page" in the "page-footer" "region"
+    Then "#page-footer p.helplink a[href^=\"https://docs.moodle.org/\"]" "css_element" should not be visible
 
   # This scenario needs full browser support only for this Behat test to pass, otherwise javascript would not be needed.
   @javascript
@@ -155,7 +155,7 @@ Feature: Configuring the theme_boost_campus plugin for the "Footer Layout Settin
     And I log out
     When I log in as "teacher1"
     And I am on "Course 1" course homepage
-    Then I should see "Moodle Docs for this page" in the "page-footer" "region"
+    Then "#page-footer p.helplink a[href^=\"https://docs.moodle.org/\"]" "css_element" should be visible
 
   # This scenario needs full browser support only for this Behat test to pass, otherwise javascript would not be needed.
   @javascript
-- 
GitLab