Skip to content

Add accessibility tests - #873

Merged
Sahil590 merged 10 commits into
mainfrom
accessibility-test
Nov 27, 2026
Merged

Sahil590 merged 10 commits into
mainfrom
accessibility-test

Conversation

@Sahil590

@Sahil590 Sahil590 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Uses Playwright and Axe to run accessibility tests over all the pages. The tests failed and are skipped, to be fixed in the future.

There was an issue flagged when running the tests with the events page that will be addressed in #802 so i implemented a small fix for that.
I opened issues #871 and #872 they are quite broad so can be broken down once taken and it includes links to the existing issues that were made.
Fixes #870

Type of change

  • Documentation (non-breaking change that adds or improves the documentation)
  • New feature (non-breaking change which adds functionality)
  • Optimization (non-breaking, back-end change that speeds up the code)
  • Technical work (non-breaking, change which is work as part of a new feature)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (whatever its nature)

Key checklist

  • All tests pass (eg. python -m pytest)
  • The documentation builds and looks OK (eg. mkdocs serve)
  • Pre-commit hooks run successfully (eg. pre-commit run --all-files)

Further checks

  • Code is commented, particularly in hard-to-understand areas
  • Tests added or an issue has been opened to tackle that in the future. (Indicate issue here: # (issue))

@Sahil590

Copy link
Copy Markdown
Contributor Author

I guess we have too many pre-commit hooks should I remove them?

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Sahil590
Sahil590 marked this pull request as ready for review November 25, 2026 13:20
Comment thread tests/test_accessibility.py Outdated
Comment on lines +104 to +106
"index",
"about",
"framework",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if you can auto-populate this from the url patterns

@AdrianDAlessandro AdrianDAlessandro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is great! Can you add the little bit of documentation I mentioned? I've already forgotten what flags you used to get the test browser up

Comment thread README.md
7. Run the tests:

```bash
python -m playwright install --with-deps chromium

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you maybe add the instructions of how to run this with seeing the browser version also? Not in this line but as an extra fyi

@Sahil590
Sahil590 enabled auto-merge November 27, 2026 17:03
@Sahil590
Sahil590 merged commit 27ce757 into main Nov 27, 2026
6 checks passed
@Sahil590
Sahil590 deleted the accessibility-test branch November 27, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement accessibility tests

2 participants