From d0e0b1da472c07b8717e16fe6d7bfe2af4915979 Mon Sep 17 00:00:00 2001 From: Angelia Dela Cruz Date: Mon, 3 Nov 2025 15:22:10 +0800 Subject: [PATCH] MDL-87049 core: Behat to toggle campaign content banner display --- .../tests/behat/toggle_campaign_display.feature | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 public/admin/tests/behat/toggle_campaign_display.feature diff --git a/public/admin/tests/behat/toggle_campaign_display.feature b/public/admin/tests/behat/toggle_campaign_display.feature new file mode 100644 index 00000000000..c0cbb84def4 --- /dev/null +++ b/public/admin/tests/behat/toggle_campaign_display.feature @@ -0,0 +1,17 @@ +@core @core_admin +Feature: Toggle campaign banner visibility + In order to control the visibility of the campaign banner content + As an admin + I need to be able to disable the campaign banner display + + Scenario Outline: Admin can disable the campaign banner display + Given the following config values are set as admin: + | showcampaigncontent | | + And I log in as "admin" + When I navigate to "Notifications" in site administration + Then "//iframe[@id='campaign-content']" "xpath_element" exist + + Examples: + | showcampaigncontent | display | + | true | should | + | false | should not |