From 8d6478c3c1e730baa7c9a8a5ce0b22c1fd6c7bcb Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Wed, 11 Sep 2024 13:31:50 -0700 Subject: [PATCH] switch to serious and above try removing aria label --- app/templates/views/dashboard/dashboard.html | 2 +- tests/end_to_end/conftest.py | 5 ++++- tests/end_to_end/test_landing_and_sign_in_pages.py | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/templates/views/dashboard/dashboard.html b/app/templates/views/dashboard/dashboard.html index 9268b37e3..053e5ead2 100644 --- a/app/templates/views/dashboard/dashboard.html +++ b/app/templates/views/dashboard/dashboard.html @@ -46,7 +46,7 @@
{{ current_service.name }} - last 7 days
-
+
diff --git a/tests/end_to_end/conftest.py b/tests/end_to_end/conftest.py index c5f53e3fa..208ed0697 100644 --- a/tests/end_to_end/conftest.py +++ b/tests/end_to_end/conftest.py @@ -114,4 +114,7 @@ def check_axe_report(page): results = axe.run(page) for violation in results["violations"]: - assert violation["impact"] == "minor", f"Accessibility violation: {violation}" + assert violation["impact"] in [ + "minor", + "moderate", + ], f"Accessibility violation: {violation}" diff --git a/tests/end_to_end/test_landing_and_sign_in_pages.py b/tests/end_to_end/test_landing_and_sign_in_pages.py index 63c570038..3cd17ad3a 100644 --- a/tests/end_to_end/test_landing_and_sign_in_pages.py +++ b/tests/end_to_end/test_landing_and_sign_in_pages.py @@ -2,6 +2,7 @@ import os import re from playwright.sync_api import expect + from tests.end_to_end.conftest import check_axe_report E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")