MDL-82551 core: Set welcome message heading to level 1

This commit is contained in:
Jun Pataleta 2024-07-22 14:17:47 +08:00
parent 554a790bf0
commit dc12e44bd4
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
2 changed files with 19 additions and 2 deletions

View File

@ -25,7 +25,7 @@
}
}}
{{#welcomemessage}}
<h2 class="mb-3 mt-3">
<h1 class="h2 mb-3 mt-3">
{{.}}
</h2>
</h1>
{{/welcomemessage}}

View File

@ -30,3 +30,20 @@ Feature: Welcome message
And I should see "You are not logged in" in the "page-footer" "region"
And I log in as "admin"
Then I should see "Hi, Admin!" in the "page-header" "region"
@accessibility @javascript
Scenario Outline: The start page must meet accessibility standards when the welcome message is displayed
Given the following config values are set as admin:
| defaulthomepage | <defaulthomepage> |
When I log in as "admin"
Then I should see "Welcome, Admin!" in the "page-header" "region"
And the page should meet accessibility standards
Examples:
| defaulthomepage |
# Home.
| 0 |
# Dashboard.
| 1 |
# My courses.
| 2 |