MDL-86498 badges: Accessibility coverage for badge details and overview

This commit is contained in:
Jun Pataleta
2025-09-09 18:18:29 +08:00
parent 5b1731077e
commit f380f3f560
2 changed files with 23 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
@core @core_badges
Feature: Badge overview
In order to view a badge's information
As an user with the capability to view badges
I need to access the badge overview page
Background:
Given the following config values are set as admin:
| badges_defaultissuername | Test Badge Site |
@javascript @accessibility @_file_upload
Scenario: Test accessibility of badge overview page
Given I log in as "admin"
And I navigate to "Badges > Add a new badge" in site administration
And I set the following fields to these values:
| Name | Cool badge |
| Description | Badge for cool people |
And I upload "badges/tests/behat/badge.png" file to "Image" filemanager
And I press "Create badge"
When I select "Overview" from the "Badges navigation" singleselect
Then the "region-main" "region" should meet accessibility standards with "best-practice" extra tests
+2
View File
@@ -23,6 +23,7 @@ Feature: Display badges
And I log in as "admin"
And I navigate to "Badges > Manage badges" in site administration
@accessibility
Scenario: Display badge without expired date
# Enable the badge.
Given I press "Enable access" action in the "Testing system badge" report row
@@ -43,6 +44,7 @@ Feature: Display badges
And I follow "More details"
And I should see "Catalan"
And I should see "1.1"
And the page should meet accessibility standards with "best-practice" extra tests
Scenario: Display badge with ALL criteria
# Add another criterion and enable the badge.