Skip to content

Commit

Permalink
fix settings error
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfast committed May 25, 2024
1 parent cebeebb commit 44bce51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_a11y_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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")"""
Expand Down

0 comments on commit 44bce51

Please sign in to comment.