Accessibility Testing

Run accessibility checks against WCAG 2.1 inside Endtest Web Tests: scan full pages or specific elements and capture violations in your test report.

Overview

Accessibility Check is an option available within the Add Assertion action in Web Tests.

It allows you to automatically scan a full page or a specific element for accessibility issues, helping you identify problems that may affect users with disabilities.

Accessibility checks can help detect issues such as missing labels, missing alternative text, invalid ARIA usage, insufficient semantic structure, and other violations of common accessibility rules.

endtest accessibility testing

Automated accessibility testing is a valuable part of a broader accessibility strategy, but it should be complemented with manual testing and human review.

How to add an Accessibility Check

To add an Accessibility Check to a Web Test:

  1. Open a test case.
  2. Add a new Add Assertion step.
  3. Select Accessibility Check.
  4. Configure the scan target and failure criteria.
  5. Save the step and run the test.

You can add Accessibility Check steps at any point in the test flow, so you can validate different application states as the test progresses.

Target Options

The Target setting defines what part of the page will be analyzed.

1. Page

Select Page to scan the entire current page.

Use this option when you want a broad accessibility evaluation of the full page state.

2. Element

Select Element to scan a specific part of the page.

When Element is selected, you must provide a CSS Selector for the target element.

Use this option when you want to:

  • Focus on a specific component
  • Check a modal, form, menu, or widget in isolation
  • Reduce noise from unrelated accessibility issues elsewhere on the page

Fail Step on Severity

The Fail step on severity option controls when the test step should fail based on the issues detected.

Available options:

  • Never Fail: The step never fails, regardless of the issues found. Useful when you want to review accessibility findings without affecting test status.
  • Critical Severity: The step fails only if critical issues are found.
  • Serious Severity: The step fails if serious or critical issues are found.
  • Moderate Severity: The step fails if moderate, serious, or critical issues are found.
  • Minor Severity: The step fails if any issue is found, including minor ones.

A good starting point is Never Fail or Serious Severity, depending on how strict you want your initial checks to be.

Advanced Settings

You can enable Advanced Settings to further customize the accessibility scan.

Configuration

The Configuration dropdown lets you choose how the scan should be configured.

1. Default

Runs the standard accessibility checks using the default configuration.

Use this option when you want a balanced, general-purpose scan.

2. Tags

Select Tags to run only checks associated with specific accessibility tags.

When this option is selected, a textarea appears where you can enter the tags you want to include.

This is useful when you want to focus on a particular accessibility standard or category of rules.

Examples of tags include:

  • wcag2a
  • wcag2aa
  • wcag21a
  • wcag21aa
  • best-practice
  • WCAG success criterion tags such as wcag111

You can use tags to focus the scan on a specific compliance target or group of accessibility checks.

3. Rules

Select Rules to run only specific accessibility rules.

When this option is selected, a textarea appears where you can enter the rules you want to test.

This is useful when your team wants to validate a specific subset of accessibility requirements.

Examples of rules include:

  • image-alt
  • label
  • button-name
  • aria-valid-attr
  • color-contrast
  • link-name

You can find the full list of rules, together with their tags and descriptions, in the Axe documentation on GitHub: https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md

Disable Certain Rules

The Disable Certain Rules option allows you to exclude specific rules from the scan.

When enabled, a textarea appears where you can enter the rules you want to disable.

This can be useful when:

  • A rule is not relevant to your application
  • You are temporarily suppressing a known issue
  • You want to reduce noise while focusing on higher-priority problems

This setting should be used carefully, so important accessibility issues are not overlooked.

Reviewing the results

After the test run finishes, you can open the test results and inspect the Accessibility Check step.

The results can help you understand:

  • Which violations were detected
  • How severe each issue is
  • Which elements were affected
  • What needs to be improved

A practical way to adopt accessibility testing is to start by observing the findings, prioritize the most severe issues, and gradually tighten your failure threshold over time.

Best practices

  • Start with Page scans to get an overall picture of accessibility issues.
  • Use Element scans for focused checks on important components.
  • Begin with a relaxed failure setting if your application has not been audited before.
  • Prioritize fixing critical and serious issues first.
  • Avoid disabling rules unless there is a clear reason.
  • Combine automated accessibility checks with manual testing for better coverage.

Example use cases

  • Check the accessibility of the full login page
  • Validate that a checkout form has proper labels and accessible structure
  • Scan only a modal dialog after opening it
  • Fail the test if serious accessibility issues are detected on a key page
  • Run targeted checks only for selected rules or tags
Endtest uses the open source Axe library provided by Deque Systems, Inc. to perform accessibility checks. Deque is an industry leader in digital accessibility, providing various tools and services. The Axe library includes rules for WCAG 2.0, 2.1, and 2.2 at levels A, AA, and AAA, as well as best-practice rules that help identify common accessibility issues. Axe is open source under the Mozilla Public License 2.0.

Summary

Accessibility Check helps you include accessibility validation directly in your Endtest Web Tests.

By combining functional test automation with automated accessibility scans, you can catch issues earlier and improve the usability of your application for more users.