From 0ad8ac1c3bb041333fe2c5397b6df166f6291104 Mon Sep 17 00:00:00 2001 From: Angelia Dela Cruz Date: Tue, 25 Feb 2025 12:59:38 +0800 Subject: [PATCH] MDL-84425 theme_boost: Behat for course section selector unavailable --- .../boost/tests/behat/course_sections.feature | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 theme/boost/tests/behat/course_sections.feature diff --git a/theme/boost/tests/behat/course_sections.feature b/theme/boost/tests/behat/course_sections.feature new file mode 100644 index 00000000000..d40030d4398 --- /dev/null +++ b/theme/boost/tests/behat/course_sections.feature @@ -0,0 +1,24 @@ +@theme_boost +Feature: Course sections selector is not available on boost theme + In order to view course sections selector + As admin + I need to use the classic theme + + # Please note: This is a sister test to "Use the course section selector in classic theme" to confirm + # that the "Jump to" menu does not exist on the section page. + Scenario: Course sections selector is not available on boost theme regardless of the course format + Given the following "courses" exist: + | fullname | shortname | format | coursedisplay | + | Course 1 | C1 | topics | 1 | + # Add activities in different sections to test that only the selected section's activity is visible. + And the following "activities" exist: + | activity | course | name | section | + | forum | C1 | Forum 1 | 1 | + | assign | C1 | Assign 1 | 2 | + And I am on the "Course 1" course page logged in as admin + When I click on "Topic 1" "link" in the "#section-1" "css_element" + # Confirm that only the selected section's activity is visible. + Then I should see "Forum 1" + And I should not see "Assign 1" + # Confirm that the "Jump to" menu does not exist on the view section page. + And "jump" "select" should not exist