From 44bce51fbe6bf0505326b5ea36ca9d74a2ded63a Mon Sep 17 00:00:00 2001 From: tonyfast Date: Sat, 25 May 2024 15:49:10 -0700 Subject: [PATCH] fix settings error --- tests/test_a11y_settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_a11y_settings.py b/tests/test_a11y_settings.py index 6b112168..d2418158 100644 --- a/tests/test_a11y_settings.py +++ b/tests/test_a11y_settings.py @@ -3,7 +3,7 @@ from pytest import fixture, mark, param -from nbconvert_a11y.pytest_axe import JUPYTER_WIDGETS, MATHJAX, SA11Y, AxeViolation, Axe +from nbconvert_a11y.pytest_axe import AxeViolation, Axe from tests.test_smoke import CONFIGURATIONS, NOTEBOOKS, get_target_html NEEDS_WORK = "state needs work" @@ -34,11 +34,13 @@ def test_dialogs(lorenz, dialog): # dialogs are not tested in the baseline axe test. they need to be active to test. # these tests activate the dialogs to assess their accessibility with the active dialogs. lorenz.page.click(dialog) - test = lorenz.run({"exclude": [JUPYTER_WIDGETS, MATHJAX, SA11Y]}) + test = lorenz.run() try: raise test.raises() except* AxeViolation["serious-color-contrast-enhanced"]: ... + except* AxeViolation["serious-target-size"]: + "the line height raises a target size error for some reason" SNIPPET_FONT_SIZE = ( """window.getComputedStyle(document.querySelector("body")).getPropertyValue("font-size")"""