Skip to content

Upgrade axe-core JS version #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

All notable changes to this project will be documented in this file.

## [0.1.5] - June 21, 2025

- Upgraded axe-core JS version to v4.10.3. You may seen the number of violations change as a result, as they added new rules and updated existing ones.
6 changes: 3 additions & 3 deletions axe_playwright_python/axe.min.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "axe-playwright-python"
description = "Automated web accessibility testing using axe-core engine and Playwright."
version = "0.1.4"
version = "0.1.5"
authors = [{name = "Pamela Fox", "email" = "pamela.fox@gmail.com"}]
requires-python = ">=3.8"
readme = "README.md"
Expand Down Expand Up @@ -54,7 +54,6 @@ line-length = 100
target-version = "py38"
select = ["E", "F", "I", "UP"]
ignore = ["D203"]
show-source = true

[tool.black]
line-length = 100
Expand Down
14 changes: 7 additions & 7 deletions tests/test_axe_async_playwright.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ async def test_run_axe_sample_page_firefox(firefox_page):
"""Run axe against sample page and verify JSON output is as expected."""
data = await _perform_axe_run(firefox_page)

assert len(data["inapplicable"]) == 71
assert len(data["inapplicable"]) == 75
assert len(data["incomplete"]) == 0
assert len(data["passes"]) == 7
assert len(data["passes"]) == 6
assert len(data["violations"]) == 9


@pytest.mark.asyncio
async def test_run_axe_sample_page_chrimium(chromium_page):
async def test_run_axe_sample_page_chromium(chromium_page):
"""Run axe against sample page and verify JSON output is as expected."""
data = await _perform_axe_run(chromium_page)

assert len(data["inapplicable"]) == 71
assert len(data["inapplicable"]) == 75
assert len(data["incomplete"]) == 0
assert len(data["passes"]) == 7
assert len(data["passes"]) == 6
assert len(data["violations"]) == 9


Expand All @@ -64,9 +64,9 @@ async def test_run_axe_sample_page_webkit(webkit_page):
"""Run axe against sample page and verify JSON output is as expected."""
data = await _perform_axe_run(webkit_page)

assert len(data["inapplicable"]) == 71
assert len(data["inapplicable"]) == 75
assert len(data["incomplete"]) == 0
assert len(data["passes"]) == 7
assert len(data["passes"]) == 6
assert len(data["violations"]) == 9


Expand Down
14 changes: 7 additions & 7 deletions tests/test_axe_sync_playwright.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,29 @@ def test_run_axe_sample_page_firefox(firefox_page):
"""Run axe against sample page and verify JSON output is as expected."""
data = _perform_axe_run(firefox_page)

assert len(data["inapplicable"]) == 71
assert len(data["inapplicable"]) == 75
assert len(data["incomplete"]) == 0
assert len(data["passes"]) == 7
assert len(data["passes"]) == 6
assert len(data["violations"]) == 9


def test_run_axe_sample_page_chrimium(chromium_page):
def test_run_axe_sample_page_chromium(chromium_page):
"""Run axe against sample page and verify JSON output is as expected."""
data = _perform_axe_run(chromium_page)

assert len(data["inapplicable"]) == 71
assert len(data["inapplicable"]) == 75
assert len(data["incomplete"]) == 0
assert len(data["passes"]) == 7
assert len(data["passes"]) == 6
assert len(data["violations"]) == 9


def test_run_axe_sample_page_webkit(webkit_page):
"""Run axe against sample page and verify JSON output is as expected."""
data = _perform_axe_run(webkit_page)

assert len(data["inapplicable"]) == 71
assert len(data["inapplicable"]) == 75
assert len(data["incomplete"]) == 0
assert len(data["passes"]) == 7
assert len(data["passes"]) == 6
assert len(data["violations"]) == 9


Expand Down