MDL-81455 behat: Add accessibility coverage to default start page tests

This commit is contained in:
Jun Pataleta
2025-08-21 17:51:03 +08:00
parent 2d2fa81a6c
commit c16b55dce9
@@ -4,6 +4,7 @@ Feature: Welcome message on boost
As a User
I need to see a welcome message on the first page
@accessibility
Scenario: Login and be welcomed on the homepage
Given the following config values are set as admin:
| defaulthomepage | 0 |
@@ -13,7 +14,9 @@ Feature: Welcome message on boost
And I reload the page
And I should not see "Welcome, Admin!" in the "page-header" "region"
And I should see "Acceptance test site" in the "page-header" "region"
And the page should meet accessibility standards
@accessibility
Scenario: Login and be welcomed on the dashboard
Given the following config values are set as admin:
| defaulthomepage | 1 |
@@ -23,7 +26,9 @@ Feature: Welcome message on boost
And I reload the page
And I should not see "Welcome, Admin!" in the "page-header" "region"
And I should see "Dashboard" in the "page-header" "region"
And the page should meet accessibility standards with "best-practice" extra tests
@accessibility
Scenario: Login and be welcomed on the my courses page
Given the following config values are set as admin:
| defaulthomepage | 3 |
@@ -33,3 +38,4 @@ Feature: Welcome message on boost
And I reload the page
And I should not see "Welcome, Admin!" in the "page-header" "region"
And I should see "My courses" in the "page-header" "region"
And the page should meet accessibility standards