mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 04:43:12 -04:00
fix import
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from axe_core_python import Axe
|
from axe_core_python.sync_playwright import Axe
|
||||||
|
|
||||||
E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
|
E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
|
||||||
|
|
||||||
@@ -20,9 +20,10 @@ def test_a11y(authenticated_page, end_to_end_context):
|
|||||||
# Check to make sure that we've arrived at the next page.
|
# Check to make sure that we've arrived at the next page.
|
||||||
page.wait_for_load_state("domcontentloaded")
|
page.wait_for_load_state("domcontentloaded")
|
||||||
|
|
||||||
axe = Axe(page)
|
axe = Axe()
|
||||||
axe.inject()
|
|
||||||
results = axe.run()
|
results = axe.run(page)
|
||||||
|
|
||||||
assert (
|
assert (
|
||||||
len(results["violations"]) == 0
|
len(results["violations"]) == 0
|
||||||
), f"Accessibility violations: {results['violations']}"
|
), f"Accessibility violations: {results['violations']}"
|
||||||
|
|||||||
Reference in New Issue
Block a user