summaryrefslogtreecommitdiff
path: root/tests/view_tests
diff options
context:
space:
mode:
authorThibaud Colas <thibaudcolas@gmail.com>2020-09-29 00:43:19 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-11-20 19:18:07 +0100
commita1215a3237ff53941d606fc54d926495e454c2d9 (patch)
treeda3989c4bb7dd0cb2d724fa94efff6421928e918 /tests/view_tests
parent20f2b822f8bc9138e39a2517371a7b4a98ca1ff5 (diff)
downloaddjango-a1215a3237ff53941d606fc54d926495e454c2d9.tar.gz
Fixed #32053 -- Fixed accessibility issues on the 'Congrats' page.
- Add lang attribute. - Use the same text for the page’s main heading, and title. - Add underlines for all links in copy. - Stop using h2 for link to the Django page. - Use h1 for the main heading. - Remove useless type attribute on style element. - Remove grey text that fails contrast checks. - Use a shade of grey that passes AAA contrast requirements. - Stop using h4 for footer links. - Add full stop in block-level links so VoiceOver correctly pauses between runs of text. - Hide main artwork for screen reader users. - Update SVG icons markup to be screen-reader friendly. - Switch options to be block-level links. - Remove unused markup.
Diffstat (limited to 'tests/view_tests')
-rw-r--r--tests/view_tests/tests/test_debug.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py
index a0da6e1adc..35a44451f2 100644
--- a/tests/view_tests/tests/test_debug.py
+++ b/tests/view_tests/tests/test_debug.py
@@ -243,7 +243,7 @@ class DebugViewTests(SimpleTestCase):
response = self.client.get('/')
self.assertContains(
response,
- "<h2>The install worked successfully! Congratulations!</h2>"
+ "<h1>The install worked successfully! Congratulations!</h1>"
)
@override_settings(ROOT_URLCONF='view_tests.regression_21530_urls')