nhsuk / ui-test-core

Python package which helps with writing UI tests by providing a wrapper around Selenium and other useful functions
MIT License
12 stars 6 forks source link

Add axe reporting functionality #32

Closed ghufrankhan closed 2 years ago

ghufrankhan commented 2 years ago

Description

Added Axe reporting functionality to run accessibility tests and generate a report. Added ability to run non-headless tests on MacOS using Chrome. Updated invalid characters to be replaced in 'remove_invalid_characters' function.

Motivation and Context

Allows NHSuk testers to automate accessibility testing using the Axe Tool. This will generate a report locally and in Azure which will allow the frontend devs to make improvements. A user with a Mac can now use this framework the same way as a Windows user. The Chromedriver file needs to be placed in the browser_executables folder. Additional special characters are replaced. The new characters to be replaced were added to an exiting function.

Checklist