diff options
| author | Gregor Jerše <gregor.jerse@genialis.com> | 2023-06-01 16:44:57 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-07-06 08:03:19 +0200 |
| commit | 966ecdd482167f3f6b08b00f484936c837751cb9 (patch) | |
| tree | 7876e7b05088ed60822604d8bd32d33e3d1f9d9d /tests/model_forms | |
| parent | 649262a406168709686f97694493aa1f717c6c96 (diff) | |
Fixed #32819 -- Established relationship between form fields and their help text.
Thanks Nimra for the initial patch.
Thanks Natalia Bidart, Thibaud Colas, David Smith, and Mariusz Felisiak
for reviews.
Diffstat (limited to 'tests/model_forms')
| -rw-r--r-- | tests/model_forms/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index b807e90ef9..d1716ce201 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -958,7 +958,8 @@ class TestFieldOverridesByFormMeta(SimpleTestCase): ) self.assertHTMLEqual( str(form["slug"]), - '<input id="id_slug" type="text" name="slug" maxlength="20" required>', + '<input id="id_slug" type="text" name="slug" maxlength="20" ' + 'aria-describedby="id_slug_helptext" required>', ) def test_label_overrides(self): |
