From: Michael Fladischer <fladi@debian.org>
Date: Fri, 6 Mar 2026 18:42:51 +0000
Subject: Remove aria labels in expected HTML test output.

---
 tests/results/test_formset_layout.html       | 6 +++---
 tests/results/test_render_hidden_fields.html | 4 ++--
 tests/test_utils.py                          | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/tests/results/test_formset_layout.html b/tests/results/test_formset_layout.html
index 8192790..3846c1d 100644
--- a/tests/results/test_formset_layout.html
+++ b/tests/results/test_formset_layout.html
@@ -19,7 +19,7 @@
         <div id="div_id_form-0-email" class="form-group">
             <label for="id_form-0-email" class="control-label  requiredField"> email<span class="asteriskField">*</span></label>
             <div class="controls ">
-                <input aria-describedby="id_form-0-email_helptext" type="text" name="form-0-email" maxlength="30" class="textinput textInput inputtext form-control" id="id_form-0-email">
+                <input type="text" name="form-0-email" maxlength="30" class="textinput textInput inputtext form-control" id="id_form-0-email">
                 <div id="hint_id_form-0-email" class="help-block">Insert your email</div>
             </div>
         </div>
@@ -66,7 +66,7 @@
         <div id="div_id_form-1-email" class="form-group">
             <label for="id_form-1-email" class="control-label  requiredField"> email<span class="asteriskField">*</span></label>
             <div class="controls "> 
-                <input aria-describedby="id_form-1-email_helptext" type="text" name="form-1-email" maxlength="30" class="textinput textInput inputtext form-control" id="id_form-1-email">
+                <input type="text" name="form-1-email" maxlength="30" class="textinput textInput inputtext form-control" id="id_form-1-email">
                 <div id="hint_id_form-1-email" class="help-block">Insert your email</div>
             </div>
         </div>
@@ -112,7 +112,7 @@
         <div id="div_id_form-2-email" class="form-group"> 
             <label for="id_form-2-email" class="control-label  requiredField"> email<span class="asteriskField">*</span> </label>
             <div class="controls "> 
-                <input aria-describedby="id_form-2-email_helptext" type="text" name="form-2-email" maxlength="30" class="textinput textInput inputtext form-control" id="id_form-2-email">
+                <input type="text" name="form-2-email" maxlength="30" class="textinput textInput inputtext form-control" id="id_form-2-email">
                 <div id="hint_id_form-2-email" class="help-block">Insert your email</div>
             </div>
         </div>
diff --git a/tests/results/test_render_hidden_fields.html b/tests/results/test_render_hidden_fields.html
index 0f908c5..9a3f246 100644
--- a/tests/results/test_render_hidden_fields.html
+++ b/tests/results/test_render_hidden_fields.html
@@ -2,10 +2,10 @@
     <div id="div_id_email" class="form-group">
         <label for="id_email" class="control-label  requiredField">email<span class="asteriskField">*</span></label>
         <div class="controls ">
-            <input aria-describedby="id_email_helptext"  type="text" name="email" maxlength="30" class="textinput textInput inputtext form-control" required id="id_email">
+            <input type="text" name="email" maxlength="30" class="textinput textInput inputtext form-control" required id="id_email">
             <div id="hint_id_email" class="help-block">Insert your email</div>
         </div>
     </div>
     <input type="hidden" name="password1" id="id_password1">
     <input type="hidden" name="password2" id="id_password2">
-</form>
\ No newline at end of file
+</form>
diff --git a/tests/test_utils.py b/tests/test_utils.py
index a97b18d..a01c90b 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -143,7 +143,7 @@ def test_optgroup_filter():
     groups = optgroups(form["checkbox_select_multiple"])
     group = groups[0]
     label, option, index = group
-    attrs = {"aria-invalid": "true", "checked": True, "id": "id_checkbox_select_multiple_0"}
+    attrs = {"checked": True, "id": "id_checkbox_select_multiple_0"}
     assert label is None
     assert option == [
         {
@@ -185,7 +185,7 @@ def test_optgroup_filter():
     group = groups[0]
     label, option, index = group
     assert label is None
-    attrs = {"id": "id_checkbox_select_multiple_0", "aria-invalid": "true"}
+    attrs = {"id": "id_checkbox_select_multiple_0"}
     assert option == [
         {
             "name": "checkbox_select_multiple",
