From e14f48ea61691c62032b7e9b580a7a8cdd799d29 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Fri, 26 Jul 2024 11:41:26 +0800 Subject: [PATCH] MDL-67683 behat: Add accessibility test for the maintenance mode layout --- auth/tests/behat/loginform.feature | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/auth/tests/behat/loginform.feature b/auth/tests/behat/loginform.feature index cc4c01338e7..7942678268d 100644 --- a/auth/tests/behat/loginform.feature +++ b/auth/tests/behat/loginform.feature @@ -46,12 +46,14 @@ Feature: Test if the login form provides the correct feedback And I follow "Log in" Then I should see "Lorem ipsum dolor sit amet" + @javascript @accessibility Scenario: Show the maintenance mode message Given the following config values are set as admin: - | maintenance_enabled | Disabled | - | maintenance_message | Back online tomorrow | + | maintenance_enabled | 1 | + | maintenance_message | Back online tomorrow | And I follow "Log in" Then I should see "Back online tomorrow" + And the page should meet accessibility standards with "best-practice" extra tests Scenario: User self registration Given the following config values are set as admin: