From 39a736ef9abee5bb7cd49114882bf87b4e741fa6 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 14 Jan 2020 12:21:21 +0800 Subject: [PATCH] MDL-67687 behat: Login page accessibility ensurance --- auth/tests/behat/login.feature | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/auth/tests/behat/login.feature b/auth/tests/behat/login.feature index f80390b204e..5ebb83ab3d0 100644 --- a/auth/tests/behat/login.feature +++ b/auth/tests/behat/login.feature @@ -54,3 +54,17 @@ Feature: Authentication | 0 | not see | | 1 | see | | 2 | see | + + @javascript @accessibility + Scenario: Login page must be accessible + When I am on site homepage + # The following tests are all provided to ensure that the accessibility tests themselves are tested. + # In normal tests only one of the following is required. + Then the page should meet accessibility standards + And the page should meet "wcag131, wcag412" accessibility standards + And the page should meet accessibility standards with "wcag131, wcag412" extra tests + + And I follow "Log in" + And the page should meet accessibility standards + And the page should meet "wcag131, wcag412" accessibility standards + And the page should meet accessibility standards with "wcag131, wcag412" extra tests