From 208e2b68faf20156d6778fc38818ceebfcb9f1ed Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Fri, 29 Aug 2025 21:05:22 +0800 Subject: [PATCH] MDL-86479 course: Add accessibility coverage for course index options --- course/format/tests/behat/course_courseindex.feature | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/course/format/tests/behat/course_courseindex.feature b/course/format/tests/behat/course_courseindex.feature index 93333bfb262..c812de48c6d 100644 --- a/course/format/tests/behat/course_courseindex.feature +++ b/course/format/tests/behat/course_courseindex.feature @@ -187,7 +187,7 @@ Feature: Course index depending on role And I should see "Section 3" in the "courseindex-content" "region" And I should see "Activity sample 3" in the "courseindex-content" "region" - @javascript + @javascript @accessibility Scenario: Course index toggling all sections When I am on the "Course 1" course page logged in as teacher1 # Sections should be opened by default. @@ -199,6 +199,7 @@ Feature: Course index depending on role And I should see "Activity sample 3" in the "courseindex-content" "region" # Collapse all sections And I click on "Course index options" "button" in the "#courseindexdrawercontrols" "css_element" + And the page should meet accessibility standards And I click on "Collapse all" "link" in the "#courseindexdrawercontrols" "css_element" And I should see "Section 1" in the "courseindex-content" "region" And I should not see "Activity sample 1" in the "courseindex-content" "region"