MDL-85451 block_timeline: Add accessibility Behat test coverage

This commit is contained in:
Jun Pataleta
2026-03-18 13:24:09 +08:00
parent 1d1496ff3e
commit dfa4eb68af
2 changed files with 6 additions and 0 deletions
@@ -37,8 +37,10 @@ Feature: The timeline block allows users to see upcoming courses
| student1 | C3 | student |
| student1 | C4 | student |
@accessibility
Scenario: Next 30 days in course view
Given I log in as "student1"
And the "Timeline" "block" should meet accessibility standards with "best-practice" extra tests
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
And I click on "Next 30 days" "link" in the "Timeline" "block"
And I click on "Sort timeline items" "button" in the "Timeline" "block"
@@ -61,6 +63,7 @@ Feature: The timeline block allows users to see upcoming courses
And "Test feedback 2" "link" should not exist in the "Timeline" "block"
And "Test feedback 3" "link" should not exist in the "Timeline" "block"
And "Test assign 1" "link" should not exist in the "Timeline" "block"
And the "Timeline" "block" should meet accessibility standards with "best-practice" extra tests
Scenario: All in course view
Given I log in as "student1"
@@ -50,9 +50,11 @@ Feature: The timeline block allows users to see upcoming activities
And "Test assign 1" "link" should not exist in the "Timeline" "block"
And I should not see "Assignment is due · Course 1" in the "Timeline" "block"
@accessibility
Scenario: Overdue in date view
Given I log in as "student1"
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
And the "Timeline" "block" should meet accessibility standards with "best-practice" extra tests
When I click on "Overdue" "link" in the "Timeline" "block"
Then "Test assign 1" "link" should exist in the "Timeline" "block"
And I should see "Assignment is due · Course 1" in the "Timeline" "block"
@@ -63,6 +65,7 @@ Feature: The timeline block allows users to see upcoming activities
And "Test choice 3" "link" should not exist in the "Timeline" "block"
And "Test feedback 3" "link" should not exist in the "Timeline" "block"
And "Test feedback 4" "link" should not exist in the "Timeline" "block"
And the "Timeline" "block" should meet accessibility standards with "best-practice" extra tests
Scenario: All in date view
Given I log in as "student1"