MDL-67687 behat: Login page accessibility ensurance
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 14 Jan 2020 04:21:21 +0000 (12:21 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 4 Aug 2020 23:41:45 +0000 (07:41 +0800)
auth/tests/behat/login.feature

index f80390b..5ebb83a 100644 (file)
@@ -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