From ed26c81179cf926c33acdf3689041e79c656d489 Mon Sep 17 00:00:00 2001 From: Safat Date: Thu, 19 Mar 2026 01:19:41 +1100 Subject: [PATCH] MDL-87959 tool_installaddon: Add extra behat for chooser footer --- .../tests/behat/activity_chooser_footer.feature | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/public/admin/tool/installaddon/tests/behat/activity_chooser_footer.feature b/public/admin/tool/installaddon/tests/behat/activity_chooser_footer.feature index 5a53b7c97b8..b8d23f2499b 100644 --- a/public/admin/tool/installaddon/tests/behat/activity_chooser_footer.feature +++ b/public/admin/tool/installaddon/tests/behat/activity_chooser_footer.feature @@ -23,3 +23,15 @@ Feature: Marketplace activity chooser footer And I open the activity chooser Then "Browse more activities on" "text" should exist in the "Add an activity or resource" "dialogue" And "Marketplace" "link" should exist in the "Add an activity or resource" "dialogue" + + Scenario: Back button works from activity help when the Marketplace footer is active + Given I log in as "teacher1" + When I am on "Course 1" course homepage with editing mode on + And I open the activity chooser + And I click on "Information about the Assignment activity" "button" in the "Add an activity or resource" "dialogue" + Then "help" "core_course > Activity chooser screen" should be visible + When I click on "Back" "button" in the "Add an activity or resource" "dialogue" + Then "modules" "core_course > Activity chooser screen" should be visible + And "help" "core_course > Activity chooser screen" should not be visible + And "Marketplace" "link" should exist in the "Add an activity or resource" "dialogue" + And "Back" "button" should not be visible