From 3d3aba577ebcf16824f124b1c4470e796a70c2ba Mon Sep 17 00:00:00 2001
From: Alexander Bias <bias@alexanderbias.de>
Date: Thu, 6 Jan 2022 12:22:57 +0100
Subject: [PATCH] Extend existing Behat test to cover the infobanner on the
 frontpage

---
 .../theme_boost_campus_info_banner_settings.feature    | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/behat/theme_boost_campus_info_banner_settings.feature b/tests/behat/theme_boost_campus_info_banner_settings.feature
index 1a20ed4..9f0ed8a 100644
--- a/tests/behat/theme_boost_campus_info_banner_settings.feature
+++ b/tests/behat/theme_boost_campus_info_banner_settings.feature
@@ -17,11 +17,13 @@ Feature: Configuring the theme_boost_campus plugin for the "Info banner Settings
 
   Scenario: Display perpetual info banner on all available pages
     Given the following config values are set as admin:
-      | config            | value                    | plugin             |
-      | perpibenable      | 1                        | theme_boost_campus |
-      | perpibcontent     | "This is a test content" | theme_boost_campus |
-      | perpibshowonpages | mydashboard,course,login | theme_boost_campus |
+      | config            | value                              | plugin             |
+      | perpibenable      | 1                                  | theme_boost_campus |
+      | perpibcontent     | "This is a test content"           | theme_boost_campus |
+      | perpibshowonpages | mydashboard,frontpage,course,login | theme_boost_campus |
     When I log in as "teacher1"
+    And I am on site homepage
+    Then I should see "This is a test content" in the "#themeboostcampusperpinfobanner" "css_element"
     And I follow "Dashboard" in the user menu
     Then I should see "This is a test content" in the "#themeboostcampusperpinfobanner" "css_element"
     When I am on "Course 1" course homepage
-- 
GitLab