From e9d11d55cc13e80f9c46b1cdd0f474763f6c675a Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Fri, 25 Oct 2024 07:34:00 +0200 Subject: [PATCH] Tests: Try to fix Behat error 'Warning: Undefined array key 1' on Moodle 4.5, resolves #734. (#745) --- CHANGES.md | 4 ++++ .../theme_boost_union_contentsettings_infobanners.feature | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 0fcdeed9444..44a3f7de1a6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,10 @@ moodle-theme_boost_union Changes ------- +### Unreleased + +* 2024-10-24 - Tests: Try to fix Behat error 'Warning: Undefined array key 1' on Moodle 4.5, resolves #734. + ### v4.5-r1 * 2024-10-15 - Upgrade: Update FontAwesome icon mappings for handling external links. diff --git a/tests/behat/theme_boost_union_contentsettings_infobanners.feature b/tests/behat/theme_boost_union_contentsettings_infobanners.feature index 5453a2310b6..f76f9ab8ad4 100644 --- a/tests/behat/theme_boost_union_contentsettings_infobanners.feature +++ b/tests/behat/theme_boost_union_contentsettings_infobanners.feature @@ -194,6 +194,11 @@ Feature: Configuring the theme_boost_union plugin for the "Information banners" And I log out When I log in as "admin" And Behat debugging is disabled + # Navigating to the content settings may fail with an initialization error of the core_sms\manager for unknown reasons. + # Purging the caches before navigating to the content area fixed the Behat failure for the same unknown reasons. + # We accept this fix as the error seems not to happen in production. + # See https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues/734 for details + And all caches are purged And I navigate to "Appearance > Boost Union > Content" in site administration And I click on "Info banner" "link" in the "#adminsettings .nav-tabs" "css_element" And I click on "Reset visibility of info banner 1" "link"